@ui5/webcomponents-localization 0.0.0-47cc17a26 → 0.0.0-49bade48d

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.
Files changed (169) hide show
  1. package/CHANGELOG.md +293 -1
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/DateFormat.d.ts +23 -0
  4. package/dist/DateFormat.js +16 -0
  5. package/dist/DateFormat.js.map +1 -1
  6. package/dist/Locale.d.ts +5 -0
  7. package/dist/Locale.js +7 -0
  8. package/dist/Locale.js.map +1 -0
  9. package/dist/NumberFormat.d.ts +5 -0
  10. package/dist/NumberFormat.js +7 -0
  11. package/dist/NumberFormat.js.map +1 -0
  12. package/dist/dates/convertMonthNumbersToMonthNames.d.ts +2 -2
  13. package/dist/dates/convertMonthNumbersToMonthNames.js.map +1 -1
  14. package/dist/generated/assets/cldr/Unicode-Data-Files-LICENSE.txt +36 -24
  15. package/dist/generated/assets/cldr/ar.json +624 -354
  16. package/dist/generated/assets/cldr/ar_EG.json +624 -354
  17. package/dist/generated/assets/cldr/ar_SA.json +625 -355
  18. package/dist/generated/assets/cldr/bg.json +339 -215
  19. package/dist/generated/assets/cldr/ca.json +633 -509
  20. package/dist/generated/assets/cldr/cnr.json +960 -653
  21. package/dist/generated/assets/cldr/cs.json +343 -531
  22. package/dist/generated/assets/cldr/cy.json +684 -1050
  23. package/dist/generated/assets/cldr/da.json +354 -231
  24. package/dist/generated/assets/cldr/de.json +458 -330
  25. package/dist/generated/assets/cldr/de_AT.json +459 -331
  26. package/dist/generated/assets/cldr/de_CH.json +522 -386
  27. package/dist/generated/assets/cldr/el.json +317 -152
  28. package/dist/generated/assets/cldr/el_CY.json +317 -152
  29. package/dist/generated/assets/cldr/en.json +606 -253
  30. package/dist/generated/assets/cldr/en_AU.json +830 -376
  31. package/dist/generated/assets/cldr/en_GB.json +696 -251
  32. package/dist/generated/assets/cldr/en_HK.json +544 -203
  33. package/dist/generated/assets/cldr/en_IE.json +533 -192
  34. package/dist/generated/assets/cldr/en_IN.json +820 -296
  35. package/dist/generated/assets/cldr/en_NZ.json +534 -193
  36. package/dist/generated/assets/cldr/en_PG.json +509 -168
  37. package/dist/generated/assets/cldr/en_SG.json +526 -185
  38. package/dist/generated/assets/cldr/en_ZA.json +529 -186
  39. package/dist/generated/assets/cldr/es.json +355 -230
  40. package/dist/generated/assets/cldr/es_AR.json +444 -288
  41. package/dist/generated/assets/cldr/es_BO.json +419 -264
  42. package/dist/generated/assets/cldr/es_CL.json +455 -300
  43. package/dist/generated/assets/cldr/es_CO.json +412 -257
  44. package/dist/generated/assets/cldr/es_MX.json +515 -352
  45. package/dist/generated/assets/cldr/es_PE.json +397 -234
  46. package/dist/generated/assets/cldr/es_UY.json +424 -269
  47. package/dist/generated/assets/cldr/es_VE.json +398 -243
  48. package/dist/generated/assets/cldr/et.json +390 -233
  49. package/dist/generated/assets/cldr/fa.json +510 -271
  50. package/dist/generated/assets/cldr/fi.json +497 -251
  51. package/dist/generated/assets/cldr/fr.json +339 -106
  52. package/dist/generated/assets/cldr/fr_BE.json +341 -108
  53. package/dist/generated/assets/cldr/fr_CA.json +652 -397
  54. package/dist/generated/assets/cldr/fr_CH.json +342 -109
  55. package/dist/generated/assets/cldr/fr_LU.json +339 -106
  56. package/dist/generated/assets/cldr/he.json +726 -904
  57. package/dist/generated/assets/cldr/hi.json +529 -288
  58. package/dist/generated/assets/cldr/hr.json +392 -383
  59. package/dist/generated/assets/cldr/hu.json +459 -335
  60. package/dist/generated/assets/cldr/id.json +379 -128
  61. package/dist/generated/assets/cldr/it.json +420 -301
  62. package/dist/generated/assets/cldr/it_CH.json +426 -307
  63. package/dist/generated/assets/cldr/ja.json +332 -74
  64. package/dist/generated/assets/cldr/kk.json +540 -240
  65. package/dist/generated/assets/cldr/ko.json +371 -115
  66. package/dist/generated/assets/cldr/lt.json +428 -545
  67. package/dist/generated/assets/cldr/lv.json +415 -413
  68. package/dist/generated/assets/cldr/mk.json +691 -559
  69. package/dist/generated/assets/cldr/ms.json +395 -136
  70. package/dist/generated/assets/cldr/nb.json +355 -234
  71. package/dist/generated/assets/cldr/nl.json +357 -251
  72. package/dist/generated/assets/cldr/nl_BE.json +428 -322
  73. package/dist/generated/assets/cldr/pl.json +333 -459
  74. package/dist/generated/assets/cldr/pt.json +419 -298
  75. package/dist/generated/assets/cldr/pt_PT.json +362 -231
  76. package/dist/generated/assets/cldr/ro.json +369 -397
  77. package/dist/generated/assets/cldr/ru.json +599 -368
  78. package/dist/generated/assets/cldr/ru_UA.json +598 -367
  79. package/dist/generated/assets/cldr/sk.json +343 -517
  80. package/dist/generated/assets/cldr/sl.json +477 -640
  81. package/dist/generated/assets/cldr/sr.json +478 -531
  82. package/dist/generated/assets/cldr/sr_Latn.json +631 -684
  83. package/dist/generated/assets/cldr/sv.json +395 -258
  84. package/dist/generated/assets/cldr/th.json +452 -199
  85. package/dist/generated/assets/cldr/tr.json +391 -238
  86. package/dist/generated/assets/cldr/uk.json +696 -342
  87. package/dist/generated/assets/cldr/vi.json +836 -487
  88. package/dist/generated/assets/cldr/zh_CN.json +358 -104
  89. package/dist/generated/assets/cldr/zh_HK.json +366 -113
  90. package/dist/generated/assets/cldr/zh_SG.json +371 -118
  91. package/dist/generated/assets/cldr/zh_TW.json +480 -238
  92. package/dist/getCachedLocaleDataInstance.js +2 -0
  93. package/dist/getCachedLocaleDataInstance.js.map +1 -1
  94. package/dist/locale/getLocaleData.js +2 -0
  95. package/dist/locale/getLocaleData.js.map +1 -1
  96. package/dist/sap/base/Event.js +2 -2
  97. package/dist/sap/base/Eventing.js +4 -3
  98. package/dist/sap/base/assert.js +1 -1
  99. package/dist/sap/base/config/MemoryConfigurationProvider.js +1 -1
  100. package/dist/sap/base/future.js +12 -0
  101. package/dist/sap/base/i18n/Formatting.d.ts +5 -0
  102. package/dist/sap/base/i18n/Formatting.js +7 -0
  103. package/dist/sap/base/i18n/Formatting.js.map +1 -1
  104. package/dist/sap/base/i18n/LanguageTag.js +18 -12
  105. package/dist/sap/base/i18n/Localization.d.ts +3 -0
  106. package/dist/sap/base/i18n/Localization.js +5 -0
  107. package/dist/sap/base/i18n/Localization.js.map +1 -1
  108. package/dist/sap/base/i18n/ResourceBundle.js +20 -0
  109. package/dist/sap/base/i18n/date/CalendarType.js +9 -8
  110. package/dist/sap/base/i18n/date/CalendarWeekNumbering.js +9 -8
  111. package/dist/sap/base/i18n/date/TimezoneUtils.js +170 -18
  112. package/dist/sap/base/i18n/date/_EnumHelper.js +37 -0
  113. package/dist/sap/base/strings/camelize.js +1 -1
  114. package/dist/sap/base/strings/formatMessage.js +6 -1
  115. package/dist/sap/base/util/Properties.js +12 -0
  116. package/dist/sap/base/util/Version.js +19 -13
  117. package/dist/sap/base/util/_merge.js +1 -1
  118. package/dist/sap/base/util/array/uniqueSort.js +1 -1
  119. package/dist/sap/base/util/deepClone.js +2 -2
  120. package/dist/sap/base/util/deepEqual.js +1 -1
  121. package/dist/sap/base/util/deepExtend.js +60 -0
  122. package/dist/sap/base/util/extend.js +1 -1
  123. package/dist/sap/base/util/fetch.js +8 -0
  124. package/dist/sap/base/util/isEmptyObject.js +1 -1
  125. package/dist/sap/base/util/isPlainObject.js +1 -1
  126. package/dist/sap/base/util/merge.js +57 -0
  127. package/dist/sap/base/util/mixedFetch.js +3 -0
  128. package/dist/sap/base/util/now.js +7 -13
  129. package/dist/sap/base/util/uid.js +1 -1
  130. package/dist/sap/ui/Device.js +27 -0
  131. package/dist/sap/ui/Global.js +1 -0
  132. package/dist/sap/ui/VersionInfo.js +14 -0
  133. package/dist/sap/ui/base/DataType.js +63 -12
  134. package/dist/sap/ui/base/DesignTime.js +11 -0
  135. package/dist/sap/ui/base/EventProvider.js +21 -0
  136. package/dist/sap/ui/base/Metadata.js +45 -10
  137. package/dist/sap/ui/base/Object.js +2 -2
  138. package/dist/sap/ui/base/OwnStatics.js +6 -0
  139. package/dist/sap/ui/base/SyncPromise.js +98 -0
  140. package/dist/sap/ui/core/AnimationMode.js +42 -0
  141. package/dist/sap/ui/core/CalendarType.js +2 -2
  142. package/dist/sap/ui/core/ControlBehavior.js +11 -0
  143. package/dist/sap/ui/core/Lib.js +41 -0
  144. package/dist/sap/ui/core/Locale.js +9 -9
  145. package/dist/sap/ui/core/LocaleData.js +498 -333
  146. package/dist/sap/ui/core/Theming.js +25 -525
  147. package/dist/sap/ui/core/_UrlResolver.js +11 -0
  148. package/dist/sap/ui/core/date/Buddhist.js +2 -2
  149. package/dist/sap/ui/core/date/CalendarUtils.js +14 -12
  150. package/dist/sap/ui/core/date/CalendarWeekNumbering.js +2 -2
  151. package/dist/sap/ui/core/date/Gregorian.js +2 -2
  152. package/dist/sap/ui/core/date/Islamic.js +2 -2
  153. package/dist/sap/ui/core/date/Japanese.js +2 -2
  154. package/dist/sap/ui/core/date/Persian.js +2 -2
  155. package/dist/sap/ui/core/date/UI5Date.js +80 -32
  156. package/dist/sap/ui/core/date/UniversalDate.js +83 -101
  157. package/dist/sap/ui/core/format/DateFormat.js +70 -73
  158. package/dist/sap/ui/core/format/FormatUtils.js +30 -0
  159. package/dist/sap/ui/core/format/NumberFormat.js +3164 -0
  160. package/dist/sap/ui/core/format/TimezoneUtil.js +80 -11
  161. package/dist/sap/ui/core/getCompatibilityVersion.js +7 -0
  162. package/dist/sap/ui/core/theming/ThemeHelper.js +14 -0
  163. package/dist/sap/ui/security/Security.js +12 -0
  164. package/dist/sap/ui/util/XMLHelper.js +11 -0
  165. package/dist/sap/ui/util/_URL.js +1 -0
  166. package/dist/ui5loader-autoconfig.js +1 -0
  167. package/package-scripts.cjs +1 -1
  168. package/package.json +9 -11
  169. package/used-modules.txt +7 -1
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  // Provides class sap.ui.base.Metadata
@@ -25,7 +25,7 @@ function isFunction(obj) {
25
25
  *
26
26
  * @class Metadata for a class.
27
27
  * @author Frank Weigel
28
- * @version 1.120.17
28
+ * @version 1.146.0
29
29
  * @since 0.8.6
30
30
  * @public
31
31
  * @alias sap.ui.base.Metadata
@@ -34,7 +34,10 @@ var Metadata = function (sClassName, oClassInfo) {
34
34
  assert(typeof sClassName === "string" && sClassName, "Metadata: sClassName must be a non-empty string");
35
35
  assert(typeof oClassInfo === "object", "Metadata: oClassInfo must be empty or an object");
36
36
 
37
- // support for old usage of Metadata
37
+ /**
38
+ * Support for old usage of Metadata.
39
+ * @deprecated Since 1.3.1
40
+ */
38
41
  if (!oClassInfo || typeof oClassInfo.metadata !== "object") {
39
42
  oClassInfo = {
40
43
  metadata: oClassInfo || {},
@@ -43,6 +46,7 @@ var Metadata = function (sClassName, oClassInfo) {
43
46
  };
44
47
  oClassInfo.metadata.__version = 1.0;
45
48
  }
49
+ oClassInfo.metadata ??= {};
46
50
  oClassInfo.metadata.__version = oClassInfo.metadata.__version || 2.0;
47
51
  if (!isFunction(oClassInfo.constructor)) {
48
52
  throw Error("constructor for class " + sClassName + " must have been declared before creating metadata for it");
@@ -72,19 +76,26 @@ Metadata.prototype.applySettings = function (oClassInfo) {
72
76
  oStaticInfo = oClassInfo.metadata,
73
77
  oPrototype;
74
78
  if (oStaticInfo.baseType) {
75
- var oParentClass;
76
- if (isFunction(oStaticInfo.baseType)) {
79
+ var oParentClass,
80
+ bValidBaseType = isFunction(oStaticInfo.baseType);
81
+ if (bValidBaseType) {
77
82
  oParentClass = oStaticInfo.baseType;
78
83
  if (!isFunction(oParentClass.getMetadata)) {
79
84
  throw new TypeError("baseType must be a UI5 class with a static getMetadata function");
80
85
  }
81
- } else {
86
+ }
87
+
88
+ /**
89
+ * @deprecated
90
+ */
91
+ if (!bValidBaseType) {
82
92
  // lookup base class by its name - same reasoning as above
83
93
  oParentClass = ObjectPath.get(oStaticInfo.baseType); // legacy-relevant, code path not used by extend call
84
94
  if (!isFunction(oParentClass)) {
85
95
  Log.fatal("base class '" + oStaticInfo.baseType + "' does not exist");
86
96
  }
87
97
  }
98
+
88
99
  // link metadata with base metadata
89
100
  if (oParentClass.getMetadata) {
90
101
  this._oParent = oParentClass.getMetadata();
@@ -144,7 +155,6 @@ Metadata.prototype.afterApplySettings = function () {
144
155
  /**
145
156
  * Stereotype of the described class.
146
157
  *
147
- * @experimental might be enhanced to a set of stereotypes
148
158
  * @private
149
159
  * @ui5-restricted
150
160
  */
@@ -402,6 +412,23 @@ Metadata.prototype.addPublicMethods = function (sMethod /* ... */) {
402
412
  this._bInterfacesUnique = false;
403
413
  };
404
414
 
415
+ /**
416
+ * Traverse up through the parent chain to find the static property on the class.
417
+ *
418
+ * @param {string} sStaticName The name of the static property
419
+ * @returns {any} If found, returns the static property
420
+ * @private
421
+ * @ui5-restricted sap.ui.core
422
+ */
423
+ Metadata.prototype.getStaticProperty = function (sStaticName) {
424
+ let oMetadata = this;
425
+ while (oMetadata && !(sStaticName in oMetadata.getClass())) {
426
+ oMetadata = oMetadata.getParent();
427
+ }
428
+ const oClass = oMetadata?.getClass();
429
+ return oClass?.[sStaticName];
430
+ };
431
+
405
432
  /**
406
433
  * @since 1.3.1
407
434
  * @private
@@ -417,9 +444,14 @@ Metadata.createClass = function (fnBaseClass, sClassName, oClassInfo, FNMetaImpl
417
444
  assert(typeof sClassName === "string" && !!sClassName);
418
445
  assert(!oClassInfo || typeof oClassInfo === "object");
419
446
  assert(!FNMetaImpl || isFunction(FNMetaImpl));
420
-
421
- // allow metadata class to preprocess
422
447
  FNMetaImpl = FNMetaImpl || Metadata;
448
+
449
+ /**
450
+ * allow metadata class to preprocess
451
+ * Component- and UIComponentMetadata uses this to derive if "component.json"
452
+ * must be loaded synchronously.
453
+ * @deprecated
454
+ */
423
455
  if (isFunction(FNMetaImpl.preprocessClassInfo)) {
424
456
  oClassInfo = FNMetaImpl.preprocessClassInfo(oClassInfo);
425
457
  }
@@ -463,7 +495,10 @@ Metadata.createClass = function (fnBaseClass, sClassName, oClassInfo, FNMetaImpl
463
495
  }
464
496
  oClassInfo.constructor = fnClass;
465
497
 
466
- // make the class visible as JS Object
498
+ /**
499
+ * make the class visible as JS Object
500
+ * @deprecated
501
+ */
467
502
  ObjectPath.set(sClassName, fnClass);
468
503
 
469
504
  // add metadata
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  /**
@@ -21,7 +21,7 @@ import Log from "../../base/Log.js";
21
21
  * @class Base class for all SAPUI5 Objects.
22
22
  * @abstract
23
23
  * @author Malte Wedel
24
- * @version 1.120.17
24
+ * @version 1.146.0
25
25
  * @public
26
26
  * @alias sap.ui.base.Object
27
27
  * @throws {Error} When an instance of the class or its subclasses is created without the <code>new</code> operator.
@@ -0,0 +1,6 @@
1
+ export default {
2
+ get: function () {
3
+ return undefined;
4
+ },
5
+ set: function () {}
6
+ };
@@ -0,0 +1,98 @@
1
+ function SyncPromise(fn) {
2
+ this._value = undefined;
3
+ this._error = undefined;
4
+ this._fulfilled = false;
5
+ this._rejected = false;
6
+ var self = this;
7
+ try {
8
+ fn(function (v) {
9
+ if (v && typeof v.then === "function") {
10
+ // If resolving with a thenable, remain pending
11
+ return;
12
+ }
13
+ self._value = v;
14
+ self._fulfilled = true;
15
+ }, function (e) {
16
+ self._error = e;
17
+ self._rejected = true;
18
+ });
19
+ } catch (e) {
20
+ self._error = e;
21
+ self._rejected = true;
22
+ }
23
+ }
24
+ SyncPromise.resolve = function (v) {
25
+ if (v instanceof SyncPromise) {
26
+ return v;
27
+ }
28
+ return new SyncPromise(function (resolve) {
29
+ resolve(v);
30
+ });
31
+ };
32
+ SyncPromise.reject = function (e) {
33
+ return new SyncPromise(function (resolve, reject) {
34
+ reject(e);
35
+ });
36
+ };
37
+ SyncPromise.all = function (arr) {
38
+ var results = [];
39
+ for (var i = 0; i < arr.length; i++) {
40
+ if (arr[i] instanceof SyncPromise) {
41
+ if (arr[i]._rejected) {
42
+ return SyncPromise.reject(arr[i]._error);
43
+ }
44
+ results.push(arr[i]._value);
45
+ } else {
46
+ results.push(arr[i]);
47
+ }
48
+ }
49
+ return SyncPromise.resolve(results);
50
+ };
51
+ SyncPromise.prototype.then = function (onFulfilled, onRejected) {
52
+ if (this._fulfilled) {
53
+ if (typeof onFulfilled === "function") {
54
+ try {
55
+ return SyncPromise.resolve(onFulfilled(this._value));
56
+ } catch (e) {
57
+ return SyncPromise.reject(e);
58
+ }
59
+ }
60
+ return this;
61
+ }
62
+ if (this._rejected) {
63
+ if (typeof onRejected === "function") {
64
+ try {
65
+ return SyncPromise.resolve(onRejected(this._error));
66
+ } catch (e) {
67
+ return SyncPromise.reject(e);
68
+ }
69
+ }
70
+ return this;
71
+ }
72
+ return this;
73
+ };
74
+ SyncPromise.prototype.catch = function (onRejected) {
75
+ return this.then(undefined, onRejected);
76
+ };
77
+ SyncPromise.prototype.finally = function (onFinally) {
78
+ if (typeof onFinally === "function") {
79
+ onFinally();
80
+ }
81
+ return this;
82
+ };
83
+ SyncPromise.prototype.unwrap = function () {
84
+ if (this._rejected) {
85
+ throw this._error;
86
+ }
87
+ return this._value;
88
+ };
89
+ SyncPromise.prototype.isFulfilled = function () {
90
+ return this._fulfilled;
91
+ };
92
+ SyncPromise.prototype.isPending = function () {
93
+ return !this._fulfilled && !this._rejected;
94
+ };
95
+ SyncPromise.prototype.isRejected = function () {
96
+ return this._rejected;
97
+ };
98
+ export default SyncPromise;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Enumerable list with available animation modes.
3
+ *
4
+ * This enumerable is used to validate the animation mode. Animation modes allow to specify
5
+ * different animation scenarios or levels. The implementation of the Control (JavaScript or CSS)
6
+ * has to be done differently for each animation mode.
7
+ *
8
+ * @enum {string}
9
+ * @alias module:sap/ui/core/AnimationMode
10
+ * @public
11
+ * @since 1.120
12
+ */ /*!
13
+ * OpenUI5
14
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
15
+ * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
16
+ */
17
+
18
+ // Provides type module:sap/ui/core/AnimationMode.
19
+
20
+ var AnimationMode = {
21
+ /**
22
+ * <code>full</code> represents a mode with unrestricted animation capabilities.
23
+ * @public
24
+ */
25
+ full: "full",
26
+ /**
27
+ * <code>basic</code> can be used for a reduced, more light-weight set of animations.
28
+ * @public
29
+ */
30
+ basic: "basic",
31
+ /**
32
+ * <code>minimal</code> includes animations of fundamental functionality.
33
+ * @public
34
+ */
35
+ minimal: "minimal",
36
+ /**
37
+ * <code>none</code> deactivates the animation completely.
38
+ * @public
39
+ */
40
+ none: "none"
41
+ };
42
+ export default AnimationMode;
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  // Provides type sap.ui.core.CalendarType.
@@ -12,7 +12,7 @@ import CalendarType from "../../base/i18n/date/CalendarType.js";
12
12
  * @enum {string}
13
13
  * @name sap.ui.core.CalendarType
14
14
  * @public
15
- * @deprecated As of Version 1.120. Please use {@link module:sap/base/18n/date/CalendarType} instead.
15
+ * @deprecated As of Version 1.120. Please use {@link module:sap/base/i18n/date/CalendarType} instead.
16
16
  * @borrows module:sap/base/i18n/date/CalendarType.Gregorian as Gregorian
17
17
  * @borrows module:sap/base/i18n/date/CalendarType.Islamic as Islamic
18
18
  * @borrows module:sap/base/i18n/date/CalendarType.Japanese as Japanese
@@ -0,0 +1,11 @@
1
+ export default {
2
+ isAccessibilityEnabled: function () {
3
+ return true;
4
+ },
5
+ getAnimationMode: function () {
6
+ return "full";
7
+ },
8
+ setAnimationMode: function () {},
9
+ attachChange: function () {},
10
+ detachChange: function () {}
11
+ };
@@ -0,0 +1,41 @@
1
+ var libs = {};
2
+ var Lib = {
3
+ init: function (cfg) {
4
+ var name = cfg && cfg.name;
5
+ if (name && !libs[name]) {
6
+ libs[name] = {
7
+ name: name,
8
+ getName: function () {
9
+ return name;
10
+ },
11
+ isSettingsEnhanced: function () {
12
+ return false;
13
+ },
14
+ getResourceBundle: function () {
15
+ return {
16
+ getText: function () {
17
+ return "";
18
+ }
19
+ };
20
+ },
21
+ _loadResourceBundle: function () {
22
+ return Promise.resolve();
23
+ }
24
+ };
25
+ }
26
+ return libs[name];
27
+ },
28
+ get: function (name) {
29
+ return libs[name];
30
+ },
31
+ all: function () {
32
+ return Object.assign({}, libs);
33
+ },
34
+ load: function () {
35
+ return Promise.resolve();
36
+ },
37
+ _get: function (name) {
38
+ return libs[name];
39
+ }
40
+ };
41
+ export default Lib;
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2026 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  //Provides the locale object sap.ui.core.Locale
@@ -19,7 +19,7 @@ var mCache = Object.create(null);
19
19
  *
20
20
  * @extends sap.ui.base.Object
21
21
  * @author SAP SE
22
- * @version 1.120.17
22
+ * @version 1.146.0
23
23
  * @public
24
24
  * @alias sap.ui.core.Locale
25
25
  */
@@ -76,7 +76,7 @@ var Locale = BaseObject.extend("sap.ui.core.Locale", /** @lends sap.ui.core.Loca
76
76
  /**
77
77
  * Get the locale variants as a single string or <code>null</code>.
78
78
  *
79
- * Multiple variants are separated by a dash '-'.
79
+ * Multiple variants are separated by a hyphen '-'.
80
80
  *
81
81
  * @returns {string|null} the variant or <code>null</code>
82
82
  * @public
@@ -87,7 +87,7 @@ var Locale = BaseObject.extend("sap.ui.core.Locale", /** @lends sap.ui.core.Loca
87
87
  /**
88
88
  * Get the locale variants as an array of individual variants.
89
89
  *
90
- * The separating dashes are not part of the result.
90
+ * The separating hyphens are not part of the result.
91
91
  * If there is no variant section in the locale tag, an empty array is returned.
92
92
  *
93
93
  * @returns {string[]} the individual variant sections
@@ -100,8 +100,8 @@ var Locale = BaseObject.extend("sap.ui.core.Locale", /** @lends sap.ui.core.Loca
100
100
  * Get the locale extension as a single string or <code>null</code>.
101
101
  *
102
102
  * The extension always consists of a singleton character (not 'x'),
103
- * a dash '-' and one or more extension token, each separated
104
- * again with a dash.
103
+ * a hyphen '-' and one or more extension token, each separated
104
+ * again with a hyphen.
105
105
  *
106
106
  * Use {@link #getExtensions} to get the individual extension tokens as an array.
107
107
  *
@@ -114,7 +114,7 @@ var Locale = BaseObject.extend("sap.ui.core.Locale", /** @lends sap.ui.core.Loca
114
114
  /**
115
115
  * Get the locale extensions as an array of tokens.
116
116
  *
117
- * The leading singleton and the separating dashes are not part of the result.
117
+ * The leading singleton and the separating hyphens are not part of the result.
118
118
  * If there is no extensions section in the locale tag, an empty array is returned.
119
119
  *
120
120
  * @returns {string[]} the individual extension sections
@@ -135,7 +135,7 @@ var Locale = BaseObject.extend("sap.ui.core.Locale", /** @lends sap.ui.core.Loca
135
135
  /**
136
136
  * Get the locale private use section as an array of tokens.
137
137
  *
138
- * The leading singleton and the separating dashes are not part of the result.
138
+ * The leading singleton and the separating hyphens are not part of the result.
139
139
  * If there is no private use section in the locale tag, an empty array is returned.
140
140
  *
141
141
  * @returns {string[]} the tokens of the private use section
@@ -177,7 +177,7 @@ var Locale = BaseObject.extend("sap.ui.core.Locale", /** @lends sap.ui.core.Loca
177
177
  * @returns {string} a language code that should
178
178
  * @public
179
179
  * @since 1.17.0
180
- * @deprecated As of 1.44, use {@link sap.ui.core.Configuration#getSAPLogonLanguage} instead
180
+ * @deprecated As of 1.44, use {@link module:sap/base/i18n/Localization.getSAPLogonLanguage} instead
181
181
  * as that class allows to configure an SAP Logon language.
182
182
  */
183
183
  getSAPLogonLanguage: function () {