I've documented the Translator and Language Detector APIs on MDN, which detect a text string's language and translate it to another language using a browser's internal AI model: https://developer.mozilla.org/en-US/docs/Web/API/Translator_and_Language_Detector_APIs

Translator and Language Detector APIs - Web APIs | MDN
The Translator and Language Detector APIs provide functionality to detect the language that text is written in, and to translate text into different languages, via a browser's own internal AI model (which may differ between browsers).
