Cette traduction est incomplète. Aidez à traduire cet article depuis l'anglais.
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.languageLecture seule- Returns a
DOMStringrepresenting the preferred language of the user, usually the language of the browser UI. Thenullvalue is returned when this is unknown. NavigatorLanguage.languagesLecture seule- Returns an array of
DOMStringrepresenting 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 La définition de 'NavigatorLanguage' dans cette spécification. |
Standard évolutif | Since the HTML5 snapshot, the languages property has been added. |
| HTML5 La définition de 'NavigatorLanguage' dans cette spécification. |
Recommendation | Initial specification; snapshot of an early versionHTML Living Standard. |
Browser compatibility
Nous convertissons les données de compatibilité dans un format JSON.
Ce tableau de compatibilité utilise encore l'ancien format
car nous n'avons pas encore converti les données qu'il contient.
Vous pouvez nous aider en contribuant !
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | (Oui) | (Oui) | (Oui) | (Oui) | (Oui) |
languages |
37 | 32 (32) | Pas de support | 24 | Pas de support |
on WorkerNavigator |
? | 35 (35) | Pas de support | ? | Pas de support |
| Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support | (Oui) | (Oui) | (Oui) | (Oui) | (Oui) | (Oui) |
languages |
? | ? | 32.0 (32) | Pas de support | ? | Pas de support |
on WorkerNavigator |
? | ? | 35.0 (35) | Pas de support | ? | Pas de support |
See also
- The
Navigatorinterface that implements it.
Étiquettes et contributeurs liés au document
Étiquettes :
Contributeurs à cette page :
mdnwebdocs-bot,
teoli
Dernière mise à jour par :
mdnwebdocs-bot,