Class LocaleUtils
java.lang.Object
com.inductiveautomation.ignition.common.i18n.LocaleUtils
- 
Method SummaryModifier and TypeMethodDescriptiongetAvailableLocales(boolean andRegionalVariants) Returns the available locales, sorted.parseLocale(String locale) Attempt to parse the given string into a locale - first, as a Java formatted locale, usingLocaleUtils.toLocale(String)- but if that fails, then by parsing it as a language tag.
- 
Method Details- 
getAvailableLocalesReturns the available locales, sorted. If andRegionalVariants is true, they will be included, otherwise only the base languages will be returned.
- 
parseLocaleAttempt to parse the given string into a locale - first, as a Java formatted locale, usingLocaleUtils.toLocale(String)- but if that fails, then by parsing it as a language tag. Will attempt to return an empty optional, rather than an invalid locale.
 
-