JavaScript

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


編集:2023.01.10 by T.A.

[Edge]。→

Intl.Locale での書字方向を表す文字列をオブジェクトで返します。

構文
Intl.Locale.textInfo
Intl.Locale Intl.Locale

以下のプロパティを持つオブジェクト。

direction
書字方向を表す文字列。値: ltr、rtl。
解説

DA=new Intl.Locale('ja-JP');  //日本語の日本国。
D=DA.textInfo;  //=[object]:[object Object]
	//direction=[string]:ltr
DA=new Intl.Locale('ar');  //アラビア語。
D=DA.textInfo;  //=[object]:[object Object]
	//direction=[string]:rtl

Intl.Locale()言語タグ


テスト