@everymatrix/casino-engagement-suite-container 1.74.2 → 1.74.4
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.
|
@@ -7301,9 +7301,9 @@ const mergeTranslations = (url, target) => {
|
|
|
7301
7301
|
.then((res) => res.json())
|
|
7302
7302
|
.then((data) => {
|
|
7303
7303
|
Object.keys(data).forEach((item) => {
|
|
7304
|
-
target[item] = target[item] ||
|
|
7304
|
+
target[item] = target[item] || {};
|
|
7305
7305
|
Object.keys(data[item]).forEach((key) => {
|
|
7306
|
-
//if there is
|
|
7306
|
+
//if there is no key in target, do nothing
|
|
7307
7307
|
if (!target['en'][key]) {
|
|
7308
7308
|
return;
|
|
7309
7309
|
}
|
|
@@ -7316,7 +7316,7 @@ const mergeTranslations = (url, target) => {
|
|
|
7316
7316
|
});
|
|
7317
7317
|
}
|
|
7318
7318
|
else {
|
|
7319
|
-
target[item][key] = data[item][key] || defaultTranslation;
|
|
7319
|
+
target[item][key] = data[item][key] || Object.assign({}, defaultTranslation);
|
|
7320
7320
|
}
|
|
7321
7321
|
});
|
|
7322
7322
|
});
|
|
@@ -7297,9 +7297,9 @@ const mergeTranslations = (url, target) => {
|
|
|
7297
7297
|
.then((res) => res.json())
|
|
7298
7298
|
.then((data) => {
|
|
7299
7299
|
Object.keys(data).forEach((item) => {
|
|
7300
|
-
target[item] = target[item] ||
|
|
7300
|
+
target[item] = target[item] || {};
|
|
7301
7301
|
Object.keys(data[item]).forEach((key) => {
|
|
7302
|
-
//if there is
|
|
7302
|
+
//if there is no key in target, do nothing
|
|
7303
7303
|
if (!target['en'][key]) {
|
|
7304
7304
|
return;
|
|
7305
7305
|
}
|
|
@@ -7312,7 +7312,7 @@ const mergeTranslations = (url, target) => {
|
|
|
7312
7312
|
});
|
|
7313
7313
|
}
|
|
7314
7314
|
else {
|
|
7315
|
-
target[item][key] = data[item][key] || defaultTranslation;
|
|
7315
|
+
target[item][key] = data[item][key] || Object.assign({}, defaultTranslation);
|
|
7316
7316
|
}
|
|
7317
7317
|
});
|
|
7318
7318
|
});
|