Web platform features explorer

Language

Widely available since 2018-01-29
Tags: api

The navigator.language property is a string representing the preferred language of the user, usually the language of the browser UI. The navigator.languages property is an array of strings representing the user's preferred languages.

Learning resources on MDN

Browser support

Specifications