public interface Locales
| Modifier and Type | Method and Description |
|---|---|
String |
getISOCode()
Returns the current locale's 3 character ISO code.
|
List<String> |
getISOCodes()
Returns the 3 character ISO codes of the supported locales.
|
Locale |
getLocale()
Returns the current locale.
|
Locale |
getLocale(String code)
Returns the locale corresponding to the supplied ISO2/ISO3 code.
|
List<Locale> |
getLocales()
Returns the supported locales.
|
Messages |
getMessages()
Returns messages for the current locale.
|
Messages |
getMessages(String name)
Returns the named messages for the current locale.
|
void |
setLocale(String code)
Sets the current locale.
|
Locale getLocale()
nullvoid setLocale(String code)
code - the ISO codeResourceNotFoundException - if the locale isn't supportedString getISOCode()
null if there is no current localeLocale getLocale(String code)
code - the ISO code. May be a country or language codenull if the locale isn't supportedList<String> getISOCodes()
Messages getMessages()
ResourceNotFoundException - if the messages resource cannot be foundMessages getMessages(String name)
name - the message resource nameResourceNotFoundException - if the named resource cannot be foundCopyright © 2001–2025. All rights reserved.