Esta tradução está incompleta. Por favor, ajude a traduzir este artigo.

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, implement it.

Properties

The NavigatorLanguage interface doesn't inherit any property.

NavigatorLanguage.language Somente leitura
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 Somente leitura
Returns an array of DOMString representing the languages known to the user, by order of preference.

Methods

The NavigatorLanguage interface neither implements, nor inherit any method.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'NavigatorLanguage' in that specification.
Padrão em tempo real Since the HTML5 snapshot, the languages property has been added.
HTML5
The definition of 'NavigatorLanguage' in that specification.
Recomendação Initial specification; snapshot of  an early versionHTML Living Standard.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) (Yes) (Yes) (Yes)
languages 37 32 (32) Não suportado 24 Não suportado
on WorkerNavigator ? 35 (35) Não suportado ? Não suportado
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) Não suportado ? Não suportado
on WorkerNavigator ? ? 35.0 (35) Não suportado ? Não suportado

See also

  • The Navigator interface that implements it.

Etiquetas do documento e colaboradores

 Colaboradores desta página: teoli
 Última atualização por: teoli,