← Back to release summary

Translator API on Android

Category
Miscellaneous
Type
Chromium catches up
Status
Proposed (Chrome Proposed)
Intent stage
None

WPT details: Covered by external/wpt/ai/translator/ alongside Android unit tests and mock-engine browser tests. Known translator WPT flakiness bugs: crbug.com/479913865, crbug.com/510552929, crbug.com/525227294.

Summary

Exposes the Translator JavaScript Web API on Chrome for Android (including Chrome Custom Tabs). Web applications can translate text locally using on-device models without sending page text to cloud endpoints. The TranslatorAPIAllowed enterprise policy (https://chromeenterprise.google/policies/translator-api-allowed/) is supported on Android to disable the API and prevent model downloads.

Motivation

Lets mobile web apps translate text locally with low latency and offline support, pairing with the Language Detector API shipped on Chrome for Android in M157.

Standards & signals

Ecosystem

Docs: https://developer.chrome.com/docs/ai/translator-api https://developer.mozilla.org/en-US/docs/Web/API/Translator_and_Language_Detector_APIs https://developer.chrome.com/blog/pb-jiohotstar-translation-ai

Samples: https://chrome.dev/web-ai-demos/translation-language-detection-api-playground

Explainers: https://github.com/webmachinelearning/translation-api

View on chromestatus.com