@formatjs/intl-locale 3.3.1 → 3.3.3

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/index.d.ts CHANGED
@@ -43,30 +43,65 @@ 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://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCalendars
48
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCalendars
49
+ */
50
+ getCalendars(): string[];
46
51
  /**
47
52
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.calendars
48
53
  */
49
54
  get calendars(): string[];
55
+ /**
56
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCollations
57
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCollations
58
+ */
59
+ getCollations(): string[];
50
60
  /**
51
61
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.collations
52
62
  */
53
63
  get collations(): string[];
64
+ /**
65
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getHourCycles
66
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getHourCycles
67
+ */
68
+ getHourCycles(): string[];
54
69
  /**
55
70
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.hourCycles
56
71
  */
57
72
  get hourCycles(): string[];
73
+ /**
74
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getNumberingSystems
75
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getNumberingSystems
76
+ */
77
+ getNumberingSystems(): string[];
58
78
  /**
59
79
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.numberingSystems
60
80
  */
61
81
  get numberingSystems(): string[];
82
+ /**
83
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTimeZones
84
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTimeZones
85
+ */
86
+ getTimeZones(): string[] | undefined;
62
87
  /**
63
88
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.timeZones
64
89
  */
65
90
  get timeZones(): string[] | undefined;
91
+ /**
92
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo
93
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTextInfo
94
+ */
95
+ getTextInfo(): any;
66
96
  /**
67
97
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.textInfo
68
98
  */
69
99
  get textInfo(): any;
100
+ /**
101
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo
102
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getWeekInfo
103
+ */
104
+ getWeekInfo(): any;
70
105
  /**
71
106
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.weekInfo
72
107
  */
package/index.js CHANGED
@@ -452,6 +452,13 @@ var Locale = exports.Locale = /** @class */ (function () {
452
452
  enumerable: false,
453
453
  configurable: true
454
454
  });
455
+ /**
456
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCalendars
457
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCalendars
458
+ */
459
+ Locale.prototype.getCalendars = function () {
460
+ return calendarsOfLocale(this);
461
+ };
455
462
  Object.defineProperty(Locale.prototype, "calendars", {
456
463
  /**
457
464
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.calendars
@@ -462,6 +469,13 @@ var Locale = exports.Locale = /** @class */ (function () {
462
469
  enumerable: false,
463
470
  configurable: true
464
471
  });
472
+ /**
473
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCollations
474
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCollations
475
+ */
476
+ Locale.prototype.getCollations = function () {
477
+ return collationsOfLocale(this);
478
+ };
465
479
  Object.defineProperty(Locale.prototype, "collations", {
466
480
  /**
467
481
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.collations
@@ -472,6 +486,17 @@ var Locale = exports.Locale = /** @class */ (function () {
472
486
  enumerable: false,
473
487
  configurable: true
474
488
  });
489
+ /**
490
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getHourCycles
491
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getHourCycles
492
+ */
493
+ Locale.prototype.getHourCycles = function () {
494
+ var locInternalSlots = (0, get_internal_slots_1.default)(this);
495
+ if (locInternalSlots.initializedLocale === undefined) {
496
+ throw new TypeError('Error uninitialized locale');
497
+ }
498
+ return hourCyclesOfLocale(this);
499
+ };
475
500
  Object.defineProperty(Locale.prototype, "hourCycles", {
476
501
  /**
477
502
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.hourCycles
@@ -482,6 +507,13 @@ var Locale = exports.Locale = /** @class */ (function () {
482
507
  enumerable: false,
483
508
  configurable: true
484
509
  });
510
+ /**
511
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getNumberingSystems
512
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getNumberingSystems
513
+ */
514
+ Locale.prototype.getNumberingSystems = function () {
515
+ return numberingSystemsOfLocale(this);
516
+ };
485
517
  Object.defineProperty(Locale.prototype, "numberingSystems", {
486
518
  /**
487
519
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.numberingSystems
@@ -492,6 +524,13 @@ var Locale = exports.Locale = /** @class */ (function () {
492
524
  enumerable: false,
493
525
  configurable: true
494
526
  });
527
+ /**
528
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTimeZones
529
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTimeZones
530
+ */
531
+ Locale.prototype.getTimeZones = function () {
532
+ return timeZonesOfLocale(this);
533
+ };
495
534
  Object.defineProperty(Locale.prototype, "timeZones", {
496
535
  /**
497
536
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.timeZones
@@ -502,6 +541,18 @@ var Locale = exports.Locale = /** @class */ (function () {
502
541
  enumerable: false,
503
542
  configurable: true
504
543
  });
544
+ /**
545
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo
546
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTextInfo
547
+ */
548
+ Locale.prototype.getTextInfo = function () {
549
+ var info = Object.create(Object.prototype);
550
+ var dir = characterDirectionOfLocale(this);
551
+ (0, ecma402_abstract_1.defineProperty)(info, 'direction', {
552
+ value: dir,
553
+ });
554
+ return info;
555
+ };
505
556
  Object.defineProperty(Locale.prototype, "textInfo", {
506
557
  /**
507
558
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.textInfo
@@ -525,6 +576,29 @@ var Locale = exports.Locale = /** @class */ (function () {
525
576
  enumerable: false,
526
577
  configurable: true
527
578
  });
579
+ /**
580
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo
581
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getWeekInfo
582
+ */
583
+ Locale.prototype.getWeekInfo = function () {
584
+ var info = Object.create(Object.prototype);
585
+ var locInternalSlots = (0, get_internal_slots_1.default)(this);
586
+ if (locInternalSlots.initializedLocale === undefined) {
587
+ throw new TypeError('Error uninitialized locale');
588
+ }
589
+ var wi = weekInfoOfLocale(this);
590
+ var we = wi.weekend;
591
+ (0, ecma402_abstract_1.defineProperty)(info, 'firstDay', {
592
+ value: wi.firstDay,
593
+ });
594
+ (0, ecma402_abstract_1.defineProperty)(info, 'weekend', {
595
+ value: we,
596
+ });
597
+ (0, ecma402_abstract_1.defineProperty)(info, 'minimalDays', {
598
+ value: wi.minimalDays,
599
+ });
600
+ return info;
601
+ };
528
602
  Object.defineProperty(Locale.prototype, "weekInfo", {
529
603
  /**
530
604
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.weekInfo
package/lib/index.d.ts CHANGED
@@ -43,30 +43,65 @@ 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://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCalendars
48
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCalendars
49
+ */
50
+ getCalendars(): string[];
46
51
  /**
47
52
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.calendars
48
53
  */
49
54
  get calendars(): string[];
55
+ /**
56
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCollations
57
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCollations
58
+ */
59
+ getCollations(): string[];
50
60
  /**
51
61
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.collations
52
62
  */
53
63
  get collations(): string[];
64
+ /**
65
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getHourCycles
66
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getHourCycles
67
+ */
68
+ getHourCycles(): string[];
54
69
  /**
55
70
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.hourCycles
56
71
  */
57
72
  get hourCycles(): string[];
73
+ /**
74
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getNumberingSystems
75
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getNumberingSystems
76
+ */
77
+ getNumberingSystems(): string[];
58
78
  /**
59
79
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.numberingSystems
60
80
  */
61
81
  get numberingSystems(): string[];
82
+ /**
83
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTimeZones
84
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTimeZones
85
+ */
86
+ getTimeZones(): string[] | undefined;
62
87
  /**
63
88
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.timeZones
64
89
  */
65
90
  get timeZones(): string[] | undefined;
91
+ /**
92
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo
93
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTextInfo
94
+ */
95
+ getTextInfo(): any;
66
96
  /**
67
97
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.textInfo
68
98
  */
69
99
  get textInfo(): any;
100
+ /**
101
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo
102
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getWeekInfo
103
+ */
104
+ getWeekInfo(): any;
70
105
  /**
71
106
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.weekInfo
72
107
  */
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { __assign, __spreadArray } from "tslib";
2
2
  import { supportedValuesOf } from '@formatjs/intl-enumerator';
3
- import { GetOption, invariant, SameValue, CoerceOptionsToObject, } from '@formatjs/ecma402-abstract';
3
+ import { defineProperty, GetOption, invariant, SameValue, CoerceOptionsToObject, } from '@formatjs/ecma402-abstract';
4
4
  import { isStructurallyValidLanguageTag, isUnicodeLanguageSubtag, isUnicodeRegionSubtag, parseUnicodeLanguageId, isUnicodeScriptSubtag, emitUnicodeLocaleId, parseUnicodeLocaleId, emitUnicodeLanguageId, likelySubtags, } from '@formatjs/intl-getcanonicallocales';
5
5
  import getInternalSlots from './get_internal_slots';
6
6
  import { getCalendarPreferenceDataForRegion, getHourCyclesPreferenceDataForLocaleOrRegion, getTimeZonePreferenceForRegion, getWeekDataForRegion, } from './preference-data';
@@ -449,6 +449,13 @@ export var Locale = /** @class */ (function () {
449
449
  enumerable: false,
450
450
  configurable: true
451
451
  });
452
+ /**
453
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCalendars
454
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCalendars
455
+ */
456
+ Locale.prototype.getCalendars = function () {
457
+ return calendarsOfLocale(this);
458
+ };
452
459
  Object.defineProperty(Locale.prototype, "calendars", {
453
460
  /**
454
461
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.calendars
@@ -459,6 +466,13 @@ export var Locale = /** @class */ (function () {
459
466
  enumerable: false,
460
467
  configurable: true
461
468
  });
469
+ /**
470
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCollations
471
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getCollations
472
+ */
473
+ Locale.prototype.getCollations = function () {
474
+ return collationsOfLocale(this);
475
+ };
462
476
  Object.defineProperty(Locale.prototype, "collations", {
463
477
  /**
464
478
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.collations
@@ -469,6 +483,17 @@ export var Locale = /** @class */ (function () {
469
483
  enumerable: false,
470
484
  configurable: true
471
485
  });
486
+ /**
487
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getHourCycles
488
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getHourCycles
489
+ */
490
+ Locale.prototype.getHourCycles = function () {
491
+ var locInternalSlots = getInternalSlots(this);
492
+ if (locInternalSlots.initializedLocale === undefined) {
493
+ throw new TypeError('Error uninitialized locale');
494
+ }
495
+ return hourCyclesOfLocale(this);
496
+ };
472
497
  Object.defineProperty(Locale.prototype, "hourCycles", {
473
498
  /**
474
499
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.hourCycles
@@ -479,6 +504,13 @@ export var Locale = /** @class */ (function () {
479
504
  enumerable: false,
480
505
  configurable: true
481
506
  });
507
+ /**
508
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getNumberingSystems
509
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getNumberingSystems
510
+ */
511
+ Locale.prototype.getNumberingSystems = function () {
512
+ return numberingSystemsOfLocale(this);
513
+ };
482
514
  Object.defineProperty(Locale.prototype, "numberingSystems", {
483
515
  /**
484
516
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.numberingSystems
@@ -489,6 +521,13 @@ export var Locale = /** @class */ (function () {
489
521
  enumerable: false,
490
522
  configurable: true
491
523
  });
524
+ /**
525
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTimeZones
526
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTimeZones
527
+ */
528
+ Locale.prototype.getTimeZones = function () {
529
+ return timeZonesOfLocale(this);
530
+ };
492
531
  Object.defineProperty(Locale.prototype, "timeZones", {
493
532
  /**
494
533
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.timeZones
@@ -499,6 +538,18 @@ export var Locale = /** @class */ (function () {
499
538
  enumerable: false,
500
539
  configurable: true
501
540
  });
541
+ /**
542
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo
543
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getTextInfo
544
+ */
545
+ Locale.prototype.getTextInfo = function () {
546
+ var info = Object.create(Object.prototype);
547
+ var dir = characterDirectionOfLocale(this);
548
+ defineProperty(info, 'direction', {
549
+ value: dir,
550
+ });
551
+ return info;
552
+ };
502
553
  Object.defineProperty(Locale.prototype, "textInfo", {
503
554
  /**
504
555
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.textInfo
@@ -522,6 +573,29 @@ export var Locale = /** @class */ (function () {
522
573
  enumerable: false,
523
574
  configurable: true
524
575
  });
576
+ /**
577
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo
578
+ * https://tc39.es/proposal-intl-locale-info/#sec-Intl.Locale.prototype.getWeekInfo
579
+ */
580
+ Locale.prototype.getWeekInfo = function () {
581
+ var info = Object.create(Object.prototype);
582
+ var locInternalSlots = getInternalSlots(this);
583
+ if (locInternalSlots.initializedLocale === undefined) {
584
+ throw new TypeError('Error uninitialized locale');
585
+ }
586
+ var wi = weekInfoOfLocale(this);
587
+ var we = wi.weekend;
588
+ defineProperty(info, 'firstDay', {
589
+ value: wi.firstDay,
590
+ });
591
+ defineProperty(info, 'weekend', {
592
+ value: we,
593
+ });
594
+ defineProperty(info, 'minimalDays', {
595
+ value: wi.minimalDays,
596
+ });
597
+ return info;
598
+ };
525
599
  Object.defineProperty(Locale.prototype, "weekInfo", {
526
600
  /**
527
601
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.weekInfo
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/intl-locale",
3
- "version": "3.3.1",
3
+ "version": "3.3.3",
4
4
  "description": "Intl.Locale polyfill",
5
5
  "keywords": [
6
6
  "intl",
@@ -24,8 +24,8 @@
24
24
  "url": "https://github.com/formatjs/formatjs/issues"
25
25
  },
26
26
  "dependencies": {
27
- "@formatjs/ecma402-abstract": "1.16.0",
28
- "@formatjs/intl-enumerator": "1.3.1",
27
+ "@formatjs/ecma402-abstract": "1.17.1",
28
+ "@formatjs/intl-enumerator": "1.3.3",
29
29
  "@formatjs/intl-getcanonicallocales": "2.2.1",
30
30
  "tslib": "^2.4.0"
31
31
  }
package/polyfill.iife.js CHANGED
@@ -4427,6 +4427,15 @@
4427
4427
  var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
4428
4428
 
4429
4429
  // ../../../../../../../../execroot/formatjs/bazel-out/darwin-fastbuild/bin/node_modules/.aspect_rules_js/@formatjs+ecma402-abstract@0.0.0/node_modules/@formatjs/ecma402-abstract/lib/utils.js
4430
+ function defineProperty(target, name, _a) {
4431
+ var value = _a.value;
4432
+ Object.defineProperty(target, name, {
4433
+ configurable: true,
4434
+ enumerable: false,
4435
+ writable: true,
4436
+ value
4437
+ });
4438
+ }
4430
4439
  function invariant(condition, message, Err) {
4431
4440
  if (Err === void 0) {
4432
4441
  Err = Error;
@@ -11541,6 +11550,9 @@
11541
11550
  enumerable: false,
11542
11551
  configurable: true
11543
11552
  });
11553
+ Locale2.prototype.getCalendars = function() {
11554
+ return calendarsOfLocale(this);
11555
+ };
11544
11556
  Object.defineProperty(Locale2.prototype, "calendars", {
11545
11557
  /**
11546
11558
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.calendars
@@ -11551,6 +11563,9 @@
11551
11563
  enumerable: false,
11552
11564
  configurable: true
11553
11565
  });
11566
+ Locale2.prototype.getCollations = function() {
11567
+ return collationsOfLocale(this);
11568
+ };
11554
11569
  Object.defineProperty(Locale2.prototype, "collations", {
11555
11570
  /**
11556
11571
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.collations
@@ -11561,6 +11576,13 @@
11561
11576
  enumerable: false,
11562
11577
  configurable: true
11563
11578
  });
11579
+ Locale2.prototype.getHourCycles = function() {
11580
+ var locInternalSlots = getInternalSlots(this);
11581
+ if (locInternalSlots.initializedLocale === void 0) {
11582
+ throw new TypeError("Error uninitialized locale");
11583
+ }
11584
+ return hourCyclesOfLocale(this);
11585
+ };
11564
11586
  Object.defineProperty(Locale2.prototype, "hourCycles", {
11565
11587
  /**
11566
11588
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.hourCycles
@@ -11571,6 +11593,9 @@
11571
11593
  enumerable: false,
11572
11594
  configurable: true
11573
11595
  });
11596
+ Locale2.prototype.getNumberingSystems = function() {
11597
+ return numberingSystemsOfLocale(this);
11598
+ };
11574
11599
  Object.defineProperty(Locale2.prototype, "numberingSystems", {
11575
11600
  /**
11576
11601
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.numberingSystems
@@ -11581,6 +11606,9 @@
11581
11606
  enumerable: false,
11582
11607
  configurable: true
11583
11608
  });
11609
+ Locale2.prototype.getTimeZones = function() {
11610
+ return timeZonesOfLocale(this);
11611
+ };
11584
11612
  Object.defineProperty(Locale2.prototype, "timeZones", {
11585
11613
  /**
11586
11614
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.timeZones
@@ -11591,6 +11619,14 @@
11591
11619
  enumerable: false,
11592
11620
  configurable: true
11593
11621
  });
11622
+ Locale2.prototype.getTextInfo = function() {
11623
+ var info = Object.create(Object.prototype);
11624
+ var dir = characterDirectionOfLocale(this);
11625
+ defineProperty(info, "direction", {
11626
+ value: dir
11627
+ });
11628
+ return info;
11629
+ };
11594
11630
  Object.defineProperty(Locale2.prototype, "textInfo", {
11595
11631
  /**
11596
11632
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.textInfo
@@ -11613,6 +11649,25 @@
11613
11649
  enumerable: false,
11614
11650
  configurable: true
11615
11651
  });
11652
+ Locale2.prototype.getWeekInfo = function() {
11653
+ var info = Object.create(Object.prototype);
11654
+ var locInternalSlots = getInternalSlots(this);
11655
+ if (locInternalSlots.initializedLocale === void 0) {
11656
+ throw new TypeError("Error uninitialized locale");
11657
+ }
11658
+ var wi = weekInfoOfLocale(this);
11659
+ var we = wi.weekend;
11660
+ defineProperty(info, "firstDay", {
11661
+ value: wi.firstDay
11662
+ });
11663
+ defineProperty(info, "weekend", {
11664
+ value: we
11665
+ });
11666
+ defineProperty(info, "minimalDays", {
11667
+ value: wi.minimalDays
11668
+ });
11669
+ return info;
11670
+ };
11616
11671
  Object.defineProperty(Locale2.prototype, "weekInfo", {
11617
11672
  /**
11618
11673
  * https://tc39.es/proposal-intl-locale/#sec-Intl.Locale.prototype.weekInfo