Translated
class Translated(val key: String, arguments: List<UiTextArgument> = emptyList(), val fallback: TranslationFallback = TranslationFallback.UseKey) : UiText(source)
A translation key with typed arguments and a non-null fallback policy.
The argument list is defensively snapshotted. The TranslationFallback.UseKey fallback preserves and displays the key when lookup is unavailable.
Constructors
Link copied to clipboard
constructor(key: String, arguments: List<UiTextArgument> = emptyList(), fallback: TranslationFallback = TranslationFallback.UseKey)
Creates a translation with a literal fallback.
Creates a translation with typed arguments and a literal fallback.