@strapi/i18n 5.0.2 → 5.0.3
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/_chunks/{SettingsPage-DbRFoF_H.mjs → SettingsPage-D_53Ao8I.mjs} +2 -2
- package/dist/_chunks/{SettingsPage-DbRFoF_H.mjs.map → SettingsPage-D_53Ao8I.mjs.map} +1 -1
- package/dist/_chunks/{SettingsPage-uGJv15wR.js → SettingsPage-Z94BBMrV.js} +2 -2
- package/dist/_chunks/{SettingsPage-uGJv15wR.js.map → SettingsPage-Z94BBMrV.js.map} +1 -1
- package/dist/_chunks/{en-Dk9At9_Z.js → en-BKBz3tro.js} +3 -3
- package/dist/_chunks/en-BKBz3tro.js.map +1 -0
- package/dist/_chunks/{en-BYRZFDBV.mjs → en-DlXfy6Gy.mjs} +3 -3
- package/dist/_chunks/en-DlXfy6Gy.mjs.map +1 -0
- package/dist/_chunks/{index-7_EUScSl.mjs → index-BGhYo_Rs.mjs} +3 -6
- package/dist/_chunks/{index-7_EUScSl.mjs.map → index-BGhYo_Rs.mjs.map} +1 -1
- package/dist/_chunks/{index-BGtXLYX-.js → index-BOvOaxo-.js} +3 -6
- package/dist/_chunks/{index-BGtXLYX-.js.map → index-BOvOaxo-.js.map} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/package.json +7 -7
- package/dist/_chunks/en-BYRZFDBV.mjs.map +0 -1
- package/dist/_chunks/en-Dk9At9_Z.js.map +0 -1
@@ -1419,9 +1419,6 @@ const localeMiddleware = (ctx) => (next) => (permissions) => {
|
|
1419
1419
|
return next(revisedPermissions);
|
1420
1420
|
};
|
1421
1421
|
const prefixPluginTranslations = (trad, pluginId2) => {
|
1422
|
-
if (!pluginId2) {
|
1423
|
-
throw new TypeError("pluginId can't be empty");
|
1424
|
-
}
|
1425
1422
|
return Object.keys(trad).reduce((acc, current) => {
|
1426
1423
|
acc[`${pluginId2}.${current}`] = trad[current];
|
1427
1424
|
return acc;
|
@@ -1491,7 +1488,7 @@ const index = {
|
|
1491
1488
|
},
|
1492
1489
|
id: "internationalization",
|
1493
1490
|
to: "internationalization",
|
1494
|
-
Component: () => Promise.resolve().then(() => require("./SettingsPage-
|
1491
|
+
Component: () => Promise.resolve().then(() => require("./SettingsPage-Z94BBMrV.js")).then((mod) => ({ default: mod.ProtectedSettingsPage })),
|
1495
1492
|
permissions: PERMISSIONS.accessMain
|
1496
1493
|
});
|
1497
1494
|
const contentManager = app.getPlugin("content-manager");
|
@@ -1609,7 +1606,7 @@ const index = {
|
|
1609
1606
|
async registerTrads({ locales }) {
|
1610
1607
|
const importedTrads = await Promise.all(
|
1611
1608
|
locales.map((locale) => {
|
1612
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/de.json": () => Promise.resolve().then(() => require("./de-DtWiGdHl.js")), "./translations/dk.json": () => Promise.resolve().then(() => require("./dk-D8C-casx.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-
|
1609
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/de.json": () => Promise.resolve().then(() => require("./de-DtWiGdHl.js")), "./translations/dk.json": () => Promise.resolve().then(() => require("./dk-D8C-casx.js")), "./translations/en.json": () => Promise.resolve().then(() => require("./en-BKBz3tro.js")), "./translations/es.json": () => Promise.resolve().then(() => require("./es-DS-XFGSw.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("./fr-BTjekDpq.js")), "./translations/ko.json": () => Promise.resolve().then(() => require("./ko-DmcGUBQ3.js")), "./translations/pl.json": () => Promise.resolve().then(() => require("./pl-Cn5RYonZ.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("./ru-BMBgVL3s.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("./tr-CarUU76c.js")), "./translations/zh-Hans.json": () => Promise.resolve().then(() => require("./zh-Hans-DSHIXAa3.js")), "./translations/zh.json": () => Promise.resolve().then(() => require("./zh-CukOviB0.js")) }), `./translations/${locale}.json`).then(({ default: data }) => {
|
1613
1610
|
return {
|
1614
1611
|
data: prefixPluginTranslations(data, pluginId),
|
1615
1612
|
locale
|
@@ -1633,4 +1630,4 @@ exports.useDeleteLocaleMutation = useDeleteLocaleMutation;
|
|
1633
1630
|
exports.useGetDefaultLocalesQuery = useGetDefaultLocalesQuery;
|
1634
1631
|
exports.useGetLocalesQuery = useGetLocalesQuery;
|
1635
1632
|
exports.useUpdateLocaleMutation = useUpdateLocaleMutation;
|
1636
|
-
//# sourceMappingURL=index-
|
1633
|
+
//# sourceMappingURL=index-BOvOaxo-.js.map
|