v148 · AI · demo
Live Translator
Type in the source panel. The on-device Translator translates to your chosen target language automatically. No key, no server.
Source text
Translation
Translation will appear here.
// Check if this language pair is available
const available = await Translator.availability({
sourceLanguage: 'en',
targetLanguage: 'fr',
});
// → 'readily' | 'after-download' | 'no'
// Create a translator
const translator = await Translator.create({
sourceLanguage: 'en',
targetLanguage: 'fr',
});
// Translate text
const result = await translator.translate(
'The quick brown fox jumps over the lazy dog.'
);
console.log(result); // 'Le rapide renard brun saute par-dessus le chien paresseux.'
see also
- Translate Chain — chain multiple language hops
- Back to feature index
- ChromeStatus entry
implementation reference
Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗