MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.panel.glossary.presentation/GlossaryComponent/UiState

UiState

[jvm]
data class UiState(val sourceFlag: String = "", val targetFlag: String = "", val isLoading: Boolean = false, val isBaseLanguage: Boolean = false, val terms: List<Pair<GlossaryTermModel, List<GlossaryTermModel>>> = emptyList())

Glossary panel UI state.

Constructors

   
UiState [jvm]
constructor(sourceFlag: String = "", targetFlag: String = "", isLoading: Boolean = false, isBaseLanguage: Boolean = false, terms: List<Pair<GlossaryTermModel, List<GlossaryTermModel>>> = emptyList())
Create UiState

Properties

Name Summary
isBaseLanguage [jvm]
val isBaseLanguage: Boolean = false
indicating whether this is the base (deprecated) glossary panel, now it is displayed only for target languages
isLoading [jvm]
val isLoading: Boolean = false
indicating whether there is a background operation in progress
sourceFlag [jvm]
val sourceFlag: String
flag of the source language
targetFlag [jvm]
val targetFlag: String
flag of the target language
terms [jvm]
val terms: List<Pair<GlossaryTermModel, List<GlossaryTermModel>>>
terms to show (1 source term for n target terms)