← Chrome 148 reference

v148 · web api · covered on mdn

Language Detector API

A built-in on-device API for detecting the language of a text string. Uses Gemini Nano (or a similar on-device model) without requiring network access. Available via self.ai.languageDetector.

this feature is documented on MDN

MDN: Translator and Language Detector APIs

MDN covers the full LanguageDetector interface including availability(), create(), detect(), browser compatibility, and usage examples. gendn doesn't duplicate that here.

quick reference

Entry pointself.ai.languageDetector
Availability checkawait self.ai.languageDetector.availability()"available", "downloadable", or "unavailable"
Create detectorconst detector = await self.ai.languageDetector.create()
Detect languageconst results = await detector.detect(text) — returns array of { detectedLanguage, confidence }
On-deviceYes — uses on-device model; no network requests for inference
Shipped inChrome 148 (desktop + Android)
ChromeStatus6494349985841152 — Language Detector API
SpecWICG Language Detection API
Source: MDN, chromestatus, May 2026.