All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.bselzer.gw2.v2.intl.translation.Translator.kt Maven / Gradle / Ivy

Go to download

Internalization support by mapping translations from Guild Wars 2 API models.

There is a newer version: 3.13.0
Show newest version
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