diff options
author | MDN <actions@users.noreply.github.com> | 2021-07-09 00:38:08 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2021-07-09 00:38:08 +0000 |
commit | 235c34993c7b14f783fc8259cc237ac09f0d3e57 (patch) | |
tree | 7bee1bfcdc5216423bb76a12842eb60c169b0b04 /files/ko/orphaned/web/api/navigatorlanguage/language/index.html | |
parent | 635bcdc09c53e3c497a3ff8eb958ca8eb541c7fd (diff) | |
download | translated-content-235c34993c7b14f783fc8259cc237ac09f0d3e57.tar.gz translated-content-235c34993c7b14f783fc8259cc237ac09f0d3e57.tar.bz2 translated-content-235c34993c7b14f783fc8259cc237ac09f0d3e57.zip |
[CRON] sync translated content
Diffstat (limited to 'files/ko/orphaned/web/api/navigatorlanguage/language/index.html')
-rw-r--r-- | files/ko/orphaned/web/api/navigatorlanguage/language/index.html | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/files/ko/orphaned/web/api/navigatorlanguage/language/index.html b/files/ko/orphaned/web/api/navigatorlanguage/language/index.html new file mode 100644 index 0000000000..8b8f1b48bc --- /dev/null +++ b/files/ko/orphaned/web/api/navigatorlanguage/language/index.html @@ -0,0 +1,57 @@ +--- +title: NavigatorLanguage.language +slug: orphaned/Web/API/NavigatorLanguage/language +translation_of: Web/API/NavigatorLanguage/language +original_slug: Web/API/NavigatorLanguage/language +--- +<div>{{APIRef("HTML DOM")}}</div> + +<p> </p> + +<p>NavigatorLanguage.language 읽기 전용 속성은 사용자의 기본 언어 (일반적으로 브라우저 UI의 언어)를 나타내는 문자열을 반환합니다.</p> + +<h2 id="Syntax">Syntax</h2> + +<pre class="syntaxbox">var <em>lang</em> = navigator.language +</pre> + +<h3 id="Value">Value</h3> + +<p>A {{domxref("DOMString")}}. <em><code>lang</code></em> stores a string representing the language version as defined in <a class="external" href="http://www.ietf.org/rfc/bcp/bcp47.txt">BCP 47</a>. Examples of valid language codes include "en", "en-US", "fr", "fr-FR", "es-ES", etc.</p> + +<p>Note that in Safari on macOS and iOS prior to 10.2, the country code returned is lowercase: "en-us", "fr-fr" etc.</p> + +<h2 id="Example">Example</h2> + +<pre class="brush: js">if (window.navigator.language != 'en') { + doLangSelect(window.navigator.language); +} +</pre> + +<h2 id="Specifications">Specifications</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{ SpecName('HTML5.1', '#dom-navigator-language', 'NavigatorLanguage.language') }}</td> + <td>{{ Spec2('HTML5.1') }}</td> + <td>Initial definition</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + +<p>{{Compat("api.NavigatorLanguage.language")}}</p> + +<h2 id="See_also">See also</h2> + +<ul> + <li>{{domxref("NavigatorLanguage.languages", "navigator.languages")}}</li> + <li>{{domxref("navigator")}}</li> +</ul> |