NavigatorLanguage contains methods and properties related to the language of the navigator.

There is no object of type NavigatorLanguage, but other interfaces, like Navigator or WorkerNavigator (en-US), implement it.


The NavigatorLanguage interface doesn't inherit any property.

NavigatorLanguage.language Read only
Returns a DOMString representing the preferred language of the user, usually the language of the browser UI. The null value is returned when this is unknown.
NavigatorLanguage.languages (en-US) Read only
Returns an array of DOMString representing the languages known to the user, by order of preference.


The NavigatorLanguage interface neither implements, nor inherit any method.


Specification Status Comment
HTML Living Standard
The definition of 'NavigatorLanguage' in that specification.
Living Standard Since the HTML5 snapshot, the languages property has been added.
The definition of 'NavigatorLanguage' in that specification.
Recommendation Initial specification; snapshot of  an early versionHTML Living Standard.

Browser compatibility

BCD tables only load in the browser

See also

  • The Navigator interface that implements it.