Intl.Locale.prototype.numberingSystem
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since 2020ë 9ì.
Intl.Locale ì¸ì¤í´ì¤ì numberingSystem ì ê·¼ì ìì±ì ì´ ë¡ì¼ì¼ì ëí ì«ì ì²´ê³ë¥¼ ë°íí©ëë¤.
ì¤ëª
ì«ì ì²´ê³ë ì«ì를 íííë ì²´ê³ì
ëë¤. numberingSystem ìì±ì ê°ì ë¡ì¼ì¼ ìë³ìì nu í¤ ëë Intl.Locale() ìì±ìì numberingSystem ìµì
ì íµí´ êµ¬ì± ì ì¤ì ë©ëë¤. ë ë¤ ì¡´ì¬íë©´ íìê° ì°ì ê¶ì ê°ì§ë©°, ë ë¤ ì¡´ì¬íì§ ìì¼ë©´ ìì±ì ê°ì undefinedê° ë©ëë¤.
ì§ìíë ì«ì ì²´ê³ì ì í 목ë¡ì Intl.Locale.prototype.getNumberingSystems()ì ì°¸ê³ íì기 ë°ëëë¤.
ìì
ë¤ë¥¸ ë¡ì¼ì¼ íì íê·¸ì ë§ì°¬ê°ì§ë¡ ì«ì ì²´ê³ ì íì ë¡ì¼ì¼ 문ìì´ ëë ìì±ìì ëí êµ¬ì± ê°ì²´ ì¸ì를 íµí´ Intl.Locale ê°ì²´ì ì¶ê°í ì ììµëë¤.
ë¡ì¼ì¼ 문ìì´ì íµí ì«ì ì²´ê³ ì¶ê°í기
ì ëì½ë ë¡ì¼ì¼ 문ìì´ ëª
ì¸ìì ì«ì ì²´ê³ ì íì ë¡ì¼ì¼ í¤ "íì¥ íì íê·¸"ì
ëë¤. ì´ë¬í íì íê·¸ë ë¡ì¼ì¼ì ëí ì¶ê° ë°ì´í°ë¥¼ ëíë©°, -u íì¥ì를 ì¬ì©íì¬ ë¡ì¼ì¼ ìë³ìì ì¶ê°ë©ëë¤. ë°ë¼ì ì«ì ì²´ê³ ì íì Intl.Locale() ìì±ìì ì ë¬ëë ì´ê¸° ë¡ì¼ì¼ ìë³ì 문ìì´ì ì¶ê°í ì ììµëë¤. ì«ì ì²´ê³ ì íì ì¶ê°íë ¤ë©´ 먼ì 문ìì´ì -u íì¥ í¤ë¥¼ ì¶ê°í©ëë¤. ê·¸ë° ë¤ì -nu íì¥ì를 ì¶ê°íì¬ ì«ì ì²´ê³ë¥¼ ì¶ê°íê³ ììì ëíë
ëë¤. ë§ì§ë§ì¼ë¡ 문ìì´ì ì«ì ì²´ê³ ì íì ì¶ê°í©ëë¤.
const locale = new Intl.Locale("fr-Latn-FR-u-nu-mong");
console.log(locale.numberingSystem); // "mong"
ì¤ì ê°ì²´ ì¸ì를 íµí ì«ì ì²´ê³ ì¶ê°í기
Intl.Locale() ìì±ììë ì«ì ì²´ê³ ì íì ë¹ë¡¯í ì¬ë¬ íì¥ ì í ì¤ íë를 í¬í¨í ì ìë ì íì êµ¬ì± ê°ì²´ ì¸ìê° ììµëë¤. êµ¬ì± ê°ì²´ì numberingSystem ìì±ì ìíë ì«ì ì²´ê³ ì íì¼ë¡ ì¤ì í ë¤ì, ìì±ìì ì ë¬í©ëë¤.
const locale = new Intl.Locale("en-Latn-US", { numberingSystem: "latn" });
console.log(locale.numberingSystem); // "latn"
ëª ì¸ì
| Specification |
|---|
| ECMAScript® 2027 Internationalization API Specification> # sec-Intl.Locale.prototype.numberingSystem> |