最近搜索


没有最近搜索

Michaela Sääw's Avatar

Michaela Sääw

已加入2023年2月28日

·

最后活动2023年3月10日

Developer at Fortnox AB

关注

0

关注者

0

活动总数

8

投票

1

订阅

2

活动概览

的最新活动 Michaela Sääw

Michaela Sääw 进行了评论,

社区评论 Feedback - Apps and integrations (Platform)

Hi! Got some progress.

We got https://fortnox1409057695.zendesk.com/api/v2/ticket_fields?locale=sv to work, note that the query parameter is missing the country code. I noticed that you used the country code in your locale param, and it's strange that the format does not work for us. 

Is this by design and is it safe to use this format? To be sure the API won't stop accepting this and require se-sv all of a sudden. 

查看评论 · 已于 2023年3月10日 发布 · Michaela Sääw

0

关注者

0

投票

0

评论


Michaela Sääw 进行了评论,

社区评论 Feedback - Apps and integrations (Platform)

Hi again! Looks promising, however, I can't get it to work. I must be missing something on my end.

I tested directly through Postman and added the query param in the request in our code, but still no luck. 

REQUEST URL: https://fortnox1409057695.zendesk.com/api/v2/ticket_fields?locale=se-sv
FIELD {
  url: 'https://fortnox1409057695.zendesk.com/api/v2/ticket_fields/24510111.json',
  id: 24510111,
  type: 'subject',
  title: 'Subject',
  raw_title: 'Ämne',
  description: '',
  raw_description: '',
  position: 1,
  active: true,
  required: true,
  collapsed_for_agents: false,
  regexp_for_validation: null,
  title_in_portal: 'Subject',
  raw_title_in_portal: '{{dc.subject}}',
  visible_in_portal: true,
  editable_in_portal: true,
  required_in_portal: true,
  tag: null,
  created_at: '2014-08-26T12:55:02Z',
  updated_at: '2023-02-21T13:16:41Z',
  removable: false,
  key: null,
  agent_description: null
}

查看评论 · 已于 2023年3月03日 发布 · Michaela Sääw

0

关注者

0

投票

0

评论


Michaela Sääw 进行了评论,

社区评论 Feedback - Apps and integrations (Platform)

That doesn't seem to work for these endpoints unfortunately. It also seems to always return the english translation even though the default language is set to Swedish. So without any parameters it should return Swedish content even though we are using Dynamic Content, right?

Extract from API response. Using /api/v2/ticket_fields?locale='se-sv'

 

查看评论 · 已于 2023年3月01日 发布 · Michaela Sääw

0

关注者

0

投票

0

评论


Michaela Sääw 创建了一个帖子,

帖子 Feedback - Apps and integrations (Platform)

Hello!

We are planning on adding translations to our website. We use Zendesk forms that we fetch via the API. We have tried using dynamic content to translate the form fields. The problem is that we have not found a way to retrieve the correct translation depending on the locale of the website. We contacted your support and got it confirmed that it is not possible and that the API will only return the default language set in the Zendesk portal. 

What we would need is something like this:

/api/v2/ticket_forms/4412295082770?lang='se-sv'

/api/v2/ticket_fields?lang='se-sv'

If no language parameter is provided the default language will be returned.

We would really appreciate this feature. In the meanwhile, we will have to hardcode some translations into our form component. This is not ideal since it requires developers to update the texts.

Kind regards, Michaela 

已于 2023年2月28日 发布 · Michaela Sääw

0

关注者

4

投票

10

评论


Michaela Sääw 创建了一个帖子,

帖子 Developer - Zendesk APIs

Hello!

We are planning on adding translations to our website. We use Zendesk forms that we fetch via the API. We have tried using dynamic content to translate the form fields. The problem is that we have not found a way to retrieve the correct translation depending on the locale of the website. We contacted your support and got it confirmed that it is not possible and that the API will only return the default language set in the Zendesk portal. 

What we would need is something like this:

/api/v2/ticket_forms/4412295082770?lang='se-sv'

/api/v2/ticket_fields?lang='se-sv'

If no language parameter is provided the default language will be returned.

We would really appreciate this feature. In the meanwhile, we will have to hardcode some translations into our form component. This is not ideal since it requires developers to update the texts.

Kind regards, Michaela 

已于 2023年2月28日 发布 · Michaela Sääw

0

关注者

2

投票

1

Comment