- toString
Gets the string representation of the LocaleId.
- fromString
Creates a new LocaleId from a locale identifier (and validate it). Calling this
method is the same a
- toJavaLocale
Creates a new Java Locale object from this LocaleId.
- equals
Indicates if a given object is equal to this localeId object.
- getLanguage
Gets the language code for this LocaleId.
- toBCP47
Gets the BCP-47 language tag for this LocaleId.
- replaceVariables
Replaces the locale/language variables in a given input string by their runtime
values. If one of th
- getRegion
Gets the region code for this LocaleId.
- isBidirectional
Indicates if a given locale usually uses a bi-directional script.Note that this
is not perfect as so
- sameLanguageAs
Indicates if the language of a given LocaleId is the same as the one of this
LocaleId. For example:
- toPOSIXLocaleId
Gets a POSIX locale identifier for this LocaleId. For example: "af-za" returns
"af_ZA".
- fromBCP47
Creates a new LocaleId from a BCP-47 language tag.If strict is true the language
tag must be well-fo