MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.core.localization.repository/Localization

Localization

[jvm]
interface Localization

Defines the contract for the localization repository.

Functions

Name Summary
get [jvm]
abstract fun get(key: String): String
Get a message translation for a given key.
getLanguage [jvm]
abstract fun getLanguage(): String
Get the current language.
setLanguage [jvm]
abstract fun setLanguage(lang: String)
Set the app language globally.