commonMain.com.bselzer.gw2.v2.intl.translation.Translator.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of v2-intl-jvm Show documentation
Show all versions of v2-intl-jvm Show documentation
Internalization support by mapping translations from Guild Wars 2 API models.
package com.bselzer.gw2.v2.intl.translation
import com.bselzer.gw2.v2.intl.model.Translation
interface Translator {
// TODO more effective way of declaring translations to reduce verbosity (delegate on properties, language scope) -- DSL?
/**
* Finds the translatable texts associated with the [model].
*/
fun texts(model: Model): List
/**
* Creates the translations for the text found in the [default] model to the text found in the [translated] model in the given [language].
*/
fun translations(default: Model, translated: Model, language: String): List
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy