public class LocaleFallbackHandler extends Object
Modifier and Type | Field and Description |
---|---|
static LocaleFallbackHandler |
s_Instance
An instance of LocaleFallbackHandler
|
Modifier and Type | Method and Description |
---|---|
static LocaleFallbackHandler |
getInstance(Collection availableLocales)
Get the locale fallback handler.
|
Locale |
getLocale(String localeId)
Given a locale identifier, return the best fit locale
See also: Language-Tag in RFC 3066
|
public static LocaleFallbackHandler s_Instance
public static LocaleFallbackHandler getInstance(Collection availableLocales)
The available locales are set once and for all on the first call. The argument is ignored on subsequent calls.
availableLocales
- a collection of Locale objectsCopyright © 2023. All rights reserved.