//MetaPhrase/com.github.diegoberaldin.metaphrase.core.localization/L10n
L10n
[jvm]
object L10n
Global entry point for the app localization.
Properties
Name | Summary |
---|---|
currentLanguage | [jvm] val currentLanguage: Flow<String> Exposes the ISO 693-1 code of the current language as an observable flow. |
Functions
Name | Summary |
---|---|
get | [jvm] fun get(key: String): String Get the message associated to a given key. If the key is not present in the current language, a default value (base language) should be returned. If the key does not exist even in the base bundle, the key itself should be returned. [jvm] fun get(key: String, vararg args: Any): String Get the message associated to a given key with format arguments. |
setLanguage | [jvm] fun setLanguage(lang: String) Set the app language. |