public class LocaleUtil extends Object
| Constructor and Description |
|---|
LocaleUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
normalizeLanguageCode_ICU(String languageCode)
Converts the language tag (language ID and an optional region/country part) to the ICU format: lower case for the language,
upper case for the region, parts are delimited with an underscore.
|
static String |
normalizeLanguageCode_Okapi(String languageCode)
Deprecated.
don't use this. It only "understands" language + region,
but that is just a small part of what BCP 47 supports.
Also, the LocaleId does case normalization out of the box now.
|
static List<String> |
normalizeLanguageCodes_Okapi(List<String> languageCodes)
Deprecated.
don't use this. It only "understands" language + region,
but that is just a small part of what BCP 47 supports.
Also, the LocaleId does case normalization out of the box now.
|
@Deprecated public static String normalizeLanguageCode_Okapi(String languageCode)
languageCode - @Deprecated public static List<String> normalizeLanguageCodes_Okapi(List<String> languageCodes)
languageCodes - List of language codes to normalize.public static String normalizeLanguageCode_ICU(String languageCode)
languageCode - Copyright © 2018. All rights reserved.