With ML Kit's on-device translation API, you can dynamically translate text between 59 languages.
|Broad language support
|Translate between 59 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, and the quality of translations depends on the specific languages being translated from and to. As such, you should 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 Usage Guidelines for ML Kit On-device Translation for important guidelines and restrictions on usage of this API. This document covers requirements around doing 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 Firebase support. Your feedback helps to continue to improve the models, and also allows us to disable inappropriate translations.