@strapi/i18n 5.0.5 → 5.0.6

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.
@@ -1419,6 +1419,9 @@ 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
+ }
1422
1425
  return Object.keys(trad).reduce((acc, current) => {
1423
1426
  acc[`${pluginId2}.${current}`] = trad[current];
1424
1427
  return acc;
@@ -1488,7 +1491,7 @@ const index = {
1488
1491
  },
1489
1492
  id: "internationalization",
1490
1493
  to: "internationalization",
1491
- Component: () => Promise.resolve().then(() => require("./SettingsPage-Z94BBMrV.js")).then((mod) => ({ default: mod.ProtectedSettingsPage })),
1494
+ Component: () => Promise.resolve().then(() => require("./SettingsPage-uGJv15wR.js")).then((mod) => ({ default: mod.ProtectedSettingsPage })),
1492
1495
  permissions: PERMISSIONS.accessMain
1493
1496
  });
1494
1497
  const contentManager = app.getPlugin("content-manager");
@@ -1606,7 +1609,7 @@ const index = {
1606
1609
  async registerTrads({ locales }) {
1607
1610
  const importedTrads = await Promise.all(
1608
1611
  locales.map((locale) => {
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 }) => {
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-Dk9At9_Z.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 }) => {
1610
1613
  return {
1611
1614
  data: prefixPluginTranslations(data, pluginId),
1612
1615
  locale
@@ -1630,4 +1633,4 @@ exports.useDeleteLocaleMutation = useDeleteLocaleMutation;
1630
1633
  exports.useGetDefaultLocalesQuery = useGetDefaultLocalesQuery;
1631
1634
  exports.useGetLocalesQuery = useGetLocalesQuery;
1632
1635
  exports.useUpdateLocaleMutation = useUpdateLocaleMutation;
1633
- //# sourceMappingURL=index-BOvOaxo-.js.map
1636
+ //# sourceMappingURL=index-BGtXLYX-.js.map