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 SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
LocaleResolverpublic 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- if- localeStringis- null
 
- 
localeToString- Returns:
- A string representation of the Locale without Extensionor a BCP47 language tag if locale object containsScript
 
 
-