Intl.Locale.prototype.textInfo
La propriété Intl.Locale.prototype.textInfo
est un accesseur qui renvoie le sens d'écriture horizontal : ltr
(pour gauche à droite) ou rtl
(pour droite à gauche) pour la locale portée par l'instance de Locale
.
Description
Renvoie les informations de texte associées à la locale courante selon les éléments de disposition UTS 35.
Exemples
Obtenir les informations textuelles d'une locale
let ar = new Intl.Locale("ar");
console.log(ar.textInfo); // affiche { direction: "rtl" }
console.log(ar.textInfo.direction); // affiche "rtl"
let es = new Intl.Locale("es");
console.log(es.textInfo); // affiche { direction: "ltr" }
console.log(es.textInfo.direction); // affiche "ltr"
Spécifications
No specification found
No specification data found for javascript.builtins.Intl.Locale.textInfo
.
Check for problems with this page or contribute a missing spec_url
to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.
Compatibilité des navigateurs
BCD tables only load in the browser