MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.panel.machinetranslation.presentation/MachineTranslationComponent/UiState

UiState

[jvm]
data class UiState(val isLoading: Boolean = false, val translation: String = "", val updateTextSwitch: Boolean = false)

Machine translation panel UI state.

Constructors

   
UiState [jvm]
constructor(isLoading: Boolean = false, translation: String = "", updateTextSwitch: Boolean = false)
Create UiState

Properties

Name Summary
isLoading [jvm]
val isLoading: Boolean = false
indication whether there is a background operation in progress
translation [jvm]
val translation: String
suggestion from MT
updateTextSwitch [jvm]
val updateTextSwitch: Boolean = false
flag to trigger suggestion updates programmatically