public class I18NTools extends Object
| Constructor and Description |
|---|
I18NTools() |
| Modifier and Type | Method and Description |
|---|---|
static String |
computeTrailingName(Locale locale)
Compute the trailing name for a given locale.
|
static String |
getRFC3066LanguageTagFor(Locale locale)
Retrieves the language identification tag associated to the specified Locale as defined by IETF RFC 3066 limited to 2-letter language code per ISO standard
639, a "-" (dash) and a 2-letter country code per ISO 3166 alpha-2 country codes.
|
public static String getRFC3066LanguageTagFor(Locale locale)
locale - the locale which language tag is wantedIllegalArgumentException - if the given locale is not validpublic static String computeTrailingName(Locale locale) throws IllegalArgumentException
locale - the localeIllegalArgumentException - if locale is nullCopyright © 2025 JBoss by Red Hat. All Rights Reserved.