MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.core.localization/L10n/get

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.

Return

the localized string to show in the app UI

Parameters

jvm

   
key Message key

[jvm]
fun get(key: String, vararg args: Any): String

Get the message associated to a given key with format arguments.

Return

the localized string to show in the app UI

Parameters

jvm

   
key Message key
args Format arguments