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

MachineTranslationComponent

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

Machine translation component contract.

Types

Name Summary
Effect [jvm]
interface Effect
Effects.
Intent [jvm]
interface Intent
View intents.
UiState [jvm]
data class UiState(val isLoading: Boolean = false, val translation: String = "", val updateTextSwitch: Boolean = false)
Machine translation panel UI state.

Properties

Name Summary
effects [jvm]
abstract val effects: SharedFlow<MachineTranslationComponent.Effect>
uiState [jvm]
abstract val uiState: StateFlow<MachineTranslationComponent.UiState>

Functions

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