@cmssy/core 19.2.0 → 19.3.1
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/locale.cjs +1 -1
- package/dist/internal/locale.js +1 -1
- package/dist/internal.cjs +4 -3
- package/dist/internal.js +4 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
package/dist/internal/locale.cjs
CHANGED
package/dist/internal/locale.js
CHANGED
package/dist/internal.cjs
CHANGED
|
@@ -154,7 +154,7 @@ function documentText(document2) {
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
// src/version.ts
|
|
157
|
-
var CMSSY_CORE_VERSION = "19.
|
|
157
|
+
var CMSSY_CORE_VERSION = "19.3.1" ;
|
|
158
158
|
var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
|
|
159
159
|
|
|
160
160
|
// src/data/http.ts
|
|
@@ -567,8 +567,9 @@ function getBlockContentForLanguage(content, locale, defaultLocale = "en", avail
|
|
|
567
567
|
if (!(isLocale(key) && isPlainObject(value))) nonTranslatable[key] = value;
|
|
568
568
|
}
|
|
569
569
|
const fallbackKey = Object.keys(localeMap)[0];
|
|
570
|
-
const
|
|
571
|
-
|
|
570
|
+
const base = localeMap[defaultLocale] ?? localeMap[fallbackKey];
|
|
571
|
+
const active = localeMap[locale] ?? base;
|
|
572
|
+
return { ...nonTranslatable, ...base, ...active };
|
|
572
573
|
}
|
|
573
574
|
function asBucket(value) {
|
|
574
575
|
return isPlainObject(value) ? value : {};
|
package/dist/internal.js
CHANGED
|
@@ -152,7 +152,7 @@ function documentText(document2) {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
// src/version.ts
|
|
155
|
-
var CMSSY_CORE_VERSION = "19.
|
|
155
|
+
var CMSSY_CORE_VERSION = "19.3.1" ;
|
|
156
156
|
var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
|
|
157
157
|
|
|
158
158
|
// src/data/http.ts
|
|
@@ -565,8 +565,9 @@ function getBlockContentForLanguage(content, locale, defaultLocale = "en", avail
|
|
|
565
565
|
if (!(isLocale(key) && isPlainObject(value))) nonTranslatable[key] = value;
|
|
566
566
|
}
|
|
567
567
|
const fallbackKey = Object.keys(localeMap)[0];
|
|
568
|
-
const
|
|
569
|
-
|
|
568
|
+
const base = localeMap[defaultLocale] ?? localeMap[fallbackKey];
|
|
569
|
+
const active = localeMap[locale] ?? base;
|
|
570
|
+
return { ...nonTranslatable, ...base, ...active };
|
|
570
571
|
}
|
|
571
572
|
function asBucket(value) {
|
|
572
573
|
return isPlainObject(value) ? value : {};
|