Extensions.I18n.GetAllLocales
Contents
Classification
Name | GetAllLocales |
Short Description | Retrieve all available locales |
Class | Term |
Extension | OTX i18n extension |
Group | Locale settings related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ListTerm I18n.GetAllLocales();
Description
The term GetAllLocales will retrieve all available locales from the runtime system that are supported and for which translations are available.
The fact that a runtime system returns a locale does not guarantee that all translations and units are available. Rather, this method returns the locales that can be used, regardless of data availability. It is however recommended that runtime systems consult their translation data store before returning the list of locales, so the results will be close to the actual available data.
The returned value will be a list of strings using the same locale format as specified for the GetCurrentLocale term.
This term allows querying some of the capabilities of the underlying runtime system. It is useful information e.g. for the TranslateToLocale term, as it is known before hand what can be used as valid locale input.
Return Value
The Term returns the value, see table below.
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
List | All available locales. |
Properties
- NONE
OTL Examples
/// Local Declarations
List<String> List1;
/// Flow
List1 = I18n.GetAllLocales();