@adminforth/i18n 1.6.5 → 1.6.7

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.js CHANGED
@@ -431,12 +431,12 @@ export default class I18nPlugin extends AdminForthPlugin {
431
431
  menuItem.badgeTooltip = 'Untranslated count';
432
432
  };
433
433
  adminforth.config.menu.forEach((menuItem) => {
434
- if (menuItem.resourceId === resourceConfig.resourceId) {
434
+ if (menuItem.resourceId === resourceConfig.resourceId && !menuItem.badge) {
435
435
  addBadgeCountToMenuItem(menuItem);
436
436
  }
437
437
  if (menuItem.children) {
438
438
  menuItem.children.forEach((child) => {
439
- if (child.resourceId === resourceConfig.resourceId) {
439
+ if (child.resourceId === resourceConfig.resourceId && !child.badge) {
440
440
  addBadgeCountToMenuItem(child);
441
441
  }
442
442
  });
package/index.ts CHANGED
@@ -484,12 +484,12 @@ export default class I18nPlugin extends AdminForthPlugin {
484
484
  menuItem.badgeTooltip = 'Untranslated count';
485
485
  }
486
486
  adminforth.config.menu.forEach((menuItem) => {
487
- if (menuItem.resourceId === resourceConfig.resourceId) {
487
+ if (menuItem.resourceId === resourceConfig.resourceId && !menuItem.badge) {
488
488
  addBadgeCountToMenuItem(menuItem);
489
489
  }
490
490
  if (menuItem.children) {
491
491
  menuItem.children.forEach((child) => {
492
- if (child.resourceId === resourceConfig.resourceId) {
492
+ if (child.resourceId === resourceConfig.resourceId && !child.badge) {
493
493
  addBadgeCountToMenuItem(child);
494
494
  }
495
495
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/i18n",
3
- "version": "1.6.5",
3
+ "version": "1.6.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "iso-639-1": "^3.1.3"
37
37
  },
38
38
  "peerDependencies": {
39
- "adminforth": "^2.13.0-next.51"
39
+ "adminforth": "next"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/node": "^22.10.7",