JavaScript

Intl.Locale.prototype.numberingSystems プロパティ


編集:2023.01.10 by T.A.

[Edge]。→

Intl.Locale の数字の表示方法を表す文字列を配列で返します。

構文
Intl.Locale.numberingSystems
Intl.Locale Intl.Locale

文字列の配列。→Intl.DateTimeFormat():numberingSystem

DA=new Intl.Locale('ja-JP');  //日本語の日本国。
D=DA.numberingSystems;  //=[object]:latn
	//0=[string]:latn
DA=new Intl.Locale('ja-JP-u-nu-fullwide');  //日本語の日本国で全角数字。
D=DA.numberingSystems;  //=[object]:fullwide
	//0=[string]:fullwide
DA=new Intl.Locale('ja-JP-u-nu-fullwide', {numberingSystem:'latn'});  //日本語の日本国で全角数字、ラテン数字。
D=DA.numberingSystems;  //=[object]:latn
	//0=[string]:latn
DA=new Intl.Locale('ar');  //アラビア語。
D=DA.numberingSystems;  //=[object]:latn
	//0=[string]:latn
DA=new Intl.Locale('zh');  //中国語。
D=DA.numberingSystems;  //=[object]:latn
	//0=[string]:latn

Intl.Locale()言語タグ


テスト