translate

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

Translates given text with I18n trans function and sets lastLanguage marker.

Return

translated text

Parameters

text

a text marked for a dynamic translation