Package io.jmix.core
Class LocaleResolver
java.lang.Object
io.jmix.core.LocaleResolver
The LocaleResolver class transforms locales to strings and vice versa to support messages localization.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
LocaleResolver
public LocaleResolver()
-
-
Method Details
-
resolve
- Parameters:
localeString
- the locale String or language tag.- Returns:
- The locale that best represents the language tag or locale string.
- Throws:
NullPointerException
- iflocaleString
isnull
-
localeToString
- Returns:
- A string representation of the Locale without
Extension
or a BCP47 language tag if locale object containsScript
-