MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.domain.mt.repository.datasource/MachineTranslationDataSource/getTranslation

getTranslation

[jvm]
abstract suspend fun getTranslation(sourceMessage: String, sourceLang: String, targetLang: String, key: String? = null): String

Get a suggestion (translation) from the remote provider.

Return

a translation for the message

Parameters

jvm

   
sourceMessage Source message
sourceLang Source language code
targetLang Target language code
key API key (optional)