kvision / pl.treksoft.kvision.i18n / I18n

I18n

object I18n : I18nManager

A singleton object used for translations.

Properties

language

var language: <ERROR CLASS>

Main language of the application.

manager

var manager: I18nManager

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.