kvision / pl.treksoft.kvision.i18n / DefaultI18nManager

DefaultI18nManager

class DefaultI18nManager : I18nManager

Constructors

<init>

DefaultI18nManager(translations: Map<String, dynamic>)

Functions

gettext

fun gettext(key: String): String

A static translation function for a singular form.

ngettext

fun ngettext(singularKey: String, pluralKey: String, value: Int): String

A static translation function for a plural form.

Inherited Functions

ntr

open fun ntr(singularKey: String, pluralKey: String, value: Int): String

A dynamic translation function for a plural form.

tr

open fun tr(key: String): String

A dynamic translation function for a singular form.

trans

open fun trans(text: String?): String?

A dynamic translation function.