@burdenoff/microfe-i18n 2026.625.1 → 2026.626.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.
@@ -7,10 +7,10 @@ import { useI18n as a } from "../providers/I18nProvider.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
- import { AuroraBackground as u, CTAOverflowMenu as d, EmphasisPanel as f, GlassCard as p, GradientText as m, IllustratedEmptyState as h } from "@burdenoff/fe-libs/ui";
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
11
  //#region src/i18n/pages/ProductsListPage.tsx
12
- var g = () => {
13
- let { t: g } = a(), _ = (e, t, n) => g(e, t, n), { setSelectedProduct: v } = o(), [y, b] = s(""), x = [{
12
+ var _ = () => {
13
+ let { t: _ } = a(), v = (e, t, n) => _(e, t, n), { setSelectedProduct: y } = o(), [b, x] = s(""), S = [{
14
14
  id: "1",
15
15
  name: "workspaces",
16
16
  displayName: "Workspaces",
@@ -48,7 +48,7 @@ var g = () => {
48
48
  name: "notification",
49
49
  displayName: "Notifications"
50
50
  }]
51
- }], S = x.filter((e) => e.displayName.toLowerCase().includes(y.toLowerCase()) || e.name.toLowerCase().includes(y.toLowerCase())), C = x.reduce((e, t) => e + t.modules.length, 0), w = y.trim().length > 0;
51
+ }], C = S.filter((e) => e.displayName.toLowerCase().includes(b.toLowerCase()) || e.name.toLowerCase().includes(b.toLowerCase())), w = S.reduce((e, t) => e + t.modules.length, 0), T = b.trim().length > 0;
52
52
  return /* @__PURE__ */ l("div", {
53
53
  className: "min-h-full w-full bg-bg-surface",
54
54
  children: [/* @__PURE__ */ l("div", {
@@ -65,14 +65,14 @@ var g = () => {
65
65
  })
66
66
  }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h1", {
67
67
  className: "text-2xl font-bold tracking-tight text-text-primary",
68
- children: /* @__PURE__ */ c(m, { children: _("i18n.products.title", "Products") })
68
+ children: /* @__PURE__ */ c(m, { children: v("i18n.products.title", "Products") })
69
69
  }), /* @__PURE__ */ c("p", {
70
70
  className: "mt-0.5 text-sm text-text-secondary",
71
- children: _("i18n.products.subtitle", "Manage localization across products and their modules")
71
+ children: v("i18n.products.subtitle", "Manage localization across products and their modules")
72
72
  })] })]
73
73
  }), /* @__PURE__ */ c(d, {
74
74
  primary: {
75
- label: _("i18n.products.actions.add", "Add Product"),
75
+ label: v("i18n.products.actions.add", "Add Product"),
76
76
  onSelect: () => void 0,
77
77
  icon: /* @__PURE__ */ c(r, {
78
78
  className: "size-4",
@@ -85,6 +85,7 @@ var g = () => {
85
85
  }), /* @__PURE__ */ l("div", {
86
86
  className: "mx-auto max-w-screen-xl space-y-8 px-6 py-8 sm:px-8 lg:px-10",
87
87
  children: [
88
+ /* @__PURE__ */ c(g, { children: v("i18n.products.purpose", "Products are the apps you localize. Each one groups the modules (auth, billing, calendar…) whose user-facing text needs translating. Register a product here so its translation keys, languages, and coverage are tracked together — pick a product to drill into its modules and manage their strings.") }),
88
89
  /* @__PURE__ */ l(f, {
89
90
  className: "flex flex-col gap-4 sm:flex-row sm:items-center",
90
91
  children: [/* @__PURE__ */ l("div", {
@@ -97,22 +98,22 @@ var g = () => {
97
98
  })
98
99
  }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("p", {
99
100
  className: "text-sm font-medium text-text-secondary",
100
- children: _("i18n.products.summary.label", "Products tracked")
101
+ children: v("i18n.products.summary.label", "Products tracked")
101
102
  }), /* @__PURE__ */ c("p", {
102
103
  className: "text-4xl font-bold tracking-tight text-text-primary tabular-nums",
103
- children: x.length
104
+ children: S.length
104
105
  })] })]
105
106
  }), /* @__PURE__ */ l("div", {
106
107
  className: "flex flex-wrap gap-3 sm:justify-end",
107
108
  children: [/* @__PURE__ */ c("div", {
108
109
  className: "rounded-lg border border-border-seam bg-bg-sunken/60 px-3 py-1.5 text-xs text-text-secondary tabular-nums",
109
- children: _("i18n.products.summary.modules", "{{count}} modules", { count: C })
110
+ children: v("i18n.products.summary.modules", "{{count}} modules", { count: w })
110
111
  }), /* @__PURE__ */ l("div", {
111
112
  className: "flex items-center gap-1.5 rounded-lg border border-border-seam bg-bg-sunken/60 px-3 py-1.5 text-xs text-text-secondary",
112
113
  children: [/* @__PURE__ */ c("span", {
113
114
  className: "size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse",
114
115
  "aria-hidden": "true"
115
- }), _("i18n.products.summary.active", "All active")]
116
+ }), v("i18n.products.summary.active", "All active")]
116
117
  })]
117
118
  })]
118
119
  }),
@@ -123,27 +124,27 @@ var g = () => {
123
124
  "aria-hidden": "true"
124
125
  }), /* @__PURE__ */ c("input", {
125
126
  type: "text",
126
- "aria-label": _("i18n.products.search.ariaLabel", "Search products"),
127
- placeholder: _("i18n.products.search.placeholder", "Search products..."),
128
- value: y,
129
- onChange: (e) => b(e.target.value),
127
+ "aria-label": v("i18n.products.search.ariaLabel", "Search products"),
128
+ placeholder: v("i18n.products.search.placeholder", "Search products..."),
129
+ value: b,
130
+ onChange: (e) => x(e.target.value),
130
131
  className: "w-full rounded-lg border border-border-seam bg-bg-elevated py-2.5 pl-10 pr-4 text-sm text-text-primary placeholder:text-text-tertiary 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)]"
131
132
  })]
132
133
  }),
133
- S.length === 0 && /* @__PURE__ */ c(h, {
134
- illustration: w ? "empty-search" : "empty-data",
135
- title: w ? _("i18n.products.empty.search.title", "No products found") : _("i18n.products.empty.title", "No products yet"),
136
- description: w ? _("i18n.products.empty.search.description", "Try a different search term to find a product.") : _("i18n.products.empty.description", "Add your first product to start managing translations.")
134
+ C.length === 0 && /* @__PURE__ */ c(h, {
135
+ illustration: T ? "empty-search" : "empty-data",
136
+ title: T ? v("i18n.products.empty.search.title", "No products found") : v("i18n.products.empty.title", "No products yet"),
137
+ description: T ? v("i18n.products.empty.search.description", "Try a different search term to find a product.") : v("i18n.products.empty.description", "Add your first product to start managing translations.")
137
138
  }),
138
- S.length > 0 && /* @__PURE__ */ c("div", {
139
+ C.length > 0 && /* @__PURE__ */ c("div", {
139
140
  className: "space-y-4",
140
- children: S.map((e, n) => /* @__PURE__ */ c(p, {
141
+ children: C.map((e, n) => /* @__PURE__ */ c(p, {
141
142
  treatment: "insight",
142
143
  glow: n === 0,
143
144
  className: "border-border-seam",
144
145
  children: /* @__PURE__ */ c("button", {
145
146
  type: "button",
146
- onClick: () => v(e),
147
+ onClick: () => y(e),
147
148
  className: "block w-full cursor-pointer rounded-[inherit] p-6 text-left focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]",
148
149
  children: /* @__PURE__ */ l("div", {
149
150
  className: "flex items-start justify-between gap-4",
@@ -157,7 +158,7 @@ var g = () => {
157
158
  children: e.displayName
158
159
  }), /* @__PURE__ */ c("span", {
159
160
  className: "rounded-full bg-status-success-bg px-2 py-0.5 text-xs font-medium text-status-success-text",
160
- children: e.status === "active" ? _("i18n.shared.status.active", "Active") : _("i18n.shared.status.archived", "Archived")
161
+ children: e.status === "active" ? v("i18n.shared.status.active", "Active") : v("i18n.shared.status.archived", "Archived")
161
162
  })]
162
163
  }),
163
164
  /* @__PURE__ */ c("p", {
@@ -168,7 +169,7 @@ var g = () => {
168
169
  className: "mt-4",
169
170
  children: [/* @__PURE__ */ c("p", {
170
171
  className: "mb-2 text-xs font-medium uppercase tracking-wider text-text-tertiary",
171
- children: _("i18n.products.modules.count", "Modules ({{count}})", { count: e.modules.length })
172
+ children: v("i18n.products.modules.count", "Modules ({{count}})", { count: e.modules.length })
172
173
  }), /* @__PURE__ */ c("div", {
173
174
  className: "flex flex-wrap gap-2",
174
175
  children: e.modules.map((e) => /* @__PURE__ */ l("span", {
@@ -194,4 +195,4 @@ var g = () => {
194
195
  });
195
196
  };
196
197
  //#endregion
197
- export { g as ProductsListPage };
198
+ export { _ as ProductsListPage };
@@ -4,11 +4,12 @@ import { Gauge as n } from "../../node_modules/lucide-react/dist/esm/icons/gauge
4
4
  import { TrendingUp as r } from "../../node_modules/lucide-react/dist/esm/icons/trending-up.js";
5
5
  import { useI18n as i } from "../providers/I18nProvider.js";
6
6
  import { useI18nStore as a } from "../store/i18nStore.js";
7
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
- import { CTAOverflowMenu as c, EmphasisPanel as l, GlassCard as u, GradientText as d, ShowMore as f } from "@burdenoff/fe-libs/ui";
7
+ import { useNavigate as o } from "react-router-dom";
8
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
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";
9
10
  //#region src/i18n/pages/ProgressDashboardPage.tsx
10
- var p = () => {
11
- let { t: p } = i(), m = (e, t, n) => p(e, t, n), { progressView: h, updateProgressView: g } = a(), _ = [
11
+ var g = () => {
12
+ let { t: g } = i(), _ = (e, t, n) => g(e, t, n), { progressView: v, updateProgressView: y } = a(), b = o(), x = [
12
13
  {
13
14
  languageKey: "i18n.shared.language.en",
14
15
  languageFallback: "English (en)",
@@ -49,7 +50,7 @@ var p = () => {
49
50
  translated: 187,
50
51
  percentage: 15
51
52
  }
52
- ], v = [
53
+ ], S = [
53
54
  {
54
55
  statusKey: "i18n.progress.status.published",
55
56
  statusFallback: "Published",
@@ -85,207 +86,231 @@ var p = () => {
85
86
  percentage: 32,
86
87
  color: "bg-status-danger-text"
87
88
  }
88
- ], y = [
89
+ ], C = [
89
90
  {
90
91
  key: "totalKeys",
91
- label: m("i18n.progress.stats.totalKeys", "Total Keys"),
92
+ label: _("i18n.progress.stats.totalKeys", "Total Keys"),
92
93
  value: "6,225",
93
94
  valueClass: "text-text-primary"
94
95
  },
95
96
  {
96
97
  key: "translated",
97
- label: m("i18n.progress.stats.translated", "Translated"),
98
+ label: _("i18n.progress.stats.translated", "Translated"),
98
99
  value: "3,735",
99
100
  valueClass: "text-status-success-text"
100
101
  },
101
102
  {
102
103
  key: "overallCoverage",
103
- label: m("i18n.progress.stats.overallCoverage", "Overall Coverage"),
104
+ label: _("i18n.progress.stats.overallCoverage", "Overall Coverage"),
104
105
  value: "68%",
105
106
  valueClass: "text-primary"
106
107
  },
107
108
  {
108
109
  key: "languages",
109
- label: m("i18n.progress.stats.languages", "Languages"),
110
+ label: _("i18n.progress.stats.languages", "Languages"),
110
111
  value: "5",
111
112
  valueClass: "text-text-primary"
112
113
  }
113
- ], b = "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
- return /* @__PURE__ */ s("div", {
114
+ ], w = "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)]";
115
+ return /* @__PURE__ */ c("div", {
115
116
  className: "min-h-full w-full bg-bg-surface",
116
- children: [/* @__PURE__ */ o("div", {
117
+ children: [/* @__PURE__ */ s("div", {
117
118
  className: "border-b border-border-seam bg-bg-surface px-6 py-6 sm:px-8 lg:px-10",
118
- children: /* @__PURE__ */ s("div", {
119
+ children: /* @__PURE__ */ c("div", {
119
120
  className: "mx-auto flex max-w-screen-xl flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
120
- children: [/* @__PURE__ */ s("div", {
121
+ children: [/* @__PURE__ */ c("div", {
121
122
  className: "flex items-center gap-4",
122
- children: [/* @__PURE__ */ o("div", {
123
+ children: [/* @__PURE__ */ s("div", {
123
124
  className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
124
- children: /* @__PURE__ */ o(r, {
125
+ children: /* @__PURE__ */ s(r, {
125
126
  className: "size-5",
126
127
  "aria-hidden": "true"
127
128
  })
128
- }), /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("h1", {
129
+ }), /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("h1", {
129
130
  className: "text-2xl font-bold tracking-tight text-text-primary",
130
- children: /* @__PURE__ */ o(d, { children: m("i18n.progress.title", "Translation Progress") })
131
- }), /* @__PURE__ */ o("p", {
131
+ children: /* @__PURE__ */ s(f, { children: _("i18n.progress.title", "Translation Progress") })
132
+ }), /* @__PURE__ */ s("p", {
132
133
  className: "mt-0.5 text-sm text-text-secondary",
133
- children: m("i18n.progress.subtitle", "Coverage and status across every locale")
134
+ children: _("i18n.progress.subtitle", "Coverage and status across every locale")
134
135
  })] })]
135
- }), /* @__PURE__ */ o(c, {
136
+ }), /* @__PURE__ */ s(l, {
136
137
  primary: {
137
- label: m("i18n.progress.actions.export", "Export"),
138
+ label: _("i18n.progress.actions.export", "Export"),
138
139
  onSelect: () => void 0,
139
- icon: /* @__PURE__ */ o(e, {
140
+ icon: /* @__PURE__ */ s(e, {
140
141
  className: "size-4",
141
142
  "aria-hidden": "true"
142
143
  })
143
144
  },
144
145
  actions: [{
145
- label: m("i18n.progress.actions.generateReport", "Generate Report"),
146
+ label: _("i18n.progress.actions.generateReport", "Generate Report"),
146
147
  onSelect: () => void 0,
147
- icon: /* @__PURE__ */ o(t, {
148
+ icon: /* @__PURE__ */ s(t, {
148
149
  className: "size-4",
149
150
  "aria-hidden": "true"
150
151
  })
151
152
  }]
152
153
  })]
153
154
  })
154
- }), /* @__PURE__ */ s("div", {
155
+ }), /* @__PURE__ */ c("div", {
155
156
  className: "mx-auto max-w-screen-xl space-y-8 px-6 py-8 sm:px-8 lg:px-10",
156
157
  children: [
157
- /* @__PURE__ */ s(l, {
158
+ /* @__PURE__ */ s(m, { children: _("i18n.progress.purpose", "See at a glance how complete your localization is — what share of keys are translated, approved, and published for each language and status. Use it to spot the locales that are lagging, decide where translators should focus next, and confirm you are ready to ship a language before release.") }),
159
+ /* @__PURE__ */ s(p, {
160
+ storageKey: "i18n-progress",
161
+ steps: [
162
+ {
163
+ id: "focus-language",
164
+ label: _("i18n.progress.next.groupByLanguage", "Group coverage by language"),
165
+ description: _("i18n.progress.next.groupByLanguage.desc", "Find the locales that are furthest behind so you can prioritise them."),
166
+ onClick: () => y({ groupBy: "language" })
167
+ },
168
+ {
169
+ id: "review-status",
170
+ label: _("i18n.progress.next.reviewQueue", "Clear the pending review backlog"),
171
+ description: _("i18n.progress.next.reviewQueue.desc", "Approve translations waiting in the queue to lift your published coverage."),
172
+ onClick: () => b("../review")
173
+ },
174
+ {
175
+ id: "export-snapshot",
176
+ label: _("i18n.progress.next.export", "Export a coverage snapshot"),
177
+ description: _("i18n.progress.next.export.desc", "Download the current numbers to share progress with your team."),
178
+ onClick: () => b("../export")
179
+ }
180
+ ]
181
+ }),
182
+ /* @__PURE__ */ c(u, {
158
183
  className: "flex flex-col gap-4 sm:flex-row sm:items-center",
159
- children: [/* @__PURE__ */ s("div", {
184
+ children: [/* @__PURE__ */ c("div", {
160
185
  className: "flex flex-1 items-center gap-4",
161
- children: [/* @__PURE__ */ o("div", {
186
+ children: [/* @__PURE__ */ s("div", {
162
187
  className: "flex size-14 shrink-0 items-center justify-center rounded-2xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
163
- children: /* @__PURE__ */ o(n, {
188
+ children: /* @__PURE__ */ s(n, {
164
189
  className: "size-7",
165
190
  "aria-hidden": "true"
166
191
  })
167
- }), /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("p", {
192
+ }), /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("p", {
168
193
  className: "text-sm font-medium text-text-secondary",
169
- children: m("i18n.progress.stats.overallCoverage", "Overall Coverage")
170
- }), /* @__PURE__ */ o("p", {
194
+ children: _("i18n.progress.stats.overallCoverage", "Overall Coverage")
195
+ }), /* @__PURE__ */ s("p", {
171
196
  className: "text-4xl font-bold tracking-tight text-text-primary tabular-nums",
172
197
  children: "68%"
173
198
  })] })]
174
- }), /* @__PURE__ */ s("div", {
199
+ }), /* @__PURE__ */ c("div", {
175
200
  className: "flex flex-wrap gap-3 sm:justify-end",
176
- children: [/* @__PURE__ */ o("div", {
201
+ children: [/* @__PURE__ */ s("div", {
177
202
  className: "rounded-lg border border-border-seam bg-bg-sunken/60 px-3 py-1.5 text-xs text-text-secondary tabular-nums",
178
- children: m("i18n.progress.summary.translatedOfTotal", "3,735 / 6,225 keys")
179
- }), /* @__PURE__ */ s("div", {
203
+ children: _("i18n.progress.summary.translatedOfTotal", "3,735 / 6,225 keys")
204
+ }), /* @__PURE__ */ c("div", {
180
205
  className: "flex items-center gap-1.5 rounded-lg border border-border-seam bg-bg-sunken/60 px-3 py-1.5 text-xs text-text-secondary",
181
- children: [/* @__PURE__ */ o("span", {
206
+ children: [/* @__PURE__ */ s("span", {
182
207
  className: "size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse",
183
208
  "aria-hidden": "true"
184
- }), m("i18n.progress.summary.languages", "5 languages")]
209
+ }), _("i18n.progress.summary.languages", "5 languages")]
185
210
  })]
186
211
  })]
187
212
  }),
188
- /* @__PURE__ */ o("div", {
213
+ /* @__PURE__ */ s("div", {
189
214
  className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
190
- children: y.map((e, t) => /* @__PURE__ */ s(u, {
215
+ children: C.map((e, t) => /* @__PURE__ */ c(d, {
191
216
  treatment: "metric",
192
217
  glow: t === 2,
193
218
  className: "border-border-seam p-5",
194
- children: [/* @__PURE__ */ o("p", {
219
+ children: [/* @__PURE__ */ s("p", {
195
220
  className: "text-sm text-text-secondary",
196
221
  children: e.label
197
- }), /* @__PURE__ */ o("p", {
222
+ }), /* @__PURE__ */ s("p", {
198
223
  className: `mt-1 text-2xl font-bold tracking-tight tabular-nums ${e.valueClass}`,
199
224
  children: e.value
200
225
  })]
201
226
  }, e.key))
202
227
  }),
203
- /* @__PURE__ */ o(f, {
228
+ /* @__PURE__ */ s(h, {
204
229
  collapsedHeight: 0,
205
- label: m("i18n.progress.controls.show", "Display options"),
206
- children: /* @__PURE__ */ s("div", {
230
+ label: _("i18n.progress.controls.show", "Display options"),
231
+ children: /* @__PURE__ */ c("div", {
207
232
  className: "flex flex-col gap-4 pt-4 sm:flex-row sm:items-end",
208
233
  children: [
209
- /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("label", {
234
+ /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
210
235
  htmlFor: "progress-group-by",
211
236
  className: "mb-1 block text-xs font-medium text-text-tertiary",
212
- children: m("i18n.progress.filters.groupBy", "Group By")
213
- }), /* @__PURE__ */ s("select", {
237
+ children: _("i18n.progress.filters.groupBy", "Group By")
238
+ }), /* @__PURE__ */ c("select", {
214
239
  id: "progress-group-by",
215
- value: h.groupBy,
216
- onChange: (e) => g({ groupBy: e.target.value }),
217
- className: b,
240
+ value: v.groupBy,
241
+ onChange: (e) => y({ groupBy: e.target.value }),
242
+ className: w,
218
243
  children: [
219
- /* @__PURE__ */ o("option", {
244
+ /* @__PURE__ */ s("option", {
220
245
  value: "language",
221
- children: m("i18n.progress.filters.groupBy.language", "Language")
246
+ children: _("i18n.progress.filters.groupBy.language", "Language")
222
247
  }),
223
- /* @__PURE__ */ o("option", {
248
+ /* @__PURE__ */ s("option", {
224
249
  value: "product",
225
- children: m("i18n.progress.filters.groupBy.product", "Product")
250
+ children: _("i18n.progress.filters.groupBy.product", "Product")
226
251
  }),
227
- /* @__PURE__ */ o("option", {
252
+ /* @__PURE__ */ s("option", {
228
253
  value: "module",
229
- children: m("i18n.progress.filters.groupBy.module", "Module")
254
+ children: _("i18n.progress.filters.groupBy.module", "Module")
230
255
  })
231
256
  ]
232
257
  })] }),
233
- /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("label", {
258
+ /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
234
259
  htmlFor: "progress-chart-type",
235
260
  className: "mb-1 block text-xs font-medium text-text-tertiary",
236
- children: m("i18n.progress.filters.chartType", "Chart Type")
237
- }), /* @__PURE__ */ s("select", {
261
+ children: _("i18n.progress.filters.chartType", "Chart Type")
262
+ }), /* @__PURE__ */ c("select", {
238
263
  id: "progress-chart-type",
239
- value: h.chartType,
240
- onChange: (e) => g({ chartType: e.target.value }),
241
- className: b,
264
+ value: v.chartType,
265
+ onChange: (e) => y({ chartType: e.target.value }),
266
+ className: w,
242
267
  children: [
243
- /* @__PURE__ */ o("option", {
268
+ /* @__PURE__ */ s("option", {
244
269
  value: "bar",
245
- children: m("i18n.progress.filters.chartType.bar", "Bar Chart")
270
+ children: _("i18n.progress.filters.chartType.bar", "Bar Chart")
246
271
  }),
247
- /* @__PURE__ */ o("option", {
272
+ /* @__PURE__ */ s("option", {
248
273
  value: "pie",
249
- children: m("i18n.progress.filters.chartType.pie", "Pie Chart")
274
+ children: _("i18n.progress.filters.chartType.pie", "Pie Chart")
250
275
  }),
251
- /* @__PURE__ */ o("option", {
276
+ /* @__PURE__ */ s("option", {
252
277
  value: "heatmap",
253
- children: m("i18n.progress.filters.chartType.heatmap", "Heatmap")
278
+ children: _("i18n.progress.filters.chartType.heatmap", "Heatmap")
254
279
  })
255
280
  ]
256
281
  })] }),
257
- /* @__PURE__ */ s("div", {
282
+ /* @__PURE__ */ c("div", {
258
283
  className: "flex items-center gap-2 pb-2",
259
- children: [/* @__PURE__ */ o("input", {
284
+ children: [/* @__PURE__ */ s("input", {
260
285
  type: "checkbox",
261
286
  id: "show-percentages",
262
- "aria-label": m("i18n.progress.filters.showPercentages", "Show Percentages"),
263
- checked: h.showPercentages,
264
- onChange: (e) => g({ showPercentages: e.target.checked }),
287
+ "aria-label": _("i18n.progress.filters.showPercentages", "Show Percentages"),
288
+ checked: v.showPercentages,
289
+ onChange: (e) => y({ showPercentages: e.target.checked }),
265
290
  className: "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
266
- }), /* @__PURE__ */ o("label", {
291
+ }), /* @__PURE__ */ s("label", {
267
292
  htmlFor: "show-percentages",
268
293
  className: "text-sm text-text-primary",
269
- children: m("i18n.progress.filters.showPercentages", "Show Percentages")
294
+ children: _("i18n.progress.filters.showPercentages", "Show Percentages")
270
295
  })]
271
296
  })
272
297
  ]
273
298
  })
274
299
  }),
275
- /* @__PURE__ */ s(u, {
300
+ /* @__PURE__ */ c(d, {
276
301
  treatment: "plain",
277
302
  className: "border-border-seam p-6",
278
- children: [/* @__PURE__ */ o("h2", {
303
+ children: [/* @__PURE__ */ s("h2", {
279
304
  className: "mb-4 text-lg font-semibold text-text-primary",
280
- children: m("i18n.progress.sections.coverageByLanguage", "Coverage by Language")
281
- }), /* @__PURE__ */ o("div", {
305
+ children: _("i18n.progress.sections.coverageByLanguage", "Coverage by Language")
306
+ }), /* @__PURE__ */ s("div", {
282
307
  className: "space-y-3",
283
- children: _.map((e) => /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ s("div", {
308
+ children: x.map((e) => /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ c("div", {
284
309
  className: "mb-1 flex items-center justify-between text-sm",
285
- children: [/* @__PURE__ */ o("span", {
310
+ children: [/* @__PURE__ */ s("span", {
286
311
  className: "text-text-primary",
287
- children: m(e.languageKey, e.languageFallback)
288
- }), /* @__PURE__ */ s("span", {
312
+ children: _(e.languageKey, e.languageFallback)
313
+ }), /* @__PURE__ */ c("span", {
289
314
  className: "text-text-tertiary tabular-nums",
290
315
  children: [
291
316
  e.translated,
@@ -296,34 +321,34 @@ var p = () => {
296
321
  "%)"
297
322
  ]
298
323
  })]
299
- }), /* @__PURE__ */ o("div", {
324
+ }), /* @__PURE__ */ s("div", {
300
325
  className: "h-2 overflow-hidden rounded-full bg-bg-sunken",
301
326
  role: "progressbar",
302
327
  "aria-valuenow": e.percentage,
303
328
  "aria-valuemin": 0,
304
329
  "aria-valuemax": 100,
305
- "aria-label": m(e.languageKey, e.languageFallback),
306
- children: /* @__PURE__ */ o("div", {
330
+ "aria-label": _(e.languageKey, e.languageFallback),
331
+ children: /* @__PURE__ */ s("div", {
307
332
  className: "h-full rounded-full bg-action-primary-bg shadow-[var(--shadow-glow)] transition-all",
308
333
  style: { width: `${e.percentage}%` }
309
334
  })
310
335
  })] }, e.code))
311
336
  })]
312
337
  }),
313
- /* @__PURE__ */ s(u, {
338
+ /* @__PURE__ */ c(d, {
314
339
  treatment: "plain",
315
340
  className: "border-border-seam p-6",
316
- children: [/* @__PURE__ */ o("h2", {
341
+ children: [/* @__PURE__ */ s("h2", {
317
342
  className: "mb-4 text-lg font-semibold text-text-primary",
318
- children: m("i18n.progress.sections.byStatus", "By Status")
319
- }), /* @__PURE__ */ o("div", {
343
+ children: _("i18n.progress.sections.byStatus", "By Status")
344
+ }), /* @__PURE__ */ s("div", {
320
345
  className: "space-y-3",
321
- children: v.map((e) => /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ s("div", {
346
+ children: S.map((e) => /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ c("div", {
322
347
  className: "mb-1 flex items-center justify-between text-sm",
323
- children: [/* @__PURE__ */ o("span", {
348
+ children: [/* @__PURE__ */ s("span", {
324
349
  className: "text-text-primary",
325
- children: m(e.statusKey, e.statusFallback)
326
- }), /* @__PURE__ */ s("span", {
350
+ children: _(e.statusKey, e.statusFallback)
351
+ }), /* @__PURE__ */ c("span", {
327
352
  className: "text-text-tertiary tabular-nums",
328
353
  children: [
329
354
  e.count,
@@ -332,14 +357,14 @@ var p = () => {
332
357
  "%)"
333
358
  ]
334
359
  })]
335
- }), /* @__PURE__ */ o("div", {
360
+ }), /* @__PURE__ */ s("div", {
336
361
  className: "h-2 overflow-hidden rounded-full bg-bg-sunken",
337
362
  role: "progressbar",
338
363
  "aria-valuenow": e.percentage,
339
364
  "aria-valuemin": 0,
340
365
  "aria-valuemax": 100,
341
- "aria-label": m(e.statusKey, e.statusFallback),
342
- children: /* @__PURE__ */ o("div", {
366
+ "aria-label": _(e.statusKey, e.statusFallback),
367
+ children: /* @__PURE__ */ s("div", {
343
368
  className: `h-full rounded-full transition-all ${e.color}`,
344
369
  style: { width: `${e.percentage}%` }
345
370
  })
@@ -351,4 +376,4 @@ var p = () => {
351
376
  });
352
377
  };
353
378
  //#endregion
354
- export { p as ProgressDashboardPage };
379
+ export { g as ProgressDashboardPage };