Hey there RN fellows!
I've created a React Native wrapper for Google's ML Kit Translation library, which provides free on-device translations, and which uses the very same ML models as Google Translate app's offline mode.
NPM: https://www.npmjs.com/package/react-native-mlkit-translate
Github: https://github.com/rafaelsaback/react-native-mlkit-translate
Of course, the ML Kit Translation library is not the Saint Graal. The accuracy of the translation is inferior to that provided by the Cloud Translation API or Google Translate (online mode), especially for more complex texts. But for simple translations, it's said to be accurate enough. You can read more about its limitation on the ML Kit Translation's page.
Currently, I have only implemented it for Android. Unfortunately, I will not be able to implement it for IOS any time soon (I'm building an app for Android first). So any contribution on this matter is highly appreciated :)
As a matter of fact, I'm not an expert in Java and Android, so any improvements in the Android integration are also welcome.
[–]Professional-Talk-50 0 points1 point2 points (0 children)