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
La definici贸n de 'NavigatorLanguage' en esta especificaci贸n.
Living Standard Since the HTML5 snapshot, the languages property has been added.
La definici贸n de 'NavigatorLanguage' en esta especificaci贸n.
Recommendation Initial specification; snapshot of  an early versionHTML Living Standard.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help! (en-US)

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) (Yes) (Yes) (Yes)
languages 37 32 (32) Sin soporte 24 Sin soporte
on WorkerNavigator (en-US) ? 35 (35) Sin soporte ? Sin soporte
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)
languages ? ?  32.0 (32) Sin soporte ? Sin soporte
on WorkerNavigator (en-US) ? ? 35.0 (35) Sin soporte ? Sin soporte

See also

  • The Navigator interface that implements it.