@uipath/case-tool 1.207.0-preview.360 → 1.207.0-preview.361
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/dist/THIRD-PARTY-NOTICES.md +3 -3
- package/dist/{case-debug-solution-projects-d32nr688.js → case-debug-solution-projects-p57na270.js} +1 -1
- package/dist/{case-debug-studio-web-service-kh6bn757.js → case-debug-studio-web-service-2730tg5d.js} +2 -2
- package/dist/{case-pack-service-3g88spmd.js → case-pack-service-46qr01y1.js} +1 -1
- package/dist/{case-validate-service-5hs6pycv.js → case-validate-service-hcvk7n75.js} +1 -1
- package/dist/{connector-enrichment-service-8zxqvchd.js → connector-enrichment-service-6ds38nsn.js} +8 -8
- package/dist/{connector-lookup-service-514r35pv.js → connector-lookup-service-ffk4z1dw.js} +2 -2
- package/dist/{en-5JIPZTS5-c68n8taw.js → en-5JIPZTS5-04ezgd4a.js} +1 -1
- package/dist/{en-ETY46SDS-far9tmsf.js → en-ETY46SDS-jq5gwyeg.js} +1 -1
- package/dist/{index-c0r0z1dt.js → index-0rgq9376.js} +1 -1
- package/dist/{index-fvewtnhf.js → index-fb33kyys.js} +6 -6
- package/dist/{index-32r31dn5.js → index-tfm9w8c5.js} +4 -4
- package/dist/index.js +1 -1
- package/dist/{integration-service-fetcher-4datce9f.js → integration-service-fetcher-337hp0gt.js} +2 -2
- package/dist/{known-types-a5d0evdm.js → known-types-bz1s9tfk.js} +2 -2
- package/dist/{manifest-rhee8kem.js → manifest-b4ezx1vp.js} +1 -1
- package/dist/{node-sync-service-n4e387x1.js → node-sync-service-c5w1n4mx.js} +6 -6
- package/dist/{packager-tool-658vgpyw.js → packager-tool-5at56zy0.js} +23 -23
- package/dist/{packager-tool-bab7xxky.js → packager-tool-5ee85c8v.js} +1 -1
- package/dist/{packager-tool-c9h0rwgv.js → packager-tool-5gd1m2k7.js} +1 -1
- package/dist/{packager-tool-hrd44w8g.js → packager-tool-cbgr9tcc.js} +807 -717
- package/dist/{packager-tool-9ykyj2bx.js → packager-tool-cxpn3cm0.js} +4 -4
- package/dist/{packager-tool-ad9kyn10.js → packager-tool-e33atff9.js} +2 -2
- package/dist/{packager-tool-nd5ymnm1.js → packager-tool-e3tmk61a.js} +1 -1
- package/dist/{packager-tool-f7hcxwda.js → packager-tool-v17bed0q.js} +2 -2
- package/dist/{packager-tool-sxdg3j9h.js → packager-tool-xeyrkc86.js} +1 -1
- package/dist/{packager-tool-c83yehwj.js → packager-tool-z26pbex4.js} +3 -3
- package/dist/{resourcesSyncService-g12qws40.js → resourcesSyncService-kz35btsf.js} +6 -6
- package/dist/{sdd-resolve-siblings-hwmz8s71.js → sdd-resolve-siblings-dvm17kr4.js} +1 -1
- package/dist/{solution-discovery-p2eqgs83.js → solution-discovery-b2zx2dms.js} +2 -2
- package/dist/tool.js +1 -1
- package/dist/{trigger-enrichment-service-hehtg9e7.js → trigger-enrichment-service-dwe9wswj.js} +8 -8
- package/package.json +2 -2
|
@@ -10455,7 +10455,7 @@ function createI18nRegistrar(options) {
|
|
|
10455
10455
|
}
|
|
10456
10456
|
var globImport_locales_json = __glob({
|
|
10457
10457
|
"../../locales/de.json": () => import("./de-B6IFKV43-9sk50xx0.js"),
|
|
10458
|
-
"../../locales/en.json": () => import("./en-5JIPZTS5-
|
|
10458
|
+
"../../locales/en.json": () => import("./en-5JIPZTS5-04ezgd4a.js"),
|
|
10459
10459
|
"../../locales/es-MX.json": () => import("./es-MX-KWITVBWE-w49gknha.js"),
|
|
10460
10460
|
"../../locales/es.json": () => import("./es-AQW6PFIU-q2mz247f.js"),
|
|
10461
10461
|
"../../locales/fr.json": () => import("./fr-RNWK2TMC-dpyzj366.js"),
|
|
@@ -16945,8 +16945,10 @@ var defer = () => {
|
|
|
16945
16945
|
var makeString = (object) => {
|
|
16946
16946
|
if (object == null)
|
|
16947
16947
|
return "";
|
|
16948
|
-
return
|
|
16948
|
+
return String(object);
|
|
16949
16949
|
};
|
|
16950
|
+
var isSafeLanguageCode = (code) => isString(code) && /^[A-Za-z0-9_@.-]{1,128}$/.test(code) && !code.includes("..") && !["__proto__", "constructor", "prototype"].includes(code);
|
|
16951
|
+
var callbackApiOf = (plugin) => plugin?.callbackApi ?? plugin?.constructor?.callbackApi;
|
|
16950
16952
|
var copy = (a, s, t) => {
|
|
16951
16953
|
a.forEach((m) => {
|
|
16952
16954
|
if (s[m])
|
|
@@ -16954,7 +16956,7 @@ var copy = (a, s, t) => {
|
|
|
16954
16956
|
});
|
|
16955
16957
|
};
|
|
16956
16958
|
var lastOfPathSeparatorRegExp = /###/g;
|
|
16957
|
-
var cleanKey = (key) => key && key.
|
|
16959
|
+
var cleanKey = (key) => key && key.includes("###") ? key.replace(lastOfPathSeparatorRegExp, ".") : key;
|
|
16958
16960
|
var canNotTraverseDeeper = (object) => !object || isString(object);
|
|
16959
16961
|
var getLastOfPath = (object, path, Empty) => {
|
|
16960
16962
|
const stack = !isString(path) ? path : path.split(".");
|
|
@@ -16995,7 +16997,7 @@ var setPath = (object, path, newValue) => {
|
|
|
16995
16997
|
e = `${p[p.length - 1]}.${e}`;
|
|
16996
16998
|
p = p.slice(0, p.length - 1);
|
|
16997
16999
|
last = getLastOfPath(object, p, Object);
|
|
16998
|
-
if (last
|
|
17000
|
+
if (last?.obj && typeof last.obj[`${last.k}.${e}`] !== "undefined") {
|
|
16999
17001
|
last.obj = undefined;
|
|
17000
17002
|
}
|
|
17001
17003
|
}
|
|
@@ -17016,6 +17018,8 @@ var getPath = (object, path) => {
|
|
|
17016
17018
|
} = getLastOfPath(object, path);
|
|
17017
17019
|
if (!obj)
|
|
17018
17020
|
return;
|
|
17021
|
+
if (!Object.prototype.hasOwnProperty.call(obj, k))
|
|
17022
|
+
return;
|
|
17019
17023
|
return obj[k];
|
|
17020
17024
|
};
|
|
17021
17025
|
var getPathWithDefaults = (data, defaultData, key) => {
|
|
@@ -17028,7 +17032,7 @@ var getPathWithDefaults = (data, defaultData, key) => {
|
|
|
17028
17032
|
var deepExtend = (target, source, overwrite) => {
|
|
17029
17033
|
for (const prop in source) {
|
|
17030
17034
|
if (prop !== "__proto__" && prop !== "constructor") {
|
|
17031
|
-
if (prop
|
|
17035
|
+
if (Object.prototype.hasOwnProperty.call(target, prop)) {
|
|
17032
17036
|
if (isString(target[prop]) || target[prop] instanceof String || isString(source[prop]) || source[prop] instanceof String) {
|
|
17033
17037
|
if (overwrite)
|
|
17034
17038
|
target[prop] = source[prop];
|
|
@@ -17083,7 +17087,7 @@ var looksLikeObjectPathRegExpCache = new RegExpCache(20);
|
|
|
17083
17087
|
var looksLikeObjectPath = (key, nsSeparator, keySeparator) => {
|
|
17084
17088
|
nsSeparator = nsSeparator || "";
|
|
17085
17089
|
keySeparator = keySeparator || "";
|
|
17086
|
-
const possibleChars = chars.filter((c) => nsSeparator.
|
|
17090
|
+
const possibleChars = chars.filter((c) => !nsSeparator.includes(c) && !keySeparator.includes(c));
|
|
17087
17091
|
if (possibleChars.length === 0)
|
|
17088
17092
|
return true;
|
|
17089
17093
|
const r = looksLikeObjectPathRegExpCache.getRegExp(`(${possibleChars.map((c) => c === "?" ? "\\?" : c).join("|")})`);
|
|
@@ -17096,12 +17100,14 @@ var looksLikeObjectPath = (key, nsSeparator, keySeparator) => {
|
|
|
17096
17100
|
}
|
|
17097
17101
|
return matched;
|
|
17098
17102
|
};
|
|
17099
|
-
var deepFind =
|
|
17100
|
-
let keySeparator = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ".";
|
|
17103
|
+
var deepFind = (obj, path, keySeparator = ".") => {
|
|
17101
17104
|
if (!obj)
|
|
17102
17105
|
return;
|
|
17103
|
-
if (obj[path])
|
|
17106
|
+
if (obj[path]) {
|
|
17107
|
+
if (!Object.prototype.hasOwnProperty.call(obj, path))
|
|
17108
|
+
return;
|
|
17104
17109
|
return obj[path];
|
|
17110
|
+
}
|
|
17105
17111
|
const tokens = path.split(keySeparator);
|
|
17106
17112
|
let current = obj;
|
|
17107
17113
|
for (let i = 0;i < tokens.length; ) {
|
|
@@ -17116,8 +17122,11 @@ var deepFind = function(obj, path) {
|
|
|
17116
17122
|
}
|
|
17117
17123
|
nextPath += tokens[j];
|
|
17118
17124
|
next = current[nextPath];
|
|
17125
|
+
if ((typeof next === "function" || nextPath === "__proto__") && !Object.prototype.hasOwnProperty.call(current, nextPath)) {
|
|
17126
|
+
next = undefined;
|
|
17127
|
+
}
|
|
17119
17128
|
if (next !== undefined) {
|
|
17120
|
-
if (["string", "number", "boolean"].
|
|
17129
|
+
if (["string", "number", "boolean"].includes(typeof next) && j < tokens.length - 1) {
|
|
17121
17130
|
continue;
|
|
17122
17131
|
}
|
|
17123
17132
|
i += j - i + 1;
|
|
@@ -17128,7 +17137,7 @@ var deepFind = function(obj, path) {
|
|
|
17128
17137
|
}
|
|
17129
17138
|
return current;
|
|
17130
17139
|
};
|
|
17131
|
-
var getCleanedCode = (code) => code
|
|
17140
|
+
var getCleanedCode = (code) => code?.replace(/_/g, "-");
|
|
17132
17141
|
var consoleLogger = {
|
|
17133
17142
|
type: "logger",
|
|
17134
17143
|
log(args) {
|
|
@@ -17141,50 +17150,43 @@ var consoleLogger = {
|
|
|
17141
17150
|
this.output("error", args);
|
|
17142
17151
|
},
|
|
17143
17152
|
output(type, args) {
|
|
17144
|
-
|
|
17145
|
-
console[type].apply(console, args);
|
|
17153
|
+
console?.[type]?.apply?.(console, args);
|
|
17146
17154
|
}
|
|
17147
17155
|
};
|
|
17148
17156
|
|
|
17149
17157
|
class Logger {
|
|
17150
|
-
constructor(concreteLogger) {
|
|
17151
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
17158
|
+
constructor(concreteLogger, options = {}) {
|
|
17152
17159
|
this.init(concreteLogger, options);
|
|
17153
17160
|
}
|
|
17154
|
-
init(concreteLogger) {
|
|
17155
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
17161
|
+
init(concreteLogger, options = {}) {
|
|
17156
17162
|
this.prefix = options.prefix || "i18next:";
|
|
17157
17163
|
this.logger = concreteLogger || consoleLogger;
|
|
17158
17164
|
this.options = options;
|
|
17159
17165
|
this.debug = options.debug;
|
|
17166
|
+
this.seen = new Set;
|
|
17160
17167
|
}
|
|
17161
|
-
log() {
|
|
17162
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0;_key < _len; _key++) {
|
|
17163
|
-
args[_key] = arguments[_key];
|
|
17164
|
-
}
|
|
17168
|
+
log(...args) {
|
|
17165
17169
|
return this.forward(args, "log", "", true);
|
|
17166
17170
|
}
|
|
17167
|
-
warn() {
|
|
17168
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0;_key2 < _len2; _key2++) {
|
|
17169
|
-
args[_key2] = arguments[_key2];
|
|
17170
|
-
}
|
|
17171
|
+
warn(...args) {
|
|
17171
17172
|
return this.forward(args, "warn", "", true);
|
|
17172
17173
|
}
|
|
17173
|
-
error() {
|
|
17174
|
-
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0;_key3 < _len3; _key3++) {
|
|
17175
|
-
args[_key3] = arguments[_key3];
|
|
17176
|
-
}
|
|
17174
|
+
error(...args) {
|
|
17177
17175
|
return this.forward(args, "error", "");
|
|
17178
17176
|
}
|
|
17179
|
-
deprecate() {
|
|
17180
|
-
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0;_key4 < _len4; _key4++) {
|
|
17181
|
-
args[_key4] = arguments[_key4];
|
|
17182
|
-
}
|
|
17177
|
+
deprecate(...args) {
|
|
17183
17178
|
return this.forward(args, "warn", "WARNING DEPRECATED: ", true);
|
|
17184
17179
|
}
|
|
17180
|
+
once(key, lvl, ...args) {
|
|
17181
|
+
if (!this.debug || this.seen.has(key) || this.seen.size >= 1000)
|
|
17182
|
+
return null;
|
|
17183
|
+
this.seen.add(key);
|
|
17184
|
+
return this[lvl](...args);
|
|
17185
|
+
}
|
|
17185
17186
|
forward(args, lvl, prefix, debugOnly) {
|
|
17186
17187
|
if (debugOnly && !this.debug)
|
|
17187
17188
|
return null;
|
|
17189
|
+
args = args.map((a) => isString(a) ? a.replace(/[\r\n\x00-\x1F\x7F]/g, " ") : a);
|
|
17188
17190
|
if (isString(args[0]))
|
|
17189
17191
|
args[0] = `${prefix}${this.prefix} ${args[0]}`;
|
|
17190
17192
|
return this.logger[lvl](args);
|
|
@@ -17218,23 +17220,29 @@ class EventEmitter {
|
|
|
17218
17220
|
});
|
|
17219
17221
|
return this;
|
|
17220
17222
|
}
|
|
17221
|
-
off(
|
|
17222
|
-
|
|
17223
|
-
|
|
17224
|
-
|
|
17225
|
-
|
|
17226
|
-
|
|
17227
|
-
|
|
17228
|
-
|
|
17223
|
+
off(events, listener) {
|
|
17224
|
+
(typeof events === "string" ? events.split(" ") : [events]).forEach((event) => {
|
|
17225
|
+
if (!this.observers[event])
|
|
17226
|
+
return;
|
|
17227
|
+
if (!listener) {
|
|
17228
|
+
delete this.observers[event];
|
|
17229
|
+
return;
|
|
17230
|
+
}
|
|
17231
|
+
this.observers[event].delete(listener);
|
|
17232
|
+
});
|
|
17229
17233
|
}
|
|
17230
|
-
|
|
17231
|
-
|
|
17232
|
-
args
|
|
17233
|
-
|
|
17234
|
+
once(event, listener) {
|
|
17235
|
+
const wrapper = (...args) => {
|
|
17236
|
+
listener(...args);
|
|
17237
|
+
this.off(event, wrapper);
|
|
17238
|
+
};
|
|
17239
|
+
this.on(event, wrapper);
|
|
17240
|
+
return this;
|
|
17241
|
+
}
|
|
17242
|
+
emit(event, ...args) {
|
|
17234
17243
|
if (this.observers[event]) {
|
|
17235
17244
|
const cloned = Array.from(this.observers[event].entries());
|
|
17236
|
-
cloned.forEach((
|
|
17237
|
-
let [observer, numTimesAdded] = _ref;
|
|
17245
|
+
cloned.forEach(([observer, numTimesAdded]) => {
|
|
17238
17246
|
for (let i = 0;i < numTimesAdded; i++) {
|
|
17239
17247
|
observer(...args);
|
|
17240
17248
|
}
|
|
@@ -17242,25 +17250,25 @@ class EventEmitter {
|
|
|
17242
17250
|
}
|
|
17243
17251
|
if (this.observers["*"]) {
|
|
17244
17252
|
const cloned = Array.from(this.observers["*"].entries());
|
|
17245
|
-
cloned.forEach((
|
|
17246
|
-
let [observer, numTimesAdded] = _ref2;
|
|
17253
|
+
cloned.forEach(([observer, numTimesAdded]) => {
|
|
17247
17254
|
for (let i = 0;i < numTimesAdded; i++) {
|
|
17248
|
-
observer
|
|
17255
|
+
observer(event, ...args);
|
|
17249
17256
|
}
|
|
17250
17257
|
});
|
|
17251
17258
|
}
|
|
17252
17259
|
}
|
|
17253
17260
|
}
|
|
17261
|
+
var nonEmptyBundles = new WeakSet;
|
|
17254
17262
|
|
|
17255
17263
|
class ResourceStore extends EventEmitter {
|
|
17256
|
-
constructor(data
|
|
17257
|
-
|
|
17258
|
-
|
|
17259
|
-
|
|
17260
|
-
};
|
|
17264
|
+
constructor(data, options = {
|
|
17265
|
+
ns: ["translation"],
|
|
17266
|
+
defaultNS: "translation"
|
|
17267
|
+
}) {
|
|
17261
17268
|
super();
|
|
17262
17269
|
this.data = data || {};
|
|
17263
17270
|
this.options = options;
|
|
17271
|
+
this.logger = baseLogger.create("resourceStore");
|
|
17264
17272
|
if (this.options.keySeparator === undefined) {
|
|
17265
17273
|
this.options.keySeparator = ".";
|
|
17266
17274
|
}
|
|
@@ -17269,7 +17277,7 @@ class ResourceStore extends EventEmitter {
|
|
|
17269
17277
|
}
|
|
17270
17278
|
}
|
|
17271
17279
|
addNamespaces(ns) {
|
|
17272
|
-
if (this.options.ns.
|
|
17280
|
+
if (!this.options.ns.includes(ns)) {
|
|
17273
17281
|
this.options.ns.push(ns);
|
|
17274
17282
|
}
|
|
17275
17283
|
}
|
|
@@ -17279,12 +17287,15 @@ class ResourceStore extends EventEmitter {
|
|
|
17279
17287
|
this.options.ns.splice(index, 1);
|
|
17280
17288
|
}
|
|
17281
17289
|
}
|
|
17282
|
-
|
|
17283
|
-
|
|
17290
|
+
deprecateDottedLng(method) {
|
|
17291
|
+
this.logger.once(method, "deprecate", `${method}: a dotted language ('en.translation.key') that carries the namespace and key is removed in v27; pass language, namespace and key as separate arguments`);
|
|
17292
|
+
}
|
|
17293
|
+
getResource(lng, ns, key, options = {}) {
|
|
17284
17294
|
const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;
|
|
17285
17295
|
const ignoreJSONStructure = options.ignoreJSONStructure !== undefined ? options.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
17286
17296
|
let path;
|
|
17287
|
-
if (lng.
|
|
17297
|
+
if (lng.includes(".")) {
|
|
17298
|
+
this.deprecateDottedLng("getResource");
|
|
17288
17299
|
path = lng.split(".");
|
|
17289
17300
|
} else {
|
|
17290
17301
|
path = [lng, ns];
|
|
@@ -17299,24 +17310,24 @@ class ResourceStore extends EventEmitter {
|
|
|
17299
17310
|
}
|
|
17300
17311
|
}
|
|
17301
17312
|
const result = getPath(this.data, path);
|
|
17302
|
-
if (
|
|
17313
|
+
if (result == null && !ns && !key && lng.includes(".")) {
|
|
17303
17314
|
lng = path[0];
|
|
17304
17315
|
ns = path[1];
|
|
17305
17316
|
key = path.slice(2).join(".");
|
|
17306
17317
|
}
|
|
17307
|
-
if (result || !ignoreJSONStructure || !isString(key))
|
|
17318
|
+
if (result != null || !ignoreJSONStructure || !isString(key))
|
|
17308
17319
|
return result;
|
|
17309
|
-
return deepFind(this.data
|
|
17320
|
+
return deepFind(this.data?.[lng]?.[ns], key, keySeparator);
|
|
17310
17321
|
}
|
|
17311
|
-
addResource(lng, ns, key, value
|
|
17312
|
-
|
|
17313
|
-
|
|
17314
|
-
};
|
|
17322
|
+
addResource(lng, ns, key, value, options = {
|
|
17323
|
+
silent: false
|
|
17324
|
+
}) {
|
|
17315
17325
|
const keySeparator = options.keySeparator !== undefined ? options.keySeparator : this.options.keySeparator;
|
|
17316
17326
|
let path = [lng, ns];
|
|
17317
17327
|
if (key)
|
|
17318
17328
|
path = path.concat(keySeparator ? key.split(keySeparator) : key);
|
|
17319
|
-
if (lng.
|
|
17329
|
+
if (lng.includes(".")) {
|
|
17330
|
+
this.deprecateDottedLng("addResource");
|
|
17320
17331
|
path = lng.split(".");
|
|
17321
17332
|
value = ns;
|
|
17322
17333
|
ns = path[1];
|
|
@@ -17326,10 +17337,9 @@ class ResourceStore extends EventEmitter {
|
|
|
17326
17337
|
if (!options.silent)
|
|
17327
17338
|
this.emit("added", lng, ns, key, value);
|
|
17328
17339
|
}
|
|
17329
|
-
addResources(lng, ns, resources
|
|
17330
|
-
|
|
17331
|
-
|
|
17332
|
-
};
|
|
17340
|
+
addResources(lng, ns, resources, options = {
|
|
17341
|
+
silent: false
|
|
17342
|
+
}) {
|
|
17333
17343
|
for (const m in resources) {
|
|
17334
17344
|
if (isString(resources[m]) || Array.isArray(resources[m]))
|
|
17335
17345
|
this.addResource(lng, ns, m, resources[m], {
|
|
@@ -17339,13 +17349,13 @@ class ResourceStore extends EventEmitter {
|
|
|
17339
17349
|
if (!options.silent)
|
|
17340
17350
|
this.emit("added", lng, ns, resources);
|
|
17341
17351
|
}
|
|
17342
|
-
addResourceBundle(lng, ns, resources, deep, overwrite
|
|
17343
|
-
|
|
17344
|
-
|
|
17345
|
-
|
|
17346
|
-
};
|
|
17352
|
+
addResourceBundle(lng, ns, resources, deep, overwrite, options = {
|
|
17353
|
+
silent: false,
|
|
17354
|
+
skipCopy: false
|
|
17355
|
+
}) {
|
|
17347
17356
|
let path = [lng, ns];
|
|
17348
|
-
if (lng.
|
|
17357
|
+
if (lng.includes(".")) {
|
|
17358
|
+
this.deprecateDottedLng("addResourceBundle");
|
|
17349
17359
|
path = lng.split(".");
|
|
17350
17360
|
deep = resources;
|
|
17351
17361
|
resources = ns;
|
|
@@ -17380,11 +17390,6 @@ class ResourceStore extends EventEmitter {
|
|
|
17380
17390
|
getResourceBundle(lng, ns) {
|
|
17381
17391
|
if (!ns)
|
|
17382
17392
|
ns = this.options.defaultNS;
|
|
17383
|
-
if (this.options.compatibilityAPI === "v1")
|
|
17384
|
-
return {
|
|
17385
|
-
...{},
|
|
17386
|
-
...this.getResource(lng, ns)
|
|
17387
|
-
};
|
|
17388
17393
|
return this.getResource(lng, ns);
|
|
17389
17394
|
}
|
|
17390
17395
|
getDataByLanguage(lng) {
|
|
@@ -17393,7 +17398,16 @@ class ResourceStore extends EventEmitter {
|
|
|
17393
17398
|
hasLanguageSomeTranslations(lng) {
|
|
17394
17399
|
const data = this.getDataByLanguage(lng);
|
|
17395
17400
|
const n = data && Object.keys(data) || [];
|
|
17396
|
-
return !!n.find((v) =>
|
|
17401
|
+
return !!n.find((v) => {
|
|
17402
|
+
const bundle = data[v];
|
|
17403
|
+
if (nonEmptyBundles.has(bundle))
|
|
17404
|
+
return true;
|
|
17405
|
+
if (!bundle || Object.keys(bundle).length === 0)
|
|
17406
|
+
return false;
|
|
17407
|
+
if (typeof bundle === "object")
|
|
17408
|
+
nonEmptyBundles.add(bundle);
|
|
17409
|
+
return true;
|
|
17410
|
+
});
|
|
17397
17411
|
}
|
|
17398
17412
|
toJSON() {
|
|
17399
17413
|
return this.data;
|
|
@@ -17406,47 +17420,87 @@ var postProcessor = {
|
|
|
17406
17420
|
},
|
|
17407
17421
|
handle(processors, value, key, options, translator) {
|
|
17408
17422
|
processors.forEach((processor) => {
|
|
17409
|
-
|
|
17410
|
-
value = this.processors[processor].process(value, key, options, translator);
|
|
17423
|
+
value = this.processors[processor]?.process(value, key, options, translator) ?? value;
|
|
17411
17424
|
});
|
|
17412
17425
|
return value;
|
|
17413
17426
|
}
|
|
17414
17427
|
};
|
|
17415
|
-
var
|
|
17428
|
+
var PATH_KEY = Symbol("i18next/PATH_KEY");
|
|
17429
|
+
function createProxy() {
|
|
17430
|
+
const state = [];
|
|
17431
|
+
const handler = Object.create(null);
|
|
17432
|
+
let proxy;
|
|
17433
|
+
handler.get = (target, key) => {
|
|
17434
|
+
proxy?.revoke?.();
|
|
17435
|
+
if (key === PATH_KEY)
|
|
17436
|
+
return state;
|
|
17437
|
+
state.push(key);
|
|
17438
|
+
proxy = Proxy.revocable(target, handler);
|
|
17439
|
+
return proxy.proxy;
|
|
17440
|
+
};
|
|
17441
|
+
return Proxy.revocable(Object.create(null), handler).proxy;
|
|
17442
|
+
}
|
|
17443
|
+
function keysFromSelector(selector, opts) {
|
|
17444
|
+
const {
|
|
17445
|
+
[PATH_KEY]: path
|
|
17446
|
+
} = selector(createProxy());
|
|
17447
|
+
const keySeparator = opts?.keySeparator ?? ".";
|
|
17448
|
+
const nsSeparator = opts?.nsSeparator ?? ":";
|
|
17449
|
+
const strict = opts?.enableSelector === "strict";
|
|
17450
|
+
if (path.length > 1 && nsSeparator) {
|
|
17451
|
+
const ns = opts?.ns;
|
|
17452
|
+
const nsList = strict ? Array.isArray(ns) ? ns : ns ? [ns] : null : Array.isArray(ns) ? ns : null;
|
|
17453
|
+
if (nsList) {
|
|
17454
|
+
const candidates = strict ? nsList : nsList.length > 1 ? nsList.slice(1) : [];
|
|
17455
|
+
if (candidates.includes(path[0])) {
|
|
17456
|
+
return `${path[0]}${nsSeparator}${path.slice(1).join(keySeparator)}`;
|
|
17457
|
+
}
|
|
17458
|
+
}
|
|
17459
|
+
}
|
|
17460
|
+
return path.join(keySeparator);
|
|
17461
|
+
}
|
|
17462
|
+
var shouldHandleAsObject = (res) => !isString(res) && typeof res !== "boolean" && typeof res !== "number";
|
|
17416
17463
|
|
|
17417
17464
|
class Translator extends EventEmitter {
|
|
17418
|
-
constructor(services) {
|
|
17419
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
17465
|
+
constructor(services, options = {}) {
|
|
17420
17466
|
super();
|
|
17421
|
-
copy(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], services, this);
|
|
17467
|
+
copy(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils", "ownPostProcessors"], services, this);
|
|
17422
17468
|
this.options = options;
|
|
17423
17469
|
if (this.options.keySeparator === undefined) {
|
|
17424
17470
|
this.options.keySeparator = ".";
|
|
17425
17471
|
}
|
|
17426
17472
|
this.logger = baseLogger.create("translator");
|
|
17473
|
+
this.checkedLoadedFor = {};
|
|
17427
17474
|
}
|
|
17428
17475
|
changeLanguage(lng) {
|
|
17429
17476
|
if (lng)
|
|
17430
17477
|
this.language = lng;
|
|
17431
17478
|
}
|
|
17432
|
-
exists(key
|
|
17433
|
-
|
|
17434
|
-
|
|
17479
|
+
exists(key, o = {
|
|
17480
|
+
interpolation: {}
|
|
17481
|
+
}) {
|
|
17482
|
+
const opt = {
|
|
17483
|
+
...o
|
|
17435
17484
|
};
|
|
17436
|
-
if (key
|
|
17485
|
+
if (key == null)
|
|
17486
|
+
return false;
|
|
17487
|
+
const resolved = this.resolve(key, opt);
|
|
17488
|
+
if (resolved?.res === undefined)
|
|
17489
|
+
return false;
|
|
17490
|
+
const isObject = shouldHandleAsObject(resolved.res);
|
|
17491
|
+
if (opt.returnObjects === false && isObject) {
|
|
17437
17492
|
return false;
|
|
17438
17493
|
}
|
|
17439
|
-
|
|
17440
|
-
return resolved && resolved.res !== undefined;
|
|
17494
|
+
return true;
|
|
17441
17495
|
}
|
|
17442
|
-
extractFromKey(key,
|
|
17443
|
-
let nsSeparator =
|
|
17496
|
+
extractFromKey(key, opt) {
|
|
17497
|
+
let nsSeparator = opt.nsSeparator !== undefined ? opt.nsSeparator : this.options.nsSeparator;
|
|
17444
17498
|
if (nsSeparator === undefined)
|
|
17445
17499
|
nsSeparator = ":";
|
|
17446
|
-
const keySeparator =
|
|
17447
|
-
let namespaces =
|
|
17448
|
-
const wouldCheckForNsInKey = nsSeparator && key.
|
|
17449
|
-
const seemsNaturalLanguage = !this.options.userDefinedKeySeparator && !
|
|
17500
|
+
const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;
|
|
17501
|
+
let namespaces = opt.ns || this.options.defaultNS || [];
|
|
17502
|
+
const wouldCheckForNsInKey = nsSeparator && key.includes(nsSeparator);
|
|
17503
|
+
const seemsNaturalLanguage = !this.options.userDefinedKeySeparator && !opt.keySeparator && !this.options.userDefinedNsSeparator && !opt.nsSeparator && !looksLikeObjectPath(key, nsSeparator, keySeparator);
|
|
17450
17504
|
if (wouldCheckForNsInKey && !seemsNaturalLanguage) {
|
|
17451
17505
|
const m = key.match(this.interpolator.nestingRegexp);
|
|
17452
17506
|
if (m && m.length > 0) {
|
|
@@ -17456,7 +17510,7 @@ class Translator extends EventEmitter {
|
|
|
17456
17510
|
};
|
|
17457
17511
|
}
|
|
17458
17512
|
const parts = key.split(nsSeparator);
|
|
17459
|
-
if (nsSeparator !== keySeparator || nsSeparator === keySeparator && this.options.ns.
|
|
17513
|
+
if (nsSeparator !== keySeparator || nsSeparator === keySeparator && this.options.ns.includes(parts[0]))
|
|
17460
17514
|
namespaces = parts.shift();
|
|
17461
17515
|
key = parts.join(keySeparator);
|
|
17462
17516
|
}
|
|
@@ -17465,32 +17519,46 @@ class Translator extends EventEmitter {
|
|
|
17465
17519
|
namespaces: isString(namespaces) ? [namespaces] : namespaces
|
|
17466
17520
|
};
|
|
17467
17521
|
}
|
|
17468
|
-
translate(keys,
|
|
17469
|
-
|
|
17470
|
-
|
|
17522
|
+
translate(keys, o, lastKey) {
|
|
17523
|
+
let opt = typeof o === "object" ? {
|
|
17524
|
+
...o
|
|
17525
|
+
} : o;
|
|
17526
|
+
if (typeof opt !== "object" && this.options.overloadTranslationOptionHandler) {
|
|
17527
|
+
opt = this.options.overloadTranslationOptionHandler(arguments);
|
|
17471
17528
|
}
|
|
17472
|
-
if (typeof
|
|
17473
|
-
|
|
17474
|
-
...
|
|
17529
|
+
if (typeof opt === "object")
|
|
17530
|
+
opt = {
|
|
17531
|
+
...opt
|
|
17475
17532
|
};
|
|
17476
|
-
if (!
|
|
17477
|
-
|
|
17478
|
-
if (keys
|
|
17533
|
+
if (!opt)
|
|
17534
|
+
opt = {};
|
|
17535
|
+
if (keys == null)
|
|
17479
17536
|
return "";
|
|
17537
|
+
if (typeof keys === "function")
|
|
17538
|
+
keys = keysFromSelector(keys, {
|
|
17539
|
+
...this.options,
|
|
17540
|
+
...opt
|
|
17541
|
+
});
|
|
17480
17542
|
if (!Array.isArray(keys))
|
|
17481
17543
|
keys = [String(keys)];
|
|
17482
|
-
|
|
17483
|
-
|
|
17544
|
+
keys = keys.map((k) => typeof k === "function" ? keysFromSelector(k, {
|
|
17545
|
+
...this.options,
|
|
17546
|
+
...opt
|
|
17547
|
+
}) : String(k));
|
|
17548
|
+
const returnDetails = opt.returnDetails !== undefined ? opt.returnDetails : this.options.returnDetails;
|
|
17549
|
+
const keySeparator = opt.keySeparator !== undefined ? opt.keySeparator : this.options.keySeparator;
|
|
17484
17550
|
const {
|
|
17485
17551
|
key,
|
|
17486
17552
|
namespaces
|
|
17487
|
-
} = this.extractFromKey(keys[keys.length - 1],
|
|
17553
|
+
} = this.extractFromKey(keys[keys.length - 1], opt);
|
|
17488
17554
|
const namespace = namespaces[namespaces.length - 1];
|
|
17489
|
-
|
|
17490
|
-
|
|
17491
|
-
|
|
17555
|
+
let nsSeparator = opt.nsSeparator !== undefined ? opt.nsSeparator : this.options.nsSeparator;
|
|
17556
|
+
if (nsSeparator === undefined)
|
|
17557
|
+
nsSeparator = ":";
|
|
17558
|
+
const lng = opt.lng || this.language;
|
|
17559
|
+
const appendNamespaceToCIMode = opt.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
|
17560
|
+
if (lng?.toLowerCase() === "cimode") {
|
|
17492
17561
|
if (appendNamespaceToCIMode) {
|
|
17493
|
-
const nsSeparator = options.nsSeparator || this.options.nsSeparator;
|
|
17494
17562
|
if (returnDetails) {
|
|
17495
17563
|
return {
|
|
17496
17564
|
res: `${namespace}${nsSeparator}${key}`,
|
|
@@ -17498,7 +17566,7 @@ class Translator extends EventEmitter {
|
|
|
17498
17566
|
exactUsedKey: key,
|
|
17499
17567
|
usedLng: lng,
|
|
17500
17568
|
usedNS: namespace,
|
|
17501
|
-
usedParams: this.getUsedParamsDetails(
|
|
17569
|
+
usedParams: this.getUsedParamsDetails(opt)
|
|
17502
17570
|
};
|
|
17503
17571
|
}
|
|
17504
17572
|
return `${namespace}${nsSeparator}${key}`;
|
|
@@ -17510,52 +17578,76 @@ class Translator extends EventEmitter {
|
|
|
17510
17578
|
exactUsedKey: key,
|
|
17511
17579
|
usedLng: lng,
|
|
17512
17580
|
usedNS: namespace,
|
|
17513
|
-
usedParams: this.getUsedParamsDetails(
|
|
17581
|
+
usedParams: this.getUsedParamsDetails(opt)
|
|
17514
17582
|
};
|
|
17515
17583
|
}
|
|
17516
17584
|
return key;
|
|
17517
17585
|
}
|
|
17518
|
-
const resolved = this.resolve(keys,
|
|
17519
|
-
let res = resolved
|
|
17520
|
-
const resUsedKey = resolved
|
|
17521
|
-
const resExactUsedKey = resolved
|
|
17522
|
-
const resType = Object.prototype.toString.apply(res);
|
|
17586
|
+
const resolved = this.resolve(keys, opt);
|
|
17587
|
+
let res = resolved?.res;
|
|
17588
|
+
const resUsedKey = resolved?.usedKey || key;
|
|
17589
|
+
const resExactUsedKey = resolved?.exactUsedKey || key;
|
|
17523
17590
|
const noObject = ["[object Number]", "[object Function]", "[object RegExp]"];
|
|
17524
|
-
const joinArrays =
|
|
17591
|
+
const joinArrays = opt.joinArrays !== undefined ? opt.joinArrays : this.options.joinArrays;
|
|
17525
17592
|
const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
17526
|
-
const
|
|
17527
|
-
|
|
17528
|
-
|
|
17593
|
+
const needsPluralHandling = opt.count !== undefined && !isString(opt.count);
|
|
17594
|
+
const hasDefaultValue = Translator.hasDefaultValue(opt);
|
|
17595
|
+
const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, opt.count, opt) : "";
|
|
17596
|
+
const defaultValueSuffixOrdinalFallback = opt.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, opt.count, {
|
|
17597
|
+
ordinal: false
|
|
17598
|
+
}) : "";
|
|
17599
|
+
const needsZeroSuffixLookup = needsPluralHandling && !opt.ordinal && opt.count === 0;
|
|
17600
|
+
const defaultValue = needsZeroSuffixLookup && opt[`defaultValue${this.options.pluralSeparator}zero`] || opt[`defaultValue${defaultValueSuffix}`] || opt[`defaultValue${defaultValueSuffixOrdinalFallback}`] || opt.defaultValue;
|
|
17601
|
+
let resForObjHndl = res;
|
|
17602
|
+
if (handleAsObjectInI18nFormat && !res && hasDefaultValue) {
|
|
17603
|
+
resForObjHndl = defaultValue;
|
|
17604
|
+
}
|
|
17605
|
+
const handleAsObject = shouldHandleAsObject(resForObjHndl);
|
|
17606
|
+
const resType = Object.prototype.toString.apply(resForObjHndl);
|
|
17607
|
+
if (handleAsObjectInI18nFormat && resForObjHndl && handleAsObject && !noObject.includes(resType) && !(isString(joinArrays) && Array.isArray(resForObjHndl))) {
|
|
17608
|
+
if (!opt.returnObjects && !this.options.returnObjects) {
|
|
17529
17609
|
if (!this.options.returnedObjectHandler) {
|
|
17530
17610
|
this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
17611
|
+
this.logger.once("returnedObject", "deprecate", "accessing an object without returnObjects returns a sentence about it today; from v27 t() returns the key, as for a missing key (returnedObjectHandler can keep today's text)");
|
|
17531
17612
|
}
|
|
17532
|
-
const r = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey,
|
|
17533
|
-
...
|
|
17613
|
+
const r = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {
|
|
17614
|
+
...opt,
|
|
17534
17615
|
ns: namespaces
|
|
17535
17616
|
}) : `key '${key} (${this.language})' returned an object instead of string.`;
|
|
17536
17617
|
if (returnDetails) {
|
|
17537
17618
|
resolved.res = r;
|
|
17538
|
-
resolved.usedParams = this.getUsedParamsDetails(
|
|
17619
|
+
resolved.usedParams = this.getUsedParamsDetails(opt);
|
|
17539
17620
|
return resolved;
|
|
17540
17621
|
}
|
|
17541
17622
|
return r;
|
|
17542
17623
|
}
|
|
17543
17624
|
if (keySeparator) {
|
|
17544
|
-
const resTypeIsArray = Array.isArray(
|
|
17625
|
+
const resTypeIsArray = Array.isArray(resForObjHndl);
|
|
17545
17626
|
const copy = resTypeIsArray ? [] : {};
|
|
17546
17627
|
const newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;
|
|
17547
|
-
for (const m in
|
|
17548
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
17628
|
+
for (const m in resForObjHndl) {
|
|
17629
|
+
if (Object.prototype.hasOwnProperty.call(resForObjHndl, m)) {
|
|
17549
17630
|
const deepKey = `${newKeyToUse}${keySeparator}${m}`;
|
|
17550
|
-
|
|
17551
|
-
|
|
17552
|
-
|
|
17553
|
-
|
|
17554
|
-
|
|
17555
|
-
|
|
17556
|
-
|
|
17631
|
+
if (hasDefaultValue && !res) {
|
|
17632
|
+
copy[m] = this.translate(deepKey, {
|
|
17633
|
+
...opt,
|
|
17634
|
+
defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m] : undefined,
|
|
17635
|
+
...{
|
|
17636
|
+
joinArrays: false,
|
|
17637
|
+
ns: namespaces
|
|
17638
|
+
}
|
|
17639
|
+
});
|
|
17640
|
+
} else {
|
|
17641
|
+
copy[m] = this.translate(deepKey, {
|
|
17642
|
+
...opt,
|
|
17643
|
+
...{
|
|
17644
|
+
joinArrays: false,
|
|
17645
|
+
ns: namespaces
|
|
17646
|
+
}
|
|
17647
|
+
});
|
|
17648
|
+
}
|
|
17557
17649
|
if (copy[m] === deepKey)
|
|
17558
|
-
copy[m] =
|
|
17650
|
+
copy[m] = resForObjHndl[m];
|
|
17559
17651
|
}
|
|
17560
17652
|
}
|
|
17561
17653
|
res = copy;
|
|
@@ -17563,18 +17655,10 @@ class Translator extends EventEmitter {
|
|
|
17563
17655
|
} else if (handleAsObjectInI18nFormat && isString(joinArrays) && Array.isArray(res)) {
|
|
17564
17656
|
res = res.join(joinArrays);
|
|
17565
17657
|
if (res)
|
|
17566
|
-
res = this.extendTranslation(res, keys,
|
|
17658
|
+
res = this.extendTranslation(res, keys, opt, resolved, lastKey);
|
|
17567
17659
|
} else {
|
|
17568
17660
|
let usedDefault = false;
|
|
17569
17661
|
let usedKey = false;
|
|
17570
|
-
const needsPluralHandling = options.count !== undefined && !isString(options.count);
|
|
17571
|
-
const hasDefaultValue = Translator.hasDefaultValue(options);
|
|
17572
|
-
const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, options) : "";
|
|
17573
|
-
const defaultValueSuffixOrdinalFallback = options.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, {
|
|
17574
|
-
ordinal: false
|
|
17575
|
-
}) : "";
|
|
17576
|
-
const needsZeroSuffixLookup = needsPluralHandling && !options.ordinal && options.count === 0 && this.pluralResolver.shouldUseIntlApi();
|
|
17577
|
-
const defaultValue = needsZeroSuffixLookup && options[`defaultValue${this.options.pluralSeparator}zero`] || options[`defaultValue${defaultValueSuffix}`] || options[`defaultValue${defaultValueSuffixOrdinalFallback}`] || options.defaultValue;
|
|
17578
17662
|
if (!this.isValidLookup(res) && hasDefaultValue) {
|
|
17579
17663
|
usedDefault = true;
|
|
17580
17664
|
res = defaultValue;
|
|
@@ -17583,48 +17667,48 @@ class Translator extends EventEmitter {
|
|
|
17583
17667
|
usedKey = true;
|
|
17584
17668
|
res = key;
|
|
17585
17669
|
}
|
|
17586
|
-
const missingKeyNoValueFallbackToKey =
|
|
17670
|
+
const missingKeyNoValueFallbackToKey = opt.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey;
|
|
17587
17671
|
const resForMissing = missingKeyNoValueFallbackToKey && usedKey ? undefined : res;
|
|
17588
17672
|
const updateMissing = hasDefaultValue && defaultValue !== res && this.options.updateMissing;
|
|
17589
17673
|
if (usedKey || usedDefault || updateMissing) {
|
|
17590
|
-
this.logger.log(updateMissing ? "updateKey" : "missingKey", lng, namespace, key, updateMissing ? defaultValue : res);
|
|
17674
|
+
this.logger.log(updateMissing ? "updateKey" : "missingKey", lng, namespace, needsPluralHandling && !updateMissing ? `${key}${this.pluralResolver.getSuffix(lng, opt.count, opt)}` : key, updateMissing ? defaultValue : res);
|
|
17591
17675
|
if (keySeparator) {
|
|
17592
17676
|
const fk = this.resolve(key, {
|
|
17593
|
-
...
|
|
17677
|
+
...opt,
|
|
17594
17678
|
keySeparator: false
|
|
17595
17679
|
});
|
|
17596
17680
|
if (fk && fk.res)
|
|
17597
17681
|
this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
17598
17682
|
}
|
|
17599
17683
|
let lngs = [];
|
|
17600
|
-
const fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng,
|
|
17684
|
+
const fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng, opt.lng || this.language);
|
|
17601
17685
|
if (this.options.saveMissingTo === "fallback" && fallbackLngs && fallbackLngs[0]) {
|
|
17602
17686
|
for (let i = 0;i < fallbackLngs.length; i++) {
|
|
17603
17687
|
lngs.push(fallbackLngs[i]);
|
|
17604
17688
|
}
|
|
17605
17689
|
} else if (this.options.saveMissingTo === "all") {
|
|
17606
|
-
lngs = this.languageUtils.toResolveHierarchy(
|
|
17690
|
+
lngs = this.languageUtils.toResolveHierarchy(opt.lng || this.language);
|
|
17607
17691
|
} else {
|
|
17608
|
-
lngs.push(
|
|
17692
|
+
lngs.push(opt.lng || this.language);
|
|
17609
17693
|
}
|
|
17610
17694
|
const send = (l, k, specificDefaultValue) => {
|
|
17611
17695
|
const defaultForMissing = hasDefaultValue && specificDefaultValue !== res ? specificDefaultValue : resForMissing;
|
|
17612
17696
|
if (this.options.missingKeyHandler) {
|
|
17613
|
-
this.options.missingKeyHandler(l, namespace, k, defaultForMissing, updateMissing,
|
|
17614
|
-
} else if (this.backendConnector
|
|
17615
|
-
this.backendConnector.saveMissing(l, namespace, k, defaultForMissing, updateMissing,
|
|
17697
|
+
this.options.missingKeyHandler(l, namespace, k, defaultForMissing, updateMissing, opt);
|
|
17698
|
+
} else if (this.backendConnector?.saveMissing) {
|
|
17699
|
+
this.backendConnector.saveMissing(l, namespace, k, defaultForMissing, updateMissing, opt, undefined, this.utils?.hasLoadedNamespace);
|
|
17616
17700
|
}
|
|
17617
17701
|
this.emit("missingKey", l, namespace, k, res);
|
|
17618
17702
|
};
|
|
17619
17703
|
if (this.options.saveMissing) {
|
|
17620
17704
|
if (this.options.saveMissingPlurals && needsPluralHandling) {
|
|
17621
17705
|
lngs.forEach((language) => {
|
|
17622
|
-
const suffixes = this.pluralResolver.getSuffixes(language,
|
|
17623
|
-
if (needsZeroSuffixLookup &&
|
|
17706
|
+
const suffixes = this.pluralResolver.getSuffixes(language, opt);
|
|
17707
|
+
if (needsZeroSuffixLookup && opt[`defaultValue${this.options.pluralSeparator}zero`] && !suffixes.includes(`${this.options.pluralSeparator}zero`)) {
|
|
17624
17708
|
suffixes.push(`${this.options.pluralSeparator}zero`);
|
|
17625
17709
|
}
|
|
17626
17710
|
suffixes.forEach((suffix) => {
|
|
17627
|
-
send([language], key + suffix,
|
|
17711
|
+
send([language], key + suffix, opt[`defaultValue${suffix}`] || defaultValue);
|
|
17628
17712
|
});
|
|
17629
17713
|
});
|
|
17630
17714
|
} else {
|
|
@@ -17632,94 +17716,91 @@ class Translator extends EventEmitter {
|
|
|
17632
17716
|
}
|
|
17633
17717
|
}
|
|
17634
17718
|
}
|
|
17635
|
-
res = this.extendTranslation(res, keys,
|
|
17636
|
-
if (usedKey && res === key && this.options.appendNamespaceToMissingKey)
|
|
17637
|
-
res = `${namespace}
|
|
17719
|
+
res = this.extendTranslation(res, keys, opt, resolved, lastKey);
|
|
17720
|
+
if (usedKey && res === key && this.options.appendNamespaceToMissingKey) {
|
|
17721
|
+
res = `${namespace}${nsSeparator}${key}`;
|
|
17722
|
+
}
|
|
17638
17723
|
if ((usedKey || usedDefault) && this.options.parseMissingKeyHandler) {
|
|
17639
|
-
|
|
17640
|
-
res = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${namespace}:${key}` : key, usedDefault ? res : undefined);
|
|
17641
|
-
} else {
|
|
17642
|
-
res = this.options.parseMissingKeyHandler(res);
|
|
17643
|
-
}
|
|
17724
|
+
res = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${namespace}${nsSeparator}${key}` : key, usedDefault ? res : undefined, opt);
|
|
17644
17725
|
}
|
|
17645
17726
|
}
|
|
17646
17727
|
if (returnDetails) {
|
|
17647
17728
|
resolved.res = res;
|
|
17648
|
-
resolved.usedParams = this.getUsedParamsDetails(
|
|
17729
|
+
resolved.usedParams = this.getUsedParamsDetails(opt);
|
|
17649
17730
|
return resolved;
|
|
17650
17731
|
}
|
|
17651
17732
|
return res;
|
|
17652
17733
|
}
|
|
17653
|
-
extendTranslation(res, key,
|
|
17654
|
-
|
|
17655
|
-
if (this.i18nFormat && this.i18nFormat.parse) {
|
|
17734
|
+
extendTranslation(res, key, opt, resolved, lastKey) {
|
|
17735
|
+
if (this.i18nFormat?.parse) {
|
|
17656
17736
|
res = this.i18nFormat.parse(res, {
|
|
17657
17737
|
...this.options.interpolation.defaultVariables,
|
|
17658
|
-
...
|
|
17659
|
-
},
|
|
17738
|
+
...opt
|
|
17739
|
+
}, opt.lng || this.language || resolved.usedLng, resolved.usedNS, resolved.usedKey, {
|
|
17660
17740
|
resolved
|
|
17661
17741
|
});
|
|
17662
|
-
} else if (!
|
|
17663
|
-
if (
|
|
17742
|
+
} else if (!opt.skipInterpolation) {
|
|
17743
|
+
if (opt.interpolation)
|
|
17664
17744
|
this.interpolator.init({
|
|
17665
|
-
...
|
|
17745
|
+
...opt,
|
|
17666
17746
|
...{
|
|
17667
17747
|
interpolation: {
|
|
17668
17748
|
...this.options.interpolation,
|
|
17669
|
-
...
|
|
17749
|
+
...opt.interpolation
|
|
17670
17750
|
}
|
|
17671
17751
|
}
|
|
17672
17752
|
});
|
|
17673
|
-
const skipOnVariables = isString(res) && (
|
|
17753
|
+
const skipOnVariables = isString(res) && (opt?.interpolation?.skipOnVariables !== undefined ? opt.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
|
17674
17754
|
let nestBef;
|
|
17675
17755
|
if (skipOnVariables) {
|
|
17676
17756
|
const nb = res.match(this.interpolator.nestingRegexp);
|
|
17677
17757
|
nestBef = nb && nb.length;
|
|
17678
17758
|
}
|
|
17679
|
-
let data =
|
|
17759
|
+
let data = opt.replace && !isString(opt.replace) ? opt.replace : opt;
|
|
17680
17760
|
if (this.options.interpolation.defaultVariables)
|
|
17681
17761
|
data = {
|
|
17682
17762
|
...this.options.interpolation.defaultVariables,
|
|
17683
17763
|
...data
|
|
17684
17764
|
};
|
|
17685
|
-
res = this.interpolator.interpolate(res, data,
|
|
17765
|
+
res = this.interpolator.interpolate(res, data, opt.lng || this.language || resolved.usedLng, opt);
|
|
17686
17766
|
if (skipOnVariables) {
|
|
17687
17767
|
const na = res.match(this.interpolator.nestingRegexp);
|
|
17688
17768
|
const nestAft = na && na.length;
|
|
17689
17769
|
if (nestBef < nestAft)
|
|
17690
|
-
|
|
17691
|
-
}
|
|
17692
|
-
if (!
|
|
17693
|
-
|
|
17694
|
-
if (
|
|
17695
|
-
res = this.interpolator.nest(res,
|
|
17696
|
-
|
|
17697
|
-
args[
|
|
17698
|
-
}
|
|
17699
|
-
if (lastKey && lastKey[0] === args[0] && !options.context) {
|
|
17700
|
-
_this.logger.warn(`It seems you are nesting recursively key: ${args[0]} in key: ${key[0]}`);
|
|
17770
|
+
opt.nest = false;
|
|
17771
|
+
}
|
|
17772
|
+
if (!opt.lng && resolved && resolved.res)
|
|
17773
|
+
opt.lng = this.language || resolved.usedLng;
|
|
17774
|
+
if (opt.nest !== false)
|
|
17775
|
+
res = this.interpolator.nest(res, (...args) => {
|
|
17776
|
+
if (lastKey?.[0] === args[0] && !opt.context) {
|
|
17777
|
+
this.logger.warn(`It seems you are nesting recursively key: ${args[0]} in key: ${key[0]}`);
|
|
17701
17778
|
return null;
|
|
17702
17779
|
}
|
|
17703
|
-
return
|
|
17704
|
-
},
|
|
17705
|
-
if (
|
|
17780
|
+
return this.translate(...args, key);
|
|
17781
|
+
}, opt);
|
|
17782
|
+
if (opt.interpolation)
|
|
17706
17783
|
this.interpolator.reset();
|
|
17707
17784
|
}
|
|
17708
|
-
const postProcess =
|
|
17785
|
+
const postProcess = opt.postProcess || this.options.postProcess;
|
|
17709
17786
|
const postProcessorNames = isString(postProcess) ? [postProcess] : postProcess;
|
|
17710
|
-
if (res
|
|
17787
|
+
if (res != null && postProcessorNames?.length && opt.applyPostProcessor !== false) {
|
|
17788
|
+
postProcessorNames.forEach((name) => {
|
|
17789
|
+
if (this.logger.debug && postProcessor.processors[name] && this.ownPostProcessors && !this.ownPostProcessors.has(name)) {
|
|
17790
|
+
this.logger.once(name, "deprecate", `postProcess: '${name}' was registered with use() on another i18next instance; from v27 post-processors are per instance, so call use() with it on this instance too`);
|
|
17791
|
+
}
|
|
17792
|
+
});
|
|
17711
17793
|
res = postProcessor.handle(postProcessorNames, res, key, this.options && this.options.postProcessPassResolved ? {
|
|
17712
17794
|
i18nResolved: {
|
|
17713
17795
|
...resolved,
|
|
17714
|
-
usedParams: this.getUsedParamsDetails(
|
|
17796
|
+
usedParams: this.getUsedParamsDetails(opt)
|
|
17715
17797
|
},
|
|
17716
|
-
...
|
|
17717
|
-
} :
|
|
17798
|
+
...opt
|
|
17799
|
+
} : opt, this);
|
|
17718
17800
|
}
|
|
17719
17801
|
return res;
|
|
17720
17802
|
}
|
|
17721
|
-
resolve(keys) {
|
|
17722
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
17803
|
+
resolve(keys, opt = {}) {
|
|
17723
17804
|
let found;
|
|
17724
17805
|
let usedKey;
|
|
17725
17806
|
let exactUsedKey;
|
|
@@ -17727,25 +17808,30 @@ class Translator extends EventEmitter {
|
|
|
17727
17808
|
let usedNS;
|
|
17728
17809
|
if (isString(keys))
|
|
17729
17810
|
keys = [keys];
|
|
17811
|
+
if (Array.isArray(keys))
|
|
17812
|
+
keys = keys.map((k) => typeof k === "function" ? keysFromSelector(k, {
|
|
17813
|
+
...this.options,
|
|
17814
|
+
...opt
|
|
17815
|
+
}) : k);
|
|
17730
17816
|
keys.forEach((k) => {
|
|
17731
17817
|
if (this.isValidLookup(found))
|
|
17732
17818
|
return;
|
|
17733
|
-
const extracted = this.extractFromKey(k,
|
|
17819
|
+
const extracted = this.extractFromKey(k, opt);
|
|
17734
17820
|
const key = extracted.key;
|
|
17735
17821
|
usedKey = key;
|
|
17736
17822
|
let namespaces = extracted.namespaces;
|
|
17737
17823
|
if (this.options.fallbackNS)
|
|
17738
17824
|
namespaces = namespaces.concat(this.options.fallbackNS);
|
|
17739
|
-
const needsPluralHandling =
|
|
17740
|
-
const needsZeroSuffixLookup = needsPluralHandling && !
|
|
17741
|
-
const needsContextHandling =
|
|
17742
|
-
const codes =
|
|
17825
|
+
const needsPluralHandling = opt.count !== undefined && !isString(opt.count);
|
|
17826
|
+
const needsZeroSuffixLookup = needsPluralHandling && !opt.ordinal && opt.count === 0;
|
|
17827
|
+
const needsContextHandling = opt.context !== undefined && (isString(opt.context) || typeof opt.context === "number") && opt.context !== "";
|
|
17828
|
+
const codes = opt.lngs ? opt.lngs : this.languageUtils.toResolveHierarchy(opt.lng || this.language, opt.fallbackLng);
|
|
17743
17829
|
namespaces.forEach((ns) => {
|
|
17744
17830
|
if (this.isValidLookup(found))
|
|
17745
17831
|
return;
|
|
17746
17832
|
usedNS = ns;
|
|
17747
|
-
if (!checkedLoadedFor[`${codes[0]}-${ns}`] && this.utils
|
|
17748
|
-
checkedLoadedFor[`${codes[0]}-${ns}`] = true;
|
|
17833
|
+
if (!this.checkedLoadedFor[`${codes[0]}-${ns}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(usedNS)) {
|
|
17834
|
+
this.checkedLoadedFor[`${codes[0]}-${ns}`] = true;
|
|
17749
17835
|
this.logger.warn(`key "${usedKey}" for languages "${codes.join(", ")}" won't get resolved as namespace "${usedNS}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
|
|
17750
17836
|
}
|
|
17751
17837
|
codes.forEach((code) => {
|
|
@@ -17753,31 +17839,31 @@ class Translator extends EventEmitter {
|
|
|
17753
17839
|
return;
|
|
17754
17840
|
usedLng = code;
|
|
17755
17841
|
const finalKeys = [key];
|
|
17756
|
-
if (this.i18nFormat
|
|
17757
|
-
this.i18nFormat.addLookupKeys(finalKeys, key, code, ns,
|
|
17842
|
+
if (this.i18nFormat?.addLookupKeys) {
|
|
17843
|
+
this.i18nFormat.addLookupKeys(finalKeys, key, code, ns, opt);
|
|
17758
17844
|
} else {
|
|
17759
17845
|
let pluralSuffix;
|
|
17760
17846
|
if (needsPluralHandling)
|
|
17761
|
-
pluralSuffix = this.pluralResolver.getSuffix(code,
|
|
17847
|
+
pluralSuffix = this.pluralResolver.getSuffix(code, opt.count, opt);
|
|
17762
17848
|
const zeroSuffix = `${this.options.pluralSeparator}zero`;
|
|
17763
17849
|
const ordinalPrefix = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
17764
17850
|
if (needsPluralHandling) {
|
|
17765
|
-
|
|
17766
|
-
if (options.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) {
|
|
17851
|
+
if (opt.ordinal && pluralSuffix.startsWith(ordinalPrefix)) {
|
|
17767
17852
|
finalKeys.push(key + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator));
|
|
17768
17853
|
}
|
|
17854
|
+
finalKeys.push(key + pluralSuffix);
|
|
17769
17855
|
if (needsZeroSuffixLookup) {
|
|
17770
17856
|
finalKeys.push(key + zeroSuffix);
|
|
17771
17857
|
}
|
|
17772
17858
|
}
|
|
17773
17859
|
if (needsContextHandling) {
|
|
17774
|
-
const contextKey = `${key}${this.options.contextSeparator}${
|
|
17860
|
+
const contextKey = `${key}${this.options.contextSeparator || "_"}${opt.context}`;
|
|
17775
17861
|
finalKeys.push(contextKey);
|
|
17776
17862
|
if (needsPluralHandling) {
|
|
17777
|
-
|
|
17778
|
-
if (options.ordinal && pluralSuffix.indexOf(ordinalPrefix) === 0) {
|
|
17863
|
+
if (opt.ordinal && pluralSuffix.startsWith(ordinalPrefix)) {
|
|
17779
17864
|
finalKeys.push(contextKey + pluralSuffix.replace(ordinalPrefix, this.options.pluralSeparator));
|
|
17780
17865
|
}
|
|
17866
|
+
finalKeys.push(contextKey + pluralSuffix);
|
|
17781
17867
|
if (needsZeroSuffixLookup) {
|
|
17782
17868
|
finalKeys.push(contextKey + zeroSuffix);
|
|
17783
17869
|
}
|
|
@@ -17788,7 +17874,7 @@ class Translator extends EventEmitter {
|
|
|
17788
17874
|
while (possibleKey = finalKeys.pop()) {
|
|
17789
17875
|
if (!this.isValidLookup(found)) {
|
|
17790
17876
|
exactUsedKey = possibleKey;
|
|
17791
|
-
found = this.getResource(code, ns, possibleKey,
|
|
17877
|
+
found = this.getResource(code, ns, possibleKey, opt);
|
|
17792
17878
|
}
|
|
17793
17879
|
}
|
|
17794
17880
|
});
|
|
@@ -17805,19 +17891,20 @@ class Translator extends EventEmitter {
|
|
|
17805
17891
|
isValidLookup(res) {
|
|
17806
17892
|
return res !== undefined && !(!this.options.returnNull && res === null) && !(!this.options.returnEmptyString && res === "");
|
|
17807
17893
|
}
|
|
17808
|
-
getResource(code, ns, key) {
|
|
17809
|
-
|
|
17810
|
-
if (this.i18nFormat && this.i18nFormat.getResource)
|
|
17894
|
+
getResource(code, ns, key, options = {}) {
|
|
17895
|
+
if (this.i18nFormat?.getResource)
|
|
17811
17896
|
return this.i18nFormat.getResource(code, ns, key, options);
|
|
17812
17897
|
return this.resourceStore.getResource(code, ns, key, options);
|
|
17813
17898
|
}
|
|
17814
|
-
getUsedParamsDetails() {
|
|
17815
|
-
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
17899
|
+
getUsedParamsDetails(options = {}) {
|
|
17816
17900
|
const optionsKeys = ["defaultValue", "ordinal", "context", "replace", "lng", "lngs", "fallbackLng", "ns", "keySeparator", "nsSeparator", "returnObjects", "returnDetails", "joinArrays", "postProcess", "interpolation"];
|
|
17817
17901
|
const useOptionsReplaceForData = options.replace && !isString(options.replace);
|
|
17818
17902
|
let data = useOptionsReplaceForData ? options.replace : options;
|
|
17819
17903
|
if (useOptionsReplaceForData && typeof options.count !== "undefined") {
|
|
17820
|
-
data
|
|
17904
|
+
data = {
|
|
17905
|
+
...data,
|
|
17906
|
+
count: options.count
|
|
17907
|
+
};
|
|
17821
17908
|
}
|
|
17822
17909
|
if (this.options.interpolation.defaultVariables) {
|
|
17823
17910
|
data = {
|
|
@@ -17838,24 +17925,27 @@ class Translator extends EventEmitter {
|
|
|
17838
17925
|
static hasDefaultValue(options) {
|
|
17839
17926
|
const prefix = "defaultValue";
|
|
17840
17927
|
for (const option in options) {
|
|
17841
|
-
if (Object.prototype.hasOwnProperty.call(options, option) &&
|
|
17928
|
+
if (Object.prototype.hasOwnProperty.call(options, option) && option.startsWith(prefix) && options[option] !== undefined) {
|
|
17842
17929
|
return true;
|
|
17843
17930
|
}
|
|
17844
17931
|
}
|
|
17845
17932
|
return false;
|
|
17846
17933
|
}
|
|
17847
17934
|
}
|
|
17848
|
-
var capitalize = (string) => string.charAt(0).toUpperCase() + string.slice(1);
|
|
17849
17935
|
|
|
17850
17936
|
class LanguageUtil {
|
|
17851
17937
|
constructor(options) {
|
|
17852
17938
|
this.options = options;
|
|
17853
17939
|
this.supportedLngs = this.options.supportedLngs || false;
|
|
17854
17940
|
this.logger = baseLogger.create("languageUtils");
|
|
17941
|
+
this.resolveHierarchyCache = {};
|
|
17942
|
+
}
|
|
17943
|
+
clearCache() {
|
|
17944
|
+
this.resolveHierarchyCache = {};
|
|
17855
17945
|
}
|
|
17856
17946
|
getScriptPartFromCode(code) {
|
|
17857
17947
|
code = getCleanedCode(code);
|
|
17858
|
-
if (!code || code.
|
|
17948
|
+
if (!code || !code.includes("-"))
|
|
17859
17949
|
return null;
|
|
17860
17950
|
const p = code.split("-");
|
|
17861
17951
|
if (p.length === 2)
|
|
@@ -17867,52 +17957,51 @@ class LanguageUtil {
|
|
|
17867
17957
|
}
|
|
17868
17958
|
getLanguagePartFromCode(code) {
|
|
17869
17959
|
code = getCleanedCode(code);
|
|
17870
|
-
if (!code || code.
|
|
17960
|
+
if (!code || !code.includes("-"))
|
|
17871
17961
|
return code;
|
|
17872
17962
|
const p = code.split("-");
|
|
17873
17963
|
return this.formatLanguageCode(p[0]);
|
|
17874
17964
|
}
|
|
17875
17965
|
formatLanguageCode(code) {
|
|
17876
|
-
if (isString(code) && code.
|
|
17877
|
-
|
|
17878
|
-
|
|
17879
|
-
|
|
17880
|
-
|
|
17881
|
-
|
|
17882
|
-
|
|
17883
|
-
if (formattedCode)
|
|
17884
|
-
return formattedCode;
|
|
17885
|
-
} catch (e) {}
|
|
17966
|
+
if (isString(code) && code.includes("-")) {
|
|
17967
|
+
let formattedCode;
|
|
17968
|
+
try {
|
|
17969
|
+
formattedCode = Intl.getCanonicalLocales(code)[0];
|
|
17970
|
+
} catch (e) {}
|
|
17971
|
+
if (formattedCode && this.options.lowerCaseLng) {
|
|
17972
|
+
formattedCode = formattedCode.toLowerCase();
|
|
17886
17973
|
}
|
|
17887
|
-
|
|
17888
|
-
|
|
17974
|
+
if (formattedCode)
|
|
17975
|
+
return formattedCode;
|
|
17889
17976
|
if (this.options.lowerCaseLng) {
|
|
17890
|
-
|
|
17891
|
-
}
|
|
17892
|
-
|
|
17893
|
-
|
|
17894
|
-
|
|
17895
|
-
|
|
17896
|
-
|
|
17897
|
-
|
|
17898
|
-
|
|
17899
|
-
|
|
17900
|
-
|
|
17901
|
-
|
|
17902
|
-
|
|
17903
|
-
|
|
17904
|
-
|
|
17905
|
-
|
|
17906
|
-
|
|
17907
|
-
|
|
17908
|
-
|
|
17909
|
-
|
|
17977
|
+
return code.toLowerCase();
|
|
17978
|
+
}
|
|
17979
|
+
return code;
|
|
17980
|
+
}
|
|
17981
|
+
const formatted = this.options.cleanCode || this.options.lowerCaseLng ? code.toLowerCase() : code;
|
|
17982
|
+
if (this.logger.debug && isString(code))
|
|
17983
|
+
this.deprecateBareCode(code, formatted);
|
|
17984
|
+
return formatted;
|
|
17985
|
+
}
|
|
17986
|
+
deprecateBareCode(code, formatted) {
|
|
17987
|
+
let canonical;
|
|
17988
|
+
try {
|
|
17989
|
+
canonical = Intl.getCanonicalLocales(code)[0];
|
|
17990
|
+
} catch (e) {
|
|
17991
|
+
return;
|
|
17992
|
+
}
|
|
17993
|
+
let v27 = canonical.toLowerCase() === code.toLowerCase() ? canonical : code.toLowerCase();
|
|
17994
|
+
if (this.options.lowerCaseLng)
|
|
17995
|
+
v27 = v27.toLowerCase();
|
|
17996
|
+
if (v27 === formatted)
|
|
17997
|
+
return;
|
|
17998
|
+
this.logger.once(code, "deprecate", `language code '${code}' is used as '${formatted}'; i18next v27 gives it the canonical casing '${v27}', use '${v27}' in lng, fallbackLng, supportedLngs and the resources`);
|
|
17910
17999
|
}
|
|
17911
18000
|
isSupportedCode(code) {
|
|
17912
18001
|
if (this.options.load === "languageOnly" || this.options.nonExplicitSupportedLngs) {
|
|
17913
18002
|
code = this.getLanguagePartFromCode(code);
|
|
17914
18003
|
}
|
|
17915
|
-
return !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.
|
|
18004
|
+
return !this.supportedLngs || !this.supportedLngs.length || this.supportedLngs.includes(code);
|
|
17916
18005
|
}
|
|
17917
18006
|
getBestMatchFromCodes(codes) {
|
|
17918
18007
|
if (!codes)
|
|
@@ -17929,18 +18018,20 @@ class LanguageUtil {
|
|
|
17929
18018
|
codes.forEach((code) => {
|
|
17930
18019
|
if (found)
|
|
17931
18020
|
return;
|
|
18021
|
+
const lngScOnly = this.getScriptPartFromCode(code);
|
|
18022
|
+
if (this.isSupportedCode(lngScOnly))
|
|
18023
|
+
return found = lngScOnly;
|
|
17932
18024
|
const lngOnly = this.getLanguagePartFromCode(code);
|
|
17933
18025
|
if (this.isSupportedCode(lngOnly))
|
|
17934
18026
|
return found = lngOnly;
|
|
17935
18027
|
found = this.options.supportedLngs.find((supportedLng) => {
|
|
17936
18028
|
if (supportedLng === lngOnly)
|
|
17937
|
-
return
|
|
17938
|
-
if (supportedLng.
|
|
17939
|
-
return;
|
|
17940
|
-
if (supportedLng.
|
|
17941
|
-
return
|
|
17942
|
-
|
|
17943
|
-
return supportedLng;
|
|
18029
|
+
return true;
|
|
18030
|
+
if (!supportedLng.includes("-") && !lngOnly.includes("-"))
|
|
18031
|
+
return false;
|
|
18032
|
+
if (supportedLng.includes("-") && !lngOnly.includes("-") && supportedLng.slice(0, supportedLng.indexOf("-")) === lngOnly)
|
|
18033
|
+
return true;
|
|
18034
|
+
return false;
|
|
17944
18035
|
});
|
|
17945
18036
|
});
|
|
17946
18037
|
}
|
|
@@ -17971,7 +18062,32 @@ class LanguageUtil {
|
|
|
17971
18062
|
return found || [];
|
|
17972
18063
|
}
|
|
17973
18064
|
toResolveHierarchy(code, fallbackCode) {
|
|
17974
|
-
const
|
|
18065
|
+
const fallbackLng = this.options.fallbackLng;
|
|
18066
|
+
const fallbackLngKey = Array.isArray(fallbackLng) ? fallbackLng.join("|") : fallbackLng;
|
|
18067
|
+
if (fallbackLngKey !== this._cachedFallbackLng) {
|
|
18068
|
+
this.resolveHierarchyCache = {};
|
|
18069
|
+
this._cachedFallbackLng = fallbackLngKey;
|
|
18070
|
+
}
|
|
18071
|
+
const hasCacheableFallback = fallbackCode === undefined || fallbackCode === false || isString(fallbackCode);
|
|
18072
|
+
const usesUncacheableOptionsFallback = fallbackCode === undefined && typeof this.options.fallbackLng === "function";
|
|
18073
|
+
const cacheable = isString(code) && hasCacheableFallback && !usesUncacheableOptionsFallback;
|
|
18074
|
+
let cacheKey = null;
|
|
18075
|
+
if (cacheable) {
|
|
18076
|
+
let fallbackCacheKey;
|
|
18077
|
+
if (fallbackCode === undefined)
|
|
18078
|
+
fallbackCacheKey = "undefined";
|
|
18079
|
+
else if (fallbackCode === false)
|
|
18080
|
+
fallbackCacheKey = "boolean:false";
|
|
18081
|
+
else
|
|
18082
|
+
fallbackCacheKey = `string:${fallbackCode}`;
|
|
18083
|
+
cacheKey = `${code.length}:${code}|${fallbackCacheKey}`;
|
|
18084
|
+
}
|
|
18085
|
+
if (cacheKey !== null) {
|
|
18086
|
+
const cached = this.resolveHierarchyCache[cacheKey];
|
|
18087
|
+
if (cached !== undefined)
|
|
18088
|
+
return cached.slice();
|
|
18089
|
+
}
|
|
18090
|
+
const fallbackCodes = this.getFallbackCodes((fallbackCode === false ? [] : fallbackCode) || this.options.fallbackLng || [], code);
|
|
17975
18091
|
const codes = [];
|
|
17976
18092
|
const addCode = (c) => {
|
|
17977
18093
|
if (!c)
|
|
@@ -17982,7 +18098,7 @@ class LanguageUtil {
|
|
|
17982
18098
|
this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`);
|
|
17983
18099
|
}
|
|
17984
18100
|
};
|
|
17985
|
-
if (isString(code) && (code.
|
|
18101
|
+
if (isString(code) && (code.includes("-") || code.includes("_"))) {
|
|
17986
18102
|
if (this.options.load !== "languageOnly")
|
|
17987
18103
|
addCode(this.formatLanguageCode(code));
|
|
17988
18104
|
if (this.options.load !== "languageOnly" && this.options.load !== "currentOnly")
|
|
@@ -17993,131 +18109,17 @@ class LanguageUtil {
|
|
|
17993
18109
|
addCode(this.formatLanguageCode(code));
|
|
17994
18110
|
}
|
|
17995
18111
|
fallbackCodes.forEach((fc) => {
|
|
17996
|
-
|
|
17997
|
-
|
|
18112
|
+
const formattedFc = this.formatLanguageCode(fc);
|
|
18113
|
+
if (!codes.includes(formattedFc))
|
|
18114
|
+
addCode(formattedFc);
|
|
17998
18115
|
});
|
|
18116
|
+
if (cacheKey !== null) {
|
|
18117
|
+
this.resolveHierarchyCache[cacheKey] = codes;
|
|
18118
|
+
return codes.slice();
|
|
18119
|
+
}
|
|
17999
18120
|
return codes;
|
|
18000
18121
|
}
|
|
18001
18122
|
}
|
|
18002
|
-
var sets = [{
|
|
18003
|
-
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
18004
|
-
nr: [1, 2],
|
|
18005
|
-
fc: 1
|
|
18006
|
-
}, {
|
|
18007
|
-
lngs: ["af", "an", "ast", "az", "bg", "bn", "ca", "da", "de", "dev", "el", "en", "eo", "es", "et", "eu", "fi", "fo", "fur", "fy", "gl", "gu", "ha", "hi", "hu", "hy", "ia", "it", "kk", "kn", "ku", "lb", "mai", "ml", "mn", "mr", "nah", "nap", "nb", "ne", "nl", "nn", "no", "nso", "pa", "pap", "pms", "ps", "pt-PT", "rm", "sco", "se", "si", "so", "son", "sq", "sv", "sw", "ta", "te", "tk", "ur", "yo"],
|
|
18008
|
-
nr: [1, 2],
|
|
18009
|
-
fc: 2
|
|
18010
|
-
}, {
|
|
18011
|
-
lngs: ["ay", "bo", "cgg", "fa", "ht", "id", "ja", "jbo", "ka", "km", "ko", "ky", "lo", "ms", "sah", "su", "th", "tt", "ug", "vi", "wo", "zh"],
|
|
18012
|
-
nr: [1],
|
|
18013
|
-
fc: 3
|
|
18014
|
-
}, {
|
|
18015
|
-
lngs: ["be", "bs", "cnr", "dz", "hr", "ru", "sr", "uk"],
|
|
18016
|
-
nr: [1, 2, 5],
|
|
18017
|
-
fc: 4
|
|
18018
|
-
}, {
|
|
18019
|
-
lngs: ["ar"],
|
|
18020
|
-
nr: [0, 1, 2, 3, 11, 100],
|
|
18021
|
-
fc: 5
|
|
18022
|
-
}, {
|
|
18023
|
-
lngs: ["cs", "sk"],
|
|
18024
|
-
nr: [1, 2, 5],
|
|
18025
|
-
fc: 6
|
|
18026
|
-
}, {
|
|
18027
|
-
lngs: ["csb", "pl"],
|
|
18028
|
-
nr: [1, 2, 5],
|
|
18029
|
-
fc: 7
|
|
18030
|
-
}, {
|
|
18031
|
-
lngs: ["cy"],
|
|
18032
|
-
nr: [1, 2, 3, 8],
|
|
18033
|
-
fc: 8
|
|
18034
|
-
}, {
|
|
18035
|
-
lngs: ["fr"],
|
|
18036
|
-
nr: [1, 2],
|
|
18037
|
-
fc: 9
|
|
18038
|
-
}, {
|
|
18039
|
-
lngs: ["ga"],
|
|
18040
|
-
nr: [1, 2, 3, 7, 11],
|
|
18041
|
-
fc: 10
|
|
18042
|
-
}, {
|
|
18043
|
-
lngs: ["gd"],
|
|
18044
|
-
nr: [1, 2, 3, 20],
|
|
18045
|
-
fc: 11
|
|
18046
|
-
}, {
|
|
18047
|
-
lngs: ["is"],
|
|
18048
|
-
nr: [1, 2],
|
|
18049
|
-
fc: 12
|
|
18050
|
-
}, {
|
|
18051
|
-
lngs: ["jv"],
|
|
18052
|
-
nr: [0, 1],
|
|
18053
|
-
fc: 13
|
|
18054
|
-
}, {
|
|
18055
|
-
lngs: ["kw"],
|
|
18056
|
-
nr: [1, 2, 3, 4],
|
|
18057
|
-
fc: 14
|
|
18058
|
-
}, {
|
|
18059
|
-
lngs: ["lt"],
|
|
18060
|
-
nr: [1, 2, 10],
|
|
18061
|
-
fc: 15
|
|
18062
|
-
}, {
|
|
18063
|
-
lngs: ["lv"],
|
|
18064
|
-
nr: [1, 2, 0],
|
|
18065
|
-
fc: 16
|
|
18066
|
-
}, {
|
|
18067
|
-
lngs: ["mk"],
|
|
18068
|
-
nr: [1, 2],
|
|
18069
|
-
fc: 17
|
|
18070
|
-
}, {
|
|
18071
|
-
lngs: ["mnk"],
|
|
18072
|
-
nr: [0, 1, 2],
|
|
18073
|
-
fc: 18
|
|
18074
|
-
}, {
|
|
18075
|
-
lngs: ["mt"],
|
|
18076
|
-
nr: [1, 2, 11, 20],
|
|
18077
|
-
fc: 19
|
|
18078
|
-
}, {
|
|
18079
|
-
lngs: ["or"],
|
|
18080
|
-
nr: [2, 1],
|
|
18081
|
-
fc: 2
|
|
18082
|
-
}, {
|
|
18083
|
-
lngs: ["ro"],
|
|
18084
|
-
nr: [1, 2, 20],
|
|
18085
|
-
fc: 20
|
|
18086
|
-
}, {
|
|
18087
|
-
lngs: ["sl"],
|
|
18088
|
-
nr: [5, 1, 2, 3],
|
|
18089
|
-
fc: 21
|
|
18090
|
-
}, {
|
|
18091
|
-
lngs: ["he", "iw"],
|
|
18092
|
-
nr: [1, 2, 20, 21],
|
|
18093
|
-
fc: 22
|
|
18094
|
-
}];
|
|
18095
|
-
var _rulesPluralsTypes = {
|
|
18096
|
-
1: (n) => Number(n > 1),
|
|
18097
|
-
2: (n) => Number(n != 1),
|
|
18098
|
-
3: (n) => 0,
|
|
18099
|
-
4: (n) => Number(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2),
|
|
18100
|
-
5: (n) => Number(n == 0 ? 0 : n == 1 ? 1 : n == 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5),
|
|
18101
|
-
6: (n) => Number(n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2),
|
|
18102
|
-
7: (n) => Number(n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2),
|
|
18103
|
-
8: (n) => Number(n == 1 ? 0 : n == 2 ? 1 : n != 8 && n != 11 ? 2 : 3),
|
|
18104
|
-
9: (n) => Number(n >= 2),
|
|
18105
|
-
10: (n) => Number(n == 1 ? 0 : n == 2 ? 1 : n < 7 ? 2 : n < 11 ? 3 : 4),
|
|
18106
|
-
11: (n) => Number(n == 1 || n == 11 ? 0 : n == 2 || n == 12 ? 1 : n > 2 && n < 20 ? 2 : 3),
|
|
18107
|
-
12: (n) => Number(n % 10 != 1 || n % 100 == 11),
|
|
18108
|
-
13: (n) => Number(n !== 0),
|
|
18109
|
-
14: (n) => Number(n == 1 ? 0 : n == 2 ? 1 : n == 3 ? 2 : 3),
|
|
18110
|
-
15: (n) => Number(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2),
|
|
18111
|
-
16: (n) => Number(n % 10 == 1 && n % 100 != 11 ? 0 : n !== 0 ? 1 : 2),
|
|
18112
|
-
17: (n) => Number(n == 1 || n % 10 == 1 && n % 100 != 11 ? 0 : 1),
|
|
18113
|
-
18: (n) => Number(n == 0 ? 0 : n == 1 ? 1 : 2),
|
|
18114
|
-
19: (n) => Number(n == 1 ? 0 : n == 0 || n % 100 > 1 && n % 100 < 11 ? 1 : n % 100 > 10 && n % 100 < 20 ? 2 : 3),
|
|
18115
|
-
20: (n) => Number(n == 1 ? 0 : n == 0 || n % 100 > 0 && n % 100 < 20 ? 1 : 2),
|
|
18116
|
-
21: (n) => Number(n % 100 == 1 ? 1 : n % 100 == 2 ? 2 : n % 100 == 3 || n % 100 == 4 ? 3 : 0),
|
|
18117
|
-
22: (n) => Number(n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3)
|
|
18118
|
-
};
|
|
18119
|
-
var nonIntlVersions = ["v1", "v2", "v3"];
|
|
18120
|
-
var intlVersions = ["v4"];
|
|
18121
18123
|
var suffixesOrder = {
|
|
18122
18124
|
zero: 0,
|
|
18123
18125
|
one: 1,
|
|
@@ -18126,152 +18128,95 @@ var suffixesOrder = {
|
|
|
18126
18128
|
many: 4,
|
|
18127
18129
|
other: 5
|
|
18128
18130
|
};
|
|
18129
|
-
var
|
|
18130
|
-
|
|
18131
|
-
|
|
18132
|
-
|
|
18133
|
-
|
|
18134
|
-
numbers: set.nr,
|
|
18135
|
-
plurals: _rulesPluralsTypes[set.fc]
|
|
18136
|
-
};
|
|
18137
|
-
});
|
|
18138
|
-
});
|
|
18139
|
-
return rules;
|
|
18131
|
+
var dummyRule = {
|
|
18132
|
+
select: (count) => count === 1 ? "one" : "other",
|
|
18133
|
+
resolvedOptions: () => ({
|
|
18134
|
+
pluralCategories: ["one", "other"]
|
|
18135
|
+
})
|
|
18140
18136
|
};
|
|
18141
18137
|
|
|
18142
18138
|
class PluralResolver {
|
|
18143
|
-
constructor(languageUtils) {
|
|
18144
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
18139
|
+
constructor(languageUtils, options = {}) {
|
|
18145
18140
|
this.languageUtils = languageUtils;
|
|
18146
18141
|
this.options = options;
|
|
18147
18142
|
this.logger = baseLogger.create("pluralResolver");
|
|
18148
|
-
if ((!this.options.compatibilityJSON || intlVersions.includes(this.options.compatibilityJSON)) && (typeof Intl === "undefined" || !Intl.PluralRules)) {
|
|
18149
|
-
this.options.compatibilityJSON = "v3";
|
|
18150
|
-
this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.");
|
|
18151
|
-
}
|
|
18152
|
-
this.rules = createRules();
|
|
18153
18143
|
this.pluralRulesCache = {};
|
|
18154
18144
|
}
|
|
18155
|
-
addRule(lng, obj) {
|
|
18156
|
-
this.rules[lng] = obj;
|
|
18157
|
-
}
|
|
18158
18145
|
clearCache() {
|
|
18159
18146
|
this.pluralRulesCache = {};
|
|
18160
18147
|
}
|
|
18161
|
-
getRule(code) {
|
|
18162
|
-
|
|
18163
|
-
|
|
18164
|
-
|
|
18165
|
-
|
|
18166
|
-
|
|
18167
|
-
|
|
18148
|
+
getRule(code, options = {}) {
|
|
18149
|
+
const cleanedCode = getCleanedCode(code === "dev" ? "en" : code);
|
|
18150
|
+
const type = options.ordinal ? "ordinal" : "cardinal";
|
|
18151
|
+
const cacheKey = JSON.stringify({
|
|
18152
|
+
cleanedCode,
|
|
18153
|
+
type
|
|
18154
|
+
});
|
|
18155
|
+
if (cacheKey in this.pluralRulesCache) {
|
|
18156
|
+
return this.pluralRulesCache[cacheKey];
|
|
18157
|
+
}
|
|
18158
|
+
let rule;
|
|
18159
|
+
try {
|
|
18160
|
+
rule = new Intl.PluralRules(cleanedCode, {
|
|
18168
18161
|
type
|
|
18169
18162
|
});
|
|
18170
|
-
|
|
18171
|
-
|
|
18172
|
-
|
|
18173
|
-
|
|
18174
|
-
try {
|
|
18175
|
-
rule = new Intl.PluralRules(cleanedCode, {
|
|
18176
|
-
type
|
|
18177
|
-
});
|
|
18178
|
-
} catch (err) {
|
|
18179
|
-
if (!code.match(/-|_/))
|
|
18180
|
-
return;
|
|
18181
|
-
const lngPart = this.languageUtils.getLanguagePartFromCode(code);
|
|
18182
|
-
rule = this.getRule(lngPart, options);
|
|
18163
|
+
} catch (err) {
|
|
18164
|
+
if (typeof Intl === "undefined") {
|
|
18165
|
+
this.logger.error("No Intl support, please use an Intl polyfill!");
|
|
18166
|
+
return dummyRule;
|
|
18183
18167
|
}
|
|
18184
|
-
|
|
18185
|
-
|
|
18168
|
+
if (!code.match(/-|_/))
|
|
18169
|
+
return dummyRule;
|
|
18170
|
+
const lngPart = this.languageUtils.getLanguagePartFromCode(code);
|
|
18171
|
+
rule = this.getRule(lngPart, options);
|
|
18186
18172
|
}
|
|
18187
|
-
|
|
18173
|
+
this.pluralRulesCache[cacheKey] = rule;
|
|
18174
|
+
return rule;
|
|
18188
18175
|
}
|
|
18189
|
-
needsPlural(code) {
|
|
18190
|
-
let
|
|
18191
|
-
|
|
18192
|
-
|
|
18193
|
-
|
|
18194
|
-
}
|
|
18195
|
-
return rule && rule.numbers.length > 1;
|
|
18176
|
+
needsPlural(code, options = {}) {
|
|
18177
|
+
let rule = this.getRule(code, options);
|
|
18178
|
+
if (!rule)
|
|
18179
|
+
rule = this.getRule("dev", options);
|
|
18180
|
+
return rule?.resolvedOptions().pluralCategories.length > 1;
|
|
18196
18181
|
}
|
|
18197
|
-
getPluralFormsOfKey(code, key) {
|
|
18198
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
18182
|
+
getPluralFormsOfKey(code, key, options = {}) {
|
|
18199
18183
|
return this.getSuffixes(code, options).map((suffix) => `${key}${suffix}`);
|
|
18200
18184
|
}
|
|
18201
|
-
getSuffixes(code) {
|
|
18202
|
-
let
|
|
18203
|
-
|
|
18204
|
-
|
|
18185
|
+
getSuffixes(code, options = {}) {
|
|
18186
|
+
let rule = this.getRule(code, options);
|
|
18187
|
+
if (!rule)
|
|
18188
|
+
rule = this.getRule("dev", options);
|
|
18189
|
+
if (!rule)
|
|
18205
18190
|
return [];
|
|
18206
|
-
}
|
|
18207
|
-
if (this.shouldUseIntlApi()) {
|
|
18208
|
-
return rule.resolvedOptions().pluralCategories.sort((pluralCategory1, pluralCategory2) => suffixesOrder[pluralCategory1] - suffixesOrder[pluralCategory2]).map((pluralCategory) => `${this.options.prepend}${options.ordinal ? `ordinal${this.options.prepend}` : ""}${pluralCategory}`);
|
|
18209
|
-
}
|
|
18210
|
-
return rule.numbers.map((number) => this.getSuffix(code, number, options));
|
|
18191
|
+
return rule.resolvedOptions().pluralCategories.sort((pluralCategory1, pluralCategory2) => suffixesOrder[pluralCategory1] - suffixesOrder[pluralCategory2]).map((pluralCategory) => `${this.options.prepend}${options.ordinal ? `ordinal${this.options.prepend}` : ""}${pluralCategory}`);
|
|
18211
18192
|
}
|
|
18212
|
-
getSuffix(code, count) {
|
|
18213
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
18193
|
+
getSuffix(code, count, options = {}) {
|
|
18214
18194
|
const rule = this.getRule(code, options);
|
|
18215
18195
|
if (rule) {
|
|
18216
|
-
|
|
18217
|
-
return `${this.options.prepend}${options.ordinal ? `ordinal${this.options.prepend}` : ""}${rule.select(count)}`;
|
|
18218
|
-
}
|
|
18219
|
-
return this.getSuffixRetroCompatible(rule, count);
|
|
18196
|
+
return `${this.options.prepend}${options.ordinal ? `ordinal${this.options.prepend}` : ""}${rule.select(count)}`;
|
|
18220
18197
|
}
|
|
18221
18198
|
this.logger.warn(`no plural rule found for: ${code}`);
|
|
18222
|
-
return "";
|
|
18223
|
-
}
|
|
18224
|
-
getSuffixRetroCompatible(rule, count) {
|
|
18225
|
-
const idx = rule.noAbs ? rule.plurals(count) : rule.plurals(Math.abs(count));
|
|
18226
|
-
let suffix = rule.numbers[idx];
|
|
18227
|
-
if (this.options.simplifyPluralSuffix && rule.numbers.length === 2 && rule.numbers[0] === 1) {
|
|
18228
|
-
if (suffix === 2) {
|
|
18229
|
-
suffix = "plural";
|
|
18230
|
-
} else if (suffix === 1) {
|
|
18231
|
-
suffix = "";
|
|
18232
|
-
}
|
|
18233
|
-
}
|
|
18234
|
-
const returnSuffix = () => this.options.prepend && suffix.toString() ? this.options.prepend + suffix.toString() : suffix.toString();
|
|
18235
|
-
if (this.options.compatibilityJSON === "v1") {
|
|
18236
|
-
if (suffix === 1)
|
|
18237
|
-
return "";
|
|
18238
|
-
if (typeof suffix === "number")
|
|
18239
|
-
return `_plural_${suffix.toString()}`;
|
|
18240
|
-
return returnSuffix();
|
|
18241
|
-
} else if (this.options.compatibilityJSON === "v2") {
|
|
18242
|
-
return returnSuffix();
|
|
18243
|
-
} else if (this.options.simplifyPluralSuffix && rule.numbers.length === 2 && rule.numbers[0] === 1) {
|
|
18244
|
-
return returnSuffix();
|
|
18245
|
-
}
|
|
18246
|
-
return this.options.prepend && idx.toString() ? this.options.prepend + idx.toString() : idx.toString();
|
|
18247
|
-
}
|
|
18248
|
-
shouldUseIntlApi() {
|
|
18249
|
-
return !nonIntlVersions.includes(this.options.compatibilityJSON);
|
|
18199
|
+
return this.getSuffix("dev", count, options);
|
|
18250
18200
|
}
|
|
18251
18201
|
}
|
|
18252
|
-
var deepFindWithDefaults =
|
|
18253
|
-
let keySeparator = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : ".";
|
|
18254
|
-
let ignoreJSONStructure = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true;
|
|
18202
|
+
var deepFindWithDefaults = (data, defaultData, key, keySeparator = ".", ignoreJSONStructure = true) => {
|
|
18255
18203
|
let path = getPathWithDefaults(data, defaultData, key);
|
|
18256
|
-
if (
|
|
18204
|
+
if (path == null && ignoreJSONStructure && isString(key)) {
|
|
18257
18205
|
path = deepFind(data, key, keySeparator);
|
|
18258
18206
|
if (path === undefined)
|
|
18259
18207
|
path = deepFind(defaultData, key, keySeparator);
|
|
18260
18208
|
}
|
|
18261
18209
|
return path;
|
|
18262
18210
|
};
|
|
18263
|
-
var regexSafe = (val) => val.replace(/\$/g, "$$$$");
|
|
18264
18211
|
|
|
18265
18212
|
class Interpolator {
|
|
18266
|
-
constructor() {
|
|
18267
|
-
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
18213
|
+
constructor(options = {}) {
|
|
18268
18214
|
this.logger = baseLogger.create("interpolator");
|
|
18269
18215
|
this.options = options;
|
|
18270
|
-
this.format = options
|
|
18216
|
+
this.format = options?.interpolation?.format || ((value) => value);
|
|
18271
18217
|
this.init(options);
|
|
18272
18218
|
}
|
|
18273
|
-
init() {
|
|
18274
|
-
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
18219
|
+
init(options = {}) {
|
|
18275
18220
|
if (!options.interpolation)
|
|
18276
18221
|
options.interpolation = {
|
|
18277
18222
|
escapeValue: true
|
|
@@ -18295,14 +18240,23 @@ class Interpolator {
|
|
|
18295
18240
|
maxReplaces,
|
|
18296
18241
|
alwaysFormat
|
|
18297
18242
|
} = options.interpolation;
|
|
18243
|
+
if (prefixEscaped || suffixEscaped || nestingPrefixEscaped || nestingSuffixEscaped) {
|
|
18244
|
+
const names = Object.entries({
|
|
18245
|
+
prefixEscaped,
|
|
18246
|
+
suffixEscaped,
|
|
18247
|
+
nestingPrefixEscaped,
|
|
18248
|
+
nestingSuffixEscaped
|
|
18249
|
+
}).filter(([, v]) => v).map(([k]) => k);
|
|
18250
|
+
this.logger.once(names.join(), "deprecate", `interpolation.${names.join(", interpolation.")}: the regex-escaped delimiter options are removed in v27; pass the literal delimiters as prefix, suffix, nestingPrefix and nestingSuffix`);
|
|
18251
|
+
}
|
|
18298
18252
|
this.escape = escape$1 !== undefined ? escape$1 : escape2;
|
|
18299
18253
|
this.escapeValue = escapeValue !== undefined ? escapeValue : true;
|
|
18300
18254
|
this.useRawValueToEscape = useRawValueToEscape !== undefined ? useRawValueToEscape : false;
|
|
18301
18255
|
this.prefix = prefix ? regexEscape(prefix) : prefixEscaped || "{{";
|
|
18302
18256
|
this.suffix = suffix ? regexEscape(suffix) : suffixEscaped || "}}";
|
|
18303
18257
|
this.formatSeparator = formatSeparator || ",";
|
|
18304
|
-
this.unescapePrefix = unescapeSuffix ? "" : unescapePrefix
|
|
18305
|
-
this.unescapeSuffix = this.unescapePrefix ? "" : unescapeSuffix
|
|
18258
|
+
this.unescapePrefix = unescapeSuffix ? "" : unescapePrefix ? regexEscape(unescapePrefix) : "-";
|
|
18259
|
+
this.unescapeSuffix = this.unescapePrefix ? "" : unescapeSuffix ? regexEscape(unescapeSuffix) : "";
|
|
18306
18260
|
this.nestingPrefix = nestingPrefix ? regexEscape(nestingPrefix) : nestingPrefixEscaped || regexEscape("$t(");
|
|
18307
18261
|
this.nestingSuffix = nestingSuffix ? regexEscape(nestingSuffix) : nestingSuffixEscaped || regexEscape(")");
|
|
18308
18262
|
this.nestingOptionsSeparator = nestingOptionsSeparator || ",";
|
|
@@ -18316,7 +18270,7 @@ class Interpolator {
|
|
|
18316
18270
|
}
|
|
18317
18271
|
resetRegExp() {
|
|
18318
18272
|
const getOrResetRegExp = (existingRegExp, pattern) => {
|
|
18319
|
-
if (existingRegExp
|
|
18273
|
+
if (existingRegExp?.source === pattern) {
|
|
18320
18274
|
existingRegExp.lastIndex = 0;
|
|
18321
18275
|
return existingRegExp;
|
|
18322
18276
|
}
|
|
@@ -18324,15 +18278,16 @@ class Interpolator {
|
|
|
18324
18278
|
};
|
|
18325
18279
|
this.regexp = getOrResetRegExp(this.regexp, `${this.prefix}(.+?)${this.suffix}`);
|
|
18326
18280
|
this.regexpUnescape = getOrResetRegExp(this.regexpUnescape, `${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`);
|
|
18327
|
-
this.nestingRegexp = getOrResetRegExp(this.nestingRegexp, `${this.nestingPrefix}(
|
|
18281
|
+
this.nestingRegexp = getOrResetRegExp(this.nestingRegexp, `${this.nestingPrefix}((?:[^()"']|"[^"]*"|'[^']*'|\\((?:[^()"']|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`);
|
|
18328
18282
|
}
|
|
18329
18283
|
interpolate(str, data, lng, options) {
|
|
18330
18284
|
let match;
|
|
18331
18285
|
let value;
|
|
18332
18286
|
let replaces;
|
|
18287
|
+
const original = str;
|
|
18333
18288
|
const defaultData = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {};
|
|
18334
18289
|
const handleFormat = (key) => {
|
|
18335
|
-
if (key.
|
|
18290
|
+
if (!key.includes(this.formatSeparator)) {
|
|
18336
18291
|
const path = deepFindWithDefaults(data, defaultData, key, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
18337
18292
|
return this.alwaysFormat ? this.format(path, undefined, lng, {
|
|
18338
18293
|
...options,
|
|
@@ -18350,18 +18305,36 @@ class Interpolator {
|
|
|
18350
18305
|
});
|
|
18351
18306
|
};
|
|
18352
18307
|
this.resetRegExp();
|
|
18353
|
-
|
|
18354
|
-
|
|
18308
|
+
if (!this.escapeValue && typeof str === "string" && /\$t\([^)]*\{[^}]*\{\{/.test(str)) {
|
|
18309
|
+
this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — " + "if any of those values are attacker-controlled they can inject additional " + "nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing " + "it to t(), or keep escapeValue: true.");
|
|
18310
|
+
}
|
|
18311
|
+
const missingInterpolationHandler = options?.missingInterpolationHandler || this.options.missingInterpolationHandler;
|
|
18312
|
+
const skipOnVariables = options?.interpolation?.skipOnVariables !== undefined ? options.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
|
18355
18313
|
const todos = [{
|
|
18356
18314
|
regex: this.regexpUnescape,
|
|
18357
|
-
safeValue: (val) =>
|
|
18315
|
+
safeValue: (val) => val
|
|
18358
18316
|
}, {
|
|
18359
18317
|
regex: this.regexp,
|
|
18360
|
-
safeValue: (val) =>
|
|
18318
|
+
safeValue: (val) => {
|
|
18319
|
+
if (!this.escapeValue)
|
|
18320
|
+
return val;
|
|
18321
|
+
if (this.escape === escape2 && this.options?.interpolation?.escapeValue !== false && isString(val) && val.includes("/")) {
|
|
18322
|
+
this.logger.once("/", "deprecate", "escapeValue renders '/' in a value as '/' today; from v27 the default escape leaves '/' as it is");
|
|
18323
|
+
}
|
|
18324
|
+
return this.escape(val);
|
|
18325
|
+
}
|
|
18361
18326
|
}];
|
|
18327
|
+
const unescapedValues = [];
|
|
18328
|
+
let shift = 0;
|
|
18362
18329
|
todos.forEach((todo) => {
|
|
18363
18330
|
replaces = 0;
|
|
18364
18331
|
while (match = todo.regex.exec(str)) {
|
|
18332
|
+
const at = match.index - shift;
|
|
18333
|
+
const written = unescapedValues.find(([start, end]) => at >= start && at < end);
|
|
18334
|
+
if (written) {
|
|
18335
|
+
todo.regex.lastIndex = written[1] + shift;
|
|
18336
|
+
continue;
|
|
18337
|
+
}
|
|
18365
18338
|
const matchedVar = match[1].trim();
|
|
18366
18339
|
value = handleFormat(matchedVar);
|
|
18367
18340
|
if (value === undefined) {
|
|
@@ -18371,6 +18344,9 @@ class Interpolator {
|
|
|
18371
18344
|
} else if (options && Object.prototype.hasOwnProperty.call(options, matchedVar)) {
|
|
18372
18345
|
value = "";
|
|
18373
18346
|
} else if (skipOnVariables) {
|
|
18347
|
+
if (this.logger.debug) {
|
|
18348
|
+
this.logger.once(`${original}\x00${match[0]}`, "warn", `missed to pass in variable ${matchedVar} for interpolating ${original}`);
|
|
18349
|
+
}
|
|
18374
18350
|
value = match[0];
|
|
18375
18351
|
continue;
|
|
18376
18352
|
} else {
|
|
@@ -18380,10 +18356,15 @@ class Interpolator {
|
|
|
18380
18356
|
} else if (!isString(value) && !this.useRawValueToEscape) {
|
|
18381
18357
|
value = makeString(value);
|
|
18382
18358
|
}
|
|
18383
|
-
const safeValue = todo.safeValue(value);
|
|
18384
|
-
str = str.
|
|
18359
|
+
const safeValue = makeString(todo.safeValue(value));
|
|
18360
|
+
str = str.slice(0, match.index) + safeValue + str.slice(match.index + match[0].length);
|
|
18385
18361
|
if (skipOnVariables) {
|
|
18386
|
-
todo.regex
|
|
18362
|
+
if (todo.regex === this.regexpUnescape) {
|
|
18363
|
+
unescapedValues.push([match.index, match.index + safeValue.length]);
|
|
18364
|
+
} else {
|
|
18365
|
+
shift += safeValue.length - match[0].length;
|
|
18366
|
+
}
|
|
18367
|
+
todo.regex.lastIndex += safeValue.length;
|
|
18387
18368
|
todo.regex.lastIndex -= match[0].length;
|
|
18388
18369
|
} else {
|
|
18389
18370
|
todo.regex.lastIndex = 0;
|
|
@@ -18396,22 +18377,21 @@ class Interpolator {
|
|
|
18396
18377
|
});
|
|
18397
18378
|
return str;
|
|
18398
18379
|
}
|
|
18399
|
-
nest(str, fc) {
|
|
18400
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
18380
|
+
nest(str, fc, options = {}) {
|
|
18401
18381
|
let match;
|
|
18402
18382
|
let value;
|
|
18403
18383
|
let clonedOptions;
|
|
18404
18384
|
const handleHasOptions = (key, inheritedOptions) => {
|
|
18405
18385
|
const sep = this.nestingOptionsSeparator;
|
|
18406
|
-
if (key.
|
|
18386
|
+
if (!key.includes(sep))
|
|
18407
18387
|
return key;
|
|
18408
|
-
const c = key.split(new RegExp(`${sep}[ ]*{`));
|
|
18388
|
+
const c = key.split(new RegExp(`${regexEscape(sep)}[ ]*{`));
|
|
18409
18389
|
let optionsString = `{${c[1]}`;
|
|
18410
18390
|
key = c[0];
|
|
18411
18391
|
optionsString = this.interpolate(optionsString, clonedOptions);
|
|
18412
18392
|
const matchedSingleQuotes = optionsString.match(/'/g);
|
|
18413
18393
|
const matchedDoubleQuotes = optionsString.match(/"/g);
|
|
18414
|
-
if (matchedSingleQuotes
|
|
18394
|
+
if ((matchedSingleQuotes?.length ?? 0) % 2 === 0 && !matchedDoubleQuotes || (matchedDoubleQuotes?.length ?? 0) % 2 !== 0) {
|
|
18415
18395
|
optionsString = optionsString.replace(/'/g, '"');
|
|
18416
18396
|
}
|
|
18417
18397
|
try {
|
|
@@ -18425,11 +18405,14 @@ class Interpolator {
|
|
|
18425
18405
|
this.logger.warn(`failed parsing options string in nesting for key ${key}`, e);
|
|
18426
18406
|
return `${key}${sep}${optionsString}`;
|
|
18427
18407
|
}
|
|
18428
|
-
if (clonedOptions.defaultValue && clonedOptions.defaultValue.
|
|
18408
|
+
if (clonedOptions.defaultValue && clonedOptions.defaultValue.includes(this.prefix))
|
|
18429
18409
|
delete clonedOptions.defaultValue;
|
|
18430
18410
|
return key;
|
|
18431
18411
|
};
|
|
18432
|
-
|
|
18412
|
+
const nestingRegexp = new RegExp(this.nestingRegexp);
|
|
18413
|
+
let out = "";
|
|
18414
|
+
let lastEnd = 0;
|
|
18415
|
+
while (match = nestingRegexp.exec(str)) {
|
|
18433
18416
|
let formatters = [];
|
|
18434
18417
|
clonedOptions = {
|
|
18435
18418
|
...options
|
|
@@ -18437,12 +18420,10 @@ class Interpolator {
|
|
|
18437
18420
|
clonedOptions = clonedOptions.replace && !isString(clonedOptions.replace) ? clonedOptions.replace : clonedOptions;
|
|
18438
18421
|
clonedOptions.applyPostProcessor = false;
|
|
18439
18422
|
delete clonedOptions.defaultValue;
|
|
18440
|
-
|
|
18441
|
-
if (
|
|
18442
|
-
|
|
18443
|
-
match[1] =
|
|
18444
|
-
formatters = r;
|
|
18445
|
-
doReduce = true;
|
|
18423
|
+
const keyEndIndex = /{.*}/s.test(match[1]) ? match[1].lastIndexOf("}") + 1 : match[1].indexOf(this.formatSeparator);
|
|
18424
|
+
if (keyEndIndex !== -1) {
|
|
18425
|
+
formatters = match[1].slice(keyEndIndex).split(this.formatSeparator).map((elem) => elem.trim()).filter(Boolean);
|
|
18426
|
+
match[1] = match[1].slice(0, keyEndIndex);
|
|
18446
18427
|
}
|
|
18447
18428
|
value = fc(handleHasOptions.call(this, match[1].trim(), clonedOptions), clonedOptions);
|
|
18448
18429
|
if (value && match[0] === str && !isString(value))
|
|
@@ -18453,29 +18434,30 @@ class Interpolator {
|
|
|
18453
18434
|
this.logger.warn(`missed to resolve ${match[1]} for nesting ${str}`);
|
|
18454
18435
|
value = "";
|
|
18455
18436
|
}
|
|
18456
|
-
if (
|
|
18437
|
+
if (formatters.length) {
|
|
18457
18438
|
value = formatters.reduce((v, f) => this.format(v, f, options.lng, {
|
|
18458
18439
|
...options,
|
|
18459
18440
|
interpolationkey: match[1].trim()
|
|
18460
18441
|
}), value.trim());
|
|
18461
18442
|
}
|
|
18462
|
-
|
|
18443
|
+
out += str.slice(lastEnd, match.index) + makeString(value);
|
|
18444
|
+
lastEnd = nestingRegexp.lastIndex;
|
|
18463
18445
|
this.regexp.lastIndex = 0;
|
|
18464
18446
|
}
|
|
18465
|
-
return str;
|
|
18447
|
+
return lastEnd ? out + str.slice(lastEnd) : str;
|
|
18466
18448
|
}
|
|
18467
18449
|
}
|
|
18468
18450
|
var parseFormatStr = (formatStr) => {
|
|
18469
18451
|
let formatName = formatStr.toLowerCase().trim();
|
|
18470
18452
|
const formatOptions = {};
|
|
18471
|
-
if (formatStr.
|
|
18453
|
+
if (formatStr.includes("(")) {
|
|
18472
18454
|
const p = formatStr.split("(");
|
|
18473
18455
|
formatName = p[0].toLowerCase().trim();
|
|
18474
|
-
const optStr = p[1].
|
|
18475
|
-
if (formatName === "currency" && optStr.
|
|
18456
|
+
const optStr = p[1].slice(0, -1);
|
|
18457
|
+
if (formatName === "currency" && !optStr.includes(":")) {
|
|
18476
18458
|
if (!formatOptions.currency)
|
|
18477
18459
|
formatOptions.currency = optStr.trim();
|
|
18478
|
-
} else if (formatName === "relativetime" && optStr.
|
|
18460
|
+
} else if (formatName === "relativetime" && !optStr.includes(":")) {
|
|
18479
18461
|
if (!formatOptions.range)
|
|
18480
18462
|
formatOptions.range = optStr.trim();
|
|
18481
18463
|
} else {
|
|
@@ -18504,69 +18486,74 @@ var parseFormatStr = (formatStr) => {
|
|
|
18504
18486
|
};
|
|
18505
18487
|
var createCachedFormatter = (fn) => {
|
|
18506
18488
|
const cache = {};
|
|
18507
|
-
return (
|
|
18508
|
-
let optForCache =
|
|
18509
|
-
if (
|
|
18489
|
+
return (v, l, o) => {
|
|
18490
|
+
let optForCache = o;
|
|
18491
|
+
if (o && o.interpolationkey && o.formatParams && o.formatParams[o.interpolationkey] && o[o.interpolationkey]) {
|
|
18510
18492
|
optForCache = {
|
|
18511
18493
|
...optForCache,
|
|
18512
|
-
[
|
|
18494
|
+
[o.interpolationkey]: undefined
|
|
18513
18495
|
};
|
|
18514
18496
|
}
|
|
18515
|
-
|
|
18516
|
-
|
|
18517
|
-
|
|
18518
|
-
|
|
18519
|
-
|
|
18497
|
+
let key;
|
|
18498
|
+
try {
|
|
18499
|
+
key = l + JSON.stringify(optForCache);
|
|
18500
|
+
} catch (e) {
|
|
18501
|
+
return fn(getCleanedCode(l), o)(v);
|
|
18502
|
+
}
|
|
18503
|
+
let frm = cache[key];
|
|
18504
|
+
if (!frm) {
|
|
18505
|
+
frm = fn(getCleanedCode(l), o);
|
|
18506
|
+
cache[key] = frm;
|
|
18520
18507
|
}
|
|
18521
|
-
return
|
|
18508
|
+
return frm(v);
|
|
18522
18509
|
};
|
|
18523
18510
|
};
|
|
18511
|
+
var createNonCachedFormatter = (fn) => (v, l, o) => fn(getCleanedCode(l), o)(v);
|
|
18524
18512
|
|
|
18525
18513
|
class Formatter {
|
|
18526
|
-
constructor() {
|
|
18527
|
-
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
18514
|
+
constructor(options = {}) {
|
|
18528
18515
|
this.logger = baseLogger.create("formatter");
|
|
18529
18516
|
this.options = options;
|
|
18517
|
+
this.init(options);
|
|
18518
|
+
}
|
|
18519
|
+
init(services, options = {
|
|
18520
|
+
interpolation: {}
|
|
18521
|
+
}) {
|
|
18522
|
+
this.formatSeparator = options.interpolation.formatSeparator || ",";
|
|
18523
|
+
const cf = options.cacheInBuiltFormats ? createCachedFormatter : createNonCachedFormatter;
|
|
18530
18524
|
this.formats = {
|
|
18531
|
-
number:
|
|
18525
|
+
number: cf((lng, opt) => {
|
|
18532
18526
|
const formatter = new Intl.NumberFormat(lng, {
|
|
18533
18527
|
...opt
|
|
18534
18528
|
});
|
|
18535
18529
|
return (val) => formatter.format(val);
|
|
18536
18530
|
}),
|
|
18537
|
-
currency:
|
|
18531
|
+
currency: cf((lng, opt) => {
|
|
18538
18532
|
const formatter = new Intl.NumberFormat(lng, {
|
|
18539
18533
|
...opt,
|
|
18540
18534
|
style: "currency"
|
|
18541
18535
|
});
|
|
18542
18536
|
return (val) => formatter.format(val);
|
|
18543
18537
|
}),
|
|
18544
|
-
datetime:
|
|
18538
|
+
datetime: cf((lng, opt) => {
|
|
18545
18539
|
const formatter = new Intl.DateTimeFormat(lng, {
|
|
18546
18540
|
...opt
|
|
18547
18541
|
});
|
|
18548
18542
|
return (val) => formatter.format(val);
|
|
18549
18543
|
}),
|
|
18550
|
-
relativetime:
|
|
18544
|
+
relativetime: cf((lng, opt) => {
|
|
18551
18545
|
const formatter = new Intl.RelativeTimeFormat(lng, {
|
|
18552
18546
|
...opt
|
|
18553
18547
|
});
|
|
18554
18548
|
return (val) => formatter.format(val, opt.range || "day");
|
|
18555
18549
|
}),
|
|
18556
|
-
list:
|
|
18550
|
+
list: cf((lng, opt) => {
|
|
18557
18551
|
const formatter = new Intl.ListFormat(lng, {
|
|
18558
18552
|
...opt
|
|
18559
18553
|
});
|
|
18560
18554
|
return (val) => formatter.format(val);
|
|
18561
18555
|
})
|
|
18562
18556
|
};
|
|
18563
|
-
this.init(options);
|
|
18564
|
-
}
|
|
18565
|
-
init(services) {
|
|
18566
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
18567
|
-
interpolation: {}
|
|
18568
|
-
};
|
|
18569
|
-
this.formatSeparator = options.interpolation.formatSeparator || ",";
|
|
18570
18557
|
}
|
|
18571
18558
|
add(name, fc) {
|
|
18572
18559
|
this.formats[name.toLowerCase().trim()] = fc;
|
|
@@ -18574,12 +18561,19 @@ class Formatter {
|
|
|
18574
18561
|
addCached(name, fc) {
|
|
18575
18562
|
this.formats[name.toLowerCase().trim()] = createCachedFormatter(fc);
|
|
18576
18563
|
}
|
|
18577
|
-
format(value, format, lng) {
|
|
18578
|
-
|
|
18579
|
-
|
|
18580
|
-
if (
|
|
18581
|
-
|
|
18582
|
-
|
|
18564
|
+
format(value, format, lng, options = {}) {
|
|
18565
|
+
if (!format)
|
|
18566
|
+
return value;
|
|
18567
|
+
if (value == null)
|
|
18568
|
+
return value;
|
|
18569
|
+
const rawFormats = format.split(this.formatSeparator);
|
|
18570
|
+
const formats = [];
|
|
18571
|
+
for (let i = 0;i < rawFormats.length; i++) {
|
|
18572
|
+
let f = rawFormats[i];
|
|
18573
|
+
while (f.indexOf("(") > -1 && !f.includes(")") && i + 1 < rawFormats.length) {
|
|
18574
|
+
f = `${f}${this.formatSeparator}${rawFormats[++i]}`;
|
|
18575
|
+
}
|
|
18576
|
+
formats.push(f);
|
|
18583
18577
|
}
|
|
18584
18578
|
const result = formats.reduce((mem, f) => {
|
|
18585
18579
|
const {
|
|
@@ -18589,7 +18583,7 @@ class Formatter {
|
|
|
18589
18583
|
if (this.formats[formatName]) {
|
|
18590
18584
|
let formatted = mem;
|
|
18591
18585
|
try {
|
|
18592
|
-
const valOptions = options
|
|
18586
|
+
const valOptions = options?.formatParams?.[options.interpolationkey] || {};
|
|
18593
18587
|
const l = valOptions.locale || valOptions.lng || options.locale || options.lng || lng;
|
|
18594
18588
|
formatted = this.formats[formatName](mem, l, {
|
|
18595
18589
|
...formatOptions,
|
|
@@ -18616,8 +18610,7 @@ var removePending = (q, name) => {
|
|
|
18616
18610
|
};
|
|
18617
18611
|
|
|
18618
18612
|
class Connector extends EventEmitter {
|
|
18619
|
-
constructor(backend, store, services) {
|
|
18620
|
-
let options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
18613
|
+
constructor(backend, store, services, options = {}) {
|
|
18621
18614
|
super();
|
|
18622
18615
|
this.backend = backend;
|
|
18623
18616
|
this.store = store;
|
|
@@ -18632,8 +18625,10 @@ class Connector extends EventEmitter {
|
|
|
18632
18625
|
this.retryTimeout = options.retryTimeout >= 1 ? options.retryTimeout : 350;
|
|
18633
18626
|
this.state = {};
|
|
18634
18627
|
this.queue = [];
|
|
18635
|
-
|
|
18636
|
-
|
|
18628
|
+
this.backend?.init?.(services, options.backend, options);
|
|
18629
|
+
this.callbackApi = callbackApiOf(this.backend);
|
|
18630
|
+
if (this.backend && this.callbackApi === undefined && (this.backend.read || this.backend.create)) {
|
|
18631
|
+
this.logger.deprecate("backend: set callbackApi to declare the calling convention (true: read(language, namespace, callback) and create(languages, namespace, key, fallbackValue, callback, options); false: both return a promise or a value); guessing it from the number of parameters is deprecated");
|
|
18637
18632
|
}
|
|
18638
18633
|
}
|
|
18639
18634
|
queueLoad(languages, namespaces, options, callback) {
|
|
@@ -18647,7 +18642,7 @@ class Connector extends EventEmitter {
|
|
|
18647
18642
|
const name = `${lng}|${ns}`;
|
|
18648
18643
|
if (!options.reload && this.store.hasResourceBundle(lng, ns)) {
|
|
18649
18644
|
this.state[name] = 2;
|
|
18650
|
-
} else if (this.state[name] < 0)
|
|
18645
|
+
} else if (!options.reload && this.state[name] < 0)
|
|
18651
18646
|
;
|
|
18652
18647
|
else if (this.state[name] === 1) {
|
|
18653
18648
|
if (pending[name] === undefined)
|
|
@@ -18725,10 +18720,7 @@ class Connector extends EventEmitter {
|
|
|
18725
18720
|
this.emit("loaded", loaded);
|
|
18726
18721
|
this.queue = this.queue.filter((q) => !q.done);
|
|
18727
18722
|
}
|
|
18728
|
-
read(lng, ns, fcName) {
|
|
18729
|
-
let tried = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
18730
|
-
let wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : this.retryTimeout;
|
|
18731
|
-
let callback = arguments.length > 5 ? arguments[5] : undefined;
|
|
18723
|
+
read(lng, ns, fcName, tried = 0, wait = this.retryTimeout, callback) {
|
|
18732
18724
|
if (!lng.length)
|
|
18733
18725
|
return callback(null, {});
|
|
18734
18726
|
if (this.readingCalls >= this.maxParallelReads) {
|
|
@@ -18751,14 +18743,14 @@ class Connector extends EventEmitter {
|
|
|
18751
18743
|
}
|
|
18752
18744
|
if (err && data && tried < this.maxRetries) {
|
|
18753
18745
|
setTimeout(() => {
|
|
18754
|
-
this.read
|
|
18746
|
+
this.read(lng, ns, fcName, tried + 1, wait * 2, callback);
|
|
18755
18747
|
}, wait);
|
|
18756
18748
|
return;
|
|
18757
18749
|
}
|
|
18758
18750
|
callback(err, data);
|
|
18759
18751
|
};
|
|
18760
18752
|
const fc = this.backend[fcName].bind(this.backend);
|
|
18761
|
-
if (fc.length === 2) {
|
|
18753
|
+
if (this.callbackApi === false || this.callbackApi === undefined && fc.length === 2) {
|
|
18762
18754
|
try {
|
|
18763
18755
|
const r = fc(lng, ns);
|
|
18764
18756
|
if (r && typeof r.then === "function") {
|
|
@@ -18773,9 +18765,7 @@ class Connector extends EventEmitter {
|
|
|
18773
18765
|
}
|
|
18774
18766
|
return fc(lng, ns, resolver);
|
|
18775
18767
|
}
|
|
18776
|
-
prepareLoading(languages, namespaces) {
|
|
18777
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
18778
|
-
let callback = arguments.length > 3 ? arguments[3] : undefined;
|
|
18768
|
+
prepareLoading(languages, namespaces, options = {}, callback) {
|
|
18779
18769
|
if (!this.backend) {
|
|
18780
18770
|
this.logger.warn("No backend was added via i18next.use. Will not load resources.");
|
|
18781
18771
|
return callback && callback();
|
|
@@ -18802,11 +18792,16 @@ class Connector extends EventEmitter {
|
|
|
18802
18792
|
reload: true
|
|
18803
18793
|
}, callback);
|
|
18804
18794
|
}
|
|
18805
|
-
|
|
18806
|
-
|
|
18795
|
+
noticeDevFallback(lng) {
|
|
18796
|
+
if (lng !== "dev" || !this.devIsDefaultFallback)
|
|
18797
|
+
return;
|
|
18798
|
+
this.logger.once("dev", "warn", "language 'dev' is requested because fallbackLng is not set (its default is ['dev']); i18next v27 defaults to fallbackLng: false and loads and saves missing keys in the requested language instead. Set fallbackLng to your source language, or to 'dev' to keep this behavior");
|
|
18799
|
+
}
|
|
18800
|
+
loadOne(name, prefix = "") {
|
|
18807
18801
|
const s = name.split("|");
|
|
18808
18802
|
const lng = s[0];
|
|
18809
18803
|
const ns = s[1];
|
|
18804
|
+
this.noticeDevFallback(lng);
|
|
18810
18805
|
this.read(lng, ns, "read", undefined, undefined, (err, data) => {
|
|
18811
18806
|
if (err)
|
|
18812
18807
|
this.logger.warn(`${prefix}loading namespace ${ns} for language ${lng} failed`, err);
|
|
@@ -18815,25 +18810,24 @@ class Connector extends EventEmitter {
|
|
|
18815
18810
|
this.loaded(name, err, data);
|
|
18816
18811
|
});
|
|
18817
18812
|
}
|
|
18818
|
-
saveMissing(languages, namespace, key, fallbackValue, isUpdate) {
|
|
18819
|
-
|
|
18820
|
-
let clb = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : () => {};
|
|
18821
|
-
if (this.services.utils && this.services.utils.hasLoadedNamespace && !this.services.utils.hasLoadedNamespace(namespace)) {
|
|
18813
|
+
saveMissing(languages, namespace, key, fallbackValue, isUpdate, options = {}, clb = () => {}, hasLoadedNamespace = this.newestCloneHasLoadedNamespace || this.services?.utils?.hasLoadedNamespace) {
|
|
18814
|
+
if (hasLoadedNamespace && !hasLoadedNamespace(namespace)) {
|
|
18822
18815
|
this.logger.warn(`did not save key "${key}" as the namespace "${namespace}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");
|
|
18823
18816
|
return;
|
|
18824
18817
|
}
|
|
18825
18818
|
if (key === undefined || key === null || key === "")
|
|
18826
18819
|
return;
|
|
18827
|
-
if (this.backend
|
|
18820
|
+
if (this.backend?.create) {
|
|
18821
|
+
languages?.forEach?.((l) => this.noticeDevFallback(l));
|
|
18828
18822
|
const opts = {
|
|
18829
18823
|
...options,
|
|
18830
18824
|
isUpdate
|
|
18831
18825
|
};
|
|
18832
18826
|
const fc = this.backend.create.bind(this.backend);
|
|
18833
|
-
if (fc.length < 6) {
|
|
18827
|
+
if (this.callbackApi === false || this.callbackApi === undefined && fc.length < 6) {
|
|
18834
18828
|
try {
|
|
18835
18829
|
let r;
|
|
18836
|
-
if (fc.length === 5) {
|
|
18830
|
+
if (this.callbackApi === false || fc.length === 5) {
|
|
18837
18831
|
r = fc(languages, namespace, key, fallbackValue, opts);
|
|
18838
18832
|
} else {
|
|
18839
18833
|
r = fc(languages, namespace, key, fallbackValue);
|
|
@@ -18857,7 +18851,7 @@ class Connector extends EventEmitter {
|
|
|
18857
18851
|
}
|
|
18858
18852
|
var get = () => ({
|
|
18859
18853
|
debug: false,
|
|
18860
|
-
|
|
18854
|
+
initAsync: true,
|
|
18861
18855
|
ns: ["translation"],
|
|
18862
18856
|
defaultNS: ["translation"],
|
|
18863
18857
|
fallbackLng: ["dev"],
|
|
@@ -18866,11 +18860,11 @@ var get = () => ({
|
|
|
18866
18860
|
nonExplicitSupportedLngs: false,
|
|
18867
18861
|
load: "all",
|
|
18868
18862
|
preload: false,
|
|
18869
|
-
simplifyPluralSuffix: true,
|
|
18870
18863
|
keySeparator: ".",
|
|
18871
18864
|
nsSeparator: ":",
|
|
18872
18865
|
pluralSeparator: "_",
|
|
18873
18866
|
contextSeparator: "_",
|
|
18867
|
+
enableSelector: false,
|
|
18874
18868
|
partialBundledLanguages: false,
|
|
18875
18869
|
saveMissing: false,
|
|
18876
18870
|
updateMissing: false,
|
|
@@ -18906,7 +18900,6 @@ var get = () => ({
|
|
|
18906
18900
|
},
|
|
18907
18901
|
interpolation: {
|
|
18908
18902
|
escapeValue: true,
|
|
18909
|
-
format: (value) => value,
|
|
18910
18903
|
prefix: "{{",
|
|
18911
18904
|
suffix: "}}",
|
|
18912
18905
|
formatSeparator: ",",
|
|
@@ -18916,7 +18909,8 @@ var get = () => ({
|
|
|
18916
18909
|
nestingOptionsSeparator: ",",
|
|
18917
18910
|
maxReplaces: 1000,
|
|
18918
18911
|
skipOnVariables: true
|
|
18919
|
-
}
|
|
18912
|
+
},
|
|
18913
|
+
cacheInBuiltFormats: true
|
|
18920
18914
|
});
|
|
18921
18915
|
var transformOptions = (options) => {
|
|
18922
18916
|
if (isString(options.ns))
|
|
@@ -18925,12 +18919,13 @@ var transformOptions = (options) => {
|
|
|
18925
18919
|
options.fallbackLng = [options.fallbackLng];
|
|
18926
18920
|
if (isString(options.fallbackNS))
|
|
18927
18921
|
options.fallbackNS = [options.fallbackNS];
|
|
18928
|
-
if (options.supportedLngs && options.supportedLngs.
|
|
18922
|
+
if (options.supportedLngs && !options.supportedLngs.includes("cimode")) {
|
|
18929
18923
|
options.supportedLngs = options.supportedLngs.concat(["cimode"]);
|
|
18930
18924
|
}
|
|
18931
18925
|
return options;
|
|
18932
18926
|
};
|
|
18933
18927
|
var noop = () => {};
|
|
18928
|
+
var loggerOwner;
|
|
18934
18929
|
var bindMemberFunctions = (inst) => {
|
|
18935
18930
|
const mems = Object.getOwnPropertyNames(Object.getPrototypeOf(inst));
|
|
18936
18931
|
mems.forEach((mem) => {
|
|
@@ -18941,19 +18936,19 @@ var bindMemberFunctions = (inst) => {
|
|
|
18941
18936
|
};
|
|
18942
18937
|
|
|
18943
18938
|
class I18n extends EventEmitter {
|
|
18944
|
-
constructor() {
|
|
18945
|
-
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
18946
|
-
let callback = arguments.length > 1 ? arguments[1] : undefined;
|
|
18939
|
+
constructor(options = {}, callback) {
|
|
18947
18940
|
super();
|
|
18948
18941
|
this.options = transformOptions(options);
|
|
18949
|
-
this.services = {
|
|
18942
|
+
this.services = {
|
|
18943
|
+
ownPostProcessors: new Set
|
|
18944
|
+
};
|
|
18950
18945
|
this.logger = baseLogger;
|
|
18951
18946
|
this.modules = {
|
|
18952
18947
|
external: []
|
|
18953
18948
|
};
|
|
18954
18949
|
bindMemberFunctions(this);
|
|
18955
18950
|
if (callback && !this.isInitialized && !options.isClone) {
|
|
18956
|
-
if (!this.options.
|
|
18951
|
+
if (!this.options.initAsync) {
|
|
18957
18952
|
this.init(options, callback);
|
|
18958
18953
|
return this;
|
|
18959
18954
|
}
|
|
@@ -18962,40 +18957,39 @@ class I18n extends EventEmitter {
|
|
|
18962
18957
|
}, 0);
|
|
18963
18958
|
}
|
|
18964
18959
|
}
|
|
18965
|
-
init() {
|
|
18966
|
-
var _this = this;
|
|
18967
|
-
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
18968
|
-
let callback = arguments.length > 1 ? arguments[1] : undefined;
|
|
18960
|
+
init(options = {}, callback) {
|
|
18969
18961
|
this.isInitializing = true;
|
|
18970
18962
|
if (typeof options === "function") {
|
|
18971
18963
|
callback = options;
|
|
18972
18964
|
options = {};
|
|
18973
18965
|
}
|
|
18974
|
-
if (
|
|
18966
|
+
if (options.defaultNS == null && options.ns) {
|
|
18975
18967
|
if (isString(options.ns)) {
|
|
18976
18968
|
options.defaultNS = options.ns;
|
|
18977
|
-
} else if (options.ns.
|
|
18969
|
+
} else if (!options.ns.includes("translation")) {
|
|
18978
18970
|
options.defaultNS = options.ns[0];
|
|
18979
18971
|
}
|
|
18980
18972
|
}
|
|
18973
|
+
const fallbackLngIsDefault = options.fallbackLng === undefined && this.options.fallbackLng === undefined;
|
|
18981
18974
|
const defOpts = get();
|
|
18982
18975
|
this.options = {
|
|
18983
18976
|
...defOpts,
|
|
18984
18977
|
...this.options,
|
|
18985
18978
|
...transformOptions(options)
|
|
18986
18979
|
};
|
|
18987
|
-
|
|
18988
|
-
|
|
18989
|
-
|
|
18990
|
-
|
|
18991
|
-
};
|
|
18992
|
-
}
|
|
18980
|
+
this.options.interpolation = {
|
|
18981
|
+
...defOpts.interpolation,
|
|
18982
|
+
...this.options.interpolation
|
|
18983
|
+
};
|
|
18993
18984
|
if (options.keySeparator !== undefined) {
|
|
18994
18985
|
this.options.userDefinedKeySeparator = options.keySeparator;
|
|
18995
18986
|
}
|
|
18996
18987
|
if (options.nsSeparator !== undefined) {
|
|
18997
18988
|
this.options.userDefinedNsSeparator = options.nsSeparator;
|
|
18998
18989
|
}
|
|
18990
|
+
if (typeof this.options.overloadTranslationOptionHandler !== "function") {
|
|
18991
|
+
this.options.overloadTranslationOptionHandler = defOpts.overloadTranslationOptionHandler;
|
|
18992
|
+
}
|
|
18999
18993
|
const createClassOnDemand = (ClassOrObject) => {
|
|
19000
18994
|
if (!ClassOrObject)
|
|
19001
18995
|
return null;
|
|
@@ -19004,15 +18998,21 @@ class I18n extends EventEmitter {
|
|
|
19004
18998
|
return ClassOrObject;
|
|
19005
18999
|
};
|
|
19006
19000
|
if (!this.options.isClone) {
|
|
19001
|
+
if (loggerOwner && loggerOwner !== this && loggerOwner.modules.logger !== this.modules.logger) {
|
|
19002
|
+
baseLogger.deprecate("init: this init() replaces the logger another i18next instance set with use(), as the logger is shared in v26; from v27 each instance keeps its own logger");
|
|
19003
|
+
}
|
|
19004
|
+
loggerOwner = this.modules.logger ? this : undefined;
|
|
19007
19005
|
if (this.modules.logger) {
|
|
19008
19006
|
baseLogger.init(createClassOnDemand(this.modules.logger), this.options);
|
|
19009
19007
|
} else {
|
|
19010
19008
|
baseLogger.init(null, this.options);
|
|
19011
19009
|
}
|
|
19010
|
+
this.pendingWarnings?.forEach((msg) => this.logger.warn(msg));
|
|
19011
|
+
this.pendingWarnings = undefined;
|
|
19012
19012
|
let formatter;
|
|
19013
19013
|
if (this.modules.formatter) {
|
|
19014
19014
|
formatter = this.modules.formatter;
|
|
19015
|
-
} else
|
|
19015
|
+
} else {
|
|
19016
19016
|
formatter = Formatter;
|
|
19017
19017
|
}
|
|
19018
19018
|
const lu = new LanguageUtil(this.options);
|
|
@@ -19022,30 +19022,31 @@ class I18n extends EventEmitter {
|
|
|
19022
19022
|
s.resourceStore = this.store;
|
|
19023
19023
|
s.languageUtils = lu;
|
|
19024
19024
|
s.pluralResolver = new PluralResolver(lu, {
|
|
19025
|
-
prepend: this.options.pluralSeparator
|
|
19026
|
-
compatibilityJSON: this.options.compatibilityJSON,
|
|
19027
|
-
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
19025
|
+
prepend: this.options.pluralSeparator
|
|
19028
19026
|
});
|
|
19029
|
-
if (formatter
|
|
19027
|
+
if (formatter) {
|
|
19030
19028
|
s.formatter = createClassOnDemand(formatter);
|
|
19031
|
-
s.formatter.init
|
|
19029
|
+
if (s.formatter.init)
|
|
19030
|
+
s.formatter.init(s, this.options);
|
|
19032
19031
|
this.options.interpolation.format = s.formatter.format.bind(s.formatter);
|
|
19033
19032
|
}
|
|
19034
19033
|
s.interpolator = new Interpolator(this.options);
|
|
19035
19034
|
s.utils = {
|
|
19036
|
-
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
19035
|
+
hasLoadedNamespace: this.hasLoadedNamespace.bind(this),
|
|
19036
|
+
reloadResources: this.reloadResources.bind(this)
|
|
19037
19037
|
};
|
|
19038
19038
|
s.backendConnector = new Connector(createClassOnDemand(this.modules.backend), s.resourceStore, s, this.options);
|
|
19039
|
-
s.backendConnector.
|
|
19040
|
-
|
|
19041
|
-
|
|
19042
|
-
}
|
|
19043
|
-
_this.emit(event, ...args);
|
|
19039
|
+
s.backendConnector.devIsDefaultFallback = fallbackLngIsDefault;
|
|
19040
|
+
s.backendConnector.on("*", (event, ...args) => {
|
|
19041
|
+
this.emit(event, ...args);
|
|
19044
19042
|
});
|
|
19045
19043
|
if (this.modules.languageDetector) {
|
|
19046
19044
|
s.languageDetector = createClassOnDemand(this.modules.languageDetector);
|
|
19047
19045
|
if (s.languageDetector.init)
|
|
19048
19046
|
s.languageDetector.init(s, this.options.detection, this.options);
|
|
19047
|
+
if (s.languageDetector.async && callbackApiOf(s.languageDetector) === undefined) {
|
|
19048
|
+
this.logger.deprecate("languageDetector: set callbackApi to declare how the async detect() answers (true: detect(callback); false: detect() returns a promise); guessing it from the number of parameters is deprecated");
|
|
19049
|
+
}
|
|
19049
19050
|
}
|
|
19050
19051
|
if (this.modules.i18nFormat) {
|
|
19051
19052
|
s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);
|
|
@@ -19053,11 +19054,8 @@ class I18n extends EventEmitter {
|
|
|
19053
19054
|
s.i18nFormat.init(this);
|
|
19054
19055
|
}
|
|
19055
19056
|
this.translator = new Translator(this.services, this.options);
|
|
19056
|
-
this.translator.on("*",
|
|
19057
|
-
|
|
19058
|
-
args[_key2 - 1] = arguments[_key2];
|
|
19059
|
-
}
|
|
19060
|
-
_this.emit(event, ...args);
|
|
19057
|
+
this.translator.on("*", (event, ...args) => {
|
|
19058
|
+
this.emit(event, ...args);
|
|
19061
19059
|
});
|
|
19062
19060
|
this.modules.external.forEach((m) => {
|
|
19063
19061
|
if (m.init)
|
|
@@ -19077,15 +19075,13 @@ class I18n extends EventEmitter {
|
|
|
19077
19075
|
}
|
|
19078
19076
|
const storeApi = ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"];
|
|
19079
19077
|
storeApi.forEach((fcName) => {
|
|
19080
|
-
this[fcName] =
|
|
19081
|
-
return _this.store[fcName](...arguments);
|
|
19082
|
-
};
|
|
19078
|
+
this[fcName] = (...args) => this.store[fcName](...args);
|
|
19083
19079
|
});
|
|
19084
19080
|
const storeApiChained = ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"];
|
|
19085
19081
|
storeApiChained.forEach((fcName) => {
|
|
19086
|
-
this[fcName] =
|
|
19087
|
-
|
|
19088
|
-
return
|
|
19082
|
+
this[fcName] = (...args) => {
|
|
19083
|
+
this.store[fcName](...args);
|
|
19084
|
+
return this;
|
|
19089
19085
|
};
|
|
19090
19086
|
});
|
|
19091
19087
|
const deferred = defer();
|
|
@@ -19101,25 +19097,24 @@ class I18n extends EventEmitter {
|
|
|
19101
19097
|
deferred.resolve(t);
|
|
19102
19098
|
callback(err, t);
|
|
19103
19099
|
};
|
|
19104
|
-
if (this.languages
|
|
19100
|
+
if ((this.languages || this.isLanguageChangingTo) && !this.isInitialized)
|
|
19105
19101
|
return finish(null, this.t.bind(this));
|
|
19106
19102
|
this.changeLanguage(this.options.lng, finish);
|
|
19107
19103
|
};
|
|
19108
|
-
if (this.options.resources || !this.options.
|
|
19104
|
+
if (this.options.resources || !this.options.initAsync) {
|
|
19109
19105
|
load();
|
|
19110
19106
|
} else {
|
|
19111
19107
|
setTimeout(load, 0);
|
|
19112
19108
|
}
|
|
19113
19109
|
return deferred;
|
|
19114
19110
|
}
|
|
19115
|
-
loadResources(language) {
|
|
19116
|
-
let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
|
|
19111
|
+
loadResources(language, callback = noop) {
|
|
19117
19112
|
let usedCallback = callback;
|
|
19118
19113
|
const usedLng = isString(language) ? language : this.language;
|
|
19119
19114
|
if (typeof language === "function")
|
|
19120
19115
|
usedCallback = language;
|
|
19121
19116
|
if (!this.options.resources || this.options.partialBundledLanguages) {
|
|
19122
|
-
if (usedLng
|
|
19117
|
+
if (usedLng?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0))
|
|
19123
19118
|
return usedCallback();
|
|
19124
19119
|
const toLoad = [];
|
|
19125
19120
|
const append = (lng) => {
|
|
@@ -19131,7 +19126,7 @@ class I18n extends EventEmitter {
|
|
|
19131
19126
|
lngs.forEach((l) => {
|
|
19132
19127
|
if (l === "cimode")
|
|
19133
19128
|
return;
|
|
19134
|
-
if (toLoad.
|
|
19129
|
+
if (!toLoad.includes(l))
|
|
19135
19130
|
toLoad.push(l);
|
|
19136
19131
|
});
|
|
19137
19132
|
};
|
|
@@ -19141,9 +19136,7 @@ class I18n extends EventEmitter {
|
|
|
19141
19136
|
} else {
|
|
19142
19137
|
append(usedLng);
|
|
19143
19138
|
}
|
|
19144
|
-
|
|
19145
|
-
this.options.preload.forEach((l) => append(l));
|
|
19146
|
-
}
|
|
19139
|
+
this.options.preload?.forEach?.((l) => append(l));
|
|
19147
19140
|
this.services.backendConnector.load(toLoad, this.options.ns, (e) => {
|
|
19148
19141
|
if (!e && !this.resolvedLanguage && this.language)
|
|
19149
19142
|
this.setResolvedLanguage(this.language);
|
|
@@ -19163,8 +19156,10 @@ class I18n extends EventEmitter {
|
|
|
19163
19156
|
callback = ns;
|
|
19164
19157
|
ns = undefined;
|
|
19165
19158
|
}
|
|
19166
|
-
if (!lngs)
|
|
19167
|
-
|
|
19159
|
+
if (!lngs) {
|
|
19160
|
+
const requested = Object.keys(this.services.backendConnector.state).map((name) => name.split("|")[0]);
|
|
19161
|
+
lngs = [...new Set([...this.languages || [], ...requested])].filter((l) => l !== "cimode");
|
|
19162
|
+
}
|
|
19168
19163
|
if (!ns)
|
|
19169
19164
|
ns = this.options.ns;
|
|
19170
19165
|
if (!callback)
|
|
@@ -19180,46 +19175,84 @@ class I18n extends EventEmitter {
|
|
|
19180
19175
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
19181
19176
|
if (!module.type)
|
|
19182
19177
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
19178
|
+
const setModule = (type) => {
|
|
19179
|
+
if (this.modules[type] && this.modules[type] !== module) {
|
|
19180
|
+
const msg = `use: this ${type} replaces the ${type} passed to an earlier use() call; only one ${type} is used per instance`;
|
|
19181
|
+
if (this.isInitializing || this.isInitialized)
|
|
19182
|
+
this.logger.warn(msg);
|
|
19183
|
+
else
|
|
19184
|
+
(this.pendingWarnings = this.pendingWarnings || []).push(msg);
|
|
19185
|
+
}
|
|
19186
|
+
this.modules[type] = module;
|
|
19187
|
+
};
|
|
19183
19188
|
if (module.type === "backend") {
|
|
19184
|
-
|
|
19189
|
+
setModule("backend");
|
|
19185
19190
|
}
|
|
19186
19191
|
if (module.type === "logger" || module.log && module.warn && module.error) {
|
|
19187
19192
|
this.modules.logger = module;
|
|
19188
19193
|
}
|
|
19189
19194
|
if (module.type === "languageDetector") {
|
|
19190
|
-
|
|
19195
|
+
setModule("languageDetector");
|
|
19191
19196
|
}
|
|
19192
19197
|
if (module.type === "i18nFormat") {
|
|
19193
|
-
|
|
19198
|
+
setModule("i18nFormat");
|
|
19194
19199
|
}
|
|
19195
19200
|
if (module.type === "postProcessor") {
|
|
19196
19201
|
postProcessor.addPostProcessor(module);
|
|
19202
|
+
this.services.ownPostProcessors?.add(module.name);
|
|
19197
19203
|
}
|
|
19198
19204
|
if (module.type === "formatter") {
|
|
19199
|
-
|
|
19205
|
+
setModule("formatter");
|
|
19200
19206
|
}
|
|
19201
19207
|
if (module.type === "3rdParty") {
|
|
19202
19208
|
this.modules.external.push(module);
|
|
19203
19209
|
}
|
|
19204
19210
|
return this;
|
|
19205
19211
|
}
|
|
19212
|
+
hydrate(resources, lng) {
|
|
19213
|
+
if (this.options.isClone)
|
|
19214
|
+
return this;
|
|
19215
|
+
if (!this.services.resourceStore) {
|
|
19216
|
+
this.logger.warn("hydrate: call init() first, the instance has no resource store yet");
|
|
19217
|
+
return this;
|
|
19218
|
+
}
|
|
19219
|
+
if (resources && !this.initializedStoreOnce) {
|
|
19220
|
+
this.services.resourceStore.data = resources;
|
|
19221
|
+
Object.values(resources).forEach((lngResources) => {
|
|
19222
|
+
Object.keys(lngResources).forEach((ns) => {
|
|
19223
|
+
if (!this.options.ns.includes(ns))
|
|
19224
|
+
this.options.ns.push(ns);
|
|
19225
|
+
});
|
|
19226
|
+
});
|
|
19227
|
+
this.initializedStoreOnce = true;
|
|
19228
|
+
this.isInitialized = true;
|
|
19229
|
+
}
|
|
19230
|
+
if (lng && !this.initializedLanguageOnce) {
|
|
19231
|
+
this.changeLanguage(lng);
|
|
19232
|
+
this.initializedLanguageOnce = true;
|
|
19233
|
+
}
|
|
19234
|
+
return this;
|
|
19235
|
+
}
|
|
19206
19236
|
setResolvedLanguage(l) {
|
|
19207
19237
|
if (!l || !this.languages)
|
|
19208
19238
|
return;
|
|
19209
|
-
if (["cimode", "dev"].
|
|
19239
|
+
if (["cimode", "dev"].includes(l))
|
|
19210
19240
|
return;
|
|
19211
19241
|
for (let li = 0;li < this.languages.length; li++) {
|
|
19212
19242
|
const lngInLngs = this.languages[li];
|
|
19213
|
-
if (["cimode", "dev"].
|
|
19243
|
+
if (["cimode", "dev"].includes(lngInLngs))
|
|
19214
19244
|
continue;
|
|
19215
19245
|
if (this.store.hasLanguageSomeTranslations(lngInLngs)) {
|
|
19216
19246
|
this.resolvedLanguage = lngInLngs;
|
|
19217
19247
|
break;
|
|
19218
19248
|
}
|
|
19219
19249
|
}
|
|
19250
|
+
if (!this.resolvedLanguage && !this.languages.includes(l) && this.store.hasLanguageSomeTranslations(l)) {
|
|
19251
|
+
this.resolvedLanguage = l;
|
|
19252
|
+
this.languages.unshift(l);
|
|
19253
|
+
}
|
|
19220
19254
|
}
|
|
19221
19255
|
changeLanguage(lng, callback) {
|
|
19222
|
-
var _this2 = this;
|
|
19223
19256
|
this.isLanguageChangingTo = lng;
|
|
19224
19257
|
const deferred = defer();
|
|
19225
19258
|
this.emit("languageChanging", lng);
|
|
@@ -19231,34 +19264,38 @@ class I18n extends EventEmitter {
|
|
|
19231
19264
|
};
|
|
19232
19265
|
const done = (err, l) => {
|
|
19233
19266
|
if (l) {
|
|
19234
|
-
|
|
19235
|
-
|
|
19236
|
-
|
|
19237
|
-
|
|
19238
|
-
|
|
19267
|
+
if (this.isLanguageChangingTo === lng) {
|
|
19268
|
+
setLngProps(l);
|
|
19269
|
+
this.translator.changeLanguage(l);
|
|
19270
|
+
this.isLanguageChangingTo = undefined;
|
|
19271
|
+
this.emit("languageChanged", l);
|
|
19272
|
+
this.logger.log("languageChanged", l);
|
|
19273
|
+
}
|
|
19239
19274
|
} else {
|
|
19240
19275
|
this.isLanguageChangingTo = undefined;
|
|
19241
19276
|
}
|
|
19242
|
-
deferred.resolve(
|
|
19243
|
-
return _this2.t(...arguments);
|
|
19244
|
-
});
|
|
19277
|
+
deferred.resolve((...args) => this.t(...args));
|
|
19245
19278
|
if (callback)
|
|
19246
|
-
callback(err,
|
|
19247
|
-
return _this2.t(...arguments);
|
|
19248
|
-
});
|
|
19279
|
+
callback(err, (...args) => this.t(...args));
|
|
19249
19280
|
};
|
|
19250
19281
|
const setLng = (lngs) => {
|
|
19251
19282
|
if (!lng && !lngs && this.services.languageDetector)
|
|
19252
19283
|
lngs = [];
|
|
19253
|
-
const
|
|
19284
|
+
const fl = isString(lngs) ? lngs : lngs && lngs[0];
|
|
19285
|
+
const l = this.store.hasLanguageSomeTranslations(fl) ? fl : this.services.languageUtils.getBestMatchFromCodes(isString(lngs) ? [lngs] : lngs);
|
|
19286
|
+
if (l && this.logger.debug && !isSafeLanguageCode(l)) {
|
|
19287
|
+
const configured = [].concat(this.options.supportedLngs || [], this.services.languageUtils.getFallbackCodes(this.options.fallbackLng, l), this.options.preload || []);
|
|
19288
|
+
if (!configured.includes(l) && !Object.prototype.hasOwnProperty.call(this.store.data, l)) {
|
|
19289
|
+
this.logger.once(`lng:${l}`, "deprecate", `changeLanguage: the language code '${l.slice(0, 64)}' comes from lng, changeLanguage() or the language detector and is not configured; from v27 such a code is refused unless it has only letters, digits, '-', '_', '@' and '.' (no '..'), at most 128 characters. Set supportedLngs, or check the code before passing it on`);
|
|
19290
|
+
}
|
|
19291
|
+
}
|
|
19254
19292
|
if (l) {
|
|
19255
19293
|
if (!this.language) {
|
|
19256
19294
|
setLngProps(l);
|
|
19257
19295
|
}
|
|
19258
19296
|
if (!this.translator.language)
|
|
19259
19297
|
this.translator.changeLanguage(l);
|
|
19260
|
-
|
|
19261
|
-
this.services.languageDetector.cacheUserLanguage(l);
|
|
19298
|
+
this.services.languageDetector?.cacheUserLanguage?.(l);
|
|
19262
19299
|
}
|
|
19263
19300
|
this.loadResources(l, (err) => {
|
|
19264
19301
|
done(err, l);
|
|
@@ -19267,7 +19304,8 @@ class I18n extends EventEmitter {
|
|
|
19267
19304
|
if (!lng && this.services.languageDetector && !this.services.languageDetector.async) {
|
|
19268
19305
|
setLng(this.services.languageDetector.detect());
|
|
19269
19306
|
} else if (!lng && this.services.languageDetector && this.services.languageDetector.async) {
|
|
19270
|
-
|
|
19307
|
+
const callbackApi = callbackApiOf(this.services.languageDetector);
|
|
19308
|
+
if (callbackApi === false || callbackApi === undefined && this.services.languageDetector.detect.length === 0) {
|
|
19271
19309
|
this.services.languageDetector.detect().then(setLng);
|
|
19272
19310
|
} else {
|
|
19273
19311
|
this.services.languageDetector.detect(setLng);
|
|
@@ -19277,33 +19315,45 @@ class I18n extends EventEmitter {
|
|
|
19277
19315
|
}
|
|
19278
19316
|
return deferred;
|
|
19279
19317
|
}
|
|
19280
|
-
getFixedT(lng, ns, keyPrefix) {
|
|
19281
|
-
|
|
19282
|
-
const fixedT =
|
|
19283
|
-
let
|
|
19318
|
+
getFixedT(lng, ns, keyPrefix, fixedOpts) {
|
|
19319
|
+
const scopeNs = fixedOpts?.scopeNs;
|
|
19320
|
+
const fixedT = (key, opts, ...rest) => {
|
|
19321
|
+
let o;
|
|
19284
19322
|
if (typeof opts !== "object") {
|
|
19285
|
-
|
|
19286
|
-
rest[_key3 - 2] = arguments[_key3];
|
|
19287
|
-
}
|
|
19288
|
-
options = _this3.options.overloadTranslationOptionHandler([key, opts].concat(rest));
|
|
19323
|
+
o = this.options.overloadTranslationOptionHandler([key, opts].concat(rest));
|
|
19289
19324
|
} else {
|
|
19290
|
-
|
|
19325
|
+
o = {
|
|
19291
19326
|
...opts
|
|
19292
19327
|
};
|
|
19293
19328
|
}
|
|
19294
|
-
|
|
19295
|
-
|
|
19296
|
-
|
|
19297
|
-
|
|
19298
|
-
|
|
19299
|
-
|
|
19329
|
+
o.lng = o.lng || fixedT.lng;
|
|
19330
|
+
o.lngs = o.lngs || fixedT.lngs;
|
|
19331
|
+
const explicitCallNs = o.ns !== undefined && o.ns !== null;
|
|
19332
|
+
o.ns = o.ns || fixedT.ns;
|
|
19333
|
+
if (o.keyPrefix !== "")
|
|
19334
|
+
o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;
|
|
19335
|
+
const selectorOpts = {
|
|
19336
|
+
...this.options,
|
|
19337
|
+
...o
|
|
19338
|
+
};
|
|
19339
|
+
if (Array.isArray(scopeNs) && !explicitCallNs)
|
|
19340
|
+
selectorOpts.ns = scopeNs;
|
|
19341
|
+
if (typeof o.keyPrefix === "function")
|
|
19342
|
+
o.keyPrefix = keysFromSelector(o.keyPrefix, selectorOpts);
|
|
19343
|
+
const keySeparator = this.options.keySeparator || ".";
|
|
19300
19344
|
let resultKey;
|
|
19301
|
-
if (
|
|
19302
|
-
resultKey = key.map((k) =>
|
|
19345
|
+
if (o.keyPrefix && Array.isArray(key)) {
|
|
19346
|
+
resultKey = key.map((k) => {
|
|
19347
|
+
if (typeof k === "function")
|
|
19348
|
+
k = keysFromSelector(k, selectorOpts);
|
|
19349
|
+
return `${o.keyPrefix}${keySeparator}${k}`;
|
|
19350
|
+
});
|
|
19303
19351
|
} else {
|
|
19304
|
-
|
|
19352
|
+
if (typeof key === "function")
|
|
19353
|
+
key = keysFromSelector(key, selectorOpts);
|
|
19354
|
+
resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;
|
|
19305
19355
|
}
|
|
19306
|
-
return
|
|
19356
|
+
return this.t(resultKey, o);
|
|
19307
19357
|
};
|
|
19308
19358
|
if (isString(lng)) {
|
|
19309
19359
|
fixedT.lng = lng;
|
|
@@ -19314,17 +19364,20 @@ class I18n extends EventEmitter {
|
|
|
19314
19364
|
fixedT.keyPrefix = keyPrefix;
|
|
19315
19365
|
return fixedT;
|
|
19316
19366
|
}
|
|
19317
|
-
t() {
|
|
19318
|
-
|
|
19367
|
+
t(...args) {
|
|
19368
|
+
if (!this.translator) {
|
|
19369
|
+
this.logger.warn("t: called before init(); returning an empty string");
|
|
19370
|
+
return "";
|
|
19371
|
+
}
|
|
19372
|
+
return this.translator.translate(...args);
|
|
19319
19373
|
}
|
|
19320
|
-
exists() {
|
|
19321
|
-
return this.translator
|
|
19374
|
+
exists(...args) {
|
|
19375
|
+
return this.translator?.exists(...args);
|
|
19322
19376
|
}
|
|
19323
19377
|
setDefaultNamespace(ns) {
|
|
19324
19378
|
this.options.defaultNS = ns;
|
|
19325
19379
|
}
|
|
19326
|
-
hasLoadedNamespace(ns) {
|
|
19327
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
19380
|
+
hasLoadedNamespace(ns, options = {}) {
|
|
19328
19381
|
if (!this.isInitialized) {
|
|
19329
19382
|
this.logger.warn("hasLoadedNamespace: i18next was not initialized", this.languages);
|
|
19330
19383
|
return false;
|
|
@@ -19351,7 +19404,11 @@ class I18n extends EventEmitter {
|
|
|
19351
19404
|
return true;
|
|
19352
19405
|
if (!this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages)
|
|
19353
19406
|
return true;
|
|
19354
|
-
|
|
19407
|
+
const {
|
|
19408
|
+
languageUtils
|
|
19409
|
+
} = this.services;
|
|
19410
|
+
const loadLng = !options.lng ? lng : languageUtils.isSupportedCode(lng) && languageUtils.toResolveHierarchy(lng, false)[0];
|
|
19411
|
+
if ((!loadLng || loadNotPending(loadLng, ns)) && (!fallbackLng || loadNotPending(lastLng, ns)))
|
|
19355
19412
|
return true;
|
|
19356
19413
|
return false;
|
|
19357
19414
|
}
|
|
@@ -19365,7 +19422,7 @@ class I18n extends EventEmitter {
|
|
|
19365
19422
|
if (isString(ns))
|
|
19366
19423
|
ns = [ns];
|
|
19367
19424
|
ns.forEach((n) => {
|
|
19368
|
-
if (this.options.ns.
|
|
19425
|
+
if (!this.options.ns.includes(n))
|
|
19369
19426
|
this.options.ns.push(n);
|
|
19370
19427
|
});
|
|
19371
19428
|
this.loadResources((err) => {
|
|
@@ -19380,7 +19437,7 @@ class I18n extends EventEmitter {
|
|
|
19380
19437
|
if (isString(lngs))
|
|
19381
19438
|
lngs = [lngs];
|
|
19382
19439
|
const preloaded = this.options.preload || [];
|
|
19383
|
-
const newLngs = lngs.filter((lng) => preloaded.
|
|
19440
|
+
const newLngs = lngs.filter((lng) => !preloaded.includes(lng) && this.services.languageUtils.isSupportedCode(lng));
|
|
19384
19441
|
if (!newLngs.length) {
|
|
19385
19442
|
if (callback)
|
|
19386
19443
|
callback();
|
|
@@ -19396,26 +19453,39 @@ class I18n extends EventEmitter {
|
|
|
19396
19453
|
}
|
|
19397
19454
|
dir(lng) {
|
|
19398
19455
|
if (!lng)
|
|
19399
|
-
lng = this.resolvedLanguage || (this.languages
|
|
19456
|
+
lng = this.resolvedLanguage || (this.languages?.length > 0 ? this.languages[0] : this.language);
|
|
19400
19457
|
if (!lng)
|
|
19401
|
-
return "
|
|
19458
|
+
return "ltr";
|
|
19459
|
+
try {
|
|
19460
|
+
const l = new Intl.Locale(lng);
|
|
19461
|
+
if (l && l.getTextInfo) {
|
|
19462
|
+
const ti = l.getTextInfo();
|
|
19463
|
+
if (ti && ti.direction)
|
|
19464
|
+
return ti.direction;
|
|
19465
|
+
}
|
|
19466
|
+
} catch (e) {}
|
|
19402
19467
|
const rtlLngs = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"];
|
|
19403
|
-
const languageUtils = this.services
|
|
19404
|
-
|
|
19468
|
+
const languageUtils = this.services?.languageUtils || new LanguageUtil(get());
|
|
19469
|
+
if (lng.toLowerCase().indexOf("-latn") > 1)
|
|
19470
|
+
return "ltr";
|
|
19471
|
+
return rtlLngs.includes(languageUtils.getLanguagePartFromCode(lng)) || lng.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
19405
19472
|
}
|
|
19406
|
-
static createInstance() {
|
|
19407
|
-
|
|
19408
|
-
|
|
19409
|
-
return
|
|
19473
|
+
static createInstance(options = {}, callback) {
|
|
19474
|
+
const instance = new I18n(options, callback);
|
|
19475
|
+
instance.createInstance = I18n.createInstance;
|
|
19476
|
+
return instance;
|
|
19410
19477
|
}
|
|
19411
|
-
cloneInstance() {
|
|
19412
|
-
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
19413
|
-
let callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
|
|
19478
|
+
cloneInstance(options = {}, callback = noop) {
|
|
19414
19479
|
const forkResourceStore = options.forkResourceStore;
|
|
19415
|
-
if (forkResourceStore)
|
|
19480
|
+
if (forkResourceStore) {
|
|
19481
|
+
options = {
|
|
19482
|
+
...options
|
|
19483
|
+
};
|
|
19416
19484
|
delete options.forkResourceStore;
|
|
19485
|
+
}
|
|
19417
19486
|
const mergedOptions = {
|
|
19418
19487
|
...this.options,
|
|
19488
|
+
preload: false,
|
|
19419
19489
|
...options,
|
|
19420
19490
|
...{
|
|
19421
19491
|
isClone: true
|
|
@@ -19433,24 +19503,45 @@ class I18n extends EventEmitter {
|
|
|
19433
19503
|
...this.services
|
|
19434
19504
|
};
|
|
19435
19505
|
clone.services.utils = {
|
|
19436
|
-
|
|
19506
|
+
...clone.services.utils,
|
|
19507
|
+
hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone),
|
|
19508
|
+
reloadResources: clone.reloadResources.bind(clone)
|
|
19437
19509
|
};
|
|
19438
19510
|
if (forkResourceStore) {
|
|
19439
|
-
|
|
19511
|
+
const copyData = (obj) => {
|
|
19512
|
+
const copied = Array.isArray(obj) ? [...obj] : {
|
|
19513
|
+
...obj
|
|
19514
|
+
};
|
|
19515
|
+
Object.keys(copied).forEach((k) => {
|
|
19516
|
+
if (copied[k] && typeof copied[k] === "object")
|
|
19517
|
+
copied[k] = copyData(copied[k]);
|
|
19518
|
+
});
|
|
19519
|
+
return copied;
|
|
19520
|
+
};
|
|
19521
|
+
const clonedData = copyData(this.store.data);
|
|
19522
|
+
clone.store = new ResourceStore(clonedData, mergedOptions);
|
|
19440
19523
|
clone.services.resourceStore = clone.store;
|
|
19441
19524
|
}
|
|
19525
|
+
if (options.interpolation) {
|
|
19526
|
+
const defOpts = get();
|
|
19527
|
+
const mergedInterpolation = {
|
|
19528
|
+
...defOpts.interpolation,
|
|
19529
|
+
...this.options.interpolation,
|
|
19530
|
+
...options.interpolation
|
|
19531
|
+
};
|
|
19532
|
+
const mergedForInterpolator = {
|
|
19533
|
+
...mergedOptions,
|
|
19534
|
+
interpolation: mergedInterpolation
|
|
19535
|
+
};
|
|
19536
|
+
clone.services.interpolator = new Interpolator(mergedForInterpolator);
|
|
19537
|
+
}
|
|
19442
19538
|
clone.translator = new Translator(clone.services, mergedOptions);
|
|
19443
|
-
clone.translator.on("*",
|
|
19444
|
-
for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1;_key4 < _len4; _key4++) {
|
|
19445
|
-
args[_key4 - 1] = arguments[_key4];
|
|
19446
|
-
}
|
|
19539
|
+
clone.translator.on("*", (event, ...args) => {
|
|
19447
19540
|
clone.emit(event, ...args);
|
|
19448
19541
|
});
|
|
19449
19542
|
clone.init(mergedOptions, callback);
|
|
19450
19543
|
clone.translator.options = mergedOptions;
|
|
19451
|
-
clone.translator.backendConnector.
|
|
19452
|
-
hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
|
|
19453
|
-
};
|
|
19544
|
+
clone.translator.backendConnector.newestCloneHasLoadedNamespace = clone.hasLoadedNamespace.bind(clone);
|
|
19454
19545
|
return clone;
|
|
19455
19546
|
}
|
|
19456
19547
|
toJSON() {
|
|
@@ -19464,7 +19555,6 @@ class I18n extends EventEmitter {
|
|
|
19464
19555
|
}
|
|
19465
19556
|
}
|
|
19466
19557
|
var instance = I18n.createInstance();
|
|
19467
|
-
instance.createInstance = I18n.createInstance;
|
|
19468
19558
|
var createInstance = instance.createInstance;
|
|
19469
19559
|
var dir = instance.dir;
|
|
19470
19560
|
var init = instance.init;
|
|
@@ -33978,7 +34068,7 @@ var __export = (target, all) => {
|
|
|
33978
34068
|
// ../../node_modules/@uipath/flow-core/dist/chunk-VRIHFKUF.js
|
|
33979
34069
|
var globImport_locales_json2 = __glob2({
|
|
33980
34070
|
"../../locales/de.json": () => import("./de-HF4GJ4EK-xrrajtht.js"),
|
|
33981
|
-
"../../locales/en.json": () => import("./en-ETY46SDS-
|
|
34071
|
+
"../../locales/en.json": () => import("./en-ETY46SDS-jq5gwyeg.js"),
|
|
33982
34072
|
"../../locales/es-MX.json": () => import("./es-MX-D2MN3U37-0y5q0nbe.js"),
|
|
33983
34073
|
"../../locales/es.json": () => import("./es-IYP2OLUY-98xsbyd5.js"),
|
|
33984
34074
|
"../../locales/fr.json": () => import("./fr-NISALSPL-vzfmygd7.js"),
|
|
@@ -89985,4 +90075,4 @@ _ManifestClient.version = "0.0.1";
|
|
|
89985
90075
|
var ManifestClient2 = _ManifestClient;
|
|
89986
90076
|
export { agentDuplicateToolNames_duplicateName_message2, agentEmptyVar_unwrittenVariable_message2, agentFileNotAnalyzed_unconsumedFileVar_message2, agentInputRefs_ambiguousUnderscoreAsset_message2, agentInputRefs_ambiguousUnderscoreRoot_message2, agentInputRefs_normalizedNameCollision_message2, agentInputRefs_reservedAssetsRoot_message2, agentInputRefs_reservedMetadataRoot_message2, agentInputRefs_reservedNamespace_message2, agentInputRefs_unresolvedRef_message2, agenticSwitchDuplicateChoices_duplicateName_message2, conditionExpression_decisionWrapped_message2, conditionExpression_incomplete_message2, conditionExpression_invalid_message2, conditionExpression_required_message2, conversationTrigger_displayPromptRequired_message2, conversationalRequired_contextRequired_message2, conversationalRequired_conversationIdRequired_message2, conversationalVoiceEndCall_callContextInvalid_message2, conversationalVoice_callContextInvalid_message2, conversationalVoice_callContextRequired_message2, dataTransform_customScriptMissing_message2, dataTransform_filterMissingField_message2, dataTransform_filterNoConditions_message2, dataTransform_groupByAggMissingField_message2, dataTransform_groupByAggMissingOutputName_message2, dataTransform_groupByMissingField_message2, dataTransform_mapMissingField_message2, dataTransform_mapNoMappings_message2, dataTransform_missingCollection_message2, dataTransform_noOperations_message2, doWhile_limitOutOfRange_message2, entityQuery_emptyFilterExpression_message2, entityQuery_emptyFilterValueList_message2, entityQuery_incompleteSingleRecordRow_message2, entityQuery_invalidRecordLimit_message2, entityQuery_invalidRecordSkip_message2, entityQuery_nonUniqueSingleRecordField_message2, entityQuery_uncarryableExpression_message2, entityQuery_uncarryableRelationPath_message2, entityQuery_unfilteredSingleRecord_message2, entityQuery_unresolvedRelation_message2, entitySchema_fieldMissing_message2, entityWrite_readNodeFilterless_message2, entityWrite_readNodeMissing_message2, entityWrite_readNodeMultiRecord_message2, entityWrite_readNodeNonNative_message2, entityWrite_readNodeUnusableFilter_message2, entityWrite_requiredFieldBlanked_message2, entityWrite_requiredFieldMissing_message2, errorHandlerPlacement_connected_message2, errorHandlerPlacement_duplicate_message2, errorHandlerPlacement_nested_message2, errorHandlerPlacement_subflow_message2, escalation_appRequired_message2, escalation_memoryArgumentRequired_message2, escalation_nameRequired_message2, escalation_quickFormDuplicateFieldLabel_message2, escalation_recipientRequired_message2, governance_hitlRequired_message2, governance_maxIterationsExceeded_message2, governance_maxTokensExceeded_message2, governance_modelNotAvailable_message2, governance_noAllowedModel_message2, governance_temperatureExceeded_message2, hitlDocClassification_processedDocumentRequired_message2, hitlDocValidation_extractionOutputRequired_message2, hitlDocValidation_extractionResultRequired_message2, hitlDocValidation_taxonomyRequired_message2, hitlQuickForm_emptySchema_message2, hitlQuickForm_fieldLabelRequired_message2, ixpSchemaDraft_invalidWithDetail_message2, ixpSchemaDraft_invalid_message2, ixpSchemaLimits_exceeded_message2, jevClassifier_instructionsMissing_message2, jevClassifier_instructionsVariableMissing_message2, jevClassifier_instructionsVariableType_message2, jevClassifier_levelTextMissing_message2, jevClassifier_levelsCount_message2, jevClassifier_modelMissing_message2, jevClassifier_optionNameDuplicate_message2, jevClassifier_optionNameMissing_message2, jevClassifier_optionsCount_message2, jevClassifier_questionFieldVariableMissing_message2, jevClassifier_questionFieldVariableType_message2, jevClassifier_questionNameDuplicate_message2, jevClassifier_questionNameInvalid_message2, jevClassifier_questionNameMissing_message2, jevClassifier_questionsMissing_message2, jevClassifier_questionsVariableMissing_message2, jevClassifier_questionsVariableType_message2, jevClassifier_stateJsonArray_message2, jevClassifier_stateJsonObject_message2, jevClassifier_statePropertiesMissing_message2, jevClassifier_statePropertyNameDuplicate_message2, jevClassifier_statePropertyNameInvalid_message2, jevClassifier_statePropertyNameMissing_message2, jevClassifier_statePropertyValueInvalid_message2, jevClassifier_statePropertyValueMissing_message2, jevClassifier_statePropertyVariableMissing_message2, jevClassifier_statePropertyVariableType_message2, jevClassifier_stateTextMissing_message2, jevClassifier_stateVariableMissing_message2, jevClassifier_stateVariableType_message2, nodeId_invalidFormat_message2, nodeId_reservedWord_message2, nodeMaxInstances_exceeded_message2, outputMapping_missing_message2, patternPlaceholder_step_message2, retry_durationInvalid_message2, retry_exponentialBaseInvalid_message2, retry_maxCountInvalid_message2, schemaValidator_genericKeyword_message2, schemaValidator_invalidEnum_message2, schemaValidator_invalidField_message2, schemaValidator_invalidPattern_message2, schemaValidator_outOfRange_message2, schemaValidator_required_message2, schemaValidator_typeMismatch_message2, schemaValidator_validation_genericError2, scriptBody_mustache_message2, singleConversationTrigger_message2, timeLimit_durationInvalid_message2, triggerRequired_message2, en_default, DYNAMIC_EXTRACT_NODE_TYPE2, manifest_categorySection_dataFabric2, manifest_category_agentToolA2a_name2, manifest_category_agentToolAgent_name2, manifest_category_agentToolAgenticProcess_name2, manifest_category_agentToolApi_name2, manifest_category_agentToolBuiltIn_name2, manifest_category_agentToolClientSide_description2, manifest_category_agentToolClientSide_name2, manifest_category_agentToolConnector_name2, manifest_category_agentToolFlow_name2, manifest_category_agentToolFunction_name2, manifest_category_agentToolIxp_name2, manifest_category_agentToolMcp_name2, manifest_category_agentToolRpa_name2, manifest_category_agentTool_name2, manifest_category_agent_description2, manifest_category_agent_name2, manifest_category_agenticProcess_description2, manifest_category_agenticProcess_name2, manifest_category_apiWorkflow_description2, manifest_category_apiWorkflow_name2, manifest_category_caseManagement_description2, manifest_category_caseManagement_name2, manifest_category_connectorEvent_name2, manifest_category_connectorTrigger_name2, manifest_category_connector_description2, manifest_category_connector_name2, manifest_category_contextGroundingIndexes_description2, manifest_category_contextGroundingIndexes_name2, manifest_category_controlFlow_description2, manifest_category_controlFlow_name2, manifest_category_conversationalTools_description2, manifest_category_conversationalTools_name2, manifest_category_conversational_name2, manifest_category_data_description2, manifest_category_data_name2, manifest_category_documentExtraction_description2, manifest_category_documentExtraction_name2, manifest_category_documentProcessing_description2, manifest_category_documentProcessing_name2, manifest_category_externalAgent_description2, manifest_category_externalAgent_name2, manifest_category_flow_description2, manifest_category_flow_name2, manifest_category_function_name2, manifest_category_humanDecision_description2, manifest_category_humanDecision_name2, manifest_category_humanTask_description2, manifest_category_humanTask_name2, manifest_category_patterns_description2, manifest_category_patterns_name2, manifest_category_queueTools_description2, manifest_category_queueTools_name2, manifest_category_rpaWorkflow_description2, manifest_category_rpaWorkflow_name2, manifest_category_tool_description2, manifest_category_tool_name2, manifest_category_trigger_description2, manifest_category_trigger_name2, manifest_category_voiceTools_description2, manifest_category_voiceTools_name2, manifest_category_waitForEvent_description2, manifest_category_waitForEvent_name2, manifest_createNewNode_description2, manifest_createNewNode_label2, manifest_handle_agentTool_validationMessage2, manifest_handle_context_createNewAction_description2, manifest_handle_context_createNewAction_label2, manifest_handle_tool_createNewAction_label2, manifest_nodeBuilder_appProperties_actionCatalogName_label2, manifest_nodeBuilder_appProperties_actionCatalogName_placeholder2, manifest_nodeBuilder_appProperties_assignee_label2, manifest_nodeBuilder_appProperties_assignee_placeholder2, manifest_nodeBuilder_appProperties_enableActionableMessages_label2, manifest_nodeBuilder_appProperties_labels_label2, manifest_nodeBuilder_appProperties_labels_placeholder2, manifest_nodeBuilder_appProperties_priority_criticalOption2, manifest_nodeBuilder_appProperties_priority_highOption2, manifest_nodeBuilder_appProperties_priority_label2, manifest_nodeBuilder_appProperties_priority_lowOption2, manifest_nodeBuilder_appProperties_priority_mediumOption2, manifest_nodeBuilder_appProperties_priority_required2, manifest_nodeBuilder_appProperties_section_title2, manifest_nodeBuilder_appProperties_taskTitle_label2, manifest_nodeBuilder_appProperties_taskTitle_required2, manifest_nodeBuilder_conversationalAgentSettings_endExchange_description2, manifest_nodeBuilder_conversationalAgentSettings_endExchange_label2, manifest_nodeBuilder_conversationalAgentSettings_section_title2, manifest_nodeBuilder_humanTask_form_title2, manifest_nodeBuilder_inputs_section_title2, manifest_nodeBuilder_toolbar_open_label2, manifest_node_agentContext_form_indexSettings_section_title2, manifest_node_agentContext_form_title2, manifest_node_agentContext_handle_input_validationMessage2, manifest_node_agentContext_inputDefaults_query_promptValue_semantic2, manifest_node_agentContext_validation_outputColumns_itemDescription_required2, manifest_node_agentContext_validation_outputColumns_minItems2, manifest_node_agentContext_validation_query_required_batchtransform2, manifest_node_agentContext_validation_query_required_deeprag2, manifest_node_agentContext_validation_query_required_semantic2, manifest_node_agentMemory_handle_input_validationMessage2, manifest_node_agenticSwitch_description2, manifest_node_agenticSwitch_display_label2, manifest_node_agenticSwitch_form_advanced_inputApiKey_description2, manifest_node_agenticSwitch_form_advanced_inputApiKey_label2, manifest_node_agenticSwitch_form_advanced_title2, manifest_node_agenticSwitch_form_criteria_description2, manifest_node_agenticSwitch_form_criteria_inputCriteria_label2, manifest_node_agenticSwitch_form_criteria_title2, manifest_node_agenticSwitch_form_decision_inputConfidenceThreshold_description2, manifest_node_agenticSwitch_form_decision_inputConfidenceThreshold_label2, manifest_node_agenticSwitch_form_decision_inputInstructions_description2, manifest_node_agenticSwitch_form_decision_inputInstructions_label2, manifest_node_agenticSwitch_form_decision_inputInstructions_placeholder2, manifest_node_agenticSwitch_form_decision_inputState_description2, manifest_node_agenticSwitch_form_decision_inputState_label2, manifest_node_agenticSwitch_form_decision_inputState_placeholder2, manifest_node_agenticSwitch_form_title2, manifest_node_agenticSwitch_input_apiKey_errorMessage2, manifest_node_agenticSwitch_input_criteria_errorMessage2, manifest_node_agenticSwitch_input_instructions_errorMessage2, manifest_node_agenticSwitch_input_state_errorMessage2, manifest_node_agenticSwitch_output_output_description2, manifest_node_analyzeFilesTool_description2, manifest_node_analyzeFilesTool_display_description2, manifest_node_analyzeFilesTool_display_label2, manifest_node_analyzeFilesTool_form_analyzefilesSettings_inputAnalysisTaskDescription_label2, manifest_node_analyzeFilesTool_form_analyzefilesSettings_inputAnalysisTaskDescription_placeholder2, manifest_node_analyzeFilesTool_form_analyzefilesSettings_inputAttachmentsDescription_label2, manifest_node_analyzeFilesTool_form_analyzefilesSettings_inputAttachmentsDescription_placeholder2, manifest_node_analyzeFilesTool_form_analyzefilesSettings_inputDescription_label2, manifest_node_analyzeFilesTool_form_analyzefilesSettings_inputDescription_placeholder2, manifest_node_analyzeFilesTool_form_analyzefilesSettings_inputItemsDescription_componentProps_addButtonLabel2, manifest_node_analyzeFilesTool_form_analyzefilesSettings_inputItemsDescription_componentProps_placeholder2, manifest_node_analyzeFilesTool_form_analyzefilesSettings_inputItemsDescription_label2, manifest_node_analyzeFilesTool_form_analyzefilesSettings_inputItemsDescription_placeholder2, manifest_node_analyzeFilesTool_form_analyzefilesSettings_title2, manifest_node_analyzeFilesTool_form_simulationSettings_description2, manifest_node_analyzeFilesTool_form_simulationSettings_inputExampleCalls_componentProps_addButtonLabel2, manifest_node_analyzeFilesTool_form_simulationSettings_title2, manifest_node_analyzeFilesTool_form_title2, manifest_node_autonomousAgent_description2, manifest_node_autonomousAgent_display_label2, manifest_node_autonomousAgent_form_section1_inputMaxIterations_label2, manifest_node_autonomousAgent_form_section1_inputMaxTokenPerResponse_label2, manifest_node_autonomousAgent_form_section1_inputModel_label2, manifest_node_autonomousAgent_form_section1_inputSystemPrompt_componentProps_placeholder2, manifest_node_autonomousAgent_form_section1_inputSystemPrompt_label2, manifest_node_autonomousAgent_form_section1_inputTemperature_label2, manifest_node_autonomousAgent_form_section1_inputUserPrompt_componentProps_placeholder2, manifest_node_autonomousAgent_form_section1_inputUserPrompt_label2, manifest_node_autonomousAgent_form_section1_title2, manifest_node_autonomousAgent_form_sectionAdvanced_inputMaxIterations_label2, manifest_node_autonomousAgent_form_sectionAdvanced_inputMaxTokenPerResponse_label2, manifest_node_autonomousAgent_form_sectionAdvanced_inputModel_label2, manifest_node_autonomousAgent_form_sectionAdvanced_inputTemperature_label2, manifest_node_autonomousAgent_form_sectionAdvanced_title2, manifest_node_autonomousAgent_form_title2, manifest_node_autonomousAgent_handle_context_label2, manifest_node_autonomousAgent_handle_escalation_label2, manifest_node_autonomousAgent_handle_memory_label2, manifest_node_autonomousAgent_handle_tool_label2, manifest_node_autonomousAgent_input_systemPrompt_errorMessage2, manifest_node_autonomousAgent_input_userPrompt_errorMessage2, manifest_node_autonomousAgent_output_error_description2, manifest_node_autonomousAgent_output_output_content_description2, manifest_node_autonomousAgent_output_output_description2, manifest_node_batchTransformPattern_form_source_inputPrompt_componentProps_placeholder2, manifest_node_batchTransformPattern_form_source_inputPrompt_validation_required2, manifest_node_batchTransformPattern_output_error_description2, manifest_node_batchTransformTool_description2, manifest_node_batchTransformTool_display_description2, manifest_node_batchTransformTool_display_label2, manifest_node_batchTransformTool_form_batchtransformSettings_inputOutputColumns_label2, manifest_node_batchTransformTool_form_batchtransformSettings_inputQueryValue_label2, manifest_node_batchTransformTool_form_batchtransformSettings_inputQueryValue_placeholder2, manifest_node_batchTransformTool_form_batchtransformSettings_inputSource_label2, manifest_node_batchTransformTool_form_batchtransformSettings_inputSource_placeholder2, manifest_node_batchTransformTool_form_batchtransformSettings_inputWebSearchGroundingValue_label2, manifest_node_batchTransformTool_form_batchtransformSettings_inputWebSearchGroundingValue_option_disabled_label2, manifest_node_batchTransformTool_form_batchtransformSettings_inputWebSearchGroundingValue_option_enabled_label2, manifest_node_batchTransformTool_form_batchtransformSettings_title2, manifest_node_batchTransformTool_form_title2, manifest_node_batchTransformTool_input_outputColumns_errorMessage2, manifest_node_batchTransformTool_input_query_errorMessage2, manifest_node_batchTransform_description2, manifest_node_batchTransform_display_label2, manifest_node_batchTransform_form_outputColumns_inputOutputColumns_description2, manifest_node_batchTransform_form_outputColumns_title2, manifest_node_batchTransform_form_source_inputAttachment_description2, manifest_node_batchTransform_form_source_inputAttachment_label2, manifest_node_batchTransform_form_source_inputAttachment_validation_required2, manifest_node_batchTransform_form_source_inputEnableWebSearchGrounding_description2, manifest_node_batchTransform_form_source_inputEnableWebSearchGrounding_label2, manifest_node_batchTransform_form_source_inputPrompt_description2, manifest_node_batchTransform_form_source_inputPrompt_label2, manifest_node_batchTransform_form_source_title2, manifest_node_batchTransform_form_title2, manifest_node_classifyDocument_description2, manifest_node_classifyDocument_display_label2, manifest_node_classifyDocument_form_fileInput_inputFileRef_description2, manifest_node_classifyDocument_form_fileInput_inputFileRef_label2, manifest_node_classifyDocument_form_fileInput_inputFileRef_validation_required2, manifest_node_classifyDocument_form_fileInput_inputPageRange_description2, manifest_node_classifyDocument_form_fileInput_inputPageRange_label2, manifest_node_classifyDocument_form_fileInput_inputPageRange_placeholder2, manifest_node_classifyDocument_form_fileInput_inputSplitPages_description2, manifest_node_classifyDocument_form_fileInput_inputSplitPages_label2, manifest_node_classifyDocument_form_fileInput_title2, manifest_node_classifyDocument_form_modelConfig_title2, manifest_node_classifyDocument_form_title2, manifest_node_classifyDocument_output_error_description2, manifest_node_clientSideTool_description2, manifest_node_clientSideTool_display_description2, manifest_node_clientSideTool_display_label2, manifest_node_clientSideTool_form_inputSchema_label2, manifest_node_clientSideTool_form_outputSchema_label2, manifest_node_clientSideTool_form_settings_title2, manifest_node_clientSideTool_form_title2, manifest_node_conversationTrigger_description2, manifest_node_conversationTrigger_display_label2, manifest_node_conversationTrigger_form_appearance_inputAppearancePersonalWorkspaceConnectionsOnly_description2, manifest_node_conversationTrigger_form_appearance_inputAppearancePersonalWorkspaceConnectionsOnly_label2, manifest_node_conversationTrigger_form_appearance_inputAppearanceStartingPrompts_label2, manifest_node_conversationTrigger_form_appearance_inputAppearanceWelcomeDescription_label2, manifest_node_conversationTrigger_form_appearance_inputAppearanceWelcomeTitle_label2, manifest_node_conversationTrigger_form_appearance_title2, manifest_node_conversationTrigger_form_title2, manifest_node_conversationTrigger_output_output_description2, manifest_node_conversationalAgent_description2, manifest_node_conversationalAgent_display_label2, manifest_node_conversationalAgent_form_conversationalAgentSettings_inputCallContext_description2, manifest_node_conversationalAgent_form_conversationalAgentSettings_inputCallContext_label2, manifest_node_conversationalAgent_form_conversationalAgentSettings_inputEndExchange_description2, manifest_node_conversationalAgent_form_conversationalAgentSettings_inputEndExchange_label2, manifest_node_conversationalAgent_form_conversationalAgentSettings_title2, manifest_node_conversationalAgent_form_section1_inputMaxTokenPerResponse_label2, manifest_node_conversationalAgent_form_section1_inputModel_label2, manifest_node_conversationalAgent_form_section1_inputSystemPrompt_componentProps_placeholder2, manifest_node_conversationalAgent_form_section1_inputSystemPrompt_label2, manifest_node_conversationalAgent_form_section1_inputTemperature_label2, manifest_node_conversationalAgent_form_section1_inputVoiceModel_label2, manifest_node_conversationalAgent_form_section1_inputVoicePersona_label2, manifest_node_conversationalAgent_form_section1_inputWelcomeDescription_label2, manifest_node_conversationalAgent_form_section1_inputWelcomeTitle_label2, manifest_node_conversationalAgent_form_section1_title2, manifest_node_conversationalAgent_form_sectionAdvanced_inputMaxTokenPerResponse_label2, manifest_node_conversationalAgent_form_sectionAdvanced_inputModel_label2, manifest_node_conversationalAgent_form_sectionAdvanced_inputTemperature_label2, manifest_node_conversationalAgent_form_sectionAdvanced_inputVoiceMaxTokens_label2, manifest_node_conversationalAgent_form_sectionAdvanced_inputVoiceTemperature_label2, manifest_node_conversationalAgent_form_sectionAdvanced_title2, manifest_node_conversationalAgent_form_title2, manifest_node_conversationalAgent_handle_context_label2, manifest_node_conversationalAgent_handle_escalation_label2, manifest_node_conversationalAgent_handle_memory_label2, manifest_node_conversationalAgent_handle_tool_label2, manifest_node_conversationalAgent_input_callContext_description2, manifest_node_conversationalAgent_input_conversationalAgentSettings_description2, manifest_node_conversationalAgent_output_error_description2, manifest_node_conversationalAgent_output_output_description2, manifest_node_conversationalAgent_output_output_uipathAgentResponseMessages_description2, manifest_node_conversationalAgent_output_output_uipathVoiceCallContext_conversationId_description2, manifest_node_conversationalAgent_output_output_uipathVoiceCallContext_description2, manifest_node_conversationalAgent_output_output_uipathVoiceCallContext_id_description2, manifest_node_conversationalAgent_output_output_uipathVoiceCallContext_type_description2, manifest_node_conversationalAgent_output_output_uipathVoiceSession_callEnded_description2, manifest_node_conversationalAgent_output_output_uipathVoiceSession_description2, manifest_node_conversationalAgent_output_output_uipathVoiceSession_endedBy_description2, manifest_node_conversationalAgent_output_output_uipathVoiceSession_reason_description2, manifest_node_conversationalVoiceCreateOutgoingCall_description2, manifest_node_conversationalVoiceCreateOutgoingCall_display_label2, manifest_node_conversationalVoiceCreateOutgoingCall_form_configuration_inputFrom_description2, manifest_node_conversationalVoiceCreateOutgoingCall_form_configuration_inputFrom_label2, manifest_node_conversationalVoiceCreateOutgoingCall_form_configuration_inputFrom_validation_required2, manifest_node_conversationalVoiceCreateOutgoingCall_form_configuration_inputTo_description2, manifest_node_conversationalVoiceCreateOutgoingCall_form_configuration_inputTo_label2, manifest_node_conversationalVoiceCreateOutgoingCall_form_configuration_inputTo_validation_required2, manifest_node_conversationalVoiceCreateOutgoingCall_form_configuration_title2, manifest_node_conversationalVoiceCreateOutgoingCall_form_title2, manifest_node_conversationalVoiceCreateOutgoingCall_input_from_errorMessage2, manifest_node_conversationalVoiceCreateOutgoingCall_input_to_errorMessage2, manifest_node_conversationalVoiceCreateOutgoingCall_output_error_description2, manifest_node_conversationalVoiceCreateOutgoingCall_output_output_description2, manifest_node_conversationalVoiceEndCall_description2, manifest_node_conversationalVoiceEndCall_display_label2, manifest_node_conversationalVoiceEndCall_form_configuration_inputCallContext_description2, manifest_node_conversationalVoiceEndCall_form_configuration_inputCallContext_label2, manifest_node_conversationalVoiceEndCall_form_configuration_inputCallContext_placeholder2, manifest_node_conversationalVoiceEndCall_form_configuration_inputCallContext_validation_required2, manifest_node_conversationalVoiceEndCall_form_configuration_title2, manifest_node_conversationalVoiceEndCall_form_title2, manifest_node_conversationalVoiceEndCall_input_callContext_description2, manifest_node_conversationalVoiceEndCall_output_error_description2, manifest_node_conversationalVoiceEndCall_output_output_description2, manifest_node_createEntity_description2, manifest_node_createEntity_display_label2, manifest_node_createEntity_form_entityConfig_title2, manifest_node_createEntity_form_title2, manifest_node_createEntity_output_output_description2, manifest_node_createFileTool_description2, manifest_node_createFileTool_display_description2, manifest_node_createFileTool_display_label2, manifest_node_createFileTool_form_createfileSettings_inputContentDescription_label2, manifest_node_createFileTool_form_createfileSettings_inputDescription_label2, manifest_node_createFileTool_form_createfileSettings_inputDescription_placeholder2, manifest_node_createFileTool_form_createfileSettings_inputFileNameDescription_label2, manifest_node_createFileTool_form_createfileSettings_inputFilePathDescription_label2, manifest_node_createFileTool_form_createfileSettings_title2, manifest_node_createFileTool_form_simulationSettings_description2, manifest_node_createFileTool_form_simulationSettings_inputExampleCalls_componentProps_addButtonLabel2, manifest_node_createFileTool_form_simulationSettings_title2, manifest_node_createFileTool_form_title2, manifest_node_createFile_description2, manifest_node_createFile_display_label2, manifest_node_createFile_form_connection_inputConnectionId_description2, manifest_node_createFile_form_connection_inputConnectionId_label2, manifest_node_createFile_form_connection_inputConnectionId_validation_required2, manifest_node_createFile_form_connection_title2, manifest_node_createFile_form_file_inputContent_description2, manifest_node_createFile_form_file_inputContent_label2, manifest_node_createFile_form_file_inputContent_placeholder2, manifest_node_createFile_form_file_inputContent_validation_required2, manifest_node_createFile_form_file_inputFileName_description2, manifest_node_createFile_form_file_inputFileName_label2, manifest_node_createFile_form_file_inputFileName_placeholder2, manifest_node_createFile_form_file_inputFileName_validation_required2, manifest_node_createFile_form_file_inputMimeType_description2, manifest_node_createFile_form_file_inputMimeType_label2, manifest_node_createFile_form_file_inputMimeType_option_applicationJson_label2, manifest_node_createFile_form_file_inputMimeType_option_textCsv_label2, manifest_node_createFile_form_file_inputMimeType_option_textHtml_label2, manifest_node_createFile_form_file_inputMimeType_option_textMarkdown_label2, manifest_node_createFile_form_file_inputMimeType_option_textPlain_label2, manifest_node_createFile_form_file_inputMimeType_validation_required2, manifest_node_createFile_form_file_title2, manifest_node_createFile_form_title2, manifest_node_createFile_input_connectionId_errorMessage2, manifest_node_createFile_input_fileName_errorMessage2, manifest_node_createFile_input_mimeType_errorMessage2, manifest_node_createFile_output_error_description2, manifest_node_dataFabricEntitySet_description2, manifest_node_dataFabricEntitySet_display_description2, manifest_node_dataFabricEntitySet_display_label2, manifest_node_dataFabricEntitySet_form_section_title2, manifest_node_dataFabricEntitySet_form_title2, manifest_node_dataFabricEntitySet_inputDefaults_name2, manifest_node_decisionAuto_description2, manifest_node_decisionAuto_display_label2, manifest_node_decisionAuto_form_additionalProperties_inputLabels_label2, manifest_node_decisionAuto_form_additionalProperties_inputLabels_placeholder2, manifest_node_decisionAuto_form_additionalProperties_inputPriority_label2, manifest_node_decisionAuto_form_additionalProperties_inputPriority_option_high_label2, manifest_node_decisionAuto_form_additionalProperties_inputPriority_option_low_label2, manifest_node_decisionAuto_form_additionalProperties_inputPriority_option_medium_label2, manifest_node_decisionAuto_form_additionalProperties_inputTitle_label2, manifest_node_decisionAuto_form_additionalProperties_title2, manifest_node_decisionAuto_form_decision_inputRationaleBinding_label2, manifest_node_decisionAuto_form_decision_inputReason1DecisionBinding_label2, manifest_node_decisionAuto_form_decision_inputReason1DescriptionBinding_label2, manifest_node_decisionAuto_form_decision_inputReason1RelevanceBinding_label2, manifest_node_decisionAuto_form_decision_inputReason1TitleBinding_label2, manifest_node_decisionAuto_form_decision_inputReason2DecisionBinding_label2, manifest_node_decisionAuto_form_decision_inputReason2DescriptionBinding_label2, manifest_node_decisionAuto_form_decision_inputReason2RelevanceBinding_label2, manifest_node_decisionAuto_form_decision_inputReason2TitleBinding_label2, manifest_node_decisionAuto_form_decision_inputReason3DecisionBinding_label2, manifest_node_decisionAuto_form_decision_inputReason3DescriptionBinding_label2, manifest_node_decisionAuto_form_decision_inputReason3RelevanceBinding_label2, manifest_node_decisionAuto_form_decision_inputReason3TitleBinding_label2, manifest_node_decisionAuto_form_decision_inputResolutionBinding_label2, manifest_node_decisionAuto_form_decision_title2, manifest_node_decisionAuto_form_title2, manifest_node_decisionAuto_output_output_description2, manifest_node_decisionAuto_output_status_description2, manifest_node_decision_description2, manifest_node_decision_display_label2, manifest_node_decision_form_condition_inputExpression_componentProps_placeholder2, manifest_node_decision_form_condition_inputExpression_description2, manifest_node_decision_form_condition_inputExpression_label2, manifest_node_decision_form_condition_inputFalseLabel_description2, manifest_node_decision_form_condition_inputFalseLabel_label2, manifest_node_decision_form_condition_inputTrueLabel_description2, manifest_node_decision_form_condition_inputTrueLabel_label2, manifest_node_decision_form_condition_title2, manifest_node_decision_form_title2, manifest_node_decision_input_expression_errorMessage2, manifest_node_decision_output_matchedCaseId_description2, manifest_node_decision_output_matchedCase_description2, manifest_node_deepRagPattern_form_source_inputPrompt_componentProps_placeholder2, manifest_node_deepRagPattern_form_source_inputPrompt_validation_required2, manifest_node_deepRagPattern_output_error_description2, manifest_node_deepRag_description2, manifest_node_deepRag_display_label2, manifest_node_deepRag_form_citations_inputReturnCitations_description2, manifest_node_deepRag_form_citations_inputReturnCitations_label2, manifest_node_deepRag_form_citations_title2, manifest_node_deepRag_form_source_inputAttachment_description2, manifest_node_deepRag_form_source_inputAttachment_label2, manifest_node_deepRag_form_source_inputAttachment_validation_required2, manifest_node_deepRag_form_source_inputPrompt_description2, manifest_node_deepRag_form_source_inputPrompt_label2, manifest_node_deepRag_form_source_title2, manifest_node_deepRag_form_title2, manifest_node_delay_description2, manifest_node_delay_display_label2, manifest_node_delay_form_timer_inputTimerDate_description2, manifest_node_delay_form_timer_inputTimerDate_label2, manifest_node_delay_form_timer_inputTimerPreset_label2, manifest_node_delay_form_timer_inputTimerPreset_option_custom_label2, manifest_node_delay_form_timer_inputTimerPreset_option_p1d_label2, manifest_node_delay_form_timer_inputTimerPreset_option_p1w_label2, manifest_node_delay_form_timer_inputTimerPreset_option_pt12h_label2, manifest_node_delay_form_timer_inputTimerPreset_option_pt15m_label2, manifest_node_delay_form_timer_inputTimerPreset_option_pt15s_label2, manifest_node_delay_form_timer_inputTimerPreset_option_pt1h_label2, manifest_node_delay_form_timer_inputTimerPreset_option_pt1m_label2, manifest_node_delay_form_timer_inputTimerPreset_option_pt30m_label2, manifest_node_delay_form_timer_inputTimerPreset_option_pt30s_label2, manifest_node_delay_form_timer_inputTimerPreset_option_pt5m_label2, manifest_node_delay_form_timer_inputTimerPreset_option_pt5s_label2, manifest_node_delay_form_timer_inputTimerPreset_option_pt6h_label2, manifest_node_delay_form_timer_inputTimerType_label2, manifest_node_delay_form_timer_inputTimerType_option_date_label2, manifest_node_delay_form_timer_inputTimerType_option_duration_label2, manifest_node_delay_form_timer_inputTimerType_option_timeDate_label2, manifest_node_delay_form_timer_inputTimerType_option_timeDuration_label2, manifest_node_delay_form_timer_inputTimerValue_description2, manifest_node_delay_form_timer_inputTimerValue_label2, manifest_node_delay_form_timer_inputTimerValue_placeholder2, manifest_node_delay_form_timer_title2, manifest_node_delay_form_title2, manifest_node_delay_input_timerDate_errorMessage2, manifest_node_delay_input_timerPreset_errorMessage2, manifest_node_delay_input_timerType_errorMessage2, manifest_node_delay_input_timerValue_errorMessage2, manifest_node_deleteEntity_description2, manifest_node_deleteEntity_display_label2, manifest_node_deleteEntity_form_entityConfig_title2, manifest_node_deleteEntity_form_title2, manifest_node_dowhile_description2, manifest_node_dowhile_display_description2, manifest_node_dowhile_display_label2, manifest_node_dowhile_form_iteration_inputBreakEnabled_description2, manifest_node_dowhile_form_iteration_inputBreakEnabled_label2, manifest_node_dowhile_form_iteration_inputCondition_componentProps_placeholder2, manifest_node_dowhile_form_iteration_inputCondition_description2, manifest_node_dowhile_form_iteration_inputCondition_label2, manifest_node_dowhile_form_iteration_inputLimit_description2, manifest_node_dowhile_form_iteration_inputLimit_label2, manifest_node_dowhile_form_iteration_title2, manifest_node_dowhile_form_title2, manifest_node_dowhile_handle_break_label2, manifest_node_dowhile_handle_continue_label2, manifest_node_dowhile_handle_start_label2, manifest_node_dowhile_input_condition_errorMessage2, manifest_node_dowhile_input_limit_errorMessage2, manifest_node_dowhile_output_error_description2, manifest_node_dynamicExtract_description2, manifest_node_dynamicExtract_display_canvasLabel2, manifest_node_dynamicExtract_display_description2, manifest_node_dynamicExtract_display_label2, manifest_node_end_description2, manifest_node_end_display_label2, manifest_node_errorHandler_description2, manifest_node_errorHandler_display_description2, manifest_node_errorHandler_display_label2, manifest_node_errorHandler_handle_done_label2, manifest_node_errorHandler_handle_onError_label2, manifest_node_errorHandler_output_error_description2, manifest_node_escalationActionApp_description2, manifest_node_escalationActionApp_display_description2, manifest_node_escalationActionApp_display_label2, manifest_node_escalationActionApp_form_escalationSection_inputAgentMemory_description2, manifest_node_escalationActionApp_form_escalationSection_inputAgentMemory_label2, manifest_node_escalationActionApp_form_escalationSection_inputApp_label2, manifest_node_escalationActionApp_form_escalationSection_inputDescription_label2, manifest_node_escalationActionApp_form_escalationSection_inputDescription_placeholder2, manifest_node_escalationActionApp_form_escalationSection_inputMemorySearchMode_label2, manifest_node_escalationActionApp_form_escalationSection_inputMemorySearchMode_option_hybrid_label2, manifest_node_escalationActionApp_form_escalationSection_inputMemorySearchMode_option_semantic_label2, manifest_node_escalationActionApp_form_escalationSection_inputMemorySimilarity_description2, manifest_node_escalationActionApp_form_escalationSection_inputMemorySimilarity_label2, manifest_node_escalationActionApp_form_escalationSection_inputName_label2, manifest_node_escalationActionApp_form_escalationSection_title2, manifest_node_escalationActionApp_form_title2, manifest_node_escalationQuickForm_description2, manifest_node_escalationQuickForm_display_description2, manifest_node_escalationQuickForm_display_label2, manifest_node_escalationQuickForm_form_escalationSection_inputAgentMemory_description2, manifest_node_escalationQuickForm_form_escalationSection_inputAgentMemory_label2, manifest_node_escalationQuickForm_form_escalationSection_inputDescription_label2, manifest_node_escalationQuickForm_form_escalationSection_inputDescription_placeholder2, manifest_node_escalationQuickForm_form_escalationSection_inputMemorySearchMode_label2, manifest_node_escalationQuickForm_form_escalationSection_inputMemorySearchMode_option_hybrid_label2, manifest_node_escalationQuickForm_form_escalationSection_inputMemorySearchMode_option_semantic_label2, manifest_node_escalationQuickForm_form_escalationSection_inputMemorySimilarity_description2, manifest_node_escalationQuickForm_form_escalationSection_inputMemorySimilarity_label2, manifest_node_escalationQuickForm_form_escalationSection_inputName_label2, manifest_node_escalationQuickForm_form_escalationSection_title2, manifest_node_escalationQuickForm_form_title2, manifest_node_escalation_description2, manifest_node_escalation_display_description2, manifest_node_escalation_display_label2, manifest_node_escalation_form_escalationSection_inputAgentMemory_description2, manifest_node_escalation_form_escalationSection_inputAgentMemory_label2, manifest_node_escalation_form_escalationSection_inputApp_label2, manifest_node_escalation_form_escalationSection_inputDescription_label2, manifest_node_escalation_form_escalationSection_inputDescription_placeholder2, manifest_node_escalation_form_escalationSection_inputMemorySearchMode_label2, manifest_node_escalation_form_escalationSection_inputMemorySearchMode_option_hybrid_label2, manifest_node_escalation_form_escalationSection_inputMemorySearchMode_option_semantic_label2, manifest_node_escalation_form_escalationSection_inputMemorySimilarity_description2, manifest_node_escalation_form_escalationSection_inputMemorySimilarity_label2, manifest_node_escalation_form_escalationSection_inputName_label2, manifest_node_escalation_form_escalationSection_inputType_label2, manifest_node_escalation_form_escalationSection_inputType_option_appTask_label2, manifest_node_escalation_form_escalationSection_title2, manifest_node_escalation_form_title2, manifest_node_formTriggerRespond_description2, manifest_node_formTriggerRespond_display_label2, manifest_node_formTriggerRespond_form_response_inputData_description2, manifest_node_formTriggerRespond_form_response_inputData_label2, manifest_node_formTriggerRespond_form_response_inputData_placeholder2, manifest_node_formTriggerRespond_form_response_inputHtml_componentProps_placeholder2, manifest_node_formTriggerRespond_form_response_inputHtml_description2, manifest_node_formTriggerRespond_form_response_inputHtml_label2, manifest_node_formTriggerRespond_form_response_inputMessage_description2, manifest_node_formTriggerRespond_form_response_inputMessage_label2, manifest_node_formTriggerRespond_form_response_inputMessage_placeholder2, manifest_node_formTriggerRespond_form_response_inputRedirectUrl_description2, manifest_node_formTriggerRespond_form_response_inputRedirectUrl_label2, manifest_node_formTriggerRespond_form_response_inputRedirectUrl_placeholder2, manifest_node_formTriggerRespond_form_response_inputResponseType_label2, manifest_node_formTriggerRespond_form_response_inputResponseType_options_data_label2, manifest_node_formTriggerRespond_form_response_inputResponseType_options_html_label2, manifest_node_formTriggerRespond_form_response_inputResponseType_options_message_label2, manifest_node_formTriggerRespond_form_response_inputResponseType_options_redirect_label2, manifest_node_formTriggerRespond_form_response_inputTitle_label2, manifest_node_formTriggerRespond_form_response_inputTitle_placeholder2, manifest_node_formTriggerRespond_form_response_title2, manifest_node_formTriggerRespond_form_title2, manifest_node_formTriggerRespond_output_error_description2, manifest_node_formTriggerRespond_output_output_description2, manifest_node_formTrigger_description2, manifest_node_formTrigger_display_label2, manifest_node_formTrigger_form_schema_inputSchema_description2, manifest_node_formTrigger_form_schema_inputSchema_label2, manifest_node_formTrigger_form_schema_title2, manifest_node_formTrigger_form_title2, manifest_node_formTrigger_output_output_description2, manifest_node_getConversationContext_description2, manifest_node_getConversationContext_display_label2, manifest_node_getConversationContext_form_configuration_inputConversationId_label2, manifest_node_getConversationContext_form_configuration_inputConversationId_placeholder2, manifest_node_getConversationContext_form_configuration_inputConversationId_validation_required2, manifest_node_getConversationContext_form_configuration_inputExchangeLimit_description2, manifest_node_getConversationContext_form_configuration_inputExchangeLimit_label2, manifest_node_getConversationContext_form_configuration_title2, manifest_node_getConversationContext_form_title2, manifest_node_getConversationContext_input_conversationId_errorMessage2, manifest_node_getConversationContext_output_error_description2, manifest_node_getConversationContext_output_output_description2, manifest_node_hitlCodedActionApp_description2, manifest_node_hitlCodedActionApp_display_label2, manifest_node_hitlCodedActionApp_form_additionalProperties_inputLabels_label2, manifest_node_hitlCodedActionApp_form_additionalProperties_inputLabels_placeholder2, manifest_node_hitlCodedActionApp_form_additionalProperties_inputPriority_label2, manifest_node_hitlCodedActionApp_form_additionalProperties_inputPriority_option_high_label2, manifest_node_hitlCodedActionApp_form_additionalProperties_inputPriority_option_low_label2, manifest_node_hitlCodedActionApp_form_additionalProperties_inputPriority_option_medium_label2, manifest_node_hitlCodedActionApp_form_additionalProperties_inputTitle_label2, manifest_node_hitlCodedActionApp_form_additionalProperties_inputTitle_placeholder2, manifest_node_hitlCodedActionApp_form_additionalProperties_title2, manifest_node_hitlCodedActionApp_form_app_inputAppInputBindings_description2, manifest_node_hitlCodedActionApp_form_app_inputAppInputBindings_label2, manifest_node_hitlCodedActionApp_form_app_inputApp_description2, manifest_node_hitlCodedActionApp_form_app_inputApp_label2, manifest_node_hitlCodedActionApp_form_app_title2, manifest_node_hitlCodedActionApp_form_assignment_title2, manifest_node_hitlCodedActionApp_form_decisionSchema_inputEnableDecisionSchema_description2, manifest_node_hitlCodedActionApp_form_decisionSchema_inputEnableDecisionSchema_label2, manifest_node_hitlCodedActionApp_form_decisionSchema_title2, manifest_node_hitlCodedActionApp_form_delivery_inputRecipient_description2, manifest_node_hitlCodedActionApp_form_delivery_inputRecipient_label2, manifest_node_hitlCodedActionApp_form_delivery_title2, manifest_node_hitlCodedActionApp_form_title2, manifest_node_hitlCodedActionApp_handle_completed_label2, manifest_node_hitlCodedActionApp_output_output_description2, manifest_node_hitlCodedActionApp_output_status_description2, manifest_node_hitlDocClassification_description2, manifest_node_hitlDocClassification_display_label2, manifest_node_hitlDocClassification_form_assignment_title2, manifest_node_hitlDocClassification_form_classificationOutput_inputProcessedDocument_description2, manifest_node_hitlDocClassification_form_classificationOutput_inputProcessedDocument_label2, manifest_node_hitlDocClassification_form_classificationOutput_inputProcessedDocument_placeholder2, manifest_node_hitlDocClassification_form_classificationOutput_inputProcessedDocument_validation_required2, manifest_node_hitlDocClassification_form_delivery_inputRecipient_description2, manifest_node_hitlDocClassification_form_delivery_inputRecipient_label2, manifest_node_hitlDocClassification_form_delivery_title2, manifest_node_hitlDocClassification_form_title2, manifest_node_hitlDocClassification_output_output_description2, manifest_node_hitlDocClassification_output_status_description2, manifest_node_hitlDocValidation_description2, manifest_node_hitlDocValidation_display_label2, manifest_node_hitlDocValidation_form_additionalProperties_inputLabels_label2, manifest_node_hitlDocValidation_form_additionalProperties_inputLabels_placeholder2, manifest_node_hitlDocValidation_form_additionalProperties_inputPriority_label2, manifest_node_hitlDocValidation_form_additionalProperties_inputPriority_option_high_label2, manifest_node_hitlDocValidation_form_additionalProperties_inputPriority_option_low_label2, manifest_node_hitlDocValidation_form_additionalProperties_inputPriority_option_medium_label2, manifest_node_hitlDocValidation_form_additionalProperties_inputTitle_label2, manifest_node_hitlDocValidation_form_additionalProperties_title2, manifest_node_hitlDocValidation_form_app_inputAppInputBindings_label2, manifest_node_hitlDocValidation_form_app_inputApp_description2, manifest_node_hitlDocValidation_form_app_inputApp_label2, manifest_node_hitlDocValidation_form_app_title2, manifest_node_hitlDocValidation_form_assignment_title2, manifest_node_hitlDocValidation_form_delivery_inputRecipient_description2, manifest_node_hitlDocValidation_form_delivery_inputRecipient_label2, manifest_node_hitlDocValidation_form_delivery_title2, manifest_node_hitlDocValidation_form_documentSource_inputExtractionResult_description2, manifest_node_hitlDocValidation_form_documentSource_inputExtractionResult_label2, manifest_node_hitlDocValidation_form_documentSource_inputExtractionResult_placeholder2, manifest_node_hitlDocValidation_form_documentSource_inputStorageBucket_label2, manifest_node_hitlDocValidation_form_documentSource_inputStorageBucket_placeholder2, manifest_node_hitlDocValidation_form_documentSource_inputTaxonomy_description2, manifest_node_hitlDocValidation_form_documentSource_inputTaxonomy_label2, manifest_node_hitlDocValidation_form_documentSource_inputTaxonomy_placeholder2, manifest_node_hitlDocValidation_form_documentSource_title2, manifest_node_hitlDocValidation_form_extractionOutput_inputProcessedDocument_description2, manifest_node_hitlDocValidation_form_extractionOutput_inputProcessedDocument_label2, manifest_node_hitlDocValidation_form_extractionOutput_inputProcessedDocument_placeholder2, manifest_node_hitlDocValidation_form_extractionOutput_inputProcessedDocument_validation_required2, manifest_node_hitlDocValidation_form_title2, manifest_node_hitlDocValidation_form_validationRender_inputValidationRenderType_label2, manifest_node_hitlDocValidation_form_validationRender_inputValidationRenderType_option_custom_label2, manifest_node_hitlDocValidation_form_validationRender_inputValidationRenderType_option_standard_label2, manifest_node_hitlDocValidation_form_validationRender_title2, manifest_node_hitlDocValidation_handle_completed_label2, manifest_node_hitlDocValidation_output_error_description2, manifest_node_hitlDocValidation_output_output_description2, manifest_node_hitlDocValidation_output_status_description2, manifest_node_hitlDocValidation_v1_4_description2, manifest_node_hitlDocValidation_v1_4_display_label2, manifest_node_hitlMemorySpace_description2, manifest_node_hitlMemorySpace_label2, manifest_node_hitlQuickForm_description2, manifest_node_hitlQuickForm_display_label2, manifest_node_hitlQuickForm_form_additionalProperties_inputLabels_label2, manifest_node_hitlQuickForm_form_additionalProperties_inputLabels_placeholder2, manifest_node_hitlQuickForm_form_additionalProperties_inputPriority_label2, manifest_node_hitlQuickForm_form_additionalProperties_inputPriority_option_high_label2, manifest_node_hitlQuickForm_form_additionalProperties_inputPriority_option_low_label2, manifest_node_hitlQuickForm_form_additionalProperties_inputPriority_option_medium_label2, manifest_node_hitlQuickForm_form_additionalProperties_inputTitle_label2, manifest_node_hitlQuickForm_form_additionalProperties_inputTitle_placeholder2, manifest_node_hitlQuickForm_form_additionalProperties_title2, manifest_node_hitlQuickForm_form_assignment_title2, manifest_node_hitlQuickForm_form_decisionSchema_inputEnableDecisionSchema_description2, manifest_node_hitlQuickForm_form_decisionSchema_inputEnableDecisionSchema_label2, manifest_node_hitlQuickForm_form_decisionSchema_title2, manifest_node_hitlQuickForm_form_delivery_inputRecipient_description2, manifest_node_hitlQuickForm_form_delivery_inputRecipient_label2, manifest_node_hitlQuickForm_form_delivery_title2, manifest_node_hitlQuickForm_form_schema_inputSchema_description2, manifest_node_hitlQuickForm_form_schema_inputSchema_label2, manifest_node_hitlQuickForm_form_schema_title2, manifest_node_hitlQuickForm_form_title2, manifest_node_hitlQuickForm_handle_completed_label2, manifest_node_hitlQuickForm_output_output_description2, manifest_node_hitlQuickForm_output_status_description2, manifest_node_hitlTask_description2, manifest_node_hitlTask_display_label2, manifest_node_hitlTask_form_additionalProperties_inputLabels_label2, manifest_node_hitlTask_form_additionalProperties_inputLabels_placeholder2, manifest_node_hitlTask_form_additionalProperties_inputPriority_label2, manifest_node_hitlTask_form_additionalProperties_inputPriority_option_high_label2, manifest_node_hitlTask_form_additionalProperties_inputPriority_option_low_label2, manifest_node_hitlTask_form_additionalProperties_inputPriority_option_medium_label2, manifest_node_hitlTask_form_additionalProperties_inputTitle_label2, manifest_node_hitlTask_form_additionalProperties_inputTitle_placeholder2, manifest_node_hitlTask_form_additionalProperties_title2, manifest_node_hitlTask_form_app_inputAppInputBindings_description2, manifest_node_hitlTask_form_app_inputAppInputBindings_label2, manifest_node_hitlTask_form_app_inputApp_description2, manifest_node_hitlTask_form_app_inputApp_label2, manifest_node_hitlTask_form_app_title2, manifest_node_hitlTask_form_assignment_title2, manifest_node_hitlTask_form_delivery_inputRecipient_description2, manifest_node_hitlTask_form_delivery_inputRecipient_label2, manifest_node_hitlTask_form_delivery_title2, manifest_node_hitlTask_form_schema_inputSchema_description2, manifest_node_hitlTask_form_schema_inputSchema_label2, manifest_node_hitlTask_form_schema_title2, manifest_node_hitlTask_form_taskType_inputType_label2, manifest_node_hitlTask_form_taskType_inputType_option_custom_label2, manifest_node_hitlTask_form_taskType_inputType_option_quick_label2, manifest_node_hitlTask_form_taskType_title2, manifest_node_hitlTask_form_title2, manifest_node_hitlTask_handle_completed_label2, manifest_node_hitlTask_handle_outcomeCompleted_label2, manifest_node_hitlTask_output_error_description2, manifest_node_hitlTask_output_output_description2, manifest_node_hitlTask_output_result_description2, manifest_node_hitlTask_output_status_description2, manifest_node_httpRequestTool_description2, manifest_node_httpRequestTool_display_description2, manifest_node_httpRequestTool_display_label2, manifest_node_httpRequestTool_form_advanced_inputTimeout_componentProps_placeholder2, manifest_node_httpRequestTool_form_advanced_inputTimeout_description2, manifest_node_httpRequestTool_form_advanced_inputTimeout_label2, manifest_node_httpRequestTool_form_advanced_title2, manifest_node_httpRequestTool_form_body_inputBody_componentProps_placeholder2, manifest_node_httpRequestTool_form_body_inputBody_label2, manifest_node_httpRequestTool_form_body_title2, manifest_node_httpRequestTool_form_headers_inputHeaders_componentProps_addButtonLabel2, manifest_node_httpRequestTool_form_headers_inputHeaders_componentProps_keyLabel2, manifest_node_httpRequestTool_form_headers_inputHeaders_componentProps_valueLabel2, manifest_node_httpRequestTool_form_headers_inputHeaders_label2, manifest_node_httpRequestTool_form_headers_title2, manifest_node_httpRequestTool_form_queryParameters_inputParams_componentProps_addButtonLabel2, manifest_node_httpRequestTool_form_queryParameters_inputParams_componentProps_keyLabel2, manifest_node_httpRequestTool_form_queryParameters_inputParams_componentProps_placeholder2, manifest_node_httpRequestTool_form_queryParameters_inputParams_componentProps_valueLabel2, manifest_node_httpRequestTool_form_queryParameters_inputParams_label2, manifest_node_httpRequestTool_form_queryParameters_title2, manifest_node_httpRequestTool_form_request_inputMethod_label2, manifest_node_httpRequestTool_form_request_inputUrl_componentProps_placeholder2, manifest_node_httpRequestTool_form_request_inputUrl_label2, manifest_node_httpRequestTool_form_request_title2, manifest_node_httpRequestTool_form_title2, manifest_node_httpRequestTool_form_toolDetails_inputDescription_label2, manifest_node_httpRequestTool_form_toolDetails_inputDescription_placeholder2, manifest_node_httpRequestTool_form_toolDetails_title2, manifest_node_httpV2_description2, manifest_node_httpV2_display_label2, manifest_node_httpV2_form_advanced_inputRetryCount_description2, manifest_node_httpV2_form_advanced_inputRetryCount_label2, manifest_node_httpV2_form_advanced_inputTimeout_description2, manifest_node_httpV2_form_advanced_inputTimeout_label2, manifest_node_httpV2_form_advanced_title2, manifest_node_httpV2_form_branches_inputBranches_description2, manifest_node_httpV2_form_branches_inputBranches_label2, manifest_node_httpV2_form_branches_title2, manifest_node_httpV2_form_httpConfig_title2, manifest_node_httpV2_form_tab_branching_title2, manifest_node_httpV2_form_title2, manifest_node_httpV2_handle_default_label2, manifest_node_httpV2_handle_input_label2, manifest_node_httpV2_input_timeout_errorMessage2, manifest_node_httpV2_output_error_description2, manifest_node_httpV2_output_output_description2, manifest_node_http_description2, manifest_node_http_display_label2, manifest_node_http_form_advanced_inputRetryCount_description2, manifest_node_http_form_advanced_inputRetryCount_label2, manifest_node_http_form_advanced_inputTimeout_description2, manifest_node_http_form_advanced_inputTimeout_label2, manifest_node_http_form_advanced_title2, manifest_node_http_form_body_inputBody_label2, manifest_node_http_form_body_inputContentType_label2, manifest_node_http_form_body_title2, manifest_node_http_form_branches_inputBranches_description2, manifest_node_http_form_branches_inputBranches_label2, manifest_node_http_form_branches_title2, manifest_node_http_form_headers_inputHeaders_componentProps_keyLabel2, manifest_node_http_form_headers_inputHeaders_componentProps_valueLabel2, manifest_node_http_form_headers_inputHeaders_label2, manifest_node_http_form_headers_title2, manifest_node_http_form_implementation_inputMethod_label2, manifest_node_http_form_implementation_inputMode_label2, manifest_node_http_form_implementation_inputMode_option_apiDefinition_label2, manifest_node_http_form_implementation_inputMode_option_manual_label2, manifest_node_http_form_implementation_title2, manifest_node_http_form_parameters_inputQueryParams_componentProps_keyLabel2, manifest_node_http_form_parameters_inputQueryParams_componentProps_valueLabel2, manifest_node_http_form_parameters_inputQueryParams_label2, manifest_node_http_form_parameters_title2, manifest_node_http_form_title2, manifest_node_http_handle_default_label2, manifest_node_http_input_method_errorMessage2, manifest_node_http_input_timeout_errorMessage2, manifest_node_http_input_url_errorMessage2, manifest_node_http_output_error_description2, manifest_node_http_output_output_body_description2, manifest_node_http_output_output_description2, manifest_node_http_output_output_headers_description2, manifest_node_http_output_output_statusCode_description2, manifest_node_ixpExtract_display_canvasLabel2, manifest_node_ixpExtract_form_ixpFileUpload_inputFileRef_label2, manifest_node_ixpExtract_form_ixpFileUpload_inputFileRef_placeholder2, manifest_node_ixpExtract_form_ixpFileUpload_inputPageRange_description2, manifest_node_ixpExtract_form_ixpFileUpload_inputPageRange_label2, manifest_node_ixpExtract_form_ixpFileUpload_inputPageRange_placeholder2, manifest_node_ixpExtract_form_ixpFileUpload_title2, manifest_node_ixpExtract_form_ixpModelConfig_title2, manifest_node_ixpExtract_form_ixpModel_title2, manifest_node_ixpExtract_form_schemaDefinition_title2, manifest_node_ixpExtract_form_title2, manifest_node_ixpExtract_input_fileRef_errorMessage2, manifest_node_jevClassifierTool_description2, manifest_node_jevClassifierTool_display_description2, manifest_node_jevClassifierTool_display_label2, manifest_node_jevClassifierTool_form_jevclassifierSettings_inputDescription_label2, manifest_node_jevClassifierTool_form_jevclassifierSettings_inputDescription_placeholder2, manifest_node_jevClassifierTool_form_jevclassifierSettings_inputModel_label2, manifest_node_jevClassifierTool_form_jevclassifierSettings_title2, manifest_node_jevClassifierTool_form_simulationSettings_description2, manifest_node_jevClassifierTool_form_simulationSettings_inputExampleCalls_componentProps_addButtonLabel2, manifest_node_jevClassifierTool_form_simulationSettings_title2, manifest_node_jevClassifierTool_form_title2, manifest_node_loop_description2, manifest_node_loop_display_description2, manifest_node_loop_display_label2, manifest_node_loop_form_iteration_inputBreakEnabled_description2, manifest_node_loop_form_iteration_inputBreakEnabled_label2, manifest_node_loop_form_iteration_inputCollection_componentProps_placeholder2, manifest_node_loop_form_iteration_inputCollection_description2, manifest_node_loop_form_iteration_inputCollection_label2, manifest_node_loop_form_iteration_inputCompletionCondition_componentProps_placeholder2, manifest_node_loop_form_iteration_inputCompletionCondition_description2, manifest_node_loop_form_iteration_inputCompletionCondition_label2, manifest_node_loop_form_iteration_inputParallel_description2, manifest_node_loop_form_iteration_inputParallel_label2, manifest_node_loop_form_iteration_title2, manifest_node_loop_form_title2, manifest_node_loop_handle_break_label2, manifest_node_loop_handle_continue_label2, manifest_node_loop_handle_output_label2, manifest_node_loop_handle_start_label2, manifest_node_loop_handle_success_label2, manifest_node_loop_input_collection_errorMessage2, manifest_node_loop_output_collection_description2, manifest_node_loop_output_currentIndex_description2, manifest_node_loop_output_currentItem_description2, manifest_node_loop_output_currentIteration_description2, manifest_node_loop_output_error_description2, manifest_node_loop_output_output_description2, manifest_node_manualTrigger_description2, manifest_node_manualTrigger_display_label2, manifest_node_manualTrigger_output_output_description2, manifest_node_merge_description2, manifest_node_merge_display_label2, manifest_node_mock_description2, manifest_node_mock_display_label2, manifest_node_mock_output_output_description2, manifest_node_queueBulkAdd_description2, manifest_node_queueBulkAdd_display_label2, manifest_node_queueBulkAdd_form_advanced_inputCommitStrategy_description2, manifest_node_queueBulkAdd_form_advanced_inputCommitStrategy_label2, manifest_node_queueBulkAdd_form_advanced_inputCommitStrategy_option_allOrNothing_label2, manifest_node_queueBulkAdd_form_advanced_inputCommitStrategy_option_processAllIndependently_label2, manifest_node_queueBulkAdd_form_advanced_inputCommitStrategy_option_stopOnFirstFailure_label2, manifest_node_queueBulkAdd_form_advanced_title2, manifest_node_queueBulkAdd_form_queueSelection_inputQueueItems_description2, manifest_node_queueBulkAdd_form_queueSelection_inputQueueItems_label2, manifest_node_queueBulkAdd_form_queueSelection_inputQueueItems_validation_required2, manifest_node_queueBulkAdd_form_queueSelection_inputQueue_description2, manifest_node_queueBulkAdd_form_queueSelection_inputQueue_label2, manifest_node_queueBulkAdd_form_queueSelection_inputQueue_validation_required2, manifest_node_queueBulkAdd_form_queueSelection_title2, manifest_node_queueBulkAdd_form_title2, manifest_node_queueBulkAdd_output_error_description2, manifest_node_queueBulkAdd_output_output_description2, manifest_node_queueCreateAndWait_description2, manifest_node_queueCreateAndWait_display_label2, manifest_node_queueCreateAndWait_form_advanced_inputDeferDate_description2, manifest_node_queueCreateAndWait_form_advanced_inputDeferDate_label2, manifest_node_queueCreateAndWait_form_advanced_inputDueDate_description2, manifest_node_queueCreateAndWait_form_advanced_inputDueDate_label2, manifest_node_queueCreateAndWait_form_advanced_inputPriority_description2, manifest_node_queueCreateAndWait_form_advanced_inputPriority_label2, manifest_node_queueCreateAndWait_form_advanced_inputPriority_option_high_label2, manifest_node_queueCreateAndWait_form_advanced_inputPriority_option_low_label2, manifest_node_queueCreateAndWait_form_advanced_inputPriority_option_normal_label2, manifest_node_queueCreateAndWait_form_advanced_inputReference_description2, manifest_node_queueCreateAndWait_form_advanced_inputReference_label2, manifest_node_queueCreateAndWait_form_advanced_title2, manifest_node_queueCreateAndWait_form_queueSelection_inputItemData_description2, manifest_node_queueCreateAndWait_form_queueSelection_inputItemData_label2, manifest_node_queueCreateAndWait_form_queueSelection_inputQueue_description2, manifest_node_queueCreateAndWait_form_queueSelection_inputQueue_label2, manifest_node_queueCreateAndWait_form_queueSelection_inputQueue_validation_required2, manifest_node_queueCreateAndWait_form_queueSelection_title2, manifest_node_queueCreateAndWait_form_title2, manifest_node_queueCreateAndWait_output_error_description2, manifest_node_queueCreateAndWait_output_output_description2, manifest_node_queueCreate_description2, manifest_node_queueCreate_display_label2, manifest_node_queueCreate_form_advanced_inputDeferDate_description2, manifest_node_queueCreate_form_advanced_inputDeferDate_label2, manifest_node_queueCreate_form_advanced_inputDueDate_description2, manifest_node_queueCreate_form_advanced_inputDueDate_label2, manifest_node_queueCreate_form_advanced_inputPriority_description2, manifest_node_queueCreate_form_advanced_inputPriority_label2, manifest_node_queueCreate_form_advanced_inputPriority_option_high_label2, manifest_node_queueCreate_form_advanced_inputPriority_option_low_label2, manifest_node_queueCreate_form_advanced_inputPriority_option_normal_label2, manifest_node_queueCreate_form_advanced_inputReference_description2, manifest_node_queueCreate_form_advanced_inputReference_label2, manifest_node_queueCreate_form_advanced_title2, manifest_node_queueCreate_form_queueSelection_inputItemData_description2, manifest_node_queueCreate_form_queueSelection_inputItemData_label2, manifest_node_queueCreate_form_queueSelection_inputQueue_description2, manifest_node_queueCreate_form_queueSelection_inputQueue_label2, manifest_node_queueCreate_form_queueSelection_inputQueue_validation_required2, manifest_node_queueCreate_form_queueSelection_title2, manifest_node_queueCreate_form_title2, manifest_node_queueCreate_output_error_description2, manifest_node_queueCreate_output_output_description2, manifest_node_queueDeleteItems_description2, manifest_node_queueDeleteItems_display_label2, manifest_node_queueDeleteItems_form_items_inputItems_description2, manifest_node_queueDeleteItems_form_items_inputItems_label2, manifest_node_queueDeleteItems_form_items_inputItems_validation_required2, manifest_node_queueDeleteItems_form_items_title2, manifest_node_queueDeleteItems_form_title2, manifest_node_queueDeleteItems_output_error_description2, manifest_node_queueDeleteItems_output_output_description2, manifest_node_queueGetItems_description2, manifest_node_queueGetItems_display_label2, manifest_node_queueGetItems_form_filters_inputCreatedFrom_description2, manifest_node_queueGetItems_form_filters_inputCreatedFrom_label2, manifest_node_queueGetItems_form_filters_inputCreatedTo_description2, manifest_node_queueGetItems_form_filters_inputCreatedTo_label2, manifest_node_queueGetItems_form_filters_inputFilterStrategy_description2, manifest_node_queueGetItems_form_filters_inputFilterStrategy_label2, manifest_node_queueGetItems_form_filters_inputFilterStrategy_option_equals_label2, manifest_node_queueGetItems_form_filters_inputFilterStrategy_option_startsWith_label2, manifest_node_queueGetItems_form_filters_inputPriority_description2, manifest_node_queueGetItems_form_filters_inputPriority_label2, manifest_node_queueGetItems_form_filters_inputPriority_option_any_label2, manifest_node_queueGetItems_form_filters_inputPriority_option_high_label2, manifest_node_queueGetItems_form_filters_inputPriority_option_low_label2, manifest_node_queueGetItems_form_filters_inputPriority_option_normal_label2, manifest_node_queueGetItems_form_filters_inputReference_description2, manifest_node_queueGetItems_form_filters_inputReference_label2, manifest_node_queueGetItems_form_filters_inputStatuses_description2, manifest_node_queueGetItems_form_filters_inputStatuses_label2, manifest_node_queueGetItems_form_filters_inputStatuses_option_abandoned_label2, manifest_node_queueGetItems_form_filters_inputStatuses_option_deleted_label2, manifest_node_queueGetItems_form_filters_inputStatuses_option_failed_label2, manifest_node_queueGetItems_form_filters_inputStatuses_option_inProgress_label2, manifest_node_queueGetItems_form_filters_inputStatuses_option_new_label2, manifest_node_queueGetItems_form_filters_inputStatuses_option_retried_label2, manifest_node_queueGetItems_form_filters_inputStatuses_option_successful_label2, manifest_node_queueGetItems_form_filters_inputStatuses_placeholder2, manifest_node_queueGetItems_form_filters_title2, manifest_node_queueGetItems_form_queueSelection_inputQueue_description2, manifest_node_queueGetItems_form_queueSelection_inputQueue_label2, manifest_node_queueGetItems_form_queueSelection_inputQueue_validation_required2, manifest_node_queueGetItems_form_queueSelection_title2, manifest_node_queueGetItems_form_title2, manifest_node_queueGetItems_output_error_description2, manifest_node_queueGetItems_output_output_description2, manifest_node_queuePostponeTransactionItem_description2, manifest_node_queuePostponeTransactionItem_display_label2, manifest_node_queuePostponeTransactionItem_form_title2, manifest_node_queuePostponeTransactionItem_form_transaction_inputDueDate_description2, manifest_node_queuePostponeTransactionItem_form_transaction_inputDueDate_label2, manifest_node_queuePostponeTransactionItem_form_transaction_inputPostponeDate_description2, manifest_node_queuePostponeTransactionItem_form_transaction_inputPostponeDate_label2, manifest_node_queuePostponeTransactionItem_form_transaction_inputPostponeDate_validation_required2, manifest_node_queuePostponeTransactionItem_form_transaction_inputTransactionItem_description2, manifest_node_queuePostponeTransactionItem_form_transaction_inputTransactionItem_label2, manifest_node_queuePostponeTransactionItem_form_transaction_inputTransactionItem_validation_required2, manifest_node_queuePostponeTransactionItem_form_transaction_title2, manifest_node_queuePostponeTransactionItem_output_error_description2, manifest_node_queueSetTransactionProgress_description2, manifest_node_queueSetTransactionProgress_display_label2, manifest_node_queueSetTransactionProgress_form_title2, manifest_node_queueSetTransactionProgress_form_transaction_inputProgress_description2, manifest_node_queueSetTransactionProgress_form_transaction_inputProgress_label2, manifest_node_queueSetTransactionProgress_form_transaction_inputProgress_validation_required2, manifest_node_queueSetTransactionProgress_form_transaction_inputTransactionItem_description2, manifest_node_queueSetTransactionProgress_form_transaction_inputTransactionItem_label2, manifest_node_queueSetTransactionProgress_form_transaction_inputTransactionItem_validation_required2, manifest_node_queueSetTransactionProgress_form_transaction_title2, manifest_node_queueSetTransactionProgress_output_error_description2, manifest_node_queueSetTransactionStatus_description2, manifest_node_queueSetTransactionStatus_display_label2, manifest_node_queueSetTransactionStatus_form_title2, manifest_node_queueSetTransactionStatus_form_transaction_inputErrorDetails_description2, manifest_node_queueSetTransactionStatus_form_transaction_inputErrorDetails_label2, manifest_node_queueSetTransactionStatus_form_transaction_inputErrorReason_description2, manifest_node_queueSetTransactionStatus_form_transaction_inputErrorReason_label2, manifest_node_queueSetTransactionStatus_form_transaction_inputErrorType_description2, manifest_node_queueSetTransactionStatus_form_transaction_inputErrorType_label2, manifest_node_queueSetTransactionStatus_form_transaction_inputErrorType_option_application_label2, manifest_node_queueSetTransactionStatus_form_transaction_inputErrorType_option_business_label2, manifest_node_queueSetTransactionStatus_form_transaction_inputStatus_description2, manifest_node_queueSetTransactionStatus_form_transaction_inputStatus_label2, manifest_node_queueSetTransactionStatus_form_transaction_inputStatus_option_failed_label2, manifest_node_queueSetTransactionStatus_form_transaction_inputStatus_option_successful_label2, manifest_node_queueSetTransactionStatus_form_transaction_inputStatus_validation_required2, manifest_node_queueSetTransactionStatus_form_transaction_inputTransactionItem_description2, manifest_node_queueSetTransactionStatus_form_transaction_inputTransactionItem_label2, manifest_node_queueSetTransactionStatus_form_transaction_inputTransactionItem_validation_required2, manifest_node_queueSetTransactionStatus_form_transaction_title2, manifest_node_queueSetTransactionStatus_output_error_description2, manifest_node_queueTrigger_description2, manifest_node_queueTrigger_display_label2, manifest_node_queueTrigger_form_queueSelection_inputQueue_description2, manifest_node_queueTrigger_form_queueSelection_inputQueue_label2, manifest_node_queueTrigger_form_queueSelection_inputQueue_validation_required2, manifest_node_queueTrigger_form_queueSelection_title2, manifest_node_queueTrigger_form_title2, manifest_node_queueTrigger_output_output_description2, manifest_node_readEntity_description2, manifest_node_readEntity_display_label2, manifest_node_readEntity_form_entityConfig_title2, manifest_node_readEntity_form_title2, manifest_node_readEntity_output_output_description2, manifest_node_readFile_description2, manifest_node_readFile_display_label2, manifest_node_readFile_form_connection_inputConnectionId_description2, manifest_node_readFile_form_connection_inputConnectionId_label2, manifest_node_readFile_form_connection_inputConnectionId_validation_required2, manifest_node_readFile_form_connection_title2, manifest_node_readFile_form_file_inputFile_description2, manifest_node_readFile_form_file_inputFile_label2, manifest_node_readFile_form_file_inputFile_validation_required2, manifest_node_readFile_form_file_title2, manifest_node_readFile_form_title2, manifest_node_readFile_input_connectionId_errorMessage2, manifest_node_readFile_input_file_errorMessage2, manifest_node_readFile_output_error_description2, manifest_node_response_description2, manifest_node_response_display_label2, manifest_node_response_form_outcome_inputMarkJobAsFailed_description2, manifest_node_response_form_outcome_inputMarkJobAsFailed_label2, manifest_node_response_form_outcome_title2, manifest_node_response_form_title2, manifest_node_scheduledTrigger_description2, manifest_node_scheduledTrigger_display_label2, manifest_node_scheduledTrigger_form_schedule_inputTimerPreset_description2, manifest_node_scheduledTrigger_form_schedule_inputTimerPreset_label2, manifest_node_scheduledTrigger_form_schedule_inputTimerPreset_option_custom_label2, manifest_node_scheduledTrigger_form_schedule_inputTimerPreset_option_daily_label2, manifest_node_scheduledTrigger_form_schedule_inputTimerPreset_option_every12Hours_label2, manifest_node_scheduledTrigger_form_schedule_inputTimerPreset_option_every15Minutes_label2, manifest_node_scheduledTrigger_form_schedule_inputTimerPreset_option_every30Minutes_label2, manifest_node_scheduledTrigger_form_schedule_inputTimerPreset_option_every5Minutes_label2, manifest_node_scheduledTrigger_form_schedule_inputTimerPreset_option_every6Hours_label2, manifest_node_scheduledTrigger_form_schedule_inputTimerPreset_option_everyHour_label2, manifest_node_scheduledTrigger_form_schedule_inputTimerPreset_option_weekly_label2, manifest_node_scheduledTrigger_form_schedule_inputTimerValue_description2, manifest_node_scheduledTrigger_form_schedule_inputTimerValue_label2, manifest_node_scheduledTrigger_form_schedule_title2, manifest_node_scheduledTrigger_form_title2, manifest_node_scheduledTrigger_input_timerPreset_errorMessage2, manifest_node_scheduledTrigger_input_timerValue_errorMessage2, manifest_node_scriptTask_description2, manifest_node_scriptTask_display_label2, manifest_node_scriptTask_form_script_inputScript_componentProps_placeholder2, manifest_node_scriptTask_form_script_inputScript_description2, manifest_node_scriptTask_form_script_inputScript_label2, manifest_node_scriptTask_form_script_title2, manifest_node_scriptTask_form_title2, manifest_node_scriptTask_input_script_errorMessage2, manifest_node_scriptTask_output_error_description2, manifest_node_scriptTask_output_output_description2, manifest_node_sendConversationMessage_description2, manifest_node_sendConversationMessage_display_label2, manifest_node_sendConversationMessage_form_configuration_inputContent_description2, manifest_node_sendConversationMessage_form_configuration_inputContent_label2, manifest_node_sendConversationMessage_form_configuration_inputContent_validation_required2, manifest_node_sendConversationMessage_form_configuration_inputConversationId_label2, manifest_node_sendConversationMessage_form_configuration_inputConversationId_placeholder2, manifest_node_sendConversationMessage_form_configuration_inputConversationId_validation_required2, manifest_node_sendConversationMessage_form_configuration_inputEndExchange_label2, manifest_node_sendConversationMessage_form_configuration_inputExchangeId_description2, manifest_node_sendConversationMessage_form_configuration_inputExchangeId_label2, manifest_node_sendConversationMessage_form_configuration_inputExchangeId_placeholder2, manifest_node_sendConversationMessage_form_configuration_inputExchangeId_validation_required2, manifest_node_sendConversationMessage_form_configuration_inputMimeType_label2, manifest_node_sendConversationMessage_form_configuration_title2, manifest_node_sendConversationMessage_form_title2, manifest_node_sendConversationMessage_input_content_errorMessage2, manifest_node_sendConversationMessage_input_conversationId_errorMessage2, manifest_node_sendConversationMessage_input_exchangeId_errorMessage2, manifest_node_sendConversationMessage_output_error_description2, manifest_node_sendConversationMessage_output_output_description2, manifest_node_subflow_description2, manifest_node_subflow_display_label2, manifest_node_subflow_output_error_description2, manifest_node_summarizeTool_description2, manifest_node_summarizeTool_display_description2, manifest_node_summarizeTool_display_label2, manifest_node_summarizeTool_form_summarizeSettings_inputCitationModeValue_label2, manifest_node_summarizeTool_form_summarizeSettings_inputCitationModeValue_option_inline_label2, manifest_node_summarizeTool_form_summarizeSettings_inputCitationModeValue_option_skip_label2, manifest_node_summarizeTool_form_summarizeSettings_inputFileExtensionValue_label2, manifest_node_summarizeTool_form_summarizeSettings_inputQueryValue_label2, manifest_node_summarizeTool_form_summarizeSettings_inputQueryValue_placeholder2, manifest_node_summarizeTool_form_summarizeSettings_inputSource_label2, manifest_node_summarizeTool_form_summarizeSettings_inputSource_placeholder2, manifest_node_summarizeTool_form_summarizeSettings_title2, manifest_node_summarizeTool_form_title2, manifest_node_switch_description2, manifest_node_switch_descriptionMatchAll2, manifest_node_switch_display_label2, manifest_node_switch_form_cases_description2, manifest_node_switch_form_cases_descriptionOrder2, manifest_node_switch_form_cases_inputCases_label2, manifest_node_switch_form_cases_inputHasDefault_description2, manifest_node_switch_form_cases_inputHasDefault_label2, manifest_node_switch_form_cases_inputMatchAllCases_description2, manifest_node_switch_form_cases_inputMatchAllCases_label2, manifest_node_switch_form_cases_title2, manifest_node_switch_form_title2, manifest_node_switch_handle_default_label2, manifest_node_switch_input_cases_errorMessage2, manifest_node_switch_output_matchedCaseId_description2, manifest_node_switch_output_matchedCase_description2, manifest_node_terminate_description2, manifest_node_terminate_display_label2, manifest_node_transformFilter_description2, manifest_node_transformFilter_display_label2, manifest_node_transformFilter_form_filterSection_inputs_label2, manifest_node_transformFilter_form_filterSection_title2, manifest_node_transformFilter_form_title2, manifest_node_transformFilter_output_error_description2, manifest_node_transformFilter_output_output_description2, manifest_node_transformGroupBy_description2, manifest_node_transformGroupBy_display_label2, manifest_node_transformGroupBy_form_groupBySection_inputs_label2, manifest_node_transformGroupBy_form_groupBySection_title2, manifest_node_transformGroupBy_form_title2, manifest_node_transformGroupBy_output_error_description2, manifest_node_transformGroupBy_output_output_description2, manifest_node_transformMap_description2, manifest_node_transformMap_display_label2, manifest_node_transformMap_form_mapSection_inputs_label2, manifest_node_transformMap_form_mapSection_title2, manifest_node_transformMap_form_title2, manifest_node_transformMap_output_error_description2, manifest_node_transformMap_output_output_description2, manifest_node_transform_description2, manifest_node_transform_display_label2, manifest_node_transform_form_title2, manifest_node_transform_form_transformSection_inputs_label2, manifest_node_transform_form_transformSection_title2, manifest_node_transform_output_error_description2, manifest_node_transform_output_output_description2, manifest_node_updateEntity_description2, manifest_node_updateEntity_display_label2, manifest_node_updateEntity_form_entityConfig_title2, manifest_node_updateEntity_form_title2, manifest_node_updateEntity_output_output_description2, manifest_node_voiceAgent_description2, manifest_node_voiceAgent_display_label2, manifest_node_voiceAgent_form_callSettings_inputCallContext_componentProps_placeholder2, manifest_node_voiceAgent_form_callSettings_inputCallContext_description2, manifest_node_voiceAgent_form_callSettings_inputCallContext_label2, manifest_node_voiceAgent_form_callSettings_title2, manifest_node_voiceAgent_form_section1_inputSystemPrompt_componentProps_placeholder2, manifest_node_voiceAgent_form_section1_inputSystemPrompt_label2, manifest_node_voiceAgent_form_section1_inputVoiceModel_label2, manifest_node_voiceAgent_form_section1_inputVoicePersona_label2, manifest_node_voiceAgent_form_section1_title2, manifest_node_voiceAgent_form_sectionAdvanced_inputVoiceAgentSpeaksFirst_description2, manifest_node_voiceAgent_form_sectionAdvanced_inputVoiceAgentSpeaksFirst_label2, manifest_node_voiceAgent_form_sectionAdvanced_inputVoiceMaxTokens_label2, manifest_node_voiceAgent_form_sectionAdvanced_inputVoiceTemperature_label2, manifest_node_voiceAgent_form_sectionAdvanced_inputVoiceTurnDetection_description2, manifest_node_voiceAgent_form_sectionAdvanced_inputVoiceTurnDetection_label2, manifest_node_voiceAgent_form_sectionAdvanced_title2, manifest_node_voiceAgent_form_title2, manifest_node_voiceAgent_handle_context_label2, manifest_node_voiceAgent_handle_escalation_label2, manifest_node_voiceAgent_handle_tool_label2, manifest_node_voiceAgent_input_callContext_description2, manifest_node_voiceAgent_output_error_description2, manifest_node_voiceAgent_output_output_description2, manifest_node_voiceAgent_output_output_uipathAgentResponseMessages_description2, manifest_node_voiceAgent_output_output_uipathVoiceCallContext_conversationId_description2, manifest_node_voiceAgent_output_output_uipathVoiceCallContext_description2, manifest_node_voiceAgent_output_output_uipathVoiceCallContext_id_description2, manifest_node_voiceAgent_output_output_uipathVoiceCallContext_type_description2, manifest_node_voiceAgent_output_output_uipathVoiceSession_callEnded_description2, manifest_node_voiceAgent_output_output_uipathVoiceSession_description2, manifest_node_voiceAgent_output_output_uipathVoiceSession_endedBy_description2, manifest_node_voiceAgent_output_output_uipathVoiceSession_reason_description2, manifest_node_voiceIncomingCall_description2, manifest_node_voiceIncomingCall_display_label2, manifest_node_voiceIncomingCall_output_output_description2, manifest_node_waitForMessage_description2, manifest_node_waitForMessage_display_label2, manifest_node_waitForMessage_form_configuration_inputConversationId_description2, manifest_node_waitForMessage_form_configuration_inputConversationId_label2, manifest_node_waitForMessage_form_configuration_inputConversationId_placeholder2, manifest_node_waitForMessage_form_configuration_inputConversationId_validation_required2, manifest_node_waitForMessage_form_configuration_inputExchangeLimit_description2, manifest_node_waitForMessage_form_configuration_inputExchangeLimit_label2, manifest_node_waitForMessage_form_configuration_inputFrom_description2, manifest_node_waitForMessage_form_configuration_inputFrom_label2, manifest_node_waitForMessage_form_configuration_inputFrom_option_user_label2, manifest_node_waitForMessage_form_configuration_inputNumExchanges_description2, manifest_node_waitForMessage_form_configuration_inputNumExchanges_label2, manifest_node_waitForMessage_form_configuration_title2, manifest_node_waitForMessage_form_title2, manifest_node_waitForMessage_input_conversationId_errorMessage2, manifest_node_waitForMessage_output_error_description2, manifest_node_waitForMessage_output_output_description2, manifest_pattern_aiDecisionHumanReview_asksForHelp_answerAgent_label2, manifest_pattern_aiDecisionHumanReview_asksForHelp_applyAction_label2, manifest_pattern_aiDecisionHumanReview_asksForHelp_description2, manifest_pattern_aiDecisionHumanReview_asksForHelp_endDone_label2, manifest_pattern_aiDecisionHumanReview_asksForHelp_endTakenOver_label2, manifest_pattern_aiDecisionHumanReview_asksForHelp_name2, manifest_pattern_aiDecisionHumanReview_asksForHelp_needsPerson_label2, manifest_pattern_aiDecisionHumanReview_asksForHelp_prepareAction_label2, manifest_pattern_aiDecisionHumanReview_asksForHelp_stickyNote_content2, manifest_pattern_aiDecisionHumanReview_description2, manifest_pattern_aiDecisionHumanReview_everyItemReviewed_applyAction_label2, manifest_pattern_aiDecisionHumanReview_everyItemReviewed_description2, manifest_pattern_aiDecisionHumanReview_everyItemReviewed_endApproved_label2, manifest_pattern_aiDecisionHumanReview_everyItemReviewed_endTakenOver_label2, manifest_pattern_aiDecisionHumanReview_everyItemReviewed_name2, manifest_pattern_aiDecisionHumanReview_everyItemReviewed_prepareAction_label2, manifest_pattern_aiDecisionHumanReview_everyItemReviewed_reviewAction_label2, manifest_pattern_aiDecisionHumanReview_everyItemReviewed_stickyNote_content2, manifest_pattern_aiDecisionHumanReview_humanFallback_analyzeItem_label2, manifest_pattern_aiDecisionHumanReview_humanFallback_applyDecision_label2, manifest_pattern_aiDecisionHumanReview_humanFallback_confidenceGate_label2, manifest_pattern_aiDecisionHumanReview_humanFallback_description2, manifest_pattern_aiDecisionHumanReview_humanFallback_endApplied_label2, manifest_pattern_aiDecisionHumanReview_humanFallback_endRejected_label2, manifest_pattern_aiDecisionHumanReview_humanFallback_name2, manifest_pattern_aiDecisionHumanReview_humanFallback_reviewDecision_label2, manifest_pattern_aiDecisionHumanReview_humanFallback_stickyNote_content2, manifest_pattern_aiDecisionHumanReview_name2, manifest_pattern_batchAi_description2, manifest_pattern_batchAi_name2, manifest_pattern_batchAi_perItem_description2, manifest_pattern_batchAi_perItem_endDone_label2, manifest_pattern_batchAi_perItem_loadItems_label2, manifest_pattern_batchAi_perItem_name2, manifest_pattern_batchAi_perItem_processBatch_label2, manifest_pattern_batchAi_perItem_processItem_label2, manifest_pattern_batchAi_perItem_stickyNote_content2, manifest_pattern_batchAi_sampleFirst_checkQuality_label2, manifest_pattern_batchAi_sampleFirst_description2, manifest_pattern_batchAi_sampleFirst_endDone_label2, manifest_pattern_batchAi_sampleFirst_endStopped_label2, manifest_pattern_batchAi_sampleFirst_loadItems_label2, manifest_pattern_batchAi_sampleFirst_name2, manifest_pattern_batchAi_sampleFirst_processBatch_label2, manifest_pattern_batchAi_sampleFirst_processItem_label2, manifest_pattern_batchAi_sampleFirst_processSample_label2, manifest_pattern_batchAi_sampleFirst_sampleBatch_label2, manifest_pattern_batchAi_sampleFirst_stickyNote_content2, manifest_pattern_batchAi_synthesize_description2, manifest_pattern_batchAi_synthesize_endDone_label2, manifest_pattern_batchAi_synthesize_loadItems_label2, manifest_pattern_batchAi_synthesize_name2, manifest_pattern_batchAi_synthesize_processBatch_label2, manifest_pattern_batchAi_synthesize_processItem_label2, manifest_pattern_batchAi_synthesize_stickyNote_content2, manifest_pattern_batchAi_synthesize_synthesize_label2, manifest_pattern_conversationalIntake_assistant_assistant_label2, manifest_pattern_conversationalIntake_assistant_conversationDone_label2, manifest_pattern_conversationalIntake_assistant_description2, manifest_pattern_conversationalIntake_assistant_endDone_label2, manifest_pattern_conversationalIntake_assistant_name2, manifest_pattern_conversationalIntake_assistant_start_label2, manifest_pattern_conversationalIntake_assistant_stickyNote_content2, manifest_pattern_conversationalIntake_assistant_waitForMessage_label2, manifest_pattern_conversationalIntake_description2, manifest_pattern_conversationalIntake_handoffToSpecialist_announceHandoff_label2, manifest_pattern_conversationalIntake_handoffToSpecialist_description2, manifest_pattern_conversationalIntake_handoffToSpecialist_endDone_label2, manifest_pattern_conversationalIntake_handoffToSpecialist_generalAgent_label2, manifest_pattern_conversationalIntake_handoffToSpecialist_name2, manifest_pattern_conversationalIntake_handoffToSpecialist_routeTurn_label2, manifest_pattern_conversationalIntake_handoffToSpecialist_specialistAgent_label2, manifest_pattern_conversationalIntake_handoffToSpecialist_specialistDone_label2, manifest_pattern_conversationalIntake_handoffToSpecialist_start_label2, manifest_pattern_conversationalIntake_handoffToSpecialist_stickyNote_content2, manifest_pattern_conversationalIntake_handoffToSpecialist_waitGeneral_label2, manifest_pattern_conversationalIntake_handoffToSpecialist_waitSpecialist_label2, manifest_pattern_conversationalIntake_name2, manifest_pattern_conversationalIntake_textIntake_description2, manifest_pattern_conversationalIntake_textIntake_endSubmitted_label2, manifest_pattern_conversationalIntake_textIntake_gatherRequest_label2, manifest_pattern_conversationalIntake_textIntake_intakeComplete_label2, manifest_pattern_conversationalIntake_textIntake_name2, manifest_pattern_conversationalIntake_textIntake_reportBack_label2, manifest_pattern_conversationalIntake_textIntake_startProcess_label2, manifest_pattern_conversationalIntake_textIntake_start_label2, manifest_pattern_conversationalIntake_textIntake_stickyNote_content2, manifest_pattern_conversationalIntake_textIntake_waitForMessage_label2, manifest_pattern_parallelAgents_consensus_adjudicate_label2, manifest_pattern_parallelAgents_consensus_attemptA_label2, manifest_pattern_parallelAgents_consensus_attemptB_label2, manifest_pattern_parallelAgents_consensus_attemptC_label2, manifest_pattern_parallelAgents_consensus_description2, manifest_pattern_parallelAgents_consensus_endDone_label2, manifest_pattern_parallelAgents_consensus_fanOut_label2, manifest_pattern_parallelAgents_consensus_joinAgents_label2, manifest_pattern_parallelAgents_consensus_name2, manifest_pattern_parallelAgents_consensus_stickyNote_content2, manifest_pattern_parallelAgents_description2, manifest_pattern_parallelAgents_name2, manifest_pattern_parallelAgents_perspectivePanel_description2, manifest_pattern_parallelAgents_perspectivePanel_endDone_label2, manifest_pattern_parallelAgents_perspectivePanel_fanOut_label2, manifest_pattern_parallelAgents_perspectivePanel_joinPerspectives_label2, manifest_pattern_parallelAgents_perspectivePanel_name2, manifest_pattern_parallelAgents_perspectivePanel_perspectiveA_label2, manifest_pattern_parallelAgents_perspectivePanel_perspectiveB_label2, manifest_pattern_parallelAgents_perspectivePanel_perspectiveC_label2, manifest_pattern_parallelAgents_perspectivePanel_stickyNote_content2, manifest_pattern_parallelAgents_perspectivePanel_synthesize_label2, manifest_pattern_parallelAgents_taskSectioning_assemble_label2, manifest_pattern_parallelAgents_taskSectioning_description2, manifest_pattern_parallelAgents_taskSectioning_endDone_label2, manifest_pattern_parallelAgents_taskSectioning_fanOut_label2, manifest_pattern_parallelAgents_taskSectioning_joinAgents_label2, manifest_pattern_parallelAgents_taskSectioning_name2, manifest_pattern_parallelAgents_taskSectioning_sectionA_label2, manifest_pattern_parallelAgents_taskSectioning_sectionB_label2, manifest_pattern_parallelAgents_taskSectioning_sectionC_label2, manifest_pattern_parallelAgents_taskSectioning_stickyNote_content2, manifest_pattern_routingTriage_ai_classifyItem_label2, manifest_pattern_routingTriage_ai_confidenceFloor_label2, manifest_pattern_routingTriage_ai_description2, manifest_pattern_routingTriage_ai_endAccount_label2, manifest_pattern_routingTriage_ai_endBilling_label2, manifest_pattern_routingTriage_ai_endTechnical_label2, manifest_pattern_routingTriage_ai_handleAccount_label2, manifest_pattern_routingTriage_ai_handleBilling_label2, manifest_pattern_routingTriage_ai_handleTechnical_label2, manifest_pattern_routingTriage_ai_name2, manifest_pattern_routingTriage_ai_pickCategory_label2, manifest_pattern_routingTriage_ai_routeByCategory_label2, manifest_pattern_routingTriage_ai_stickyNote_content2, manifest_pattern_routingTriage_description2, manifest_pattern_routingTriage_hybrid_classifyItem_label2, manifest_pattern_routingTriage_hybrid_confidenceFloor_label2, manifest_pattern_routingTriage_hybrid_description2, manifest_pattern_routingTriage_hybrid_endAccount_label2, manifest_pattern_routingTriage_hybrid_endBilling_label2, manifest_pattern_routingTriage_hybrid_endTechnical_label2, manifest_pattern_routingTriage_hybrid_handleAccount_label2, manifest_pattern_routingTriage_hybrid_handleBilling_label2, manifest_pattern_routingTriage_hybrid_handleTechnical_label2, manifest_pattern_routingTriage_hybrid_name2, manifest_pattern_routingTriage_hybrid_normalizeItem_label2, manifest_pattern_routingTriage_hybrid_pickCategory_label2, manifest_pattern_routingTriage_hybrid_routeByCategory_label2, manifest_pattern_routingTriage_hybrid_routeByRule_label2, manifest_pattern_routingTriage_hybrid_stickyNote_content2, manifest_pattern_routingTriage_name2, manifest_pattern_routingTriage_rule_description2, manifest_pattern_routingTriage_rule_endAccount_label2, manifest_pattern_routingTriage_rule_endBilling_label2, manifest_pattern_routingTriage_rule_endTechnical_label2, manifest_pattern_routingTriage_rule_handleAccount_label2, manifest_pattern_routingTriage_rule_handleBilling_label2, manifest_pattern_routingTriage_rule_handleTechnical_label2, manifest_pattern_routingTriage_rule_name2, manifest_pattern_routingTriage_rule_normalizeItem_label2, manifest_pattern_routingTriage_rule_pickCategory_label2, manifest_pattern_routingTriage_rule_routeByRule_label2, manifest_pattern_routingTriage_rule_stickyNote_content2, manifest_pattern_voiceAgents_description2, manifest_pattern_voiceAgents_handoff_description2, manifest_pattern_voiceAgents_handoff_endCall_label2, manifest_pattern_voiceAgents_handoff_endDone_label2, manifest_pattern_voiceAgents_handoff_fallbackAgent_label2, manifest_pattern_voiceAgents_handoff_name2, manifest_pattern_voiceAgents_handoff_placeCall_label2, manifest_pattern_voiceAgents_handoff_routeCall_label2, manifest_pattern_voiceAgents_handoff_specialistA_label2, manifest_pattern_voiceAgents_handoff_specialistB_label2, manifest_pattern_voiceAgents_handoff_stickyNote_content2, manifest_pattern_voiceAgents_handoff_triageAgent_label2, manifest_pattern_voiceAgents_incomingCall_description2, manifest_pattern_voiceAgents_incomingCall_endCall_label2, manifest_pattern_voiceAgents_incomingCall_endSubmitted_label2, manifest_pattern_voiceAgents_incomingCall_name2, manifest_pattern_voiceAgents_incomingCall_startProcess_label2, manifest_pattern_voiceAgents_incomingCall_start_label2, manifest_pattern_voiceAgents_incomingCall_stickyNote_content2, manifest_pattern_voiceAgents_incomingCall_voiceIntake_label2, manifest_pattern_voiceAgents_name2, manifest_pattern_voiceAgents_rememberCaller_description2, manifest_pattern_voiceAgents_rememberCaller_distillMemory_label2, manifest_pattern_voiceAgents_rememberCaller_endCall_label2, manifest_pattern_voiceAgents_rememberCaller_endDone_label2, manifest_pattern_voiceAgents_rememberCaller_name2, manifest_pattern_voiceAgents_rememberCaller_readConversation_label2, manifest_pattern_voiceAgents_rememberCaller_saveMemory_label2, manifest_pattern_voiceAgents_rememberCaller_start_label2, manifest_pattern_voiceAgents_rememberCaller_stickyNote_content2, manifest_pattern_voiceAgents_rememberCaller_voiceAgent_label2, manifest_section_allConnectors2, manifest_section_featured2, manifest_section_inThisSolution2, manifest_section_published2, manifest_triggerToolbar_changeTriggerType_label2, en_default2, satisfiesRuntimeConstraints2, getServiceType2, ootbNodes2, inlineAgentNodes2, buildExtractDocumentBuilderNode2, extractIOFromEntryPoints2, taskDefinitionsToNodeManifests2, AGENT_TOOL_CONNECTOR_NODE_PREFIX2, DEFAULT_FETCHERS2, withErrorHandles2, MANIFEST_FEATURE_FLAGS2, ManifestClient2 };
|
|
89987
90077
|
|
|
89988
|
-
//# debugId=
|
|
90078
|
+
//# debugId=3898C856D5D4B34C64756E2164756E21
|