@formatjs/intl-locale 3.0.10 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/calendars.generated.d.ts +43 -0
- package/calendars.generated.d.ts.map +1 -0
- package/calendars.generated.js +6 -0
- package/character-orders.generated.d.ts +576 -0
- package/character-orders.generated.d.ts.map +1 -0
- package/character-orders.generated.js +6 -0
- package/hour-cycles.generated.d.ts +259 -0
- package/hour-cycles.generated.d.ts.map +1 -0
- package/hour-cycles.generated.js +6 -0
- package/index.d.ts +30 -1
- package/index.d.ts.map +1 -1
- package/index.js +194 -0
- package/lib/calendars.generated.d.ts +43 -0
- package/lib/calendars.generated.d.ts.map +1 -0
- package/lib/calendars.generated.js +3 -0
- package/lib/character-orders.generated.d.ts +576 -0
- package/lib/character-orders.generated.d.ts.map +1 -0
- package/lib/character-orders.generated.js +3 -0
- package/lib/hour-cycles.generated.d.ts +259 -0
- package/lib/hour-cycles.generated.d.ts.map +1 -0
- package/lib/hour-cycles.generated.js +3 -0
- package/lib/index.d.ts +29 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +194 -0
- package/lib/numbering-systems.generated.d.ts +575 -0
- package/lib/numbering-systems.generated.d.ts.map +1 -0
- package/lib/numbering-systems.generated.js +3 -0
- package/lib/preference-data.d.ts +7 -0
- package/lib/preference-data.d.ts.map +1 -0
- package/lib/preference-data.js +46 -0
- package/lib/timezones.generated.d.ts +251 -0
- package/lib/timezones.generated.d.ts.map +1 -0
- package/lib/timezones.generated.js +3 -0
- package/lib/week-data.generated.d.ts +1295 -0
- package/lib/week-data.generated.d.ts.map +1 -0
- package/lib/week-data.generated.js +3 -0
- package/numbering-systems.generated.d.ts +575 -0
- package/numbering-systems.generated.d.ts.map +1 -0
- package/numbering-systems.generated.js +6 -0
- package/package.json +5 -4
- package/polyfill.iife.js +674 -113
- package/preference-data.d.ts +7 -0
- package/preference-data.d.ts.map +1 -0
- package/preference-data.js +53 -0
- package/timezones.generated.d.ts +251 -0
- package/timezones.generated.d.ts.map +1 -0
- package/timezones.generated.js +6 -0
- package/week-data.generated.d.ts +1295 -0
- package/week-data.generated.d.ts.map +1 -0
- package/week-data.generated.js +6 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
export var characterOrders = { "af": "left-to-right", "ak": "left-to-right", "agq": "left-to-right", "am": "left-to-right", "ar-DZ": "right-to-left", "ar-JO": "right-to-left", "ar-AE": "right-to-left", "ar": "right-to-left", "ar-ER": "right-to-left", "ar-DJ": "right-to-left", "af-NA": "left-to-right", "ar-BH": "right-to-left", "ar-IQ": "right-to-left", "ar-EG": "right-to-left", "ar-EH": "right-to-left", "ar-IL": "right-to-left", "ar-LY": "right-to-left", "ar-KW": "right-to-left", "ar-LB": "right-to-left", "ar-MR": "right-to-left", "ar-MA": "right-to-left", "ar-OM": "right-to-left", "ar-KM": "right-to-left", "ar-PS": "right-to-left", "ar-QA": "right-to-left", "ar-SD": "right-to-left", "ar-SA": "right-to-left", "ar-SS": "right-to-left", "ar-SO": "right-to-left", "ar-SY": "right-to-left", "ar-TD": "right-to-left", "ar-TN": "right-to-left", "ar-YE": "right-to-left", "asa": "left-to-right", "as": "left-to-right", "ast": "left-to-right", "az-Cyrl": "left-to-right", "az-Latn": "left-to-right", "bas": "left-to-right", "az": "left-to-right", "be-tarask": "left-to-right", "be": "left-to-right", "bez": "left-to-right", "bem": "left-to-right", "bm": "left-to-right", "bg": "left-to-right", "bn": "left-to-right", "bn-IN": "left-to-right", "bo": "left-to-right", "bo-IN": "left-to-right", "br": "left-to-right", "bs": "left-to-right", "bs-Latn": "left-to-right", "bs-Cyrl": "left-to-right", "brx": "left-to-right", "ca-AD": "left-to-right", "ca": "left-to-right", "ca-ES-valencia": "left-to-right", "ca-FR": "left-to-right", "ca-IT": "left-to-right", "ccp": "left-to-right", "ccp-IN": "left-to-right", "ce": "left-to-right", "ceb": "left-to-right", "cgg": "left-to-right", "chr": "left-to-right", "ckb-IR": "right-to-left", "ckb": "right-to-left", "cs": "left-to-right", "cy": "left-to-right", "da-GL": "left-to-right", "de": "left-to-right", "dav": "left-to-right", "da": "left-to-right", "de-AT": "left-to-right", "de-BE": "left-to-right", "de-CH": "left-to-right", "de-LI": "left-to-right", "de-IT": "left-to-right", "de-LU": "left-to-right", "dje": "left-to-right", "doi": "left-to-right", "dsb": "left-to-right", "dyo": "left-to-right", "dz": "left-to-right", "dua": "left-to-right", "ee-TG": "left-to-right", "el": "left-to-right", "el-CY": "left-to-right", "ebu": "left-to-right", "en": "left-to-right", "en-001": "left-to-right", "en-150": "left-to-right", "en-AE": "left-to-right", "ee": "left-to-right", "en-AG": "left-to-right", "en-AI": "left-to-right", "en-AT": "left-to-right", "en-AS": "left-to-right", "en-AU": "left-to-right", "en-BB": "left-to-right", "en-BM": "left-to-right", "en-BE": "left-to-right", "en-BS": "left-to-right", "en-BI": "left-to-right", "en-BW": "left-to-right", "en-BZ": "left-to-right", "en-CA": "left-to-right", "en-CC": "left-to-right", "en-CH": "left-to-right", "en-CK": "left-to-right", "en-CM": "left-to-right", "en-CY": "left-to-right", "en-DG": "left-to-right", "en-DE": "left-to-right", "en-CX": "left-to-right", "en-ER": "left-to-right", "en-DM": "left-to-right", "en-FI": "left-to-right", "en-GB": "left-to-right", "en-DK": "left-to-right", "en-FM": "left-to-right", "en-FK": "left-to-right", "en-FJ": "left-to-right", "en-GD": "left-to-right", "en-GG": "left-to-right", "en-GH": "left-to-right", "en-GI": "left-to-right", "en-HK": "left-to-right", "en-GY": "left-to-right", "en-GM": "left-to-right", "en-GU": "left-to-right", "en-IE": "left-to-right", "en-IM": "left-to-right", "en-IL": "left-to-right", "en-JE": "left-to-right", "en-IN": "left-to-right", "en-JM": "left-to-right", "en-IO": "left-to-right", "en-KI": "left-to-right", "en-KY": "left-to-right", "en-KN": "left-to-right", "en-KE": "left-to-right", "en-LC": "left-to-right", "en-LS": "left-to-right", "en-LR": "left-to-right", "en-MH": "left-to-right", "en-MO": "left-to-right", "en-MP": "left-to-right", "en-MT": "left-to-right", "en-MU": "left-to-right", "en-MY": "left-to-right", "en-MS": "left-to-right", "en-MW": "left-to-right", "en-MG": "left-to-right", "en-NA": "left-to-right", "en-NG": "left-to-right", "en-NL": "left-to-right", "en-NR": "left-to-right", "en-NF": "left-to-right", "en-PG": "left-to-right", "en-PH": "left-to-right", "en-NZ": "left-to-right", "en-NU": "left-to-right", "en-PK": "left-to-right", "en-PN": "left-to-right", "en-PR": "left-to-right", "en-PW": "left-to-right", "en-RW": "left-to-right", "en-SC": "left-to-right", "en-SE": "left-to-right", "en-SB": "left-to-right", "en-SH": "left-to-right", "en-SD": "left-to-right", "en-SI": "left-to-right", "en-SG": "left-to-right", "en-SL": "left-to-right", "en-SZ": "left-to-right", "en-TK": "left-to-right", "en-SS": "left-to-right", "en-TC": "left-to-right", "en-UM": "left-to-right", "en-TO": "left-to-right", "en-SX": "left-to-right", "en-TT": "left-to-right", "en-TV": "left-to-right", "en-TZ": "left-to-right", "en-UG": "left-to-right", "en-VU": "left-to-right", "en-VI": "left-to-right", "en-VC": "left-to-right", "en-VG": "left-to-right", "en-WS": "left-to-right", "en-ZA": "left-to-right", "es": "left-to-right", "eo": "left-to-right", "en-ZM": "left-to-right", "en-ZW": "left-to-right", "es-AR": "left-to-right", "es-419": "left-to-right", "es-BR": "left-to-right", "es-BZ": "left-to-right", "es-BO": "left-to-right", "es-CR": "left-to-right", "es-CL": "left-to-right", "es-CO": "left-to-right", "es-CU": "left-to-right", "es-DO": "left-to-right", "es-EA": "left-to-right", "es-EC": "left-to-right", "es-GQ": "left-to-right", "es-GT": "left-to-right", "es-HN": "left-to-right", "es-NI": "left-to-right", "es-IC": "left-to-right", "es-MX": "left-to-right", "es-PE": "left-to-right", "es-PH": "left-to-right", "es-PA": "left-to-right", "es-PR": "left-to-right", "es-PY": "left-to-right", "es-SV": "left-to-right", "es-US": "left-to-right", "es-UY": "left-to-right", "es-VE": "left-to-right", "et": "left-to-right", "eu": "left-to-right", "fa": "right-to-left", "ff-Adlm": "right-to-left", "ff": "left-to-right", "ewo": "left-to-right", "ff-Adlm-BF": "right-to-left", "ff-Adlm-CM": "right-to-left", "fa-AF": "right-to-left", "ff-Adlm-GH": "right-to-left", "ff-Adlm-GM": "right-to-left", "ff-Adlm-GW": "right-to-left", "ff-Adlm-LR": "right-to-left", "ff-Adlm-MR": "right-to-left", "ff-Adlm-NE": "right-to-left", "ff-Adlm-NG": "right-to-left", "ff-Adlm-SL": "right-to-left", "ff-Adlm-SN": "right-to-left", "ff-Latn-BF": "left-to-right", "ff-Latn-CM": "left-to-right", "ff-Latn-GH": "left-to-right", "ff-Latn": "left-to-right", "ff-Latn-GN": "left-to-right", "ff-Latn-GM": "left-to-right", "ff-Latn-GW": "left-to-right", "ff-Latn-MR": "left-to-right", "ff-Latn-LR": "left-to-right", "ff-Latn-NG": "left-to-right", "ff-Latn-SL": "left-to-right", "fi": "left-to-right", "ff-Latn-NE": "left-to-right", "fil": "left-to-right", "fo": "left-to-right", "fo-DK": "left-to-right", "fr": "left-to-right", "fr-BE": "left-to-right", "fr-BF": "left-to-right", "fr-BI": "left-to-right", "fr-BJ": "left-to-right", "fr-BL": "left-to-right", "fr-CA": "left-to-right", "fr-CD": "left-to-right", "fr-CF": "left-to-right", "fr-CG": "left-to-right", "fr-CH": "left-to-right", "fr-CM": "left-to-right", "fr-CI": "left-to-right", "fr-DJ": "left-to-right", "fr-DZ": "left-to-right", "fr-GA": "left-to-right", "fr-GF": "left-to-right", "fr-GN": "left-to-right", "fr-GP": "left-to-right", "fr-GQ": "left-to-right", "fr-HT": "left-to-right", "fr-KM": "left-to-right", "fr-LU": "left-to-right", "fr-MA": "left-to-right", "fr-MC": "left-to-right", "fr-MF": "left-to-right", "fr-MG": "left-to-right", "fr-ML": "left-to-right", "fr-MQ": "left-to-right", "fr-MR": "left-to-right", "fr-MU": "left-to-right", "fr-NC": "left-to-right", "fr-NE": "left-to-right", "fr-PF": "left-to-right", "fr-RE": "left-to-right", "fr-PM": "left-to-right", "fr-RW": "left-to-right", "fr-SC": "left-to-right", "fr-SN": "left-to-right", "fr-SY": "left-to-right", "fr-TD": "left-to-right", "fr-TG": "left-to-right", "fr-TN": "left-to-right", "fr-VU": "left-to-right", "fr-WF": "left-to-right", "fur": "left-to-right", "ga": "left-to-right", "ga-GB": "left-to-right", "fy": "left-to-right", "fr-YT": "left-to-right", "gsw-FR": "left-to-right", "gd": "left-to-right", "gl": "left-to-right", "gsw": "left-to-right", "gv": "left-to-right", "gsw-LI": "left-to-right", "gu": "left-to-right", "ha": "left-to-right", "ha-GH": "left-to-right", "guz": "left-to-right", "ha-NE": "left-to-right", "haw": "left-to-right", "he": "right-to-left", "hi": "left-to-right", "hr": "left-to-right", "hr-BA": "left-to-right", "hsb": "left-to-right", "hu": "left-to-right", "hy": "left-to-right", "id": "left-to-right", "ig": "left-to-right", "ia": "left-to-right", "ii": "left-to-right", "is": "left-to-right", "it": "left-to-right", "it-CH": "left-to-right", "it-SM": "left-to-right", "jmc": "left-to-right", "it-VA": "left-to-right", "ja": "left-to-right", "jgo": "left-to-right", "kam": "left-to-right", "kab": "left-to-right", "kgp": "left-to-right", "ka": "left-to-right", "kea": "left-to-right", "ki": "left-to-right", "jv": "left-to-right", "khq": "left-to-right", "kde": "left-to-right", "kk": "left-to-right", "kkj": "left-to-right", "kl": "left-to-right", "kln": "left-to-right", "km": "left-to-right", "ko": "left-to-right", "kn": "left-to-right", "ksb": "left-to-right", "ks": "right-to-left", "ks-Arab": "right-to-left", "ku": "left-to-right", "kw": "left-to-right", "ko-KP": "left-to-right", "ksh": "left-to-right", "ky": "left-to-right", "kok": "left-to-right", "lag": "left-to-right", "ksf": "left-to-right", "lb": "left-to-right", "lg": "left-to-right", "lkt": "left-to-right", "ln-AO": "left-to-right", "ln": "left-to-right", "ln-CF": "left-to-right", "lo": "left-to-right", "lu": "left-to-right", "lrc": "right-to-left", "lt": "left-to-right", "lrc-IQ": "right-to-left", "ln-CG": "left-to-right", "luo": "left-to-right", "luy": "left-to-right", "mai": "left-to-right", "lv": "left-to-right", "mas": "left-to-right", "mas-TZ": "left-to-right", "mer": "left-to-right", "mfe": "left-to-right", "mg": "left-to-right", "mgh": "left-to-right", "mgo": "left-to-right", "mi": "left-to-right", "ml": "left-to-right", "mk": "left-to-right", "mni": "left-to-right", "mni-Beng": "left-to-right", "mn": "left-to-right", "mr": "left-to-right", "ms": "left-to-right", "ms-BN": "left-to-right", "ms-ID": "left-to-right", "ms-SG": "left-to-right", "mt": "left-to-right", "my": "left-to-right", "mua": "left-to-right", "naq": "left-to-right", "mzn": "right-to-left", "nb": "left-to-right", "nb-SJ": "left-to-right", "nds": "left-to-right", "nd": "left-to-right", "ne": "left-to-right", "nds-NL": "left-to-right", "ne-IN": "left-to-right", "nl": "left-to-right", "nl-AW": "left-to-right", "nl-BE": "left-to-right", "nl-BQ": "left-to-right", "nl-CW": "left-to-right", "nl-SR": "left-to-right", "nl-SX": "left-to-right", "nn": "left-to-right", "nmg": "left-to-right", "nnh": "left-to-right", "no": "left-to-right", "nus": "left-to-right", "nyn": "left-to-right", "om": "left-to-right", "om-KE": "left-to-right", "or": "left-to-right", "os": "left-to-right", "os-RU": "left-to-right", "pa": "left-to-right", "pa-Arab": "right-to-left", "pcm": "left-to-right", "pa-Guru": "left-to-right", "pl": "left-to-right", "ps-PK": "right-to-left", "ps": "right-to-left", "pt": "left-to-right", "pt-CH": "left-to-right", "pt-AO": "left-to-right", "pt-CV": "left-to-right", "pt-GW": "left-to-right", "pt-GQ": "left-to-right", "pt-LU": "left-to-right", "pt-MO": "left-to-right", "pt-MZ": "left-to-right", "pt-PT": "left-to-right", "pt-ST": "left-to-right", "qu-BO": "left-to-right", "qu": "left-to-right", "pt-TL": "left-to-right", "rm": "left-to-right", "qu-EC": "left-to-right", "ro-MD": "left-to-right", "rn": "left-to-right", "ro": "left-to-right", "rof": "left-to-right", "ru-BY": "left-to-right", "ru": "left-to-right", "ru-KG": "left-to-right", "ru-KZ": "left-to-right", "ru-MD": "left-to-right", "ru-UA": "left-to-right", "rw": "left-to-right", "sa": "left-to-right", "rwk": "left-to-right", "sah": "left-to-right", "sat-Olck": "left-to-right", "sat": "left-to-right", "saq": "left-to-right", "sc": "left-to-right", "sd": "right-to-left", "sd-Arab": "right-to-left", "sbp": "left-to-right", "sd-Deva": "left-to-right", "se": "left-to-right", "se-SE": "left-to-right", "se-FI": "left-to-right", "seh": "left-to-right", "shi": "left-to-right", "sg": "left-to-right", "shi-Tfng": "left-to-right", "ses": "left-to-right", "si": "left-to-right", "shi-Latn": "left-to-right", "so": "left-to-right", "smn": "left-to-right", "sn": "left-to-right", "so-ET": "left-to-right", "sl": "left-to-right", "sk": "left-to-right", "so-DJ": "left-to-right", "so-KE": "left-to-right", "sq": "left-to-right", "sq-MK": "left-to-right", "sq-XK": "left-to-right", "sr-Cyrl-ME": "left-to-right", "sr": "left-to-right", "sr-Cyrl": "left-to-right", "sr-Cyrl-BA": "left-to-right", "sr-Cyrl-XK": "left-to-right", "sr-Latn-BA": "left-to-right", "sr-Latn": "left-to-right", "sr-Latn-ME": "left-to-right", "sr-Latn-XK": "left-to-right", "su": "left-to-right", "su-Latn": "left-to-right", "sv": "left-to-right", "sv-AX": "left-to-right", "sv-FI": "left-to-right", "sw": "left-to-right", "sw-CD": "left-to-right", "sw-KE": "left-to-right", "ta": "left-to-right", "ta-LK": "left-to-right", "sw-UG": "left-to-right", "ta-MY": "left-to-right", "te": "left-to-right", "ta-SG": "left-to-right", "teo": "left-to-right", "tg": "left-to-right", "teo-KE": "left-to-right", "th": "left-to-right", "ti": "left-to-right", "ti-ER": "left-to-right", "tk": "left-to-right", "to": "left-to-right", "tr": "left-to-right", "tt": "left-to-right", "tzm": "left-to-right", "ug": "right-to-left", "uk": "left-to-right", "und": "left-to-right", "tr-CY": "left-to-right", "ur-IN": "right-to-left", "twq": "left-to-right", "uz-Arab": "right-to-left", "uz-Cyrl": "left-to-right", "uz": "left-to-right", "ur": "right-to-left", "uz-Latn": "left-to-right", "vai": "left-to-right", "vai-Latn": "left-to-right", "vai-Vaii": "left-to-right", "vi": "left-to-right", "vun": "left-to-right", "wae": "left-to-right", "wo": "left-to-right", "xh": "left-to-right", "xog": "left-to-right", "yav": "left-to-right", "yi": "right-to-left", "yo": "left-to-right", "yo-BJ": "left-to-right", "yrl": "left-to-right", "yrl-CO": "left-to-right", "yrl-VE": "left-to-right", "yue": "left-to-right", "yue-Hans": "left-to-right", "yue-Hant": "left-to-right", "zh": "left-to-right", "zgh": "left-to-right", "zh-Hans-MO": "left-to-right", "zh-Hans": "left-to-right", "zu": "left-to-right", "zh-Hans-SG": "left-to-right", "zh-Hant": "left-to-right", "zh-Hant-MO": "left-to-right", "zh-Hans-HK": "left-to-right", "zh-Hant-HK": "left-to-right" };
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
export declare const hourCycles: {
|
|
2
|
+
readonly AX: readonly ["h23"];
|
|
3
|
+
readonly BQ: readonly ["h23"];
|
|
4
|
+
readonly CP: readonly ["h23"];
|
|
5
|
+
readonly CZ: readonly ["h23"];
|
|
6
|
+
readonly DK: readonly ["h23"];
|
|
7
|
+
readonly FI: readonly ["h23"];
|
|
8
|
+
readonly ID: readonly ["h23"];
|
|
9
|
+
readonly IS: readonly ["h23"];
|
|
10
|
+
readonly ML: readonly ["h23"];
|
|
11
|
+
readonly NE: readonly ["h23"];
|
|
12
|
+
readonly RU: readonly ["h23"];
|
|
13
|
+
readonly SE: readonly ["h23"];
|
|
14
|
+
readonly SJ: readonly ["h23"];
|
|
15
|
+
readonly SK: readonly ["h23"];
|
|
16
|
+
readonly AS: readonly ["h12", "h23"];
|
|
17
|
+
readonly BT: readonly ["h12", "h23"];
|
|
18
|
+
readonly DJ: readonly ["h12", "h23"];
|
|
19
|
+
readonly ER: readonly ["h12", "h23"];
|
|
20
|
+
readonly GH: readonly ["h12", "h23"];
|
|
21
|
+
readonly IN: readonly ["h12", "h23"];
|
|
22
|
+
readonly LS: readonly ["h12", "h23"];
|
|
23
|
+
readonly PG: readonly ["h12", "h23"];
|
|
24
|
+
readonly PW: readonly ["h12", "h23"];
|
|
25
|
+
readonly SO: readonly ["h12", "h23"];
|
|
26
|
+
readonly TO: readonly ["h12", "h23"];
|
|
27
|
+
readonly VU: readonly ["h12", "h23"];
|
|
28
|
+
readonly WS: readonly ["h12", "h23"];
|
|
29
|
+
readonly "001": readonly ["h23", "h12"];
|
|
30
|
+
readonly AL: readonly ["h12", "h23"];
|
|
31
|
+
readonly TD: readonly ["h12", "h23"];
|
|
32
|
+
readonly "ca-ES": readonly ["h23", "h12"];
|
|
33
|
+
readonly CF: readonly ["h23", "h12"];
|
|
34
|
+
readonly CM: readonly ["h23", "h12"];
|
|
35
|
+
readonly "fr-CA": readonly ["h23", "h12"];
|
|
36
|
+
readonly "gl-ES": readonly ["h23", "h12"];
|
|
37
|
+
readonly "it-CH": readonly ["h23", "h12"];
|
|
38
|
+
readonly "it-IT": readonly ["h23", "h12"];
|
|
39
|
+
readonly LU: readonly ["h23", "h12"];
|
|
40
|
+
readonly NP: readonly ["h23", "h12"];
|
|
41
|
+
readonly PF: readonly ["h23", "h12"];
|
|
42
|
+
readonly SC: readonly ["h23", "h12"];
|
|
43
|
+
readonly SM: readonly ["h23", "h12"];
|
|
44
|
+
readonly SN: readonly ["h23", "h12"];
|
|
45
|
+
readonly TF: readonly ["h23", "h12"];
|
|
46
|
+
readonly VA: readonly ["h23", "h12"];
|
|
47
|
+
readonly CY: readonly ["h12", "h23"];
|
|
48
|
+
readonly GR: readonly ["h12", "h23"];
|
|
49
|
+
readonly CO: readonly ["h12", "h23"];
|
|
50
|
+
readonly DO: readonly ["h12", "h23"];
|
|
51
|
+
readonly KP: readonly ["h12", "h23"];
|
|
52
|
+
readonly KR: readonly ["h12", "h23"];
|
|
53
|
+
readonly NA: readonly ["h12", "h23"];
|
|
54
|
+
readonly PA: readonly ["h12", "h23"];
|
|
55
|
+
readonly PR: readonly ["h12", "h23"];
|
|
56
|
+
readonly VE: readonly ["h12", "h23"];
|
|
57
|
+
readonly AC: readonly ["h23", "h12"];
|
|
58
|
+
readonly AI: readonly ["h23", "h12"];
|
|
59
|
+
readonly BW: readonly ["h23", "h12"];
|
|
60
|
+
readonly BZ: readonly ["h23", "h12"];
|
|
61
|
+
readonly CC: readonly ["h23", "h12"];
|
|
62
|
+
readonly CK: readonly ["h23", "h12"];
|
|
63
|
+
readonly CX: readonly ["h23", "h12"];
|
|
64
|
+
readonly DG: readonly ["h23", "h12"];
|
|
65
|
+
readonly FK: readonly ["h23", "h12"];
|
|
66
|
+
readonly GB: readonly ["h23", "h12"];
|
|
67
|
+
readonly GG: readonly ["h23", "h12"];
|
|
68
|
+
readonly GI: readonly ["h23", "h12"];
|
|
69
|
+
readonly IE: readonly ["h23", "h12"];
|
|
70
|
+
readonly IM: readonly ["h23", "h12"];
|
|
71
|
+
readonly IO: readonly ["h23", "h12"];
|
|
72
|
+
readonly JE: readonly ["h23", "h12"];
|
|
73
|
+
readonly LT: readonly ["h23", "h12"];
|
|
74
|
+
readonly MK: readonly ["h23", "h12"];
|
|
75
|
+
readonly MN: readonly ["h23", "h12"];
|
|
76
|
+
readonly MS: readonly ["h23", "h12"];
|
|
77
|
+
readonly NF: readonly ["h23", "h12"];
|
|
78
|
+
readonly NG: readonly ["h23", "h12"];
|
|
79
|
+
readonly NR: readonly ["h23", "h12"];
|
|
80
|
+
readonly NU: readonly ["h23", "h12"];
|
|
81
|
+
readonly PN: readonly ["h23", "h12"];
|
|
82
|
+
readonly SH: readonly ["h23", "h12"];
|
|
83
|
+
readonly SX: readonly ["h23", "h12"];
|
|
84
|
+
readonly TA: readonly ["h23", "h12"];
|
|
85
|
+
readonly ZA: readonly ["h23", "h12"];
|
|
86
|
+
readonly "af-ZA": readonly ["h23", "h12"];
|
|
87
|
+
readonly AR: readonly ["h23", "h12"];
|
|
88
|
+
readonly CL: readonly ["h23", "h12"];
|
|
89
|
+
readonly CR: readonly ["h23", "h12"];
|
|
90
|
+
readonly CU: readonly ["h23", "h12"];
|
|
91
|
+
readonly EA: readonly ["h23", "h12"];
|
|
92
|
+
readonly "es-BO": readonly ["h23", "h12"];
|
|
93
|
+
readonly "es-BR": readonly ["h23", "h12"];
|
|
94
|
+
readonly "es-EC": readonly ["h23", "h12"];
|
|
95
|
+
readonly "es-ES": readonly ["h23", "h12"];
|
|
96
|
+
readonly "es-GQ": readonly ["h23", "h12"];
|
|
97
|
+
readonly "es-PE": readonly ["h23", "h12"];
|
|
98
|
+
readonly GT: readonly ["h23", "h12"];
|
|
99
|
+
readonly HN: readonly ["h23", "h12"];
|
|
100
|
+
readonly IC: readonly ["h23", "h12"];
|
|
101
|
+
readonly KG: readonly ["h23", "h12"];
|
|
102
|
+
readonly KM: readonly ["h23", "h12"];
|
|
103
|
+
readonly LK: readonly ["h23", "h12"];
|
|
104
|
+
readonly MA: readonly ["h23", "h12"];
|
|
105
|
+
readonly MX: readonly ["h23", "h12"];
|
|
106
|
+
readonly NI: readonly ["h23", "h12"];
|
|
107
|
+
readonly PY: readonly ["h23", "h12"];
|
|
108
|
+
readonly SV: readonly ["h23", "h12"];
|
|
109
|
+
readonly UY: readonly ["h23", "h12"];
|
|
110
|
+
readonly JP: readonly ["h23", "h12", "h11"];
|
|
111
|
+
readonly AD: readonly ["h23"];
|
|
112
|
+
readonly AM: readonly ["h23"];
|
|
113
|
+
readonly AO: readonly ["h23"];
|
|
114
|
+
readonly AT: readonly ["h23"];
|
|
115
|
+
readonly AW: readonly ["h23"];
|
|
116
|
+
readonly BE: readonly ["h23"];
|
|
117
|
+
readonly BF: readonly ["h23"];
|
|
118
|
+
readonly BJ: readonly ["h23"];
|
|
119
|
+
readonly BL: readonly ["h23"];
|
|
120
|
+
readonly BR: readonly ["h23"];
|
|
121
|
+
readonly CG: readonly ["h23"];
|
|
122
|
+
readonly CI: readonly ["h23"];
|
|
123
|
+
readonly CV: readonly ["h23"];
|
|
124
|
+
readonly DE: readonly ["h23"];
|
|
125
|
+
readonly EE: readonly ["h23"];
|
|
126
|
+
readonly FR: readonly ["h23"];
|
|
127
|
+
readonly GA: readonly ["h23"];
|
|
128
|
+
readonly GF: readonly ["h23"];
|
|
129
|
+
readonly GN: readonly ["h23"];
|
|
130
|
+
readonly GP: readonly ["h23"];
|
|
131
|
+
readonly GW: readonly ["h23"];
|
|
132
|
+
readonly HR: readonly ["h23"];
|
|
133
|
+
readonly IL: readonly ["h23"];
|
|
134
|
+
readonly IT: readonly ["h23"];
|
|
135
|
+
readonly KZ: readonly ["h23"];
|
|
136
|
+
readonly MC: readonly ["h23"];
|
|
137
|
+
readonly MD: readonly ["h23"];
|
|
138
|
+
readonly MF: readonly ["h23"];
|
|
139
|
+
readonly MQ: readonly ["h23"];
|
|
140
|
+
readonly MZ: readonly ["h23"];
|
|
141
|
+
readonly NC: readonly ["h23"];
|
|
142
|
+
readonly NL: readonly ["h23"];
|
|
143
|
+
readonly PM: readonly ["h23"];
|
|
144
|
+
readonly PT: readonly ["h23"];
|
|
145
|
+
readonly RE: readonly ["h23"];
|
|
146
|
+
readonly RO: readonly ["h23"];
|
|
147
|
+
readonly SI: readonly ["h23"];
|
|
148
|
+
readonly SR: readonly ["h23"];
|
|
149
|
+
readonly ST: readonly ["h23"];
|
|
150
|
+
readonly TG: readonly ["h23"];
|
|
151
|
+
readonly TR: readonly ["h23"];
|
|
152
|
+
readonly WF: readonly ["h23"];
|
|
153
|
+
readonly YT: readonly ["h23"];
|
|
154
|
+
readonly BD: readonly ["h12", "h23"];
|
|
155
|
+
readonly PK: readonly ["h12", "h23"];
|
|
156
|
+
readonly AZ: readonly ["h23", "h12"];
|
|
157
|
+
readonly BA: readonly ["h23", "h12"];
|
|
158
|
+
readonly BG: readonly ["h23", "h12"];
|
|
159
|
+
readonly CH: readonly ["h23", "h12"];
|
|
160
|
+
readonly GE: readonly ["h23", "h12"];
|
|
161
|
+
readonly LI: readonly ["h23", "h12"];
|
|
162
|
+
readonly ME: readonly ["h23", "h12"];
|
|
163
|
+
readonly RS: readonly ["h23", "h12"];
|
|
164
|
+
readonly UA: readonly ["h23", "h12"];
|
|
165
|
+
readonly UZ: readonly ["h23", "h12"];
|
|
166
|
+
readonly XK: readonly ["h23", "h12"];
|
|
167
|
+
readonly AG: readonly ["h12", "h23"];
|
|
168
|
+
readonly AU: readonly ["h12", "h23"];
|
|
169
|
+
readonly BB: readonly ["h12", "h23"];
|
|
170
|
+
readonly BM: readonly ["h12", "h23"];
|
|
171
|
+
readonly BS: readonly ["h12", "h23"];
|
|
172
|
+
readonly CA: readonly ["h12", "h23"];
|
|
173
|
+
readonly DM: readonly ["h12", "h23"];
|
|
174
|
+
readonly "en-001": readonly ["h12", "h23"];
|
|
175
|
+
readonly FJ: readonly ["h12", "h23"];
|
|
176
|
+
readonly FM: readonly ["h12", "h23"];
|
|
177
|
+
readonly GD: readonly ["h12", "h23"];
|
|
178
|
+
readonly GM: readonly ["h12", "h23"];
|
|
179
|
+
readonly GU: readonly ["h12", "h23"];
|
|
180
|
+
readonly GY: readonly ["h12", "h23"];
|
|
181
|
+
readonly JM: readonly ["h12", "h23"];
|
|
182
|
+
readonly KI: readonly ["h12", "h23"];
|
|
183
|
+
readonly KN: readonly ["h12", "h23"];
|
|
184
|
+
readonly KY: readonly ["h12", "h23"];
|
|
185
|
+
readonly LC: readonly ["h12", "h23"];
|
|
186
|
+
readonly LR: readonly ["h12", "h23"];
|
|
187
|
+
readonly MH: readonly ["h12", "h23"];
|
|
188
|
+
readonly MP: readonly ["h12", "h23"];
|
|
189
|
+
readonly MW: readonly ["h12", "h23"];
|
|
190
|
+
readonly NZ: readonly ["h12", "h23"];
|
|
191
|
+
readonly SB: readonly ["h12", "h23"];
|
|
192
|
+
readonly SG: readonly ["h12", "h23"];
|
|
193
|
+
readonly SL: readonly ["h12", "h23"];
|
|
194
|
+
readonly SS: readonly ["h12", "h23"];
|
|
195
|
+
readonly SZ: readonly ["h12", "h23"];
|
|
196
|
+
readonly TC: readonly ["h12", "h23"];
|
|
197
|
+
readonly TT: readonly ["h12", "h23"];
|
|
198
|
+
readonly UM: readonly ["h12", "h23"];
|
|
199
|
+
readonly US: readonly ["h12", "h23"];
|
|
200
|
+
readonly VC: readonly ["h12", "h23"];
|
|
201
|
+
readonly VG: readonly ["h12", "h23"];
|
|
202
|
+
readonly VI: readonly ["h12", "h23"];
|
|
203
|
+
readonly ZM: readonly ["h12", "h23"];
|
|
204
|
+
readonly BO: readonly ["h23", "h12"];
|
|
205
|
+
readonly EC: readonly ["h23", "h12"];
|
|
206
|
+
readonly ES: readonly ["h23", "h12"];
|
|
207
|
+
readonly GQ: readonly ["h23", "h12"];
|
|
208
|
+
readonly PE: readonly ["h23", "h12"];
|
|
209
|
+
readonly AE: readonly ["h12", "h23"];
|
|
210
|
+
readonly "ar-001": readonly ["h12", "h23"];
|
|
211
|
+
readonly BH: readonly ["h12", "h23"];
|
|
212
|
+
readonly DZ: readonly ["h12", "h23"];
|
|
213
|
+
readonly EG: readonly ["h12", "h23"];
|
|
214
|
+
readonly EH: readonly ["h12", "h23"];
|
|
215
|
+
readonly HK: readonly ["h12", "h23"];
|
|
216
|
+
readonly IQ: readonly ["h12", "h23"];
|
|
217
|
+
readonly JO: readonly ["h12", "h23"];
|
|
218
|
+
readonly KW: readonly ["h12", "h23"];
|
|
219
|
+
readonly LB: readonly ["h12", "h23"];
|
|
220
|
+
readonly LY: readonly ["h12", "h23"];
|
|
221
|
+
readonly MO: readonly ["h12", "h23"];
|
|
222
|
+
readonly MR: readonly ["h12", "h23"];
|
|
223
|
+
readonly OM: readonly ["h12", "h23"];
|
|
224
|
+
readonly PH: readonly ["h12", "h23"];
|
|
225
|
+
readonly PS: readonly ["h12", "h23"];
|
|
226
|
+
readonly QA: readonly ["h12", "h23"];
|
|
227
|
+
readonly SA: readonly ["h12", "h23"];
|
|
228
|
+
readonly SD: readonly ["h12", "h23"];
|
|
229
|
+
readonly SY: readonly ["h12", "h23"];
|
|
230
|
+
readonly TN: readonly ["h12", "h23"];
|
|
231
|
+
readonly YE: readonly ["h12", "h23"];
|
|
232
|
+
readonly AF: readonly ["h23", "h12"];
|
|
233
|
+
readonly LA: readonly ["h23", "h12"];
|
|
234
|
+
readonly CN: readonly ["h23", "h12"];
|
|
235
|
+
readonly LV: readonly ["h23", "h12"];
|
|
236
|
+
readonly TL: readonly ["h23", "h12"];
|
|
237
|
+
readonly "zu-ZA": readonly ["h23", "h12"];
|
|
238
|
+
readonly CD: readonly ["h23"];
|
|
239
|
+
readonly IR: readonly ["h23"];
|
|
240
|
+
readonly "hi-IN": readonly ["h12", "h23"];
|
|
241
|
+
readonly "kn-IN": readonly ["h12", "h23"];
|
|
242
|
+
readonly "ml-IN": readonly ["h12", "h23"];
|
|
243
|
+
readonly "te-IN": readonly ["h12", "h23"];
|
|
244
|
+
readonly KH: readonly ["h12", "h23"];
|
|
245
|
+
readonly "ta-IN": readonly ["h12", "h23"];
|
|
246
|
+
readonly BN: readonly ["h12", "h23"];
|
|
247
|
+
readonly MY: readonly ["h12", "h23"];
|
|
248
|
+
readonly ET: readonly ["h12", "h23"];
|
|
249
|
+
readonly "gu-IN": readonly ["h12", "h23"];
|
|
250
|
+
readonly "mr-IN": readonly ["h12", "h23"];
|
|
251
|
+
readonly "pa-IN": readonly ["h12", "h23"];
|
|
252
|
+
readonly TW: readonly ["h12", "h23"];
|
|
253
|
+
readonly KE: readonly ["h23", "h12"];
|
|
254
|
+
readonly MM: readonly ["h23", "h12"];
|
|
255
|
+
readonly TZ: readonly ["h23", "h12"];
|
|
256
|
+
readonly UG: readonly ["h23", "h12"];
|
|
257
|
+
};
|
|
258
|
+
export type HourCyclesKey = keyof typeof hourCycles;
|
|
259
|
+
//# sourceMappingURL=hour-cycles.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hour-cycles.generated.d.ts","sourceRoot":"","sources":["../hour-cycles.generated.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAs+I,CAAA;AAC7/I,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,UAAU,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/* @generated */
|
|
2
|
+
// prettier-ignore
|
|
3
|
+
export var hourCycles = { "AX": ["h23"], "BQ": ["h23"], "CP": ["h23"], "CZ": ["h23"], "DK": ["h23"], "FI": ["h23"], "ID": ["h23"], "IS": ["h23"], "ML": ["h23"], "NE": ["h23"], "RU": ["h23"], "SE": ["h23"], "SJ": ["h23"], "SK": ["h23"], "AS": ["h12", "h23"], "BT": ["h12", "h23"], "DJ": ["h12", "h23"], "ER": ["h12", "h23"], "GH": ["h12", "h23"], "IN": ["h12", "h23"], "LS": ["h12", "h23"], "PG": ["h12", "h23"], "PW": ["h12", "h23"], "SO": ["h12", "h23"], "TO": ["h12", "h23"], "VU": ["h12", "h23"], "WS": ["h12", "h23"], "001": ["h23", "h12"], "AL": ["h12", "h23"], "TD": ["h12", "h23"], "ca-ES": ["h23", "h12"], "CF": ["h23", "h12"], "CM": ["h23", "h12"], "fr-CA": ["h23", "h12"], "gl-ES": ["h23", "h12"], "it-CH": ["h23", "h12"], "it-IT": ["h23", "h12"], "LU": ["h23", "h12"], "NP": ["h23", "h12"], "PF": ["h23", "h12"], "SC": ["h23", "h12"], "SM": ["h23", "h12"], "SN": ["h23", "h12"], "TF": ["h23", "h12"], "VA": ["h23", "h12"], "CY": ["h12", "h23"], "GR": ["h12", "h23"], "CO": ["h12", "h23"], "DO": ["h12", "h23"], "KP": ["h12", "h23"], "KR": ["h12", "h23"], "NA": ["h12", "h23"], "PA": ["h12", "h23"], "PR": ["h12", "h23"], "VE": ["h12", "h23"], "AC": ["h23", "h12"], "AI": ["h23", "h12"], "BW": ["h23", "h12"], "BZ": ["h23", "h12"], "CC": ["h23", "h12"], "CK": ["h23", "h12"], "CX": ["h23", "h12"], "DG": ["h23", "h12"], "FK": ["h23", "h12"], "GB": ["h23", "h12"], "GG": ["h23", "h12"], "GI": ["h23", "h12"], "IE": ["h23", "h12"], "IM": ["h23", "h12"], "IO": ["h23", "h12"], "JE": ["h23", "h12"], "LT": ["h23", "h12"], "MK": ["h23", "h12"], "MN": ["h23", "h12"], "MS": ["h23", "h12"], "NF": ["h23", "h12"], "NG": ["h23", "h12"], "NR": ["h23", "h12"], "NU": ["h23", "h12"], "PN": ["h23", "h12"], "SH": ["h23", "h12"], "SX": ["h23", "h12"], "TA": ["h23", "h12"], "ZA": ["h23", "h12"], "af-ZA": ["h23", "h12"], "AR": ["h23", "h12"], "CL": ["h23", "h12"], "CR": ["h23", "h12"], "CU": ["h23", "h12"], "EA": ["h23", "h12"], "es-BO": ["h23", "h12"], "es-BR": ["h23", "h12"], "es-EC": ["h23", "h12"], "es-ES": ["h23", "h12"], "es-GQ": ["h23", "h12"], "es-PE": ["h23", "h12"], "GT": ["h23", "h12"], "HN": ["h23", "h12"], "IC": ["h23", "h12"], "KG": ["h23", "h12"], "KM": ["h23", "h12"], "LK": ["h23", "h12"], "MA": ["h23", "h12"], "MX": ["h23", "h12"], "NI": ["h23", "h12"], "PY": ["h23", "h12"], "SV": ["h23", "h12"], "UY": ["h23", "h12"], "JP": ["h23", "h12", "h11"], "AD": ["h23"], "AM": ["h23"], "AO": ["h23"], "AT": ["h23"], "AW": ["h23"], "BE": ["h23"], "BF": ["h23"], "BJ": ["h23"], "BL": ["h23"], "BR": ["h23"], "CG": ["h23"], "CI": ["h23"], "CV": ["h23"], "DE": ["h23"], "EE": ["h23"], "FR": ["h23"], "GA": ["h23"], "GF": ["h23"], "GN": ["h23"], "GP": ["h23"], "GW": ["h23"], "HR": ["h23"], "IL": ["h23"], "IT": ["h23"], "KZ": ["h23"], "MC": ["h23"], "MD": ["h23"], "MF": ["h23"], "MQ": ["h23"], "MZ": ["h23"], "NC": ["h23"], "NL": ["h23"], "PM": ["h23"], "PT": ["h23"], "RE": ["h23"], "RO": ["h23"], "SI": ["h23"], "SR": ["h23"], "ST": ["h23"], "TG": ["h23"], "TR": ["h23"], "WF": ["h23"], "YT": ["h23"], "BD": ["h12", "h23"], "PK": ["h12", "h23"], "AZ": ["h23", "h12"], "BA": ["h23", "h12"], "BG": ["h23", "h12"], "CH": ["h23", "h12"], "GE": ["h23", "h12"], "LI": ["h23", "h12"], "ME": ["h23", "h12"], "RS": ["h23", "h12"], "UA": ["h23", "h12"], "UZ": ["h23", "h12"], "XK": ["h23", "h12"], "AG": ["h12", "h23"], "AU": ["h12", "h23"], "BB": ["h12", "h23"], "BM": ["h12", "h23"], "BS": ["h12", "h23"], "CA": ["h12", "h23"], "DM": ["h12", "h23"], "en-001": ["h12", "h23"], "FJ": ["h12", "h23"], "FM": ["h12", "h23"], "GD": ["h12", "h23"], "GM": ["h12", "h23"], "GU": ["h12", "h23"], "GY": ["h12", "h23"], "JM": ["h12", "h23"], "KI": ["h12", "h23"], "KN": ["h12", "h23"], "KY": ["h12", "h23"], "LC": ["h12", "h23"], "LR": ["h12", "h23"], "MH": ["h12", "h23"], "MP": ["h12", "h23"], "MW": ["h12", "h23"], "NZ": ["h12", "h23"], "SB": ["h12", "h23"], "SG": ["h12", "h23"], "SL": ["h12", "h23"], "SS": ["h12", "h23"], "SZ": ["h12", "h23"], "TC": ["h12", "h23"], "TT": ["h12", "h23"], "UM": ["h12", "h23"], "US": ["h12", "h23"], "VC": ["h12", "h23"], "VG": ["h12", "h23"], "VI": ["h12", "h23"], "ZM": ["h12", "h23"], "BO": ["h23", "h12"], "EC": ["h23", "h12"], "ES": ["h23", "h12"], "GQ": ["h23", "h12"], "PE": ["h23", "h12"], "AE": ["h12", "h23"], "ar-001": ["h12", "h23"], "BH": ["h12", "h23"], "DZ": ["h12", "h23"], "EG": ["h12", "h23"], "EH": ["h12", "h23"], "HK": ["h12", "h23"], "IQ": ["h12", "h23"], "JO": ["h12", "h23"], "KW": ["h12", "h23"], "LB": ["h12", "h23"], "LY": ["h12", "h23"], "MO": ["h12", "h23"], "MR": ["h12", "h23"], "OM": ["h12", "h23"], "PH": ["h12", "h23"], "PS": ["h12", "h23"], "QA": ["h12", "h23"], "SA": ["h12", "h23"], "SD": ["h12", "h23"], "SY": ["h12", "h23"], "TN": ["h12", "h23"], "YE": ["h12", "h23"], "AF": ["h23", "h12"], "LA": ["h23", "h12"], "CN": ["h23", "h12"], "LV": ["h23", "h12"], "TL": ["h23", "h12"], "zu-ZA": ["h23", "h12"], "CD": ["h23"], "IR": ["h23"], "hi-IN": ["h12", "h23"], "kn-IN": ["h12", "h23"], "ml-IN": ["h12", "h23"], "te-IN": ["h12", "h23"], "KH": ["h12", "h23"], "ta-IN": ["h12", "h23"], "BN": ["h12", "h23"], "MY": ["h12", "h23"], "ET": ["h12", "h23"], "gu-IN": ["h12", "h23"], "mr-IN": ["h12", "h23"], "pa-IN": ["h12", "h23"], "TW": ["h12", "h23"], "KE": ["h23", "h12"], "MM": ["h23", "h12"], "TZ": ["h23", "h12"], "UG": ["h23", "h12"] };
|
package/lib/index.d.ts
CHANGED
|
@@ -43,7 +43,36 @@ export declare class Locale {
|
|
|
43
43
|
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.region
|
|
44
44
|
*/
|
|
45
45
|
get region(): string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.calendars
|
|
48
|
+
*/
|
|
49
|
+
get calendars(): string[];
|
|
50
|
+
/**
|
|
51
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.collations
|
|
52
|
+
*/
|
|
53
|
+
get collations(): string[];
|
|
54
|
+
/**
|
|
55
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.hourCycles
|
|
56
|
+
*/
|
|
57
|
+
get hourCycles(): string[];
|
|
58
|
+
/**
|
|
59
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.numberingSystems
|
|
60
|
+
*/
|
|
61
|
+
get numberingSystems(): string[];
|
|
62
|
+
/**
|
|
63
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.timeZones
|
|
64
|
+
*/
|
|
65
|
+
get timeZones(): string[] | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.textInfo
|
|
68
|
+
*/
|
|
69
|
+
get textInfo(): any;
|
|
70
|
+
/**
|
|
71
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.weekInfo
|
|
72
|
+
*/
|
|
73
|
+
get weekInfo(): any;
|
|
46
74
|
static relevantExtensionKeys: readonly ["ca", "co", "hc", "kf", "kn", "nu"];
|
|
75
|
+
static readonly polyfilled = true;
|
|
47
76
|
}
|
|
48
77
|
export default Locale;
|
|
49
78
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAkCA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAA;IACzC,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,CAAA;IACvC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAMD,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,MAAM,EAAE,MAAM,CAAA;IACd,iBAAiB,EAAE,OAAO,CAAA;CAC3B;AAyXD,qBAAa,MAAM;gBACL,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,IAAI,CAAC,EAAE,iBAAiB;IAmI1D;;OAEG;IACI,QAAQ,IAAI,MAAM;IAUzB;;OAEG;IACI,QAAQ,IAAI,MAAM;IAUlB,QAAQ;IAIf,IAAW,QAAQ,WAGlB;IAED,IAAW,QAAQ,uBAElB;IAED,IAAW,SAAS,uBAEnB;IAED,IAAW,SAAS,8CAEnB;IAED,IAAW,SAAS,4CAEnB;IAED,IAAW,OAAO,wBAEjB;IACD,IAAW,eAAe,uBAEzB;IACD;;OAEG;IACH,IAAW,QAAQ,WAGlB;IACD;;OAEG;IACH,IAAW,MAAM,uBAGhB;IACD;;OAEG;IACH,IAAW,MAAM,uBAGhB;IAED;;OAEG;IACH,IAAW,SAAS,aAEnB;IAED;;OAEG;IACH,IAAW,UAAU,aAEpB;IAED;;OAEG;IACH,IAAW,UAAU,aAEpB;IAED;;OAEG;IACH,IAAW,gBAAgB,aAE1B;IAED;;OAEG;IACH,IAAW,SAAS,yBAEnB;IAED;;OAEG;IACH,IAAW,QAAQ,QAgBlB;IAED;;OAEG;IACH,IAAW,QAAQ,QA+BlB;IAED,MAAM,CAAC,qBAAqB,gDAA0B;IACtD,gBAAuB,UAAU,QAAO;CACzC;AAsBD,eAAe,MAAM,CAAA"}
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { __assign, __spreadArray } from "tslib";
|
|
2
|
+
import { supportedValuesOf } from '@formatjs/intl-enumerator';
|
|
2
3
|
import { GetOption, invariant, SameValue, CoerceOptionsToObject, } from '@formatjs/ecma402-abstract';
|
|
3
4
|
import { isStructurallyValidLanguageTag, isUnicodeLanguageSubtag, isUnicodeRegionSubtag, parseUnicodeLanguageId, isUnicodeScriptSubtag, emitUnicodeLocaleId, parseUnicodeLocaleId, emitUnicodeLanguageId, likelySubtags, } from '@formatjs/intl-getcanonicallocales';
|
|
4
5
|
import getInternalSlots from './get_internal_slots';
|
|
6
|
+
import { getCalendarPreferenceDataForRegion, getHourCyclesPreferenceDataForLocaleOrRegion, getTimeZonePreferenceForRegion, getWeekDataForRegion, } from './preference-data';
|
|
7
|
+
import { characterOrders } from './character-orders.generated';
|
|
8
|
+
import { numberingSystems } from './numbering-systems.generated';
|
|
5
9
|
var RELEVANT_EXTENSION_KEYS = ['ca', 'co', 'hc', 'kf', 'kn', 'nu'];
|
|
6
10
|
var UNICODE_TYPE_REGEX = /^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;
|
|
7
11
|
function applyOptionsToTag(tag, options) {
|
|
@@ -167,6 +171,86 @@ function removeLikelySubtags(tag) {
|
|
|
167
171
|
}
|
|
168
172
|
return tag;
|
|
169
173
|
}
|
|
174
|
+
function createArrayFromListOrRestricted(list, restricted) {
|
|
175
|
+
var result = list;
|
|
176
|
+
if (restricted !== undefined) {
|
|
177
|
+
result = [restricted];
|
|
178
|
+
}
|
|
179
|
+
return Array.from(result);
|
|
180
|
+
}
|
|
181
|
+
function calendarsOfLocale(loc) {
|
|
182
|
+
var locInternalSlots = getInternalSlots(loc);
|
|
183
|
+
var restricted = locInternalSlots.calendar;
|
|
184
|
+
var locale = locInternalSlots.locale;
|
|
185
|
+
var region;
|
|
186
|
+
if (locale !== 'root') {
|
|
187
|
+
region = loc.maximize().region;
|
|
188
|
+
}
|
|
189
|
+
var preferredCalendars = getCalendarPreferenceDataForRegion(region);
|
|
190
|
+
return createArrayFromListOrRestricted(preferredCalendars, restricted);
|
|
191
|
+
}
|
|
192
|
+
function collationsOfLocale(loc) {
|
|
193
|
+
var locInternalSlots = getInternalSlots(loc);
|
|
194
|
+
var restricted = locInternalSlots.collation;
|
|
195
|
+
var locale = locInternalSlots.locale;
|
|
196
|
+
var supportedCollations = supportedValuesOf('collation', locale).filter(function (co) { return co !== 'standard' && co !== 'search'; });
|
|
197
|
+
supportedCollations.sort();
|
|
198
|
+
return createArrayFromListOrRestricted(supportedCollations, restricted);
|
|
199
|
+
}
|
|
200
|
+
function hourCyclesOfLocale(loc) {
|
|
201
|
+
var locInternalSlots = getInternalSlots(loc);
|
|
202
|
+
var restricted = locInternalSlots.hourCycle;
|
|
203
|
+
var locale = locInternalSlots.locale;
|
|
204
|
+
var region;
|
|
205
|
+
if (locale !== 'root') {
|
|
206
|
+
region = loc.maximize().region;
|
|
207
|
+
}
|
|
208
|
+
var preferredHourCycles = getHourCyclesPreferenceDataForLocaleOrRegion(locale, region);
|
|
209
|
+
return createArrayFromListOrRestricted(preferredHourCycles, restricted);
|
|
210
|
+
}
|
|
211
|
+
function numberingSystemsOfLocale(loc) {
|
|
212
|
+
var _a;
|
|
213
|
+
var locInternalSlots = getInternalSlots(loc);
|
|
214
|
+
var restricted = locInternalSlots.numberingSystem;
|
|
215
|
+
var locale = locInternalSlots.locale;
|
|
216
|
+
var language = loc.language;
|
|
217
|
+
var localeNumberingSystems = (_a = numberingSystems[locale]) !== null && _a !== void 0 ? _a : numberingSystems[language];
|
|
218
|
+
if (localeNumberingSystems) {
|
|
219
|
+
return createArrayFromListOrRestricted(__spreadArray([], localeNumberingSystems, true), restricted);
|
|
220
|
+
}
|
|
221
|
+
return createArrayFromListOrRestricted([], restricted);
|
|
222
|
+
}
|
|
223
|
+
function timeZonesOfLocale(loc) {
|
|
224
|
+
var locInternalSlots = getInternalSlots(loc);
|
|
225
|
+
var locale = locInternalSlots.locale;
|
|
226
|
+
var region = parseUnicodeLanguageId(locale).region;
|
|
227
|
+
if (!region) {
|
|
228
|
+
return undefined;
|
|
229
|
+
}
|
|
230
|
+
var preferredTimeZones = getTimeZonePreferenceForRegion(region);
|
|
231
|
+
preferredTimeZones.sort();
|
|
232
|
+
return Array.from(preferredTimeZones);
|
|
233
|
+
}
|
|
234
|
+
function translateCharacterOrder(order) {
|
|
235
|
+
if (order === 'right-to-left') {
|
|
236
|
+
return 'rtl';
|
|
237
|
+
}
|
|
238
|
+
return 'ltr';
|
|
239
|
+
}
|
|
240
|
+
function characterDirectionOfLocale(loc) {
|
|
241
|
+
var locInternalSlots = getInternalSlots(loc);
|
|
242
|
+
var locale = locInternalSlots.locale;
|
|
243
|
+
return translateCharacterOrder(characterOrders[locale]);
|
|
244
|
+
}
|
|
245
|
+
function weekInfoOfLocale(loc) {
|
|
246
|
+
var locInternalSlots = getInternalSlots(loc);
|
|
247
|
+
var locale = locInternalSlots.locale;
|
|
248
|
+
var region;
|
|
249
|
+
if (locale !== 'root') {
|
|
250
|
+
region = loc.maximize().region;
|
|
251
|
+
}
|
|
252
|
+
return getWeekDataForRegion(region);
|
|
253
|
+
}
|
|
170
254
|
var Locale = /** @class */ (function () {
|
|
171
255
|
function Locale(tag, opts) {
|
|
172
256
|
// test262/test/intl402/RelativeTimeFormat/constructor/constructor/newtarget-undefined.js
|
|
@@ -365,7 +449,117 @@ var Locale = /** @class */ (function () {
|
|
|
365
449
|
enumerable: false,
|
|
366
450
|
configurable: true
|
|
367
451
|
});
|
|
452
|
+
Object.defineProperty(Locale.prototype, "calendars", {
|
|
453
|
+
/**
|
|
454
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.calendars
|
|
455
|
+
*/
|
|
456
|
+
get: function () {
|
|
457
|
+
return calendarsOfLocale(this);
|
|
458
|
+
},
|
|
459
|
+
enumerable: false,
|
|
460
|
+
configurable: true
|
|
461
|
+
});
|
|
462
|
+
Object.defineProperty(Locale.prototype, "collations", {
|
|
463
|
+
/**
|
|
464
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.collations
|
|
465
|
+
*/
|
|
466
|
+
get: function () {
|
|
467
|
+
return collationsOfLocale(this);
|
|
468
|
+
},
|
|
469
|
+
enumerable: false,
|
|
470
|
+
configurable: true
|
|
471
|
+
});
|
|
472
|
+
Object.defineProperty(Locale.prototype, "hourCycles", {
|
|
473
|
+
/**
|
|
474
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.hourCycles
|
|
475
|
+
*/
|
|
476
|
+
get: function () {
|
|
477
|
+
return hourCyclesOfLocale(this);
|
|
478
|
+
},
|
|
479
|
+
enumerable: false,
|
|
480
|
+
configurable: true
|
|
481
|
+
});
|
|
482
|
+
Object.defineProperty(Locale.prototype, "numberingSystems", {
|
|
483
|
+
/**
|
|
484
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.numberingSystems
|
|
485
|
+
*/
|
|
486
|
+
get: function () {
|
|
487
|
+
return numberingSystemsOfLocale(this);
|
|
488
|
+
},
|
|
489
|
+
enumerable: false,
|
|
490
|
+
configurable: true
|
|
491
|
+
});
|
|
492
|
+
Object.defineProperty(Locale.prototype, "timeZones", {
|
|
493
|
+
/**
|
|
494
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.timeZones
|
|
495
|
+
*/
|
|
496
|
+
get: function () {
|
|
497
|
+
return timeZonesOfLocale(this);
|
|
498
|
+
},
|
|
499
|
+
enumerable: false,
|
|
500
|
+
configurable: true
|
|
501
|
+
});
|
|
502
|
+
Object.defineProperty(Locale.prototype, "textInfo", {
|
|
503
|
+
/**
|
|
504
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.textInfo
|
|
505
|
+
*/
|
|
506
|
+
get: function () {
|
|
507
|
+
try {
|
|
508
|
+
var info = Object.create(Object.prototype);
|
|
509
|
+
var dir = characterDirectionOfLocale(this);
|
|
510
|
+
Object.defineProperty(info, 'direction', {
|
|
511
|
+
value: dir,
|
|
512
|
+
writable: true,
|
|
513
|
+
enumerable: true,
|
|
514
|
+
configurable: true,
|
|
515
|
+
});
|
|
516
|
+
return info;
|
|
517
|
+
}
|
|
518
|
+
catch (e) {
|
|
519
|
+
throw new TypeError('Error retrieving textInfo');
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
enumerable: false,
|
|
523
|
+
configurable: true
|
|
524
|
+
});
|
|
525
|
+
Object.defineProperty(Locale.prototype, "weekInfo", {
|
|
526
|
+
/**
|
|
527
|
+
* https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.weekInfo
|
|
528
|
+
*/
|
|
529
|
+
get: function () {
|
|
530
|
+
try {
|
|
531
|
+
var info = Object.create(Object.prototype);
|
|
532
|
+
var wi = weekInfoOfLocale(this);
|
|
533
|
+
var we = wi.weekend;
|
|
534
|
+
Object.defineProperty(info, 'firstDay', {
|
|
535
|
+
value: wi.firstDay,
|
|
536
|
+
writable: true,
|
|
537
|
+
enumerable: true,
|
|
538
|
+
configurable: true,
|
|
539
|
+
});
|
|
540
|
+
Object.defineProperty(info, 'weekend', {
|
|
541
|
+
value: we,
|
|
542
|
+
writable: true,
|
|
543
|
+
enumerable: true,
|
|
544
|
+
configurable: true,
|
|
545
|
+
});
|
|
546
|
+
Object.defineProperty(info, 'minimalDays', {
|
|
547
|
+
value: wi.minimalDays,
|
|
548
|
+
writable: true,
|
|
549
|
+
enumerable: true,
|
|
550
|
+
configurable: true,
|
|
551
|
+
});
|
|
552
|
+
return info;
|
|
553
|
+
}
|
|
554
|
+
catch (e) {
|
|
555
|
+
throw new TypeError('Error retrieving weekInfo');
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
enumerable: false,
|
|
559
|
+
configurable: true
|
|
560
|
+
});
|
|
368
561
|
Locale.relevantExtensionKeys = RELEVANT_EXTENSION_KEYS;
|
|
562
|
+
Locale.polyfilled = true;
|
|
369
563
|
return Locale;
|
|
370
564
|
}());
|
|
371
565
|
export { Locale };
|