Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2021年4月.
Intl.DisplayNames オブジェクトは、言語、地域、文字体系の表示名の一貫した翻訳を可能にします。
Intl.DisplayNames オブジェクトを作成します。
提供されたロケールのうち、ランタイムの既定のロケールに代替されることなく対応しているロケールを含む配列を返します。
このメソッドは code を受け取り、Intl.DisplayNames をインスタンス化したときに指定したロケールとオプションに基づく文字列を返します。
Intl.DisplayNames.prototype.resolvedOptions()オブジェクトの初期化時に計算されたロケールや書式設定のオプションを反映したプロパティを持つ新しいオブジェクトを返します。
ロケールを指定して Intl.DisplayNames を作成し、国 (地域) コードの表示名を取得する方法です。
ロケールを指定して Intl.DisplayNames を作成し、言語-文字体系-国 (地域) の一連の表示名を取得する方法です。
ロケールを指定して Intl.DisplayNames を作成し、文字体系の表示名を取得する方法です。
ロケールを指定して Intl.DisplayNames を作成し、通貨の表示名を取得する方法です。
| ECMAScript® 2027 Internationalization API Specification # intl-displaynames-objects |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年12月21日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.