Forum Discussion

vaishnavi's avatar
vaishnavi
Expert
8 years ago

how to get languages supported on my current instance?

Hi,

I want to create a custom language drop-down for anonymous user.

How do I fetch all the languages supported/added in current instance.

Note : I do not want to get languages supported by Lithium platform, I just want those languages added on the specific instance.

Any pointers?

 

Thanks,

Vaishnavi

4 Replies

  • vaishnavi  You can check it here

     

    Studio > Text Editor > Language 

    And you can create a custom language selector on bases of that. 

  • vaishnavi's avatar
    vaishnavi
    Expert
    8 years ago

    Hi,

    I do not want to go to the page manually to check what languages are added.

    I want to fetch them dynamically using any context variables or API.

     

    Thanks.

  • ChiaraS's avatar
    ChiaraS
    Lithium Alumni (Retired)
    8 years ago

    I don't think there's a way to get the list via API or context objects unfortunately...

    But, as the list of supported languages is set at community launch and other languages support is not added that frequently, I would just store the list of supported languages in a variable or setting.

  • VikasB's avatar
    VikasB
    Boss
    8 years ago

    vaishnavi  I think there is no such API to get all the supported language for a specific instance.  I would also love to hear from lithium experts if there is something helpful to get it complete.