@iris-ui-kit/react 0.3.1 → 0.3.2

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/admin.cjs CHANGED
@@ -361,7 +361,7 @@ function IrisNavMenu({
361
361
  "data-branch": branch ? "true" : void 0,
362
362
  disabled: node.disabled,
363
363
  title: node.title,
364
- "aria-label": branch ? `${node.title} (section)` : node.title,
364
+ "aria-label": branch ? t("admin.section", { title: node.title }) : node.title,
365
365
  "aria-current": active && !branch ? "page" : void 0,
366
366
  style: itemStyle({
367
367
  depth: 0,
@@ -1472,7 +1472,7 @@ function IrisAdminTabs({
1472
1472
  /* @__PURE__ */ jsxRuntime.jsx(IrisDropdownItem, { onSelect: () => nav.closeRight(activeKey), children: translate("admin.closeRight") }),
1473
1473
  /* @__PURE__ */ jsxRuntime.jsx(IrisDropdownItem, { onSelect: () => nav.closeOthers(activeKey), children: translate("admin.closeOthers") }),
1474
1474
  /* @__PURE__ */ jsxRuntime.jsx(IrisDropdownItem, { onSelect: () => nav.closeAll(), children: translate("admin.closeAll") })
1475
- ] }) : /* @__PURE__ */ jsxRuntime.jsx(IrisDropdownItem, { disabled: true, children: "No active tab" }) })
1475
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx(IrisDropdownItem, { disabled: true, children: translate("admin.noActiveTab") }) })
1476
1476
  ] })
1477
1477
  ]
1478
1478
  }
@@ -1533,7 +1533,7 @@ function IrisAdminLayout({
1533
1533
  defaultCollapsed = false,
1534
1534
  onCollapsedChange,
1535
1535
  mode = "sidebar",
1536
- appTitle = "Iris Admin",
1536
+ appTitle,
1537
1537
  tabs,
1538
1538
  showTabs = true,
1539
1539
  showBreadcrumb = true,
@@ -1551,6 +1551,7 @@ function IrisAdminLayout({
1551
1551
  children
1552
1552
  }) {
1553
1553
  const { t } = useI18n();
1554
+ const resolvedAppTitle = appTitle ?? t("admin.title");
1554
1555
  const {
1555
1556
  activeKey: currentActive,
1556
1557
  navigate,
@@ -1607,7 +1608,7 @@ function IrisAdminLayout({
1607
1608
  children: /* @__PURE__ */ jsxRuntime.jsx(IrisIcon, { name: "menu", size: 18 })
1608
1609
  }
1609
1610
  ),
1610
- state.collapsed ? null : /* @__PURE__ */ jsxRuntime.jsx("span", { children: appTitle })
1611
+ state.collapsed ? null : /* @__PURE__ */ jsxRuntime.jsx("span", { children: resolvedAppTitle })
1611
1612
  ]
1612
1613
  }
1613
1614
  );