@burdenoff/microfe-i18n 2026.925.1 → 2026.1108.1

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.
Files changed (59) hide show
  1. package/dist/i18n/I18nRoot.d.ts +32 -0
  2. package/dist/i18n/I18nRoot.js +17 -18
  3. package/dist/i18n/I18nRoutes.d.ts +23 -0
  4. package/dist/i18n/I18nRoutes.js +1 -2
  5. package/dist/i18n/hooks/useTr.d.ts +16 -0
  6. package/dist/i18n/hooks/useTr.js +1 -2
  7. package/dist/i18n/index.d.ts +40 -0
  8. package/dist/i18n/pages/ImportExportPage.d.ts +8 -0
  9. package/dist/i18n/pages/ImportExportPage.js +14 -17
  10. package/dist/i18n/pages/LanguagesListPage.d.ts +6 -0
  11. package/dist/i18n/pages/LanguagesListPage.js +5 -6
  12. package/dist/i18n/pages/LocaleConfigPage.d.ts +6 -0
  13. package/dist/i18n/pages/LocaleConfigPage.js +7 -10
  14. package/dist/i18n/pages/ProductsListPage.d.ts +6 -0
  15. package/dist/i18n/pages/ProductsListPage.js +14 -15
  16. package/dist/i18n/pages/ProgressDashboardPage.d.ts +6 -0
  17. package/dist/i18n/pages/ProgressDashboardPage.js +10 -11
  18. package/dist/i18n/pages/ReviewQueuePage.d.ts +6 -0
  19. package/dist/i18n/pages/ReviewQueuePage.js +6 -7
  20. package/dist/i18n/pages/TranslationEditorPage.d.ts +6 -0
  21. package/dist/i18n/pages/TranslationEditorPage.js +18 -19
  22. package/dist/i18n/providers/I18nProvider.d.ts +19 -0
  23. package/dist/i18n/providers/I18nProvider.js +5 -3
  24. package/dist/i18n/store/i18nStore.d.ts +44 -0
  25. package/dist/i18n/store/i18nStore.js +1 -2
  26. package/dist/i18n/translations/en.d.ts +8 -0
  27. package/dist/i18n/translations/en.js +1 -2
  28. package/dist/i18n/types/index.d.ts +321 -0
  29. package/dist/i18n/utils/i18n.d.ts +2 -0
  30. package/dist/i18n/utils/i18n.js +1 -2
  31. package/dist/i18n.js +5 -5
  32. package/dist/index.d.ts +2 -0
  33. package/dist/node_modules/lucide-react/dist/esm/Icon.js +6 -7
  34. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +3 -4
  35. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +2 -3
  36. package/dist/node_modules/lucide-react/dist/esm/icons/boxes.js +3 -4
  37. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +3 -4
  38. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +3 -4
  39. package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +3 -4
  40. package/dist/node_modules/lucide-react/dist/esm/icons/circle-check-big.js +3 -4
  41. package/dist/node_modules/lucide-react/dist/esm/icons/circle-x.js +3 -4
  42. package/dist/node_modules/lucide-react/dist/esm/icons/download.js +3 -4
  43. package/dist/node_modules/lucide-react/dist/esm/icons/file-text.js +3 -4
  44. package/dist/node_modules/lucide-react/dist/esm/icons/gauge.js +3 -4
  45. package/dist/node_modules/lucide-react/dist/esm/icons/globe.js +3 -4
  46. package/dist/node_modules/lucide-react/dist/esm/icons/languages.js +3 -4
  47. package/dist/node_modules/lucide-react/dist/esm/icons/message-square.js +3 -4
  48. package/dist/node_modules/lucide-react/dist/esm/icons/package.js +3 -4
  49. package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.js +3 -4
  50. package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +3 -4
  51. package/dist/node_modules/lucide-react/dist/esm/icons/save.js +3 -4
  52. package/dist/node_modules/lucide-react/dist/esm/icons/search.js +3 -4
  53. package/dist/node_modules/lucide-react/dist/esm/icons/send.js +3 -4
  54. package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +3 -4
  55. package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.js +3 -4
  56. package/dist/node_modules/lucide-react/dist/esm/icons/trending-up.js +3 -4
  57. package/dist/node_modules/lucide-react/dist/esm/icons/upload.js +3 -4
  58. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +1 -2
  59. package/package.json +57 -40
@@ -0,0 +1,32 @@
1
+ import { FC } from 'react';
2
+ import { I18nRootProps } from './types';
3
+ /**
4
+ * Root component for the I18n microfrontend.
5
+ *
6
+ * This is the main entry point that host applications import and render.
7
+ * It sets up the necessary providers and renders the internal routing.
8
+ * Automatically registers navigation items with the shell if registration functions are provided.
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * import { I18nRoot, type I18nRootProps } from '@burdenoff/micro-fe/i18n';
13
+ *
14
+ * function App() {
15
+ * const props: I18nRootProps = {
16
+ * basePath: '/i18n',
17
+ * navigate: (path) => router.push(path),
18
+ * currentUser: { id: '1', email: 'user@example.com', firstName: 'John', lastName: 'Doe' },
19
+ * tenantId: 'tenant-123',
20
+ * apiGatewayUrl: 'https://api.example.com',
21
+ * authToken: 'token',
22
+ * defaultView: 'languages',
23
+ * onLanguageChange: (language) => console.log('Language changed:', language),
24
+ * onTranslationPublish: (translation) => console.log('Translation published:', translation),
25
+ * registerNavItems: (items) => { return () => {}; },
26
+ * };
27
+ *
28
+ * return <I18nRoot {...props} />;
29
+ * }
30
+ * ```
31
+ */
32
+ export declare const I18nRoot: FC<I18nRootProps>;
@@ -1,18 +1,18 @@
1
- import { CircleCheckBig as e } from "../node_modules/lucide-react/dist/esm/icons/circle-check-big.js";
2
- import { Download as t } from "../node_modules/lucide-react/dist/esm/icons/download.js";
3
- import { Globe as n } from "../node_modules/lucide-react/dist/esm/icons/globe.js";
4
- import { Package as r } from "../node_modules/lucide-react/dist/esm/icons/package.js";
5
- import { PenLine as i } from "../node_modules/lucide-react/dist/esm/icons/pen-line.js";
6
- import { Settings as a } from "../node_modules/lucide-react/dist/esm/icons/settings.js";
7
- import { TrendingUp as o } from "../node_modules/lucide-react/dist/esm/icons/trending-up.js";
8
- import { Upload as s } from "../node_modules/lucide-react/dist/esm/icons/upload.js";
1
+ import e from "../node_modules/lucide-react/dist/esm/icons/globe.js";
2
+ import t from "../node_modules/lucide-react/dist/esm/icons/package.js";
3
+ import n from "../node_modules/lucide-react/dist/esm/icons/pen-line.js";
4
+ import r from "../node_modules/lucide-react/dist/esm/icons/trending-up.js";
5
+ import i from "../node_modules/lucide-react/dist/esm/icons/circle-check-big.js";
6
+ import a from "../node_modules/lucide-react/dist/esm/icons/upload.js";
7
+ import o from "../node_modules/lucide-react/dist/esm/icons/download.js";
8
+ import s from "../node_modules/lucide-react/dist/esm/icons/settings.js";
9
9
  import { I18nProvider as c } from "./providers/I18nProvider.js";
10
10
  import { useTr as l } from "./hooks/useTr.js";
11
11
  import { I18nRoutes as u } from "./I18nRoutes.js";
12
12
  import { useEffect as d } from "react";
13
13
  import { jsx as f } from "react/jsx-runtime";
14
14
  import { FeatureFlagProvider as p } from "@burdenoff/fe-libs/shared/feature-flags";
15
- //#region src/i18n/I18nRoot.tsx
15
+ // src/i18n/I18nRoot.tsx
16
16
  var m = ({ basePath: c, registerNavItems: p, registerFooterItems: m }) => {
17
17
  let h = l(), g = (e, t) => (e.endsWith("/") ? e.slice(0, -1) : e) + (t.startsWith("/") ? t : `/${t}`);
18
18
  return d(() => {
@@ -21,7 +21,7 @@ var m = ({ basePath: c, registerNavItems: p, registerFooterItems: m }) => {
21
21
  id: "i18n-languages",
22
22
  label: h("i18n.nav.languages", "Languages"),
23
23
  path: g(c, "languages"),
24
- icon: /* @__PURE__ */ f(n, { size: 20 }),
24
+ icon: /* @__PURE__ */ f(e, { size: 20 }),
25
25
  order: 10,
26
26
  group: "i18n"
27
27
  },
@@ -29,7 +29,7 @@ var m = ({ basePath: c, registerNavItems: p, registerFooterItems: m }) => {
29
29
  id: "i18n-products",
30
30
  label: h("i18n.nav.products", "Products"),
31
31
  path: g(c, "products"),
32
- icon: /* @__PURE__ */ f(r, { size: 20 }),
32
+ icon: /* @__PURE__ */ f(t, { size: 20 }),
33
33
  order: 20,
34
34
  group: "i18n"
35
35
  },
@@ -37,7 +37,7 @@ var m = ({ basePath: c, registerNavItems: p, registerFooterItems: m }) => {
37
37
  id: "i18n-editor",
38
38
  label: h("i18n.nav.translationEditor", "Translation Editor"),
39
39
  path: g(c, "editor"),
40
- icon: /* @__PURE__ */ f(i, { size: 20 }),
40
+ icon: /* @__PURE__ */ f(n, { size: 20 }),
41
41
  order: 30,
42
42
  group: "i18n"
43
43
  },
@@ -45,7 +45,7 @@ var m = ({ basePath: c, registerNavItems: p, registerFooterItems: m }) => {
45
45
  id: "i18n-progress",
46
46
  label: h("i18n.nav.progress", "Progress"),
47
47
  path: g(c, "progress"),
48
- icon: /* @__PURE__ */ f(o, { size: 20 }),
48
+ icon: /* @__PURE__ */ f(r, { size: 20 }),
49
49
  order: 40,
50
50
  group: "i18n"
51
51
  },
@@ -53,7 +53,7 @@ var m = ({ basePath: c, registerNavItems: p, registerFooterItems: m }) => {
53
53
  id: "i18n-review",
54
54
  label: h("i18n.nav.reviewQueue", "Review Queue"),
55
55
  path: g(c, "review"),
56
- icon: /* @__PURE__ */ f(e, { size: 20 }),
56
+ icon: /* @__PURE__ */ f(i, { size: 20 }),
57
57
  order: 50,
58
58
  group: "i18n"
59
59
  },
@@ -61,7 +61,7 @@ var m = ({ basePath: c, registerNavItems: p, registerFooterItems: m }) => {
61
61
  id: "i18n-import",
62
62
  label: h("i18n.nav.import", "Import"),
63
63
  path: g(c, "import"),
64
- icon: /* @__PURE__ */ f(s, { size: 20 }),
64
+ icon: /* @__PURE__ */ f(a, { size: 20 }),
65
65
  order: 60,
66
66
  group: "i18n"
67
67
  },
@@ -69,7 +69,7 @@ var m = ({ basePath: c, registerNavItems: p, registerFooterItems: m }) => {
69
69
  id: "i18n-export",
70
70
  label: h("i18n.nav.export", "Export"),
71
71
  path: g(c, "export"),
72
- icon: /* @__PURE__ */ f(t, { size: 20 }),
72
+ icon: /* @__PURE__ */ f(o, { size: 20 }),
73
73
  order: 70,
74
74
  group: "i18n"
75
75
  },
@@ -77,7 +77,7 @@ var m = ({ basePath: c, registerNavItems: p, registerFooterItems: m }) => {
77
77
  id: "i18n-locales",
78
78
  label: h("i18n.nav.localeSettings", "Locale Settings"),
79
79
  path: g(c, "locales"),
80
- icon: /* @__PURE__ */ f(a, { size: 20 }),
80
+ icon: /* @__PURE__ */ f(s, { size: 20 }),
81
81
  order: 80,
82
82
  group: "i18n"
83
83
  }
@@ -111,5 +111,4 @@ var m = ({ basePath: c, registerNavItems: p, registerFooterItems: m }) => {
111
111
  })
112
112
  });
113
113
  };
114
- //#endregion
115
114
  export { h as I18nRoot };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Internal router for the I18n microfrontend.
3
+ * This component handles routing within the microfrontend using React Router v7.
4
+ *
5
+ * Routes:
6
+ * - / → Redirects to languages
7
+ * - /languages → Languages list and management
8
+ * - /languages/new → Create new language
9
+ * - /languages/:code → Language detail and configuration
10
+ * - /products → Products and hierarchy management
11
+ * - /products/new → Create new product
12
+ * - /products/:id → Product detail
13
+ * - /editor → Translation editor (list view)
14
+ * - /editor/:keyId → Edit specific translation key
15
+ * - /editor/:keyId/:languageCode → Edit translation for specific key and language
16
+ * - /progress → Translation progress dashboard
17
+ * - /review → Review queue for pending translations
18
+ * - /import → Import translations
19
+ * - /export → Export translations
20
+ * - /locales → Locale configuration list
21
+ * - /locales/:code → Locale configuration for specific language
22
+ */
23
+ export declare function I18nRoutes(): import('react').JSX.Element;
@@ -7,7 +7,7 @@ import { ImportExportPage as a } from "./pages/ImportExportPage.js";
7
7
  import { LocaleConfigPage as o } from "./pages/LocaleConfigPage.js";
8
8
  import { Navigate as s, Route as c, Routes as l } from "react-router";
9
9
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
10
- //#region src/i18n/I18nRoutes.tsx
10
+ // src/i18n/I18nRoutes.tsx
11
11
  function f() {
12
12
  return /* @__PURE__ */ d(l, { children: [
13
13
  /* @__PURE__ */ u(c, {
@@ -78,5 +78,4 @@ function f() {
78
78
  })
79
79
  ] });
80
80
  }
81
- //#endregion
82
81
  export { f as I18nRoutes };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * useTr — translation hook with fallback semantics.
3
+ *
4
+ * Wraps `useI18n().t()` so call sites can keep an English fallback string
5
+ * inline. The provider already merges API/prop-provided translations with the
6
+ * bundled English fallback, so missing keys resolve to the caller's fallback
7
+ * before falling back to the raw key.
8
+ *
9
+ * Supports optional interpolation params using `{{key}}` placeholders.
10
+ *
11
+ * @example
12
+ * const tr = useTr();
13
+ * return <h1>{tr('i18n.languages.title', 'Languages')}</h1>;
14
+ * return <p>{tr('i18n.languages.summary.active', '{{count}} active', { count: 5 })}</p>;
15
+ */
16
+ export declare function useTr(): (key: string, fallback: string, params?: Record<string, string | number>) => string;
@@ -1,9 +1,8 @@
1
1
  import { useI18n as e } from "../providers/I18nProvider.js";
2
2
  import { useCallback as t } from "react";
3
- //#region src/i18n/hooks/useTr.ts
3
+ // src/i18n/hooks/useTr.ts
4
4
  function n() {
5
5
  let { t: n } = e();
6
6
  return t((e, t, r) => n(e, t, r), [n]);
7
7
  }
8
- //#endregion
9
8
  export { n as useTr };
@@ -0,0 +1,40 @@
1
+ /**
2
+ * I18n (Internationalization) Microfrontend
3
+ *
4
+ * Provides a comprehensive UI for managing translations, languages, locales,
5
+ * and localization workflows across all Burdenoff products.
6
+ *
7
+ * This is a TENANT module microfrontend that enables:
8
+ * - Language management (create, configure, enable/disable)
9
+ * - Translation hierarchy (Product → Module → Namespace → Key)
10
+ * - Translation editor with plural forms, suggestions, and comparison
11
+ * - Translation workflow (Draft → Review → Approve → Publish)
12
+ * - Progress tracking and coverage analytics
13
+ * - Import/Export (JSON, CSV, XLSX, PO, XLIFF)
14
+ * - Locale configuration (date/time/number formats, plural rules)
15
+ * - Version history and rollback
16
+ * - Translation memory and suggestions
17
+ *
18
+ * @example
19
+ * ```tsx
20
+ * import { I18nRoot, type I18nRootProps } from '@burdenoff/micro-fe/i18n';
21
+ *
22
+ * function App() {
23
+ * const props: I18nRootProps = {
24
+ * basePath: '/i18n',
25
+ * navigate: (path) => router.push(path),
26
+ * currentUser: { id: '1', email: 'user@example.com' },
27
+ * tenantId: 'tenant-123',
28
+ * apiGatewayUrl: 'https://api.example.com',
29
+ * authToken: 'token',
30
+ * };
31
+ *
32
+ * return <I18nRoot {...props} />;
33
+ * }
34
+ * ```
35
+ */
36
+ export { I18nRoot } from './I18nRoot';
37
+ export type { I18nRootProps, I18nView, I18nTab, Language, I18nProduct, I18nModule, I18nNamespace, TranslationKey, Translation, TranslationStatus, TranslationCoverage, ImportJob, ImportFormat, ImportJobStatus, ExportRequest, ExportResult, NavItem, FooterItem, } from './types';
38
+ export { useI18n } from './providers/I18nProvider';
39
+ export { useTr } from './hooks/useTr';
40
+ export { useI18nStore } from './store/i18nStore';
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ /**
3
+ * Import/Export page
4
+ * Handles translation import and export operations
5
+ */
6
+ export declare const ImportExportPage: FC<{
7
+ mode: "import" | "export";
8
+ }>;
@@ -1,22 +1,20 @@
1
- import { CircleAlert as e } from "../../node_modules/lucide-react/dist/esm/icons/circle-alert.js";
2
- import { Download as t } from "../../node_modules/lucide-react/dist/esm/icons/download.js";
3
- import { FileText as n } from "../../node_modules/lucide-react/dist/esm/icons/file-text.js";
4
- import { Upload as r } from "../../node_modules/lucide-react/dist/esm/icons/upload.js";
1
+ import e from "../../node_modules/lucide-react/dist/esm/icons/upload.js";
2
+ import t from "../../node_modules/lucide-react/dist/esm/icons/download.js";
3
+ import n from "../../node_modules/lucide-react/dist/esm/icons/file-text.js";
4
+ import r from "../../node_modules/lucide-react/dist/esm/icons/circle-alert.js";
5
5
  import { useTr as i } from "../hooks/useTr.js";
6
6
  import { useI18nStore as a } from "../store/i18nStore.js";
7
7
  import { useState as o } from "react";
8
8
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
9
9
  import { CTAOverflowMenu as u, EmphasisPanel as d, GlassCard as f, GradientText as p, PagePurpose as m, ShowMore as h } from "@burdenoff/fe-libs/ui";
10
- //#region src/i18n/pages/ImportExportPage.tsx
10
+ // src/i18n/pages/ImportExportPage.tsx
11
11
  var g = ({ mode: g }) => {
12
12
  let _ = i(), { importState: v, startImport: y, resetImport: b } = a(), [x, S] = o("json"), [C, w] = o(null), T = (e) => {
13
13
  let t = e.target.files?.[0];
14
14
  t && w(t);
15
15
  }, E = () => {
16
- C && (y(x, "job-123"), console.log("Starting import:", C.name, x));
17
- }, D = () => {
18
- console.log("Starting export:", x);
19
- }, O = "w-full rounded-lg border border-border-seam bg-bg-elevated px-3 py-2 text-sm text-text-primary focus:border-action-primary-bg focus-visible:shadow-[var(--shadow-focus)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", k = "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", A = /* @__PURE__ */ l(s, { children: [
16
+ C && (y(x, "job-123"), C.name);
17
+ }, D = () => {}, O = "w-full rounded-lg border border-border-seam bg-bg-elevated px-3 py-2 text-sm text-text-primary focus:border-action-primary-bg focus-visible:shadow-[var(--shadow-focus)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary", k = "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", A = /* @__PURE__ */ l(s, { children: [
20
18
  /* @__PURE__ */ c("option", {
21
19
  value: "json",
22
20
  children: _("i18n.shared.format.json", "JSON (i18next nested)")
@@ -46,7 +44,7 @@ var g = ({ mode: g }) => {
46
44
  className: "mx-auto flex max-w-2xl items-center gap-4",
47
45
  children: [/* @__PURE__ */ c("div", {
48
46
  className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
49
- children: c(g === "import" ? r : t, {
47
+ children: c(g === "import" ? e : t, {
50
48
  className: "size-5",
51
49
  "aria-hidden": "true"
52
50
  })
@@ -103,7 +101,7 @@ var g = ({ mode: g }) => {
103
101
  accept: ".json,.csv,.xlsx,.po,.xliff",
104
102
  className: "absolute inset-0 cursor-pointer opacity-0"
105
103
  }),
106
- /* @__PURE__ */ c(r, {
104
+ /* @__PURE__ */ c(e, {
107
105
  className: "mx-auto mb-4 size-12 text-text-tertiary",
108
106
  "aria-hidden": "true"
109
107
  }),
@@ -265,13 +263,13 @@ var g = ({ mode: g }) => {
265
263
  }),
266
264
  v.errors.length > 0 && /* @__PURE__ */ c("div", {
267
265
  className: "mt-3 space-y-1",
268
- children: v.errors.map((t) => /* @__PURE__ */ l("div", {
266
+ children: v.errors.map((e) => /* @__PURE__ */ l("div", {
269
267
  className: "flex items-start gap-2 text-xs text-status-danger-text",
270
- children: [/* @__PURE__ */ c(e, {
268
+ children: [/* @__PURE__ */ c(r, {
271
269
  className: "mt-0.5 size-3 flex-shrink-0",
272
270
  "aria-hidden": "true"
273
- }), /* @__PURE__ */ c("span", { children: t.message })]
274
- }, `${t.row ?? "x"}:${t.key ?? "x"}:${t.field ?? "x"}:${t.message}`))
271
+ }), /* @__PURE__ */ c("span", { children: e.message })]
272
+ }, `${e.row ?? "x"}:${e.key ?? "x"}:${e.field ?? "x"}:${e.message}`))
275
273
  })
276
274
  ]
277
275
  }),
@@ -281,7 +279,7 @@ var g = ({ mode: g }) => {
281
279
  label: _("i18n.import.actions.start", "Start Import"),
282
280
  onSelect: E,
283
281
  disabled: !C,
284
- icon: /* @__PURE__ */ c(r, {
282
+ icon: /* @__PURE__ */ c(e, {
285
283
  className: "size-4",
286
284
  "aria-hidden": "true"
287
285
  })
@@ -427,5 +425,4 @@ var g = ({ mode: g }) => {
427
425
  })]
428
426
  });
429
427
  };
430
- //#endregion
431
428
  export { g as ImportExportPage };
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ /**
3
+ * Languages list page
4
+ * Displays all languages with filtering and CRUD operations
5
+ */
6
+ export declare const LanguagesListPage: FC;
@@ -1,12 +1,12 @@
1
- import { Globe as e } from "../../node_modules/lucide-react/dist/esm/icons/globe.js";
2
- import { Plus as t } from "../../node_modules/lucide-react/dist/esm/icons/plus.js";
3
- import { Search as n } from "../../node_modules/lucide-react/dist/esm/icons/search.js";
1
+ import e from "../../node_modules/lucide-react/dist/esm/icons/globe.js";
2
+ import t from "../../node_modules/lucide-react/dist/esm/icons/plus.js";
3
+ import n from "../../node_modules/lucide-react/dist/esm/icons/search.js";
4
4
  import { useTr as r } from "../hooks/useTr.js";
5
5
  import { useI18nStore as i } from "../store/i18nStore.js";
6
6
  import { useState as a } from "react";
7
7
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
8
  import { CTAOverflowMenu as c, EmphasisPanel as l, GlassCard as u, GradientText as d, IllustratedEmptyState as f, PagePurpose as p } from "@burdenoff/fe-libs/ui";
9
- //#region src/i18n/pages/LanguagesListPage.tsx
9
+ // src/i18n/pages/LanguagesListPage.tsx
10
10
  var m = () => {
11
11
  let m = r(), { languageFilter: h, updateLanguageFilter: g, setSelectedLanguage: _ } = i(), [v, y] = a(h.search), b = [{
12
12
  id: "1",
@@ -26,7 +26,7 @@ var m = () => {
26
26
  isDefault: !1
27
27
  }], x = (e) => {
28
28
  y(e), g({ search: e });
29
- }, S = "rounded-lg border border-border-seam bg-bg-elevated px-3 py-2.5 text-sm text-text-primary focus:border-action-primary-bg focus-visible:shadow-[var(--shadow-focus)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", C = (v ?? "").trim().length > 0 || h.status !== "all" || h.direction !== "all", w = b.filter((e) => e.status === "active").length, T = b.find((e) => e.isDefault);
29
+ }, S = "rounded-lg border border-border-seam bg-bg-elevated px-3 py-2.5 text-sm text-text-primary focus:border-action-primary-bg focus-visible:shadow-[var(--shadow-focus)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary", C = (v ?? "").trim().length > 0 || h.status !== "all" || h.direction !== "all", w = b.filter((e) => e.status === "active").length, T = b.find((e) => e.isDefault);
30
30
  return /* @__PURE__ */ s("div", {
31
31
  className: "min-h-full w-full bg-bg-surface",
32
32
  children: [/* @__PURE__ */ o("div", {
@@ -213,5 +213,4 @@ var m = () => {
213
213
  })]
214
214
  });
215
215
  };
216
- //#endregion
217
216
  export { m as LanguagesListPage };
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ /**
3
+ * Locale configuration page
4
+ * Manages language-specific settings like date/time formats, plural rules, etc.
5
+ */
6
+ export declare const LocaleConfigPage: FC;
@@ -1,11 +1,11 @@
1
- import { Save as e } from "../../node_modules/lucide-react/dist/esm/icons/save.js";
2
- import { Settings as t } from "../../node_modules/lucide-react/dist/esm/icons/settings.js";
3
- import { Trash2 as n } from "../../node_modules/lucide-react/dist/esm/icons/trash-2.js";
1
+ import e from "../../node_modules/lucide-react/dist/esm/icons/settings.js";
2
+ import t from "../../node_modules/lucide-react/dist/esm/icons/save.js";
3
+ import n from "../../node_modules/lucide-react/dist/esm/icons/trash-2.js";
4
4
  import { useTr as r } from "../hooks/useTr.js";
5
5
  import { useState as i } from "react";
6
6
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
7
  import { CTAOverflowMenu as s, EmphasisPanel as c, GlassCard as l, GradientText as u, NextSteps as d, OptionalFields as f, PagePurpose as p } from "@burdenoff/fe-libs/ui";
8
- //#region src/i18n/pages/LocaleConfigPage.tsx
8
+ // src/i18n/pages/LocaleConfigPage.tsx
9
9
  var m = () => {
10
10
  let m = r(), [h, g] = i({
11
11
  code: "es-ES",
@@ -40,9 +40,7 @@ var m = () => {
40
40
  [e]: t
41
41
  }
42
42
  }));
43
- }, y = () => {
44
- console.log("Saving locale config:", h);
45
- }, b = "w-full rounded-lg border border-border-seam bg-bg-elevated px-3 py-2 text-sm text-text-primary focus:border-action-primary-bg focus-visible:shadow-[var(--shadow-focus)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", x = "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", S = (e) => e === "es" ? m("i18n.locale.fallback.spanishShort", "Spanish (es)") : m("i18n.locale.fallback.englishShort", "English (en)");
43
+ }, y = () => {}, b = "w-full rounded-lg border border-border-seam bg-bg-elevated px-3 py-2 text-sm text-text-primary focus:border-action-primary-bg focus-visible:shadow-[var(--shadow-focus)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", x = "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", S = (e) => e === "es" ? m("i18n.locale.fallback.spanishShort", "Spanish (es)") : m("i18n.locale.fallback.englishShort", "English (en)");
46
44
  return /* @__PURE__ */ o("div", {
47
45
  className: "flex h-full flex-col bg-bg-surface",
48
46
  children: [/* @__PURE__ */ a("div", {
@@ -53,7 +51,7 @@ var m = () => {
53
51
  className: "flex items-center gap-4",
54
52
  children: [/* @__PURE__ */ a("div", {
55
53
  className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
56
- children: /* @__PURE__ */ a(t, {
54
+ children: /* @__PURE__ */ a(e, {
57
55
  className: "size-5",
58
56
  "aria-hidden": "true"
59
57
  })
@@ -75,7 +73,7 @@ var m = () => {
75
73
  primary: {
76
74
  label: m("i18n.locale.actions.save", "Save Changes"),
77
75
  onSelect: y,
78
- icon: /* @__PURE__ */ a(e, {
76
+ icon: /* @__PURE__ */ a(t, {
79
77
  className: "size-4",
80
78
  "aria-hidden": "true"
81
79
  })
@@ -409,5 +407,4 @@ var m = () => {
409
407
  })]
410
408
  });
411
409
  };
412
- //#endregion
413
410
  export { m as LocaleConfigPage };
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ /**
3
+ * Products list page
4
+ * Displays all i18n products with their modules
5
+ */
6
+ export declare const ProductsListPage: FC;
@@ -1,14 +1,14 @@
1
- import { Boxes as e } from "../../node_modules/lucide-react/dist/esm/icons/boxes.js";
2
- import { ChevronRight as t } from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
3
- import { Package as n } from "../../node_modules/lucide-react/dist/esm/icons/package.js";
4
- import { Plus as r } from "../../node_modules/lucide-react/dist/esm/icons/plus.js";
5
- import { Search as i } from "../../node_modules/lucide-react/dist/esm/icons/search.js";
1
+ import e from "../../node_modules/lucide-react/dist/esm/icons/package.js";
2
+ import t from "../../node_modules/lucide-react/dist/esm/icons/plus.js";
3
+ import n from "../../node_modules/lucide-react/dist/esm/icons/search.js";
4
+ import r from "../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
5
+ import i from "../../node_modules/lucide-react/dist/esm/icons/boxes.js";
6
6
  import { useTr as a } from "../hooks/useTr.js";
7
7
  import { useI18nStore as o } from "../store/i18nStore.js";
8
8
  import { useState as s } from "react";
9
9
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
10
10
  import { AuroraBackground as u, CTAOverflowMenu as d, EmphasisPanel as f, GlassCard as p, GradientText as m, IllustratedEmptyState as h, PagePurpose as g } from "@burdenoff/fe-libs/ui";
11
- //#region src/i18n/pages/ProductsListPage.tsx
11
+ // src/i18n/pages/ProductsListPage.tsx
12
12
  var _ = () => {
13
13
  let _ = a(), { setSelectedProduct: v } = o(), [y, b] = s(""), x = [{
14
14
  id: "1",
@@ -59,7 +59,7 @@ var _ = () => {
59
59
  className: "flex items-center gap-4",
60
60
  children: [/* @__PURE__ */ c("div", {
61
61
  className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
62
- children: /* @__PURE__ */ c(n, {
62
+ children: /* @__PURE__ */ c(e, {
63
63
  className: "size-5",
64
64
  "aria-hidden": "true"
65
65
  })
@@ -74,7 +74,7 @@ var _ = () => {
74
74
  primary: {
75
75
  label: _("i18n.products.actions.add", "Add Product"),
76
76
  onSelect: () => void 0,
77
- icon: /* @__PURE__ */ c(r, {
77
+ icon: /* @__PURE__ */ c(t, {
78
78
  className: "size-4",
79
79
  "aria-hidden": "true"
80
80
  })
@@ -92,7 +92,7 @@ var _ = () => {
92
92
  className: "flex flex-1 items-center gap-4",
93
93
  children: [/* @__PURE__ */ c("div", {
94
94
  className: "flex size-14 shrink-0 items-center justify-center rounded-2xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
95
- children: /* @__PURE__ */ c(e, {
95
+ children: /* @__PURE__ */ c(i, {
96
96
  className: "size-7",
97
97
  "aria-hidden": "true"
98
98
  })
@@ -119,7 +119,7 @@ var _ = () => {
119
119
  }),
120
120
  /* @__PURE__ */ l("div", {
121
121
  className: "relative max-w-md",
122
- children: [/* @__PURE__ */ c(i, {
122
+ children: [/* @__PURE__ */ c(n, {
123
123
  className: "pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary",
124
124
  "aria-hidden": "true"
125
125
  }), /* @__PURE__ */ c("input", {
@@ -138,9 +138,9 @@ var _ = () => {
138
138
  }),
139
139
  S.length > 0 && /* @__PURE__ */ c("div", {
140
140
  className: "space-y-4",
141
- children: S.map((e, n) => /* @__PURE__ */ c(p, {
141
+ children: S.map((e, t) => /* @__PURE__ */ c(p, {
142
142
  treatment: "insight",
143
- glow: n === 0,
143
+ glow: t === 0,
144
144
  className: "border-border-seam",
145
145
  children: /* @__PURE__ */ c("button", {
146
146
  type: "button",
@@ -174,7 +174,7 @@ var _ = () => {
174
174
  className: "flex flex-wrap gap-2",
175
175
  children: e.modules.map((e) => /* @__PURE__ */ l("span", {
176
176
  className: "inline-flex items-center gap-1 rounded-md border border-border-seam bg-bg-sunken/60 px-2 py-1 text-xs text-text-secondary",
177
- children: [e.displayName, /* @__PURE__ */ c(t, {
177
+ children: [e.displayName, /* @__PURE__ */ c(r, {
178
178
  className: "size-3",
179
179
  "aria-hidden": "true"
180
180
  })]
@@ -182,7 +182,7 @@ var _ = () => {
182
182
  })]
183
183
  })
184
184
  ]
185
- }), /* @__PURE__ */ c(t, {
185
+ }), /* @__PURE__ */ c(r, {
186
186
  className: "mt-1 size-5 shrink-0 text-text-tertiary",
187
187
  "aria-hidden": "true"
188
188
  })]
@@ -194,5 +194,4 @@ var _ = () => {
194
194
  })]
195
195
  });
196
196
  };
197
- //#endregion
198
197
  export { _ as ProductsListPage };
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ /**
3
+ * Progress dashboard page
4
+ * Displays translation coverage and progress analytics
5
+ */
6
+ export declare const ProgressDashboardPage: FC;
@@ -1,13 +1,13 @@
1
- import { Download as e } from "../../node_modules/lucide-react/dist/esm/icons/download.js";
2
- import { FileText as t } from "../../node_modules/lucide-react/dist/esm/icons/file-text.js";
3
- import { Gauge as n } from "../../node_modules/lucide-react/dist/esm/icons/gauge.js";
4
- import { TrendingUp as r } from "../../node_modules/lucide-react/dist/esm/icons/trending-up.js";
1
+ import e from "../../node_modules/lucide-react/dist/esm/icons/trending-up.js";
2
+ import t from "../../node_modules/lucide-react/dist/esm/icons/download.js";
3
+ import n from "../../node_modules/lucide-react/dist/esm/icons/file-text.js";
4
+ import r from "../../node_modules/lucide-react/dist/esm/icons/gauge.js";
5
5
  import { useTr as i } from "../hooks/useTr.js";
6
6
  import { useI18nStore as a } from "../store/i18nStore.js";
7
7
  import { useNavigate as o } from "react-router";
8
8
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
9
9
  import { CTAOverflowMenu as l, EmphasisPanel as u, GlassCard as d, GradientText as f, NextSteps as p, PagePurpose as m, ShowMore as h } from "@burdenoff/fe-libs/ui";
10
- //#region src/i18n/pages/ProgressDashboardPage.tsx
10
+ // src/i18n/pages/ProgressDashboardPage.tsx
11
11
  var g = () => {
12
12
  let g = i(), { progressView: _, updateProgressView: v } = a(), y = o(), b = [
13
13
  {
@@ -111,7 +111,7 @@ var g = () => {
111
111
  value: "5",
112
112
  valueClass: "text-text-primary"
113
113
  }
114
- ], C = "rounded-lg border border-border-seam bg-bg-elevated px-3 py-2 text-sm text-text-primary focus:border-action-primary-bg focus-visible:shadow-[var(--shadow-focus)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]";
114
+ ], C = "rounded-lg border border-border-seam bg-bg-elevated px-3 py-2 text-sm text-text-primary focus:border-action-primary-bg focus-visible:shadow-[var(--shadow-focus)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary";
115
115
  return /* @__PURE__ */ c("div", {
116
116
  className: "min-h-full w-full bg-bg-surface",
117
117
  children: [/* @__PURE__ */ s("div", {
@@ -122,7 +122,7 @@ var g = () => {
122
122
  className: "flex items-center gap-4",
123
123
  children: [/* @__PURE__ */ s("div", {
124
124
  className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
125
- children: /* @__PURE__ */ s(r, {
125
+ children: /* @__PURE__ */ s(e, {
126
126
  className: "size-5",
127
127
  "aria-hidden": "true"
128
128
  })
@@ -137,7 +137,7 @@ var g = () => {
137
137
  primary: {
138
138
  label: g("i18n.progress.actions.export", "Export"),
139
139
  onSelect: () => void 0,
140
- icon: /* @__PURE__ */ s(e, {
140
+ icon: /* @__PURE__ */ s(t, {
141
141
  className: "size-4",
142
142
  "aria-hidden": "true"
143
143
  })
@@ -145,7 +145,7 @@ var g = () => {
145
145
  actions: [{
146
146
  label: g("i18n.progress.actions.generateReport", "Generate Report"),
147
147
  onSelect: () => void 0,
148
- icon: /* @__PURE__ */ s(t, {
148
+ icon: /* @__PURE__ */ s(n, {
149
149
  className: "size-4",
150
150
  "aria-hidden": "true"
151
151
  })
@@ -185,7 +185,7 @@ var g = () => {
185
185
  className: "flex flex-1 items-center gap-4",
186
186
  children: [/* @__PURE__ */ s("div", {
187
187
  className: "flex size-14 shrink-0 items-center justify-center rounded-2xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
188
- children: /* @__PURE__ */ s(n, {
188
+ children: /* @__PURE__ */ s(r, {
189
189
  className: "size-7",
190
190
  "aria-hidden": "true"
191
191
  })
@@ -375,5 +375,4 @@ var g = () => {
375
375
  })]
376
376
  });
377
377
  };
378
- //#endregion
379
378
  export { g as ProgressDashboardPage };
@@ -0,0 +1,6 @@
1
+ import { FC } from 'react';
2
+ /**
3
+ * Review queue page
4
+ * Displays translations pending review with approval/rejection actions
5
+ */
6
+ export declare const ReviewQueuePage: FC;