Everything involved in translating Translatables.
abstract class ArgumentsSupportingTranslator : Translator
Represents a Translator which supports TranslatableWithArgs. |
|
data class Locale
Represents a platform independent representation of a locale consisting of a language, a script, a country and a variant. |
|
interface LocaleOrderDecider
Responsible to decide in which order Locales should be processed. |
|
interface StringBasedTranslatable : Translatable
Something which is Translatable and provides a default representation by value. |
|
interface Translatable
Something which is translatable, identified by id with a default representation given by getDefault. |
|
data class
Use this class to represent a Translatable which shall be translated and then be treated as raw String in reporting. |
|
data class TranslatableWithArgs : Translatable
A Translatable which contains placeholders for arguments. |
|
interface TranslationSupplier
A supplier of translations for Translatables for particular Locales. |
|
interface Translator
Represents a translator of Translatables. |
|
class Untranslatable : Translatable
Represents a Translatable which is not translatable but has only a fixed name which serves as getDefault. |
|
class UsingDefaultTranslator : ArgumentsSupportingTranslator
This translator does not translate but uses Translatable.getDefault instead and uses getDefaultLocale as primaryLocale if not defined differently via constructor parameter. |
expect fun getDefaultLocale(): Locale
Returns the default Locale which should be used if not defined otherwise. |
|
fun Locale.toJavaLocale(): Locale
Transforms this Locale into a java.util.Locale. |