@burdenoff/microfe-i18n 2026.801.1 → 2026.830.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.
- package/dist/i18n/I18nRoot.js +52 -40
- package/dist/i18n/hooks/useTr.js +9 -0
- package/dist/i18n/pages/ImportExportPage.js +85 -85
- package/dist/i18n/pages/LanguagesListPage.js +44 -44
- package/dist/i18n/pages/LocaleConfigPage.js +183 -181
- package/dist/i18n/pages/ProductsListPage.js +24 -24
- package/dist/i18n/pages/ProgressDashboardPage.js +54 -54
- package/dist/i18n/pages/ReviewQueuePage.js +114 -112
- package/dist/i18n/pages/TranslationEditorPage.js +74 -74
- package/dist/i18n/providers/I18nProvider.js +35 -34
- package/dist/i18n/translations/en.js +372 -0
- package/dist/i18n.js +4 -3
- package/package.json +4 -3
|
@@ -3,14 +3,14 @@ import { ChevronRight as t } from "../../node_modules/lucide-react/dist/esm/icon
|
|
|
3
3
|
import { Package as n } from "../../node_modules/lucide-react/dist/esm/icons/package.js";
|
|
4
4
|
import { Plus as r } from "../../node_modules/lucide-react/dist/esm/icons/plus.js";
|
|
5
5
|
import { Search as i } from "../../node_modules/lucide-react/dist/esm/icons/search.js";
|
|
6
|
-
import {
|
|
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
11
|
//#region src/i18n/pages/ProductsListPage.tsx
|
|
12
12
|
var _ = () => {
|
|
13
|
-
let
|
|
13
|
+
let _ = a(), { setSelectedProduct: v } = o(), [y, b] = s(""), x = [{
|
|
14
14
|
id: "1",
|
|
15
15
|
name: "workspaces",
|
|
16
16
|
displayName: "Workspaces",
|
|
@@ -48,7 +48,7 @@ var _ = () => {
|
|
|
48
48
|
name: "notification",
|
|
49
49
|
displayName: "Notifications"
|
|
50
50
|
}]
|
|
51
|
-
}],
|
|
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;
|
|
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 _ = () => {
|
|
|
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:
|
|
68
|
+
children: /* @__PURE__ */ c(m, { children: _("i18n.products.title", "Products") })
|
|
69
69
|
}), /* @__PURE__ */ c("p", {
|
|
70
70
|
className: "mt-0.5 text-sm text-text-secondary",
|
|
71
|
-
children:
|
|
71
|
+
children: _("i18n.products.subtitle", "Manage localization across products and their modules")
|
|
72
72
|
})] })]
|
|
73
73
|
}), /* @__PURE__ */ c(d, {
|
|
74
74
|
primary: {
|
|
75
|
-
label:
|
|
75
|
+
label: _("i18n.products.actions.add", "Add Product"),
|
|
76
76
|
onSelect: () => void 0,
|
|
77
77
|
icon: /* @__PURE__ */ c(r, {
|
|
78
78
|
className: "size-4",
|
|
@@ -85,7 +85,7 @@ var _ = () => {
|
|
|
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:
|
|
88
|
+
/* @__PURE__ */ c(g, { children: _("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.") }),
|
|
89
89
|
/* @__PURE__ */ l(f, {
|
|
90
90
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center",
|
|
91
91
|
children: [/* @__PURE__ */ l("div", {
|
|
@@ -98,22 +98,22 @@ var _ = () => {
|
|
|
98
98
|
})
|
|
99
99
|
}), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("p", {
|
|
100
100
|
className: "text-sm font-medium text-text-secondary",
|
|
101
|
-
children:
|
|
101
|
+
children: _("i18n.products.summary.label", "Products tracked")
|
|
102
102
|
}), /* @__PURE__ */ c("p", {
|
|
103
103
|
className: "text-4xl font-bold tracking-tight text-text-primary tabular-nums",
|
|
104
|
-
children:
|
|
104
|
+
children: x.length
|
|
105
105
|
})] })]
|
|
106
106
|
}), /* @__PURE__ */ l("div", {
|
|
107
107
|
className: "flex flex-wrap gap-3 sm:justify-end",
|
|
108
108
|
children: [/* @__PURE__ */ c("div", {
|
|
109
109
|
className: "rounded-lg border border-border-seam bg-bg-sunken/60 px-3 py-1.5 text-xs text-text-secondary tabular-nums",
|
|
110
|
-
children:
|
|
110
|
+
children: _("i18n.products.summary.modules", "{{count}} modules", { count: C })
|
|
111
111
|
}), /* @__PURE__ */ l("div", {
|
|
112
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",
|
|
113
113
|
children: [/* @__PURE__ */ c("span", {
|
|
114
114
|
className: "size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse",
|
|
115
115
|
"aria-hidden": "true"
|
|
116
|
-
}),
|
|
116
|
+
}), _("i18n.products.summary.active", "All active")]
|
|
117
117
|
})]
|
|
118
118
|
})]
|
|
119
119
|
}),
|
|
@@ -124,27 +124,27 @@ var _ = () => {
|
|
|
124
124
|
"aria-hidden": "true"
|
|
125
125
|
}), /* @__PURE__ */ c("input", {
|
|
126
126
|
type: "text",
|
|
127
|
-
"aria-label":
|
|
128
|
-
placeholder:
|
|
129
|
-
value:
|
|
130
|
-
onChange: (e) =>
|
|
127
|
+
"aria-label": _("i18n.products.search.ariaLabel", "Search products"),
|
|
128
|
+
placeholder: _("i18n.products.search.placeholder", "Search products..."),
|
|
129
|
+
value: y,
|
|
130
|
+
onChange: (e) => b(e.target.value),
|
|
131
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)]"
|
|
132
132
|
})]
|
|
133
133
|
}),
|
|
134
|
-
|
|
135
|
-
illustration:
|
|
136
|
-
title:
|
|
137
|
-
description:
|
|
134
|
+
S.length === 0 && /* @__PURE__ */ c(h, {
|
|
135
|
+
illustration: w ? "empty-search" : "empty-data",
|
|
136
|
+
title: w ? _("i18n.products.empty.search.title", "No products found") : _("i18n.products.empty.title", "No products yet"),
|
|
137
|
+
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.")
|
|
138
138
|
}),
|
|
139
|
-
|
|
139
|
+
S.length > 0 && /* @__PURE__ */ c("div", {
|
|
140
140
|
className: "space-y-4",
|
|
141
|
-
children:
|
|
141
|
+
children: S.map((e, n) => /* @__PURE__ */ c(p, {
|
|
142
142
|
treatment: "insight",
|
|
143
143
|
glow: n === 0,
|
|
144
144
|
className: "border-border-seam",
|
|
145
145
|
children: /* @__PURE__ */ c("button", {
|
|
146
146
|
type: "button",
|
|
147
|
-
onClick: () =>
|
|
147
|
+
onClick: () => v(e),
|
|
148
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)]",
|
|
149
149
|
children: /* @__PURE__ */ l("div", {
|
|
150
150
|
className: "flex items-start justify-between gap-4",
|
|
@@ -158,7 +158,7 @@ var _ = () => {
|
|
|
158
158
|
children: e.displayName
|
|
159
159
|
}), /* @__PURE__ */ c("span", {
|
|
160
160
|
className: "rounded-full bg-status-success-bg px-2 py-0.5 text-xs font-medium text-status-success-text",
|
|
161
|
-
children: e.status === "active" ?
|
|
161
|
+
children: e.status === "active" ? _("i18n.shared.status.active", "Active") : _("i18n.shared.status.archived", "Archived")
|
|
162
162
|
})]
|
|
163
163
|
}),
|
|
164
164
|
/* @__PURE__ */ c("p", {
|
|
@@ -169,7 +169,7 @@ var _ = () => {
|
|
|
169
169
|
className: "mt-4",
|
|
170
170
|
children: [/* @__PURE__ */ c("p", {
|
|
171
171
|
className: "mb-2 text-xs font-medium uppercase tracking-wider text-text-tertiary",
|
|
172
|
-
children:
|
|
172
|
+
children: _("i18n.products.modules.count", "Modules ({{count}})", { count: e.modules.length })
|
|
173
173
|
}), /* @__PURE__ */ c("div", {
|
|
174
174
|
className: "flex flex-wrap gap-2",
|
|
175
175
|
children: e.modules.map((e) => /* @__PURE__ */ l("span", {
|
|
@@ -2,14 +2,14 @@ import { Download as e } from "../../node_modules/lucide-react/dist/esm/icons/do
|
|
|
2
2
|
import { FileText as t } from "../../node_modules/lucide-react/dist/esm/icons/file-text.js";
|
|
3
3
|
import { Gauge as n } from "../../node_modules/lucide-react/dist/esm/icons/gauge.js";
|
|
4
4
|
import { TrendingUp as r } from "../../node_modules/lucide-react/dist/esm/icons/trending-up.js";
|
|
5
|
-
import {
|
|
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
10
|
//#region src/i18n/pages/ProgressDashboardPage.tsx
|
|
11
11
|
var g = () => {
|
|
12
|
-
let
|
|
12
|
+
let g = i(), { progressView: _, updateProgressView: v } = a(), y = o(), b = [
|
|
13
13
|
{
|
|
14
14
|
languageKey: "i18n.shared.language.en",
|
|
15
15
|
languageFallback: "English (en)",
|
|
@@ -50,7 +50,7 @@ var g = () => {
|
|
|
50
50
|
translated: 187,
|
|
51
51
|
percentage: 15
|
|
52
52
|
}
|
|
53
|
-
],
|
|
53
|
+
], x = [
|
|
54
54
|
{
|
|
55
55
|
statusKey: "i18n.progress.status.published",
|
|
56
56
|
statusFallback: "Published",
|
|
@@ -86,32 +86,32 @@ var g = () => {
|
|
|
86
86
|
percentage: 32,
|
|
87
87
|
color: "bg-status-danger-text"
|
|
88
88
|
}
|
|
89
|
-
],
|
|
89
|
+
], S = [
|
|
90
90
|
{
|
|
91
91
|
key: "totalKeys",
|
|
92
|
-
label:
|
|
92
|
+
label: g("i18n.progress.stats.totalKeys", "Total Keys"),
|
|
93
93
|
value: "6,225",
|
|
94
94
|
valueClass: "text-text-primary"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
key: "translated",
|
|
98
|
-
label:
|
|
98
|
+
label: g("i18n.progress.stats.translated", "Translated"),
|
|
99
99
|
value: "3,735",
|
|
100
100
|
valueClass: "text-status-success-text"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
key: "overallCoverage",
|
|
104
|
-
label:
|
|
104
|
+
label: g("i18n.progress.stats.overallCoverage", "Overall Coverage"),
|
|
105
105
|
value: "68%",
|
|
106
106
|
valueClass: "text-primary"
|
|
107
107
|
},
|
|
108
108
|
{
|
|
109
109
|
key: "languages",
|
|
110
|
-
label:
|
|
110
|
+
label: g("i18n.progress.stats.languages", "Languages"),
|
|
111
111
|
value: "5",
|
|
112
112
|
valueClass: "text-text-primary"
|
|
113
113
|
}
|
|
114
|
-
],
|
|
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)]";
|
|
115
115
|
return /* @__PURE__ */ c("div", {
|
|
116
116
|
className: "min-h-full w-full bg-bg-surface",
|
|
117
117
|
children: [/* @__PURE__ */ s("div", {
|
|
@@ -128,14 +128,14 @@ var g = () => {
|
|
|
128
128
|
})
|
|
129
129
|
}), /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("h1", {
|
|
130
130
|
className: "text-2xl font-bold tracking-tight text-text-primary",
|
|
131
|
-
children: /* @__PURE__ */ s(f, { children:
|
|
131
|
+
children: /* @__PURE__ */ s(f, { children: g("i18n.progress.title", "Translation Progress") })
|
|
132
132
|
}), /* @__PURE__ */ s("p", {
|
|
133
133
|
className: "mt-0.5 text-sm text-text-secondary",
|
|
134
|
-
children:
|
|
134
|
+
children: g("i18n.progress.subtitle", "Coverage and status across every locale")
|
|
135
135
|
})] })]
|
|
136
136
|
}), /* @__PURE__ */ s(l, {
|
|
137
137
|
primary: {
|
|
138
|
-
label:
|
|
138
|
+
label: g("i18n.progress.actions.export", "Export"),
|
|
139
139
|
onSelect: () => void 0,
|
|
140
140
|
icon: /* @__PURE__ */ s(e, {
|
|
141
141
|
className: "size-4",
|
|
@@ -143,7 +143,7 @@ var g = () => {
|
|
|
143
143
|
})
|
|
144
144
|
},
|
|
145
145
|
actions: [{
|
|
146
|
-
label:
|
|
146
|
+
label: g("i18n.progress.actions.generateReport", "Generate Report"),
|
|
147
147
|
onSelect: () => void 0,
|
|
148
148
|
icon: /* @__PURE__ */ s(t, {
|
|
149
149
|
className: "size-4",
|
|
@@ -155,27 +155,27 @@ var g = () => {
|
|
|
155
155
|
}), /* @__PURE__ */ c("div", {
|
|
156
156
|
className: "mx-auto max-w-screen-xl space-y-8 px-6 py-8 sm:px-8 lg:px-10",
|
|
157
157
|
children: [
|
|
158
|
-
/* @__PURE__ */ s(m, { children:
|
|
158
|
+
/* @__PURE__ */ s(m, { children: g("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
159
|
/* @__PURE__ */ s(p, {
|
|
160
160
|
storageKey: "i18n-progress",
|
|
161
161
|
steps: [
|
|
162
162
|
{
|
|
163
163
|
id: "focus-language",
|
|
164
|
-
label:
|
|
165
|
-
description:
|
|
166
|
-
onClick: () =>
|
|
164
|
+
label: g("i18n.progress.next.groupByLanguage", "Group coverage by language"),
|
|
165
|
+
description: g("i18n.progress.next.groupByLanguage.desc", "Find the locales that are furthest behind so you can prioritise them."),
|
|
166
|
+
onClick: () => v({ groupBy: "language" })
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
id: "review-status",
|
|
170
|
-
label:
|
|
171
|
-
description:
|
|
172
|
-
onClick: () =>
|
|
170
|
+
label: g("i18n.progress.next.reviewQueue", "Clear the pending review backlog"),
|
|
171
|
+
description: g("i18n.progress.next.reviewQueue.desc", "Approve translations waiting in the queue to lift your published coverage."),
|
|
172
|
+
onClick: () => y("../review")
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
175
|
id: "export-snapshot",
|
|
176
|
-
label:
|
|
177
|
-
description:
|
|
178
|
-
onClick: () =>
|
|
176
|
+
label: g("i18n.progress.next.export", "Export a coverage snapshot"),
|
|
177
|
+
description: g("i18n.progress.next.export.desc", "Download the current numbers to share progress with your team."),
|
|
178
|
+
onClick: () => y("../export")
|
|
179
179
|
}
|
|
180
180
|
]
|
|
181
181
|
}),
|
|
@@ -191,7 +191,7 @@ var g = () => {
|
|
|
191
191
|
})
|
|
192
192
|
}), /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("p", {
|
|
193
193
|
className: "text-sm font-medium text-text-secondary",
|
|
194
|
-
children:
|
|
194
|
+
children: g("i18n.progress.stats.overallCoverage", "Overall Coverage")
|
|
195
195
|
}), /* @__PURE__ */ s("p", {
|
|
196
196
|
className: "text-4xl font-bold tracking-tight text-text-primary tabular-nums",
|
|
197
197
|
children: "68%"
|
|
@@ -200,19 +200,19 @@ var g = () => {
|
|
|
200
200
|
className: "flex flex-wrap gap-3 sm:justify-end",
|
|
201
201
|
children: [/* @__PURE__ */ s("div", {
|
|
202
202
|
className: "rounded-lg border border-border-seam bg-bg-sunken/60 px-3 py-1.5 text-xs text-text-secondary tabular-nums",
|
|
203
|
-
children:
|
|
203
|
+
children: g("i18n.progress.summary.translatedOfTotal", "3,735 / 6,225 keys")
|
|
204
204
|
}), /* @__PURE__ */ c("div", {
|
|
205
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",
|
|
206
206
|
children: [/* @__PURE__ */ s("span", {
|
|
207
207
|
className: "size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse",
|
|
208
208
|
"aria-hidden": "true"
|
|
209
|
-
}),
|
|
209
|
+
}), g("i18n.progress.summary.languages", "5 languages")]
|
|
210
210
|
})]
|
|
211
211
|
})]
|
|
212
212
|
}),
|
|
213
213
|
/* @__PURE__ */ s("div", {
|
|
214
214
|
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
215
|
-
children:
|
|
215
|
+
children: S.map((e, t) => /* @__PURE__ */ c(d, {
|
|
216
216
|
treatment: "metric",
|
|
217
217
|
glow: t === 2,
|
|
218
218
|
className: "border-border-seam p-5",
|
|
@@ -227,55 +227,55 @@ var g = () => {
|
|
|
227
227
|
}),
|
|
228
228
|
/* @__PURE__ */ s(h, {
|
|
229
229
|
collapsedHeight: 0,
|
|
230
|
-
label:
|
|
230
|
+
label: g("i18n.progress.controls.show", "Display options"),
|
|
231
231
|
children: /* @__PURE__ */ c("div", {
|
|
232
232
|
className: "flex flex-col gap-4 pt-4 sm:flex-row sm:items-end",
|
|
233
233
|
children: [
|
|
234
234
|
/* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
|
|
235
235
|
htmlFor: "progress-group-by",
|
|
236
236
|
className: "mb-1 block text-xs font-medium text-text-tertiary",
|
|
237
|
-
children:
|
|
237
|
+
children: g("i18n.progress.filters.groupBy", "Group By")
|
|
238
238
|
}), /* @__PURE__ */ c("select", {
|
|
239
239
|
id: "progress-group-by",
|
|
240
|
-
value:
|
|
241
|
-
onChange: (e) =>
|
|
242
|
-
className:
|
|
240
|
+
value: _.groupBy,
|
|
241
|
+
onChange: (e) => v({ groupBy: e.target.value }),
|
|
242
|
+
className: C,
|
|
243
243
|
children: [
|
|
244
244
|
/* @__PURE__ */ s("option", {
|
|
245
245
|
value: "language",
|
|
246
|
-
children:
|
|
246
|
+
children: g("i18n.progress.filters.groupBy.language", "Language")
|
|
247
247
|
}),
|
|
248
248
|
/* @__PURE__ */ s("option", {
|
|
249
249
|
value: "product",
|
|
250
|
-
children:
|
|
250
|
+
children: g("i18n.progress.filters.groupBy.product", "Product")
|
|
251
251
|
}),
|
|
252
252
|
/* @__PURE__ */ s("option", {
|
|
253
253
|
value: "module",
|
|
254
|
-
children:
|
|
254
|
+
children: g("i18n.progress.filters.groupBy.module", "Module")
|
|
255
255
|
})
|
|
256
256
|
]
|
|
257
257
|
})] }),
|
|
258
258
|
/* @__PURE__ */ c("div", { children: [/* @__PURE__ */ s("label", {
|
|
259
259
|
htmlFor: "progress-chart-type",
|
|
260
260
|
className: "mb-1 block text-xs font-medium text-text-tertiary",
|
|
261
|
-
children:
|
|
261
|
+
children: g("i18n.progress.filters.chartType", "Chart Type")
|
|
262
262
|
}), /* @__PURE__ */ c("select", {
|
|
263
263
|
id: "progress-chart-type",
|
|
264
|
-
value:
|
|
265
|
-
onChange: (e) =>
|
|
266
|
-
className:
|
|
264
|
+
value: _.chartType,
|
|
265
|
+
onChange: (e) => v({ chartType: e.target.value }),
|
|
266
|
+
className: C,
|
|
267
267
|
children: [
|
|
268
268
|
/* @__PURE__ */ s("option", {
|
|
269
269
|
value: "bar",
|
|
270
|
-
children:
|
|
270
|
+
children: g("i18n.progress.filters.chartType.bar", "Bar Chart")
|
|
271
271
|
}),
|
|
272
272
|
/* @__PURE__ */ s("option", {
|
|
273
273
|
value: "pie",
|
|
274
|
-
children:
|
|
274
|
+
children: g("i18n.progress.filters.chartType.pie", "Pie Chart")
|
|
275
275
|
}),
|
|
276
276
|
/* @__PURE__ */ s("option", {
|
|
277
277
|
value: "heatmap",
|
|
278
|
-
children:
|
|
278
|
+
children: g("i18n.progress.filters.chartType.heatmap", "Heatmap")
|
|
279
279
|
})
|
|
280
280
|
]
|
|
281
281
|
})] }),
|
|
@@ -284,14 +284,14 @@ var g = () => {
|
|
|
284
284
|
children: [/* @__PURE__ */ s("input", {
|
|
285
285
|
type: "checkbox",
|
|
286
286
|
id: "show-percentages",
|
|
287
|
-
"aria-label":
|
|
288
|
-
checked:
|
|
289
|
-
onChange: (e) =>
|
|
287
|
+
"aria-label": g("i18n.progress.filters.showPercentages", "Show Percentages"),
|
|
288
|
+
checked: _.showPercentages,
|
|
289
|
+
onChange: (e) => v({ showPercentages: e.target.checked }),
|
|
290
290
|
className: "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
|
|
291
291
|
}), /* @__PURE__ */ s("label", {
|
|
292
292
|
htmlFor: "show-percentages",
|
|
293
293
|
className: "text-sm text-text-primary",
|
|
294
|
-
children:
|
|
294
|
+
children: g("i18n.progress.filters.showPercentages", "Show Percentages")
|
|
295
295
|
})]
|
|
296
296
|
})
|
|
297
297
|
]
|
|
@@ -302,14 +302,14 @@ var g = () => {
|
|
|
302
302
|
className: "border-border-seam p-6",
|
|
303
303
|
children: [/* @__PURE__ */ s("h2", {
|
|
304
304
|
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
305
|
-
children:
|
|
305
|
+
children: g("i18n.progress.sections.coverageByLanguage", "Coverage by Language")
|
|
306
306
|
}), /* @__PURE__ */ s("div", {
|
|
307
307
|
className: "space-y-3",
|
|
308
|
-
children:
|
|
308
|
+
children: b.map((e) => /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ c("div", {
|
|
309
309
|
className: "mb-1 flex items-center justify-between text-sm",
|
|
310
310
|
children: [/* @__PURE__ */ s("span", {
|
|
311
311
|
className: "text-text-primary",
|
|
312
|
-
children:
|
|
312
|
+
children: g(e.languageKey, e.languageFallback)
|
|
313
313
|
}), /* @__PURE__ */ c("span", {
|
|
314
314
|
className: "text-text-tertiary tabular-nums",
|
|
315
315
|
children: [
|
|
@@ -327,7 +327,7 @@ var g = () => {
|
|
|
327
327
|
"aria-valuenow": e.percentage,
|
|
328
328
|
"aria-valuemin": 0,
|
|
329
329
|
"aria-valuemax": 100,
|
|
330
|
-
"aria-label":
|
|
330
|
+
"aria-label": g(e.languageKey, e.languageFallback),
|
|
331
331
|
children: /* @__PURE__ */ s("div", {
|
|
332
332
|
className: "h-full rounded-full bg-action-primary-bg shadow-[var(--shadow-glow)] transition-all",
|
|
333
333
|
style: { width: `${e.percentage}%` }
|
|
@@ -340,14 +340,14 @@ var g = () => {
|
|
|
340
340
|
className: "border-border-seam p-6",
|
|
341
341
|
children: [/* @__PURE__ */ s("h2", {
|
|
342
342
|
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
343
|
-
children:
|
|
343
|
+
children: g("i18n.progress.sections.byStatus", "By Status")
|
|
344
344
|
}), /* @__PURE__ */ s("div", {
|
|
345
345
|
className: "space-y-3",
|
|
346
|
-
children:
|
|
346
|
+
children: x.map((e) => /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ c("div", {
|
|
347
347
|
className: "mb-1 flex items-center justify-between text-sm",
|
|
348
348
|
children: [/* @__PURE__ */ s("span", {
|
|
349
349
|
className: "text-text-primary",
|
|
350
|
-
children:
|
|
350
|
+
children: g(e.statusKey, e.statusFallback)
|
|
351
351
|
}), /* @__PURE__ */ c("span", {
|
|
352
352
|
className: "text-text-tertiary tabular-nums",
|
|
353
353
|
children: [
|
|
@@ -363,7 +363,7 @@ var g = () => {
|
|
|
363
363
|
"aria-valuenow": e.percentage,
|
|
364
364
|
"aria-valuemin": 0,
|
|
365
365
|
"aria-valuemax": 100,
|
|
366
|
-
"aria-label":
|
|
366
|
+
"aria-label": g(e.statusKey, e.statusFallback),
|
|
367
367
|
children: /* @__PURE__ */ s("div", {
|
|
368
368
|
className: `h-full rounded-full transition-all ${e.color}`,
|
|
369
369
|
style: { width: `${e.percentage}%` }
|