Description of icon
Flex UI
API Reference

LocalizationType

Localization Type object containing the locale tag, available locales, and a function to set the locale preference


Properties:

  • localeTag: string

    The preferred locale of the user

  • availableLocales: Array<AvailableLocale>

    The available locales in Flex UI

    • tag: string - The language tag of the locale
    • name: string - The name of the locale
  • setLocalePreference: function

    An async function which sets the preference of the user

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.