Package org.deeplearning4j.ui.api
Interface I18N
-
- All Known Implementing Classes:
DefaultI18N
public interface I18N
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDefaultLanguage()Get the currently set default language as an ISO 639-1 codeStringgetMessage(String key)Get the specified message in the default language (according togetDefaultLanguage()StringgetMessage(String langCode, String key)Get the specified message for the specified languageMap<String,String>getMessages(String langCode)Get all internationalization messages for the specified language codevoidsetDefaultLanguage(String langCode)Set the default language
-
-
-
Method Detail
-
getMessage
String getMessage(String key)
Get the specified message in the default language (according togetDefaultLanguage()- Parameters:
key- Key value- Returns:
- Message for the given key, or null if none is found/available
-
getMessage
String getMessage(String langCode, String key)
Get the specified message for the specified language- Parameters:
langCode- ISO 639-1 language code: "en", "ja", etckey- Key value for the message to retrieve- Returns:
- Message for the given key/language pair, or null if none is found
-
getDefaultLanguage
String getDefaultLanguage()
Get the currently set default language as an ISO 639-1 code- Returns:
- The current default language
-
setDefaultLanguage
void setDefaultLanguage(String langCode)
Set the default language- Parameters:
langCode- Language code, as an ISO 639-1 code
-
-