MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.panel.memory.presentation/BrowseMemoryComponent/UiState

UiState

[jvm]
data class UiState(val sourceLanguage: LanguageModel? = null, val availableSourceLanguages: List<LanguageModel> = emptyList(), val targetLanguage: LanguageModel? = null, val availableTargetLanguages: List<LanguageModel> = emptyList(), val currentSearch: String = "", val entries: List<TranslationMemoryEntryModel> = emptyList())

UI state from the TM content panel.

Constructors

   
UiState [jvm]
constructor(sourceLanguage: LanguageModel? = null, availableSourceLanguages: List<LanguageModel> = emptyList(), targetLanguage: LanguageModel? = null, availableTargetLanguages: List<LanguageModel> = emptyList(), currentSearch: String = "", entries: List<TranslationMemoryEntryModel> = emptyList())
Create UiState

Properties

Name Summary
availableSourceLanguages [jvm]
val availableSourceLanguages: List<LanguageModel>
available source languages
availableTargetLanguages [jvm]
val availableTargetLanguages: List<LanguageModel>
available target languages
currentSearch [jvm]
val currentSearch: String
search string
entries [jvm]
val entries: List<TranslationMemoryEntryModel>
memory entries to display
sourceLanguage [jvm]
val sourceLanguage: LanguageModel? = null
source language
targetLanguage [jvm]
val targetLanguage: LanguageModel? = null
target language