public final class LocaleUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Locale |
converterTagLocaleFromString(String name)
Convert locale string used by converter tags to locale.
|
static Locale |
toLocale(String localeString)
Converts a locale string to
Locale class. |
public static Locale toLocale(String localeString)
Locale
class. Accepts both
'_' and '-' as separators for locale components.localeString
- string representation of a localeCopyright © 2020 The Apache Software Foundation. All rights reserved.