system.vision.getAvailableLocales
Backwards Compatibility
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. Only the system.vision variations will appear in the Script Editor's autocomplete popup.
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 Java Locale objects.
Scope​
Vision Client
Code Examples​
Example #1
# This example simply lists the available locales for the system.
system.vision.getAvailableLocales()