MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.mt.repository/MachineTranslationRepository/shareTranslation

shareTranslation

[jvm]
abstract suspend fun shareTranslation(provider: MachineTranslationProvider = MachineTranslationProvider.MY_MEMORY, key: String? = null, sourceMessage: String, sourceLang: String, targetMessage: String, targetLang: String)

Share a translation with the machine translation provider i.e. contribute a segment to the remote TM. This implies transferring data to a third party engine, so handle with care.

Parameters

jvm

   
provider Machine translation provider
key API key (optional)
sourceMessage Source message
sourceLang Source language code
targetMessage Target message
targetLang Target language code