@itwin/core-i18n 4.0.0-dev.4 → 4.0.0-dev.41
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/CHANGELOG.md +11 -1
- package/lib/cjs/ITwinLocalization.js +9 -11
- package/lib/cjs/ITwinLocalization.js.map +1 -1
- package/lib/cjs/test/ITwinLocalization.test.js +6 -11
- package/lib/cjs/test/ITwinLocalization.test.js.map +1 -1
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js +720 -1535
- package/lib/cjs/test/webpack/bundled-tests.instrumented.js.map +1 -1
- package/lib/cjs/test/webpack/bundled-tests.js +137 -136
- package/lib/cjs/test/webpack/bundled-tests.js.map +1 -1
- package/lib/esm/ITwinLocalization.js +9 -11
- package/lib/esm/ITwinLocalization.js.map +1 -1
- package/lib/esm/test/ITwinLocalization.test.js +6 -11
- package/lib/esm/test/ITwinLocalization.test.js.map +1 -1
- package/package.json +8 -8
|
@@ -10823,8 +10823,8 @@ module.exports = getFuncName;
|
|
|
10823
10823
|
"use strict";
|
|
10824
10824
|
|
|
10825
10825
|
|
|
10826
|
-
var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
10827
|
-
var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
10826
|
+
var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/classCallCheck.js");
|
|
10827
|
+
var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/createClass.js");
|
|
10828
10828
|
|
|
10829
10829
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10830
10830
|
|
|
@@ -11256,15 +11256,15 @@ module.exports = Browser;
|
|
|
11256
11256
|
"use strict";
|
|
11257
11257
|
|
|
11258
11258
|
|
|
11259
|
-
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
11260
|
-
var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
11261
|
-
var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
11262
|
-
var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
11263
|
-
var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
11264
|
-
var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
11265
|
-
var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
11266
|
-
var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
11267
|
-
var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
11259
|
+
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/typeof.js");
|
|
11260
|
+
var _classCallCheck = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/classCallCheck.js");
|
|
11261
|
+
var _createClass = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/createClass.js");
|
|
11262
|
+
var _assertThisInitialized = __webpack_require__(/*! @babel/runtime/helpers/assertThisInitialized */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
|
|
11263
|
+
var _inherits = __webpack_require__(/*! @babel/runtime/helpers/inherits */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/inherits.js");
|
|
11264
|
+
var _possibleConstructorReturn = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js");
|
|
11265
|
+
var _getPrototypeOf = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/getPrototypeOf.js");
|
|
11266
|
+
var _defineProperty = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/defineProperty.js");
|
|
11267
|
+
var _toArray = __webpack_require__(/*! @babel/runtime/helpers/toArray */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toArray.js");
|
|
11268
11268
|
|
|
11269
11269
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11270
11270
|
|
|
@@ -15782,7 +15782,7 @@ function assert(condition, message) {
|
|
|
15782
15782
|
condition = condition();
|
|
15783
15783
|
if (condition)
|
|
15784
15784
|
return;
|
|
15785
|
-
message = message
|
|
15785
|
+
message = message ?? "Programmer Error";
|
|
15786
15786
|
if ("string" !== typeof message)
|
|
15787
15787
|
message = message();
|
|
15788
15788
|
throw new Error(`Assert: ${message}`);
|
|
@@ -16131,6 +16131,8 @@ var DbResult;
|
|
|
16131
16131
|
DbResult[DbResult["BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes"] = 352321546] = "BE_SQLITE_ERROR_CouldNotAcquireLocksOrCodes";
|
|
16132
16132
|
/** Recommended that the schemas found in the database be upgraded */
|
|
16133
16133
|
DbResult[DbResult["BE_SQLITE_ERROR_SchemaUpgradeRecommended"] = 369098762] = "BE_SQLITE_ERROR_SchemaUpgradeRecommended";
|
|
16134
|
+
/** schema update require data transform */
|
|
16135
|
+
DbResult[DbResult["BE_SQLITE_ERROR_DataTransformRequired"] = 385875978] = "BE_SQLITE_ERROR_DataTransformRequired";
|
|
16134
16136
|
DbResult[DbResult["BE_SQLITE_LOCKED_SHAREDCACHE"] = 262] = "BE_SQLITE_LOCKED_SHAREDCACHE";
|
|
16135
16137
|
DbResult[DbResult["BE_SQLITE_BUSY_RECOVERY"] = 261] = "BE_SQLITE_BUSY_RECOVERY";
|
|
16136
16138
|
DbResult[DbResult["BE_SQLITE_CANTOPEN_NOTEMPDIR"] = 270] = "BE_SQLITE_CANTOPEN_NOTEMPDIR";
|
|
@@ -16651,6 +16653,7 @@ class BentleyError extends Error {
|
|
|
16651
16653
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_IOERR_SHMMAP: return "BE_SQLITE_IOERR_SHMMAP";
|
|
16652
16654
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_IOERR_SEEK: return "BE_SQLITE_IOERR_SEEK";
|
|
16653
16655
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_IOERR_DELETE_NOENT: return "BE_SQLITE_IOERR_DELETE_NOENT";
|
|
16656
|
+
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ERROR_DataTransformRequired: return "Schema update require to transform data";
|
|
16654
16657
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ERROR_FileExists: return "File Exists";
|
|
16655
16658
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ERROR_AlreadyOpen: return "Already Open";
|
|
16656
16659
|
case _BeSQLite__WEBPACK_IMPORTED_MODULE_0__.DbResult.BE_SQLITE_ERROR_NoPropertyTable: return "No Property Table";
|
|
@@ -17504,7 +17507,7 @@ var CompressedId64Set;
|
|
|
17504
17507
|
* @see [[CompressedId64Set.iterable]] to efficiently iterate the Ids.
|
|
17505
17508
|
*/
|
|
17506
17509
|
function decompressSet(compressedIds, out) {
|
|
17507
|
-
const set = out
|
|
17510
|
+
const set = out ?? new Set();
|
|
17508
17511
|
for (const id of iterable(compressedIds))
|
|
17509
17512
|
set.add(id);
|
|
17510
17513
|
return set;
|
|
@@ -17521,7 +17524,7 @@ var CompressedId64Set;
|
|
|
17521
17524
|
* @see [[CompressedId64Set.iterable]] to efficiently iterate the Ids.
|
|
17522
17525
|
*/
|
|
17523
17526
|
function decompressArray(compressedIds, out) {
|
|
17524
|
-
const arr = out
|
|
17527
|
+
const arr = out ?? [];
|
|
17525
17528
|
for (const id of iterable(compressedIds))
|
|
17526
17529
|
arr.push(id);
|
|
17527
17530
|
return arr;
|
|
@@ -17553,7 +17556,7 @@ class MutableCompressedId64Set {
|
|
|
17553
17556
|
constructor(ids) {
|
|
17554
17557
|
this._inserted = new OrderedId64Array();
|
|
17555
17558
|
this._deleted = new OrderedId64Array();
|
|
17556
|
-
this._ids = ids
|
|
17559
|
+
this._ids = ids ?? "";
|
|
17557
17560
|
}
|
|
17558
17561
|
/** Obtain the compact string representation of the contents of this set. If any insertions or removals are pending, they will be applied and the string recomputed. */
|
|
17559
17562
|
get ids() {
|
|
@@ -17587,7 +17590,7 @@ class MutableCompressedId64Set {
|
|
|
17587
17590
|
/** Remove all Ids from the set, then add the specified Ids. */
|
|
17588
17591
|
reset(ids) {
|
|
17589
17592
|
this.clear();
|
|
17590
|
-
this._ids = ids
|
|
17593
|
+
this._ids = ids ?? "";
|
|
17591
17594
|
}
|
|
17592
17595
|
/** Obtain an iterator over the Ids in this set. The Ids are returned in ascending order based on their unsigned 64-bit integer values. */
|
|
17593
17596
|
[Symbol.iterator]() {
|
|
@@ -19361,17 +19364,15 @@ class Logger {
|
|
|
19361
19364
|
}
|
|
19362
19365
|
/** Set the least severe level at which messages should be displayed by default. Call setLevel to override this default setting for specific categories. */
|
|
19363
19366
|
static setLevelDefault(minLevel) {
|
|
19364
|
-
var _a;
|
|
19365
19367
|
this._minLevel = minLevel;
|
|
19366
|
-
|
|
19368
|
+
this.logLevelChangedFn?.();
|
|
19367
19369
|
}
|
|
19368
19370
|
/** Set the minimum logging level for the specified category. The minimum level is least severe level at which messages in the
|
|
19369
19371
|
* specified category should be displayed.
|
|
19370
19372
|
*/
|
|
19371
19373
|
static setLevel(category, minLevel) {
|
|
19372
|
-
var _a;
|
|
19373
19374
|
Logger._categoryFilter.set(category, minLevel);
|
|
19374
|
-
|
|
19375
|
+
this.logLevelChangedFn?.();
|
|
19375
19376
|
}
|
|
19376
19377
|
/** Interpret a string as the name of a LogLevel */
|
|
19377
19378
|
static parseLogLevel(str) {
|
|
@@ -19661,7 +19662,7 @@ class PromiseWithAbandon {
|
|
|
19661
19662
|
/** Create a Promise that is chained to the underlying Promise, but is connected to the abandon method. */
|
|
19662
19663
|
async init(msg) {
|
|
19663
19664
|
return new Promise((resolve, reject) => {
|
|
19664
|
-
this.abandon = (message) => reject(new AbandonedError(message
|
|
19665
|
+
this.abandon = (message) => reject(new AbandonedError(message ?? msg));
|
|
19665
19666
|
this._resolve = resolve;
|
|
19666
19667
|
});
|
|
19667
19668
|
}
|
|
@@ -20463,6 +20464,12 @@ class ReadonlySortedArray {
|
|
|
20463
20464
|
for (let i = 0; i < this.length; i++)
|
|
20464
20465
|
func(this._array[i]);
|
|
20465
20466
|
}
|
|
20467
|
+
/** The equivalent of [Array.slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice). */
|
|
20468
|
+
slice(start, end) {
|
|
20469
|
+
const slice = new ReadonlySortedArray(this._compare, this._duplicatePolicy, this._clone);
|
|
20470
|
+
slice._array = this._array.slice(start, end);
|
|
20471
|
+
return slice;
|
|
20472
|
+
}
|
|
20466
20473
|
/**
|
|
20467
20474
|
* Computes the position at which the specified value should be inserted to maintain sorted order.
|
|
20468
20475
|
* @param value The value whose position is to be computed.
|
|
@@ -20593,6 +20600,12 @@ class SortedArray extends ReadonlySortedArray {
|
|
|
20593
20600
|
* @returns the index of the deleted value, or -1 if no such element exists.
|
|
20594
20601
|
*/
|
|
20595
20602
|
remove(value) { return this._remove(value); }
|
|
20603
|
+
/** The equivalent of [Array.slice](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice). */
|
|
20604
|
+
slice(start, end) {
|
|
20605
|
+
const slice = new SortedArray(this._compare, this._duplicatePolicy, this._clone);
|
|
20606
|
+
slice._array = this._array.slice(start, end);
|
|
20607
|
+
return slice;
|
|
20608
|
+
}
|
|
20596
20609
|
}
|
|
20597
20610
|
|
|
20598
20611
|
|
|
@@ -21486,17 +21499,16 @@ class Tracing {
|
|
|
21486
21499
|
? Tracing._openTelemetry.context.active()
|
|
21487
21500
|
: Tracing._openTelemetry.trace.setSpanContext(Tracing._openTelemetry.context.active(), parentContext);
|
|
21488
21501
|
return Tracing._openTelemetry.context.with(Tracing._openTelemetry.trace.setSpan(parent, Tracing._tracer.startSpan(name, options, Tracing._openTelemetry.context.active())), async () => {
|
|
21489
|
-
var _a, _b, _c, _d;
|
|
21490
21502
|
try {
|
|
21491
21503
|
return await fn();
|
|
21492
21504
|
}
|
|
21493
21505
|
catch (err) {
|
|
21494
21506
|
if (err instanceof Error) // ignore non-Error throws, such as RpcControlResponse
|
|
21495
|
-
|
|
21507
|
+
Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.setAttribute("error", true);
|
|
21496
21508
|
throw err;
|
|
21497
21509
|
}
|
|
21498
21510
|
finally {
|
|
21499
|
-
|
|
21511
|
+
Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.end();
|
|
21500
21512
|
}
|
|
21501
21513
|
});
|
|
21502
21514
|
}
|
|
@@ -21515,9 +21527,8 @@ class Tracing {
|
|
|
21515
21527
|
}
|
|
21516
21528
|
static withOpenTelemetry(base, isError = false) {
|
|
21517
21529
|
return (category, message, metaData) => {
|
|
21518
|
-
var _a, _b;
|
|
21519
21530
|
try {
|
|
21520
|
-
|
|
21531
|
+
Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.addEvent(message, { ...flattenObject(_Logger__WEBPACK_IMPORTED_MODULE_0__.Logger.getMetaData(metaData)), error: isError });
|
|
21521
21532
|
}
|
|
21522
21533
|
catch (_e) { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work
|
|
21523
21534
|
base(category, message, metaData);
|
|
@@ -21527,8 +21538,7 @@ class Tracing {
|
|
|
21527
21538
|
* @param attributes The attributes to set
|
|
21528
21539
|
*/
|
|
21529
21540
|
static setAttributes(attributes) {
|
|
21530
|
-
|
|
21531
|
-
(_b = (_a = Tracing._openTelemetry) === null || _a === void 0 ? void 0 : _a.trace.getSpan(Tracing._openTelemetry.context.active())) === null || _b === void 0 ? void 0 : _b.setAttributes(attributes);
|
|
21541
|
+
Tracing._openTelemetry?.trace.getSpan(Tracing._openTelemetry.context.active())?.setAttributes(attributes);
|
|
21532
21542
|
}
|
|
21533
21543
|
}
|
|
21534
21544
|
|
|
@@ -21689,10 +21699,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21689
21699
|
class TypedArrayBuilder {
|
|
21690
21700
|
/** Constructs a new builder from the specified options, with a [[length]] of zero. */
|
|
21691
21701
|
constructor(constructor, options) {
|
|
21692
|
-
var _a, _b;
|
|
21693
21702
|
this._constructor = constructor;
|
|
21694
|
-
this._data = new constructor(
|
|
21695
|
-
this.growthFactor = Math.max(1.0,
|
|
21703
|
+
this._data = new constructor(options?.initialCapacity ?? 0);
|
|
21704
|
+
this.growthFactor = Math.max(1.0, options?.growthFactor ?? 1.5);
|
|
21696
21705
|
this._length = 0;
|
|
21697
21706
|
}
|
|
21698
21707
|
/** The number of elements currently in the array. */
|
|
@@ -21820,8 +21829,7 @@ class Uint32ArrayBuilder extends TypedArrayBuilder {
|
|
|
21820
21829
|
*/
|
|
21821
21830
|
class UintArrayBuilder extends TypedArrayBuilder {
|
|
21822
21831
|
constructor(options) {
|
|
21823
|
-
|
|
21824
|
-
super((_a = options === null || options === void 0 ? void 0 : options.initialType) !== null && _a !== void 0 ? _a : Uint8Array, options);
|
|
21832
|
+
super(options?.initialType ?? Uint8Array, options);
|
|
21825
21833
|
}
|
|
21826
21834
|
/** The number of bytes (1, 2, or 4) currently allocated per element by the underlying array.
|
|
21827
21835
|
* This may change as larger values are added to the array.
|
|
@@ -22345,19 +22353,18 @@ const DEFAULT_MAX_RETRIES = 1; // a low number prevents wasted time and potentia
|
|
|
22345
22353
|
*/
|
|
22346
22354
|
class ITwinLocalization {
|
|
22347
22355
|
constructor(options) {
|
|
22348
|
-
var _a, _b, _c;
|
|
22349
22356
|
this._namespaces = new Map();
|
|
22350
22357
|
this.i18next = i18next_1.default.createInstance();
|
|
22351
22358
|
this._backendOptions = {
|
|
22352
|
-
loadPath:
|
|
22359
|
+
loadPath: options?.urlTemplate ?? "locales/{{lng}}/{{ns}}.json",
|
|
22353
22360
|
crossDomain: true,
|
|
22354
|
-
...options
|
|
22361
|
+
...options?.backendHttpOptions,
|
|
22355
22362
|
};
|
|
22356
22363
|
this._detectionOptions = {
|
|
22357
22364
|
order: ["querystring", "navigator", "htmlTag"],
|
|
22358
22365
|
lookupQuerystring: "lng",
|
|
22359
22366
|
caches: [],
|
|
22360
|
-
...options
|
|
22367
|
+
...options?.detectorOptions,
|
|
22361
22368
|
};
|
|
22362
22369
|
this._initOptions = {
|
|
22363
22370
|
interpolation: { escapeValue: true },
|
|
@@ -22365,19 +22372,18 @@ class ITwinLocalization {
|
|
|
22365
22372
|
maxRetries: DEFAULT_MAX_RETRIES,
|
|
22366
22373
|
backend: this._backendOptions,
|
|
22367
22374
|
detection: this._detectionOptions,
|
|
22368
|
-
...options
|
|
22375
|
+
...options?.initOptions,
|
|
22369
22376
|
};
|
|
22370
22377
|
this.i18next
|
|
22371
|
-
.use(
|
|
22372
|
-
.use(
|
|
22378
|
+
.use(options?.detectorPlugin ?? i18next_browser_languagedetector_1.default)
|
|
22379
|
+
.use(options?.backendPlugin ?? i18next_http_backend_1.default)
|
|
22373
22380
|
.use(TranslationLogger);
|
|
22374
22381
|
}
|
|
22375
22382
|
async initialize(namespaces) {
|
|
22376
|
-
var _a;
|
|
22377
22383
|
// Also consider namespaces passed into constructor
|
|
22378
22384
|
const initNamespaces = [this._initOptions.ns || []].flat();
|
|
22379
22385
|
const combinedNamespaces = new Set([...namespaces, ...initNamespaces]); // without duplicates
|
|
22380
|
-
const defaultNamespace =
|
|
22386
|
+
const defaultNamespace = this._initOptions.defaultNS ?? namespaces[0];
|
|
22381
22387
|
if (defaultNamespace)
|
|
22382
22388
|
combinedNamespaces.add(defaultNamespace); // Make sure default namespace is in namespaces list
|
|
22383
22389
|
const initOptions = {
|
|
@@ -22426,7 +22432,7 @@ class ITwinLocalization {
|
|
|
22426
22432
|
* @public
|
|
22427
22433
|
*/
|
|
22428
22434
|
getLocalizedString(key, options) {
|
|
22429
|
-
if (
|
|
22435
|
+
if (options?.returnDetails || options?.returnObjects) {
|
|
22430
22436
|
throw new Error("Translation key must map to a string, but the given options will result in an object");
|
|
22431
22437
|
}
|
|
22432
22438
|
const value = this.i18next.t(key, options);
|
|
@@ -22463,7 +22469,7 @@ class ITwinLocalization {
|
|
|
22463
22469
|
* @internal
|
|
22464
22470
|
*/
|
|
22465
22471
|
getEnglishString(namespace, key, options) {
|
|
22466
|
-
if (
|
|
22472
|
+
if (options?.returnDetails || options?.returnObjects) {
|
|
22467
22473
|
throw new Error("Translation key must map to a string, but the given options will result in an object");
|
|
22468
22474
|
}
|
|
22469
22475
|
options = {
|
|
@@ -22566,10 +22572,10 @@ TranslationLogger.type = "logger";
|
|
|
22566
22572
|
|
|
22567
22573
|
/***/ }),
|
|
22568
22574
|
|
|
22569
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22570
|
-
|
|
22571
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22572
|
-
|
|
22575
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
|
|
22576
|
+
/*!**************************************************************************************************************************!*\
|
|
22577
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
|
|
22578
|
+
\**************************************************************************************************************************/
|
|
22573
22579
|
/***/ ((module) => {
|
|
22574
22580
|
|
|
22575
22581
|
function _arrayLikeToArray(arr, len) {
|
|
@@ -22581,10 +22587,10 @@ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exp
|
|
|
22581
22587
|
|
|
22582
22588
|
/***/ }),
|
|
22583
22589
|
|
|
22584
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22585
|
-
|
|
22586
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22587
|
-
|
|
22590
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/arrayWithHoles.js":
|
|
22591
|
+
/*!************************************************************************************************************************!*\
|
|
22592
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
|
|
22593
|
+
\************************************************************************************************************************/
|
|
22588
22594
|
/***/ ((module) => {
|
|
22589
22595
|
|
|
22590
22596
|
function _arrayWithHoles(arr) {
|
|
@@ -22594,10 +22600,10 @@ module.exports = _arrayWithHoles, module.exports.__esModule = true, module.expor
|
|
|
22594
22600
|
|
|
22595
22601
|
/***/ }),
|
|
22596
22602
|
|
|
22597
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22598
|
-
|
|
22599
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22600
|
-
|
|
22603
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js":
|
|
22604
|
+
/*!*******************************************************************************************************************************!*\
|
|
22605
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
|
|
22606
|
+
\*******************************************************************************************************************************/
|
|
22601
22607
|
/***/ ((module) => {
|
|
22602
22608
|
|
|
22603
22609
|
function _assertThisInitialized(self) {
|
|
@@ -22610,10 +22616,10 @@ module.exports = _assertThisInitialized, module.exports.__esModule = true, modul
|
|
|
22610
22616
|
|
|
22611
22617
|
/***/ }),
|
|
22612
22618
|
|
|
22613
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22614
|
-
|
|
22615
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22616
|
-
|
|
22619
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/classCallCheck.js":
|
|
22620
|
+
/*!************************************************************************************************************************!*\
|
|
22621
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/classCallCheck.js ***!
|
|
22622
|
+
\************************************************************************************************************************/
|
|
22617
22623
|
/***/ ((module) => {
|
|
22618
22624
|
|
|
22619
22625
|
function _classCallCheck(instance, Constructor) {
|
|
@@ -22625,13 +22631,13 @@ module.exports = _classCallCheck, module.exports.__esModule = true, module.expor
|
|
|
22625
22631
|
|
|
22626
22632
|
/***/ }),
|
|
22627
22633
|
|
|
22628
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22629
|
-
|
|
22630
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22631
|
-
|
|
22634
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/createClass.js":
|
|
22635
|
+
/*!*********************************************************************************************************************!*\
|
|
22636
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/createClass.js ***!
|
|
22637
|
+
\*********************************************************************************************************************/
|
|
22632
22638
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
22633
22639
|
|
|
22634
|
-
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22640
|
+
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toPropertyKey.js");
|
|
22635
22641
|
function _defineProperties(target, props) {
|
|
22636
22642
|
for (var i = 0; i < props.length; i++) {
|
|
22637
22643
|
var descriptor = props[i];
|
|
@@ -22653,13 +22659,13 @@ module.exports = _createClass, module.exports.__esModule = true, module.exports[
|
|
|
22653
22659
|
|
|
22654
22660
|
/***/ }),
|
|
22655
22661
|
|
|
22656
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22657
|
-
|
|
22658
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22659
|
-
|
|
22662
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/defineProperty.js":
|
|
22663
|
+
/*!************************************************************************************************************************!*\
|
|
22664
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/defineProperty.js ***!
|
|
22665
|
+
\************************************************************************************************************************/
|
|
22660
22666
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
22661
22667
|
|
|
22662
|
-
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22668
|
+
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toPropertyKey.js");
|
|
22663
22669
|
function _defineProperty(obj, key, value) {
|
|
22664
22670
|
key = toPropertyKey(key);
|
|
22665
22671
|
if (key in obj) {
|
|
@@ -22678,10 +22684,10 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
|
|
|
22678
22684
|
|
|
22679
22685
|
/***/ }),
|
|
22680
22686
|
|
|
22681
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22682
|
-
|
|
22683
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22684
|
-
|
|
22687
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/getPrototypeOf.js":
|
|
22688
|
+
/*!************************************************************************************************************************!*\
|
|
22689
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
|
|
22690
|
+
\************************************************************************************************************************/
|
|
22685
22691
|
/***/ ((module) => {
|
|
22686
22692
|
|
|
22687
22693
|
function _getPrototypeOf(o) {
|
|
@@ -22694,13 +22700,13 @@ module.exports = _getPrototypeOf, module.exports.__esModule = true, module.expor
|
|
|
22694
22700
|
|
|
22695
22701
|
/***/ }),
|
|
22696
22702
|
|
|
22697
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22698
|
-
|
|
22699
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22700
|
-
|
|
22703
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/inherits.js":
|
|
22704
|
+
/*!******************************************************************************************************************!*\
|
|
22705
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/inherits.js ***!
|
|
22706
|
+
\******************************************************************************************************************/
|
|
22701
22707
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
22702
22708
|
|
|
22703
|
-
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22709
|
+
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js");
|
|
22704
22710
|
function _inherits(subClass, superClass) {
|
|
22705
22711
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
22706
22712
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -22721,10 +22727,10 @@ module.exports = _inherits, module.exports.__esModule = true, module.exports["de
|
|
|
22721
22727
|
|
|
22722
22728
|
/***/ }),
|
|
22723
22729
|
|
|
22724
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22725
|
-
|
|
22726
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22727
|
-
|
|
22730
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/iterableToArray.js":
|
|
22731
|
+
/*!*************************************************************************************************************************!*\
|
|
22732
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/iterableToArray.js ***!
|
|
22733
|
+
\*************************************************************************************************************************/
|
|
22728
22734
|
/***/ ((module) => {
|
|
22729
22735
|
|
|
22730
22736
|
function _iterableToArray(iter) {
|
|
@@ -22734,10 +22740,10 @@ module.exports = _iterableToArray, module.exports.__esModule = true, module.expo
|
|
|
22734
22740
|
|
|
22735
22741
|
/***/ }),
|
|
22736
22742
|
|
|
22737
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22738
|
-
|
|
22739
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22740
|
-
|
|
22743
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/nonIterableRest.js":
|
|
22744
|
+
/*!*************************************************************************************************************************!*\
|
|
22745
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
|
|
22746
|
+
\*************************************************************************************************************************/
|
|
22741
22747
|
/***/ ((module) => {
|
|
22742
22748
|
|
|
22743
22749
|
function _nonIterableRest() {
|
|
@@ -22747,14 +22753,14 @@ module.exports = _nonIterableRest, module.exports.__esModule = true, module.expo
|
|
|
22747
22753
|
|
|
22748
22754
|
/***/ }),
|
|
22749
22755
|
|
|
22750
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22751
|
-
|
|
22752
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22753
|
-
|
|
22756
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
|
|
22757
|
+
/*!***********************************************************************************************************************************!*\
|
|
22758
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
|
|
22759
|
+
\***********************************************************************************************************************************/
|
|
22754
22760
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
22755
22761
|
|
|
22756
|
-
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22757
|
-
var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22762
|
+
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
|
|
22763
|
+
var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/assertThisInitialized.js");
|
|
22758
22764
|
function _possibleConstructorReturn(self, call) {
|
|
22759
22765
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
22760
22766
|
return call;
|
|
@@ -22767,10 +22773,10 @@ module.exports = _possibleConstructorReturn, module.exports.__esModule = true, m
|
|
|
22767
22773
|
|
|
22768
22774
|
/***/ }),
|
|
22769
22775
|
|
|
22770
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22771
|
-
|
|
22772
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22773
|
-
|
|
22776
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js":
|
|
22777
|
+
/*!************************************************************************************************************************!*\
|
|
22778
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
|
|
22779
|
+
\************************************************************************************************************************/
|
|
22774
22780
|
/***/ ((module) => {
|
|
22775
22781
|
|
|
22776
22782
|
function _setPrototypeOf(o, p) {
|
|
@@ -22784,16 +22790,16 @@ module.exports = _setPrototypeOf, module.exports.__esModule = true, module.expor
|
|
|
22784
22790
|
|
|
22785
22791
|
/***/ }),
|
|
22786
22792
|
|
|
22787
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22788
|
-
|
|
22789
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22790
|
-
|
|
22793
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toArray.js":
|
|
22794
|
+
/*!*****************************************************************************************************************!*\
|
|
22795
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toArray.js ***!
|
|
22796
|
+
\*****************************************************************************************************************/
|
|
22791
22797
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
22792
22798
|
|
|
22793
|
-
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22794
|
-
var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22795
|
-
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22796
|
-
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22799
|
+
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/arrayWithHoles.js");
|
|
22800
|
+
var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/iterableToArray.js");
|
|
22801
|
+
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
|
|
22802
|
+
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/nonIterableRest.js");
|
|
22797
22803
|
function _toArray(arr) {
|
|
22798
22804
|
return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();
|
|
22799
22805
|
}
|
|
@@ -22801,13 +22807,13 @@ module.exports = _toArray, module.exports.__esModule = true, module.exports["def
|
|
|
22801
22807
|
|
|
22802
22808
|
/***/ }),
|
|
22803
22809
|
|
|
22804
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22805
|
-
|
|
22806
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22807
|
-
|
|
22810
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toPrimitive.js":
|
|
22811
|
+
/*!*********************************************************************************************************************!*\
|
|
22812
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toPrimitive.js ***!
|
|
22813
|
+
\*********************************************************************************************************************/
|
|
22808
22814
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
22809
22815
|
|
|
22810
|
-
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22816
|
+
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
|
|
22811
22817
|
function _toPrimitive(input, hint) {
|
|
22812
22818
|
if (_typeof(input) !== "object" || input === null) return input;
|
|
22813
22819
|
var prim = input[Symbol.toPrimitive];
|
|
@@ -22822,14 +22828,14 @@ module.exports = _toPrimitive, module.exports.__esModule = true, module.exports[
|
|
|
22822
22828
|
|
|
22823
22829
|
/***/ }),
|
|
22824
22830
|
|
|
22825
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22826
|
-
|
|
22827
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22828
|
-
|
|
22831
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toPropertyKey.js":
|
|
22832
|
+
/*!***********************************************************************************************************************!*\
|
|
22833
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
|
|
22834
|
+
\***********************************************************************************************************************/
|
|
22829
22835
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
22830
22836
|
|
|
22831
|
-
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22832
|
-
var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22837
|
+
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/typeof.js")["default"]);
|
|
22838
|
+
var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/toPrimitive.js");
|
|
22833
22839
|
function _toPropertyKey(arg) {
|
|
22834
22840
|
var key = toPrimitive(arg, "string");
|
|
22835
22841
|
return _typeof(key) === "symbol" ? key : String(key);
|
|
@@ -22838,10 +22844,10 @@ module.exports = _toPropertyKey, module.exports.__esModule = true, module.export
|
|
|
22838
22844
|
|
|
22839
22845
|
/***/ }),
|
|
22840
22846
|
|
|
22841
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22842
|
-
|
|
22843
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22844
|
-
|
|
22847
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/typeof.js":
|
|
22848
|
+
/*!****************************************************************************************************************!*\
|
|
22849
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/typeof.js ***!
|
|
22850
|
+
\****************************************************************************************************************/
|
|
22845
22851
|
/***/ ((module) => {
|
|
22846
22852
|
|
|
22847
22853
|
function _typeof(obj) {
|
|
@@ -22857,13 +22863,13 @@ module.exports = _typeof, module.exports.__esModule = true, module.exports["defa
|
|
|
22857
22863
|
|
|
22858
22864
|
/***/ }),
|
|
22859
22865
|
|
|
22860
|
-
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22861
|
-
|
|
22862
|
-
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22863
|
-
|
|
22866
|
+
/***/ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
|
|
22867
|
+
/*!************************************************************************************************************************************!*\
|
|
22868
|
+
!*** ../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
|
|
22869
|
+
\************************************************************************************************************************************/
|
|
22864
22870
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
22865
22871
|
|
|
22866
|
-
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.
|
|
22872
|
+
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../../common/temp/node_modules/.pnpm/@babel+runtime@7.21.0/node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
|
|
22867
22873
|
function _unsupportedIterableToArray(o, minLen) {
|
|
22868
22874
|
if (!o) return;
|
|
22869
22875
|
if (typeof o === "string") return arrayLikeToArray(o, minLen);
|
|
@@ -23439,17 +23445,15 @@ describe("ITwinLocalization", () => {
|
|
|
23439
23445
|
chai_1.assert.equal(itwinLocalization.i18next.options.defaultNS, undefined);
|
|
23440
23446
|
});
|
|
23441
23447
|
it("initialize with single namespace", async () => {
|
|
23442
|
-
var _a;
|
|
23443
23448
|
await itwinLocalization.initialize(["Test"]);
|
|
23444
23449
|
chai_1.assert.equal(itwinLocalization.i18next.options.defaultNS, "Test");
|
|
23445
|
-
chai_1.assert.isTrue(
|
|
23450
|
+
chai_1.assert.isTrue(itwinLocalization.i18next.options.ns?.includes("Test"));
|
|
23446
23451
|
chai_1.assert.equal(itwinLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
|
|
23447
23452
|
});
|
|
23448
23453
|
it("initialize with two namespaces recognizes both namespaces", async () => {
|
|
23449
|
-
var _a, _b;
|
|
23450
23454
|
await itwinLocalization.initialize(["Default", "Test"]);
|
|
23451
|
-
chai_1.assert.isTrue(
|
|
23452
|
-
chai_1.assert.isTrue(
|
|
23455
|
+
chai_1.assert.isTrue(itwinLocalization.i18next.options.ns?.includes("Default"));
|
|
23456
|
+
chai_1.assert.isTrue(itwinLocalization.i18next.options.ns?.includes("Test"));
|
|
23453
23457
|
chai_1.assert.equal(itwinLocalization.getLocalizedString("Default:FirstTrivial"), "First level string (default)");
|
|
23454
23458
|
chai_1.assert.equal(itwinLocalization.getLocalizedString("Test:FirstTrivial"), "First level string (test)");
|
|
23455
23459
|
});
|
|
@@ -23459,10 +23463,9 @@ describe("ITwinLocalization", () => {
|
|
|
23459
23463
|
chai_1.assert.equal(itwinLocalization.getLocalizedString("FirstTrivial"), "First level string (default)");
|
|
23460
23464
|
});
|
|
23461
23465
|
it("initialize with duplicate namespace values does not break anything", async () => {
|
|
23462
|
-
var _a;
|
|
23463
23466
|
await itwinLocalization.initialize(["Default", "Default"]);
|
|
23464
23467
|
chai_1.assert.equal(itwinLocalization.i18next.options.defaultNS, "Default");
|
|
23465
|
-
chai_1.assert.isTrue(
|
|
23468
|
+
chai_1.assert.isTrue(itwinLocalization.i18next.options.ns?.includes("Default"));
|
|
23466
23469
|
chai_1.assert.equal(itwinLocalization.getLocalizedString("FirstTrivial"), "First level string (default)");
|
|
23467
23470
|
chai_1.assert.equal(itwinLocalization.getLocalizedString("Default:FirstTrivial"), "First level string (default)");
|
|
23468
23471
|
});
|
|
@@ -23488,14 +23491,12 @@ describe("ITwinLocalization", () => {
|
|
|
23488
23491
|
chai_1.assert.equal(itwinLocalization.i18next.options.defaultNS, "Default");
|
|
23489
23492
|
});
|
|
23490
23493
|
it("default namespace is in list of all namespaces initalized with empty array", async () => {
|
|
23491
|
-
var _a;
|
|
23492
23494
|
await itwinLocalization.initialize([]);
|
|
23493
|
-
chai_1.assert.isTrue(
|
|
23495
|
+
chai_1.assert.isTrue(itwinLocalization.i18next.options.ns?.includes("Default"));
|
|
23494
23496
|
});
|
|
23495
23497
|
it("default namespace is in list of all namespaces", async () => {
|
|
23496
|
-
var _a;
|
|
23497
23498
|
await itwinLocalization.initialize(["Test"]);
|
|
23498
|
-
chai_1.assert.isTrue(
|
|
23499
|
+
chai_1.assert.isTrue(itwinLocalization.i18next.options.ns?.includes("Default"));
|
|
23499
23500
|
});
|
|
23500
23501
|
});
|
|
23501
23502
|
});
|