How to get a list of enabled locales in SAIL

Certified Senior Developer

Hello!

I would like to display a list of locales enabled in Administration Console -> Internationalization to a user in a SAIL interface.

How can I retrieve the list of enabled locales and how to find out which one is the default locale?

Thanks in advance!

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Associate Developer
    in reply to Stefan Helzle

    Thanks For that , 

    In Appian, I want users to select a locale from a dropdown that simulates Admin Console → Enabled / Primary Locales, using a constant.

    However, admins may later disable locales in the Admin Console that are still present in my constant. This creates a mismatch where users can select a locale that is no longer enabled in Appian.

    Question:
    How can I keep my UI locale dropdown in sync with the real-time enabled/primary locales in the Appian Admin Console?
    Is there any function, system value, or workaround to dynamically fetch or validate enabled/primary locales instead of hardcoding them in a constant?

Children
No Data