Language detector
Limited availability
The LanguageDetector API identifies the likely natural language that some text is written in. You can use this API to supplement machine translation when the source source language is not known.
Browser support
- Chrome 138 Released on 2025-06-24
- Chrome Android Not supported
- Edge 148 Released on 2026-05-07
- Firefox Not supported
- Firefox for Android Not supported
- Safari Not supported
- Safari on iOS Not supported
Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.
MDN documentation
No MDN documentation found. You can search for the feature on MDN. If you believe that MDN has no documentation about this feature, you can open an issue on MDN's GitHub repository.Specifications
Usage (according to Chrome Platform Status)
~0.234% of page loads. More data at chromestatus.com.Web Platform Tests (WPT)
View the latest WPT test results for this featureDeveloper use cases
-
- Live chat translation If a chatting platform has messages in another language, the language could be detected and translated back into the language that the user has defined as their primary language.
- Live chat translation If a chatting platform has messages in another language, the language could be detected and translated back into the language that the user has defined as their primary language. [see original comment]
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist