demo · v138
Translator
Type or paste text on the left. Pick source and target languages. Hit "Translate" — the built-in on-device translator runs entirely client-side.
Enable
chrome://flags/#translation-api and let the relevant language pack download (one-time per pair). If the API isn't available the demo opens a fallback that links out to MyMemory's free API so you can still see the request/response shape.
checking support…
Ready.
the code
// 138+: built-in on-device translator.
const t = await Translator.create({
sourceLanguage: "en",
targetLanguage: "fr",
});
const out = await t.translate("The quick brown fox.");
// "Le renard brun rapide."
see also
- Translator API — feature index
- ChromeStatus entry
- Chrome Translator docs