How can I edit the labels displayed in the language dropdown menu in my Help Center?

Return to top
Have more questions? Submit a request

2 Comments

  • Francois S

    The code is working, but doesn't work with 90% of the supported zendesk languages.
    Seems that the current_locale.name aren't correct ? 

    I'm using the naming of this list: https://support.zendesk.com/hc/en-us/articles/203761906-Zendesk-language-support-by-product 

    And for example "English (World)" is working but not "English (Luxembourg)" or many others...

     

    Someone know how I can extract the naming of the current_locale.name ?

    Stupid that we can't use the "ID or code" would be less confusing and without risk of mistakes. 

     

    And Even if the name is correct according to postman... 

    It still doesn't work

    1
  • Sushant Awalekar
    Community Moderator

    Francois S

    You can try this workaround to get the locale names and then use in above code to replace language labels.

    Paste the below code snippet in your footer.hbs file and then preview the theme to get locale names by inspecting the webpage.

    <script>
    {{#each alternative_locales}}
    var locale_name = "{{name}}"
    console.log(locale_name);
    {{/each}}
    </script>
     

     

    you can find all the locales under-console tab.

     

    Hope this helps!!

    -sushant

    0

Please sign in to leave a comment.

Powered by Zendesk