public interface I18N
Basic idea: UI messages are available by specifying 2 values:
(a) The ISO 639-1 language code, as a String ("en", "fr", "ja" etc)
(b) A key for the message. For example, "index.home.title" or "histogram.nav.home"
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultLanguage()
Get the currently set default language as an ISO 639-1 code
|
String |
getMessage(String key)
Get the specified message in the default language (according to
getDefaultLanguage() |
String |
getMessage(String langCode,
String key)
Get the specified message for the specified language
|
void |
setDefaultLanguage(String langCode)
Set the default language
|
String getMessage(String key)
getDefaultLanguage()key - Key valueString getMessage(String langCode, String key)
langCode - ISO 639-1 language code: "en", "ja", etckey - Key value for the message to retrieveString getDefaultLanguage()
void setDefaultLanguage(String langCode)
langCode - Language code, as an ISO 639-1 codeCopyright © 2018. All rights reserved.