Translating Category and sections using json | Community
Skip to main content

Translating Category and sections using json

  • July 26, 2023
  • 1 reply
  • 0 views

We've got tabbed navigation, similar to this: Using Slack | Slack where the categories show and the sections show below the categories when hovered over. I'd like to know how to translate these when a user accesses the site from Spain. We've got the tabbed navigation showing via json script but unsure how to enable translation, as dynamic content isn't available in json files

1 reply

  • October 25, 2023
Hi Oliver,

Unfortunately, this is not possible using native tools, however, using the HC article translations API you should be able to pull the information to be shown to the user on hover. To identify where the user is accessing your Help Center from you can use the Show Self API and refer to the attribute "iana_time_zone".

Thanks.