system.vision.getAvailableLocales
This function replaces system.util.getAvailableLocales. Any scripts containing Vision Client scoped functions that were replaced with system.vision syntax will still work to maintain backwards compatibility.
This function is used in Python Scripting.
Descriptionβ
Returns a collection of the locales defined on the system, as strings. Note that these are only the locales that are defined in the translation system.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.vision.getAvailableLocales()
Parametersβ
Nothing
Returnsβ
List - A list of strings, each representing a locale defined in the translation system.
The returned strings use the legacy underscore form (such as en_US) rather than a BCP-47 language tag (such as en-US). If you need to pass one of these values somewhere that expects a language tag, replace the underscore with a hyphen. See Locale Formats and Language Tags.
Scopeβ
Vision Client
Code Examplesβ
# This example simply lists the available locales for the system.
system.vision.getAvailableLocales()