MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.feature.translate.toolbar.presentation/TranslateToolbarComponent

TranslateToolbarComponent

[jvm]
interface TranslateToolbarComponent : MviModel<TranslateToolbarComponent.Intent, TranslateToolbarComponent.UiState, TranslateToolbarComponent.Effect>

Translation toolbar component.

Types

Name Summary
Effect [jvm]
interface Effect
Events that can be emitted by the component.
Intent [jvm]
interface Intent
UiState [jvm]
data class UiState(val currentLanguage: LanguageModel? = null, val currentTypeFilter: TranslationUnitTypeFilter = TranslationUnitTypeFilter.ALL, val availableFilters: List<TranslationUnitTypeFilter> = emptyList(), val availableLanguages: List<LanguageModel> = emptyList(), val currentSearch: String = "", val isEditing: Boolean = false)
UI state for the translation toolbar

Properties

Name Summary
effects [jvm]
abstract val effects: SharedFlow<TranslateToolbarComponent.Effect>
projectId [jvm]
abstract var projectId: Int
Current project ID
uiState [jvm]
abstract val uiState: StateFlow<TranslateToolbarComponent.UiState>

Functions

Name Summary
reduce [jvm]
abstract fun reduce(intent: TranslateToolbarComponent.Intent)