@littlebox/strapi-suite 1.0.36 → 1.0.37

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.
@@ -2423,13 +2423,13 @@ const ParameterModuleService = ({ strapi: strapi2 }) => ({
2423
2423
  function groupByUid(items) {
2424
2424
  const groupedMap = items.reduce((acc, item) => {
2425
2425
  if (acc[item.uid]) {
2426
- acc[item.uid].translations[item.locale] = item.translation;
2426
+ acc[item.uid].translations[item.locale.toLowerCase()] = item.translation;
2427
2427
  } else {
2428
2428
  acc[item.uid] = {
2429
2429
  id: item.id,
2430
2430
  uid: item.uid,
2431
2431
  translations: {
2432
- [item.locale]: item.translation
2432
+ [item.locale.toLowerCase()]: item.translation
2433
2433
  }
2434
2434
  };
2435
2435
  }
@@ -2422,13 +2422,13 @@ const ParameterModuleService = ({ strapi: strapi2 }) => ({
2422
2422
  function groupByUid(items) {
2423
2423
  const groupedMap = items.reduce((acc, item) => {
2424
2424
  if (acc[item.uid]) {
2425
- acc[item.uid].translations[item.locale] = item.translation;
2425
+ acc[item.uid].translations[item.locale.toLowerCase()] = item.translation;
2426
2426
  } else {
2427
2427
  acc[item.uid] = {
2428
2428
  id: item.id,
2429
2429
  uid: item.uid,
2430
2430
  translations: {
2431
- [item.locale]: item.translation
2431
+ [item.locale.toLowerCase()]: item.translation
2432
2432
  }
2433
2433
  };
2434
2434
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.36",
2
+ "version": "1.0.37",
3
3
  "keywords": [
4
4
  "strapi",
5
5
  "strapi plugin",