Web features explorer

Language

Widely available
Tags: api

The navigator.language read-only property returns a string representing the preferred language of the user, usually the language of the browser UI. The navigator.languages read-only property returns an array of strings representing the user's preferred languages. To learn more, see Navigator: language property, Navigator: languages property at MDN.

Compatibility