We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

この翻訳は不完全です。英語から この記事を翻訳 してください。

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 読取専用
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 読取専用
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
NavigatorLanguage の定義
現行の標準 Since the HTML5 snapshot, the languages property has been added.
HTML5
NavigatorLanguage の定義
勧告 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!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (有) (有) (有) (有) (有)
languages 37 32 (32) 未サポート 24 未サポート
on WorkerNavigator ? 35 (35) 未サポート ? 未サポート
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (有) (有) (有) (有) (有) (有)
languages ? ?  32.0 (32) 未サポート ? 未サポート
on WorkerNavigator ? ? 35.0 (35) 未サポート ? 未サポート

See also

  • The Navigator interface that implements it.

ドキュメントのタグと貢献者

タグ: 
このページの貢献者: fscholz
最終更新者: fscholz,