With ML Kit's on-device Translation API, you can dynamically translate text between more than 50 languages.
- Broad language support Translate between more than 50 different languages. See the complete list.
- Proven translation models Powered by the same models used by the Google Translate app's offline mode.
- Dynamic model management Keep on-device storage requirements low by dynamically downloading and managing language packs.
- Runs on the device Translations are performed quickly, and don't require you to send users' text to a remote server.
On-device translation is intended for casual and simple translations. The translation quality depends on the source and target languages. We recommend that you evaluate the quality of the translations for your specific use case. If you require higher fidelity, try the Cloud Translation API.
Also, ML Kit's translation models are trained to translate to and from English. When you translate between non-English languages, English is used as an intermediate translation, which can affect quality.
Refer to the Guidelines page for important guidelines and restrictions on usage of this API. This document includes requirements for including attribution in your app when translating text.
Due to the complexity of natural language processing, the translations provided might not be appropriate for all contexts or audiences. If you encounter inappropriate translations, reach out to ML Kit support. Your feedback helps to continue to improve the models, and also allows us to disable inappropriate translations.