MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.presentation/TranslateComponent/UiState

UiState

[jvm]
data class UiState(val project: ProjectModel? = null, val unitCount: Int = 0, val needsSaving: Boolean = false, val isEditing: Boolean = false, val currentLanguage: LanguageModel? = null)

UI state for the translation editor.

Constructors

   
UiState [jvm]
constructor(project: ProjectModel? = null, unitCount: Int = 0, needsSaving: Boolean = false, isEditing: Boolean = false, currentLanguage: LanguageModel? = null)
Create UiState

Properties

Name Summary
currentLanguage [jvm]
val currentLanguage: LanguageModel? = null
language selected in the translation toolbar
isEditing [jvm]
val isEditing: Boolean = false
a flag indicating whether any message is opened for editing
needsSaving [jvm]
val needsSaving: Boolean = false
whether the project needs saving
project [jvm]
val project: ProjectModel? = null
current project
unitCount [jvm]
val unitCount: Int = 0
number of translation units