commonMain.com.bselzer.gw2.v2.intl.model.Translation.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.model
import kotlinx.serialization.Serializable
@Serializable
data class Translation(
/**
* The default English text.
*/
val default: String,
/**
* The translated version of the [default] text.
*/
val translated: String,
/**
* The language the [translated] text is in.
*/
val language: String,
) : Comparable {
override fun compareTo(other: Translation): Int = translated.compareTo(other.translated)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy