v161 · concept 1 · basic

Availability states on this device

Translator.availability() is the one call a mobile page can always make cheaply. It never downloads anything and needs no gesture. It's how a page decides whether to show a translate button, offer a download, or hide the feature. Pick a pair and read the raw value your browser returns.

probe one pair

No check run yet.

probe what this phone's user reads

A mobile page usually wants to translate its own content (say, English) into the languages in navigator.languages. This table makes one availability() call per language and nothing else.

PairRaw valueWhat the page should do
Not checked yet.

LanguageDetector companion: not checked.

reading the four values on a phone

the code

if (!("Translator" in self)) { /* API not exposed: flag, old Android build, other browser */ }
const state = await Translator.availability({ sourceLanguage: "en", targetLanguage: "hi" });
// Branch on the CURRENT vocabulary. Older pages that test for "readily" or
// "after-download" are reading the 2024 explainer tokens and never match.

see also