TranslationManager

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun countTranslations(group: String? = null, lang: String? = null): Int

Count the amount of translations

Link copied to clipboard

Loads the translations to the cache.

Link copied to clipboard
fun registerTranslation(group: String = "common", translation: Translation)

Register the given translations to the given group id

Link copied to clipboard
fun registerTranslations(group: String = "common", vararg translations: Translation)
fun registerTranslations(group: String = "common", translations: Collection<Translation>)

Register the given translations to the given group id

Link copied to clipboard
fun translate(id: String, language: String? = null, group: String = "common", placeholders: Map<String, String> = emptyMap()): String

Get the translation for the given id in the given language