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/Intent

Intent

interface Intent

View intents.

Inheritors

 
Clear
Load
Retrieve
InsertTranslation
CopyTarget
SetTranslation
CopyTranslation
Share

Types

Name Summary
Clear [jvm]
object Clear : MachineTranslationComponent.Intent
Clear the content of the panel.
CopyTarget [jvm]
object CopyTarget : MachineTranslationComponent.Intent
Signal the user intention to copy the content of the target field in the translation editor into the suggestion field, triggering a Effect.CopyTarget event.
CopyTranslation [jvm]
data class CopyTranslation(val value: String) : MachineTranslationComponent.Intent
Programmatically update the value of the suggestion.
InsertTranslation [jvm]
object InsertTranslation : MachineTranslationComponent.Intent
Signal the user intention to copy the suggestion into the editor, triggering a Effect.CopySource event.
Load [jvm]
data class Load(val key: String, val projectId: Int, val languageId: Int) : MachineTranslationComponent.Intent
Load the data for the message with a given key. No suggestion is retrieved until the retrieve method is called. This is intended to reduce the request number and not exceed the service quota.
Retrieve [jvm]
object Retrieve : MachineTranslationComponent.Intent
Retrieve a suggestion from the MT provider. The load method should be called to set the language and the source message that will be translated.
SetTranslation [jvm]
data class SetTranslation(val value: String) : MachineTranslationComponent.Intent
Set a value for the suggestion, when the event is initiated by the user.
Share [jvm]
object Share : MachineTranslationComponent.Intent
Share the suggestion field content with the remote MT provider.