kvision / pl.treksoft.kvision.i18n / SimpleI18nManager

SimpleI18nManager

class SimpleI18nManager : I18nManager

Constructors

<init>

SimpleI18nManager()

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.

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.