Tip: Finding current Locale of HelpCenter using javascript

4 댓글

  • Andrey Sarapulov
    Zendesk Team Member

    here is one liner for the same purpose:


  • Diziana

    @Andrey's solution should be used. We can trust Zendesk would always include 'lang' in their html, and that's the way to go -- instead of using hackish approach in my tip above.


    Thanks @Andrey.

  • Jennifer Rowe
    Zendesk Documentation Team

    Thank you both, Diziana and Andrey! 

  • Jake Bantz
    Zendesk Team Member

    Good news everyone! We have added the ability to check or display the current locale being viewed by using help_center.locale as highlighted in our documentation here.


게시물 댓글 달기가 중지되었습니다.

Zendesk 제공