@burdenoff/microfe-i18n 2026.608.1 → 2026.625.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/pages/ImportExportPage.js +358 -319
- package/dist/i18n/pages/LanguagesListPage.js +120 -88
- package/dist/i18n/pages/LocaleConfigPage.js +269 -243
- package/dist/i18n/pages/ProductsListPage.js +147 -84
- package/dist/i18n/pages/ProgressDashboardPage.js +340 -283
- package/dist/i18n/pages/ReviewQueuePage.js +186 -149
- package/dist/i18n/pages/TranslationEditorPage.js +166 -115
- package/dist/node_modules/lucide-react/dist/esm/icons/boxes.js +54 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/gauge.js +11 -0
- package/package.json +2 -2
|
@@ -1,297 +1,354 @@
|
|
|
1
1
|
import { Download as e } from "../../node_modules/lucide-react/dist/esm/icons/download.js";
|
|
2
2
|
import { FileText as t } from "../../node_modules/lucide-react/dist/esm/icons/file-text.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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";
|
|
5
|
+
import { useI18n as i } from "../providers/I18nProvider.js";
|
|
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
9
|
//#region src/i18n/pages/ProgressDashboardPage.tsx
|
|
8
|
-
var
|
|
9
|
-
let { t:
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
var p = () => {
|
|
11
|
+
let { t: p } = i(), m = (e, t, n) => p(e, t, n), { progressView: h, updateProgressView: g } = a(), _ = [
|
|
12
|
+
{
|
|
13
|
+
languageKey: "i18n.shared.language.en",
|
|
14
|
+
languageFallback: "English (en)",
|
|
15
|
+
code: "en",
|
|
16
|
+
total: 1245,
|
|
17
|
+
translated: 1245,
|
|
18
|
+
percentage: 100
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
languageKey: "i18n.progress.languages.spanish",
|
|
22
|
+
languageFallback: "Spanish (es)",
|
|
23
|
+
code: "es",
|
|
24
|
+
total: 1245,
|
|
25
|
+
translated: 971,
|
|
26
|
+
percentage: 78
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
languageKey: "i18n.progress.languages.french",
|
|
30
|
+
languageFallback: "French (fr)",
|
|
31
|
+
code: "fr",
|
|
32
|
+
total: 1245,
|
|
33
|
+
translated: 809,
|
|
34
|
+
percentage: 65
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
languageKey: "i18n.progress.languages.german",
|
|
38
|
+
languageFallback: "German (de)",
|
|
39
|
+
code: "de",
|
|
40
|
+
total: 1245,
|
|
41
|
+
translated: 523,
|
|
42
|
+
percentage: 42
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
languageKey: "i18n.progress.languages.japanese",
|
|
46
|
+
languageFallback: "Japanese (ja)",
|
|
47
|
+
code: "ja",
|
|
48
|
+
total: 1245,
|
|
49
|
+
translated: 187,
|
|
50
|
+
percentage: 15
|
|
51
|
+
}
|
|
52
|
+
], v = [
|
|
53
|
+
{
|
|
54
|
+
statusKey: "i18n.progress.status.published",
|
|
55
|
+
statusFallback: "Published",
|
|
56
|
+
count: 2426,
|
|
57
|
+
percentage: 65,
|
|
58
|
+
color: "bg-status-success-text"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
statusKey: "i18n.progress.status.approved",
|
|
62
|
+
statusFallback: "Approved",
|
|
63
|
+
count: 448,
|
|
64
|
+
percentage: 12,
|
|
65
|
+
color: "bg-chart-2"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
statusKey: "i18n.progress.status.pendingReview",
|
|
69
|
+
statusFallback: "Pending Review",
|
|
70
|
+
count: 299,
|
|
71
|
+
percentage: 8,
|
|
72
|
+
color: "bg-status-warning-text"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
statusKey: "i18n.progress.status.draft",
|
|
76
|
+
statusFallback: "Draft",
|
|
77
|
+
count: 562,
|
|
78
|
+
percentage: 15,
|
|
79
|
+
color: "bg-text-tertiary"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
statusKey: "i18n.progress.status.missing",
|
|
83
|
+
statusFallback: "Missing",
|
|
84
|
+
count: 2490,
|
|
85
|
+
percentage: 32,
|
|
86
|
+
color: "bg-status-danger-text"
|
|
87
|
+
}
|
|
88
|
+
], y = [
|
|
89
|
+
{
|
|
90
|
+
key: "totalKeys",
|
|
91
|
+
label: m("i18n.progress.stats.totalKeys", "Total Keys"),
|
|
92
|
+
value: "6,225",
|
|
93
|
+
valueClass: "text-text-primary"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
key: "translated",
|
|
97
|
+
label: m("i18n.progress.stats.translated", "Translated"),
|
|
98
|
+
value: "3,735",
|
|
99
|
+
valueClass: "text-status-success-text"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
key: "overallCoverage",
|
|
103
|
+
label: m("i18n.progress.stats.overallCoverage", "Overall Coverage"),
|
|
104
|
+
value: "68%",
|
|
105
|
+
valueClass: "text-primary"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
key: "languages",
|
|
109
|
+
label: m("i18n.progress.stats.languages", "Languages"),
|
|
110
|
+
value: "5",
|
|
111
|
+
valueClass: "text-text-primary"
|
|
112
|
+
}
|
|
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", {
|
|
115
|
+
className: "min-h-full w-full bg-bg-surface",
|
|
116
|
+
children: [/* @__PURE__ */ o("div", {
|
|
117
|
+
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
|
+
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
|
+
className: "flex items-center gap-4",
|
|
17
122
|
children: [/* @__PURE__ */ o("div", {
|
|
18
|
-
className: "flex items-center
|
|
19
|
-
children:
|
|
20
|
-
className: "
|
|
21
|
-
|
|
22
|
-
})
|
|
23
|
-
}), /* @__PURE__ */
|
|
24
|
-
className: "
|
|
25
|
-
children:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
123
|
+
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
|
+
className: "size-5",
|
|
126
|
+
"aria-hidden": "true"
|
|
127
|
+
})
|
|
128
|
+
}), /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("h1", {
|
|
129
|
+
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", {
|
|
132
|
+
className: "mt-0.5 text-sm text-text-secondary",
|
|
133
|
+
children: m("i18n.progress.subtitle", "Coverage and status across every locale")
|
|
134
|
+
})] })]
|
|
135
|
+
}), /* @__PURE__ */ o(c, {
|
|
136
|
+
primary: {
|
|
137
|
+
label: m("i18n.progress.actions.export", "Export"),
|
|
138
|
+
onSelect: () => void 0,
|
|
139
|
+
icon: /* @__PURE__ */ o(e, {
|
|
140
|
+
className: "size-4",
|
|
141
|
+
"aria-hidden": "true"
|
|
142
|
+
})
|
|
143
|
+
},
|
|
144
|
+
actions: [{
|
|
145
|
+
label: m("i18n.progress.actions.generateReport", "Generate Report"),
|
|
146
|
+
onSelect: () => void 0,
|
|
147
|
+
icon: /* @__PURE__ */ o(t, {
|
|
148
|
+
className: "size-4",
|
|
149
|
+
"aria-hidden": "true"
|
|
150
|
+
})
|
|
151
|
+
}]
|
|
152
|
+
})]
|
|
153
|
+
})
|
|
154
|
+
}), /* @__PURE__ */ s("div", {
|
|
155
|
+
className: "mx-auto max-w-screen-xl space-y-8 px-6 py-8 sm:px-8 lg:px-10",
|
|
156
|
+
children: [
|
|
157
|
+
/* @__PURE__ */ s(l, {
|
|
158
|
+
className: "flex flex-col gap-4 sm:flex-row sm:items-center",
|
|
159
|
+
children: [/* @__PURE__ */ s("div", {
|
|
160
|
+
className: "flex flex-1 items-center gap-4",
|
|
161
|
+
children: [/* @__PURE__ */ o("div", {
|
|
162
|
+
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, {
|
|
164
|
+
className: "size-7",
|
|
165
|
+
"aria-hidden": "true"
|
|
166
|
+
})
|
|
167
|
+
}), /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("p", {
|
|
168
|
+
className: "text-sm font-medium text-text-secondary",
|
|
169
|
+
children: m("i18n.progress.stats.overallCoverage", "Overall Coverage")
|
|
170
|
+
}), /* @__PURE__ */ o("p", {
|
|
171
|
+
className: "text-4xl font-bold tracking-tight text-text-primary tabular-nums",
|
|
172
|
+
children: "68%"
|
|
173
|
+
})] })]
|
|
174
|
+
}), /* @__PURE__ */ s("div", {
|
|
175
|
+
className: "flex flex-wrap gap-3 sm:justify-end",
|
|
176
|
+
children: [/* @__PURE__ */ o("div", {
|
|
177
|
+
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", {
|
|
180
|
+
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", {
|
|
182
|
+
className: "size-1.5 rounded-full bg-status-success-text motion-safe:animate-vc-glow-pulse",
|
|
183
|
+
"aria-hidden": "true"
|
|
184
|
+
}), m("i18n.progress.summary.languages", "5 languages")]
|
|
33
185
|
})]
|
|
34
186
|
})]
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
className: "
|
|
44
|
-
children:
|
|
45
|
-
}), /* @__PURE__ */ o("
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
children: c("i18n.progress.filters.groupBy.product", "Product")
|
|
57
|
-
}),
|
|
58
|
-
/* @__PURE__ */ a("option", {
|
|
59
|
-
value: "module",
|
|
60
|
-
children: c("i18n.progress.filters.groupBy.module", "Module")
|
|
61
|
-
})
|
|
62
|
-
]
|
|
63
|
-
})] }),
|
|
64
|
-
/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
|
|
65
|
-
className: "mb-1 block text-xs font-medium text-content-tertiary",
|
|
66
|
-
children: c("i18n.progress.filters.chartType", "Chart Type")
|
|
67
|
-
}), /* @__PURE__ */ o("select", {
|
|
68
|
-
value: l.chartType,
|
|
69
|
-
onChange: (e) => u({ chartType: e.target.value }),
|
|
70
|
-
className: "rounded-md border border-border bg-surface-elevated px-3 py-2 text-sm text-content-primary focus:border-accent-primary focus:outline-none focus:ring-1 focus:ring-accent-primary",
|
|
71
|
-
children: [
|
|
72
|
-
/* @__PURE__ */ a("option", {
|
|
73
|
-
value: "bar",
|
|
74
|
-
children: c("i18n.progress.filters.chartType.bar", "Bar Chart")
|
|
75
|
-
}),
|
|
76
|
-
/* @__PURE__ */ a("option", {
|
|
77
|
-
value: "pie",
|
|
78
|
-
children: c("i18n.progress.filters.chartType.pie", "Pie Chart")
|
|
79
|
-
}),
|
|
80
|
-
/* @__PURE__ */ a("option", {
|
|
81
|
-
value: "heatmap",
|
|
82
|
-
children: c("i18n.progress.filters.chartType.heatmap", "Heatmap")
|
|
83
|
-
})
|
|
84
|
-
]
|
|
85
|
-
})] }),
|
|
86
|
-
/* @__PURE__ */ o("div", {
|
|
87
|
-
className: "flex items-center gap-2",
|
|
88
|
-
children: [/* @__PURE__ */ a("input", {
|
|
89
|
-
type: "checkbox",
|
|
90
|
-
id: "show-percentages",
|
|
91
|
-
"aria-label": c("i18n.progress.filters.showPercentages", "Show Percentages"),
|
|
92
|
-
checked: l.showPercentages,
|
|
93
|
-
onChange: (e) => u({ showPercentages: e.target.checked }),
|
|
94
|
-
className: "size-4 rounded border-border text-accent-primary focus:ring-accent-primary"
|
|
95
|
-
}), /* @__PURE__ */ a("label", {
|
|
96
|
-
htmlFor: "show-percentages",
|
|
97
|
-
className: "text-sm text-content-primary",
|
|
98
|
-
children: c("i18n.progress.filters.showPercentages", "Show Percentages")
|
|
99
|
-
})]
|
|
100
|
-
})
|
|
101
|
-
]
|
|
102
|
-
})
|
|
103
|
-
}),
|
|
104
|
-
/* @__PURE__ */ o("div", {
|
|
105
|
-
className: "flex-1 overflow-auto p-6",
|
|
106
|
-
children: [
|
|
107
|
-
/* @__PURE__ */ o("div", {
|
|
108
|
-
className: "mb-6 grid grid-cols-4 gap-4",
|
|
187
|
+
}),
|
|
188
|
+
/* @__PURE__ */ o("div", {
|
|
189
|
+
className: "grid grid-cols-2 gap-4 lg:grid-cols-4",
|
|
190
|
+
children: y.map((e, t) => /* @__PURE__ */ s(u, {
|
|
191
|
+
treatment: "metric",
|
|
192
|
+
glow: t === 2,
|
|
193
|
+
className: "border-border-seam p-5",
|
|
194
|
+
children: [/* @__PURE__ */ o("p", {
|
|
195
|
+
className: "text-sm text-text-secondary",
|
|
196
|
+
children: e.label
|
|
197
|
+
}), /* @__PURE__ */ o("p", {
|
|
198
|
+
className: `mt-1 text-2xl font-bold tracking-tight tabular-nums ${e.valueClass}`,
|
|
199
|
+
children: e.value
|
|
200
|
+
})]
|
|
201
|
+
}, e.key))
|
|
202
|
+
}),
|
|
203
|
+
/* @__PURE__ */ o(f, {
|
|
204
|
+
collapsedHeight: 0,
|
|
205
|
+
label: m("i18n.progress.controls.show", "Display options"),
|
|
206
|
+
children: /* @__PURE__ */ s("div", {
|
|
207
|
+
className: "flex flex-col gap-4 pt-4 sm:flex-row sm:items-end",
|
|
109
208
|
children: [
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
209
|
+
/* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("label", {
|
|
210
|
+
htmlFor: "progress-group-by",
|
|
211
|
+
className: "mb-1 block text-xs font-medium text-text-tertiary",
|
|
212
|
+
children: m("i18n.progress.filters.groupBy", "Group By")
|
|
213
|
+
}), /* @__PURE__ */ s("select", {
|
|
214
|
+
id: "progress-group-by",
|
|
215
|
+
value: h.groupBy,
|
|
216
|
+
onChange: (e) => g({ groupBy: e.target.value }),
|
|
217
|
+
className: b,
|
|
218
|
+
children: [
|
|
219
|
+
/* @__PURE__ */ o("option", {
|
|
220
|
+
value: "language",
|
|
221
|
+
children: m("i18n.progress.filters.groupBy.language", "Language")
|
|
222
|
+
}),
|
|
223
|
+
/* @__PURE__ */ o("option", {
|
|
224
|
+
value: "product",
|
|
225
|
+
children: m("i18n.progress.filters.groupBy.product", "Product")
|
|
226
|
+
}),
|
|
227
|
+
/* @__PURE__ */ o("option", {
|
|
228
|
+
value: "module",
|
|
229
|
+
children: m("i18n.progress.filters.groupBy.module", "Module")
|
|
230
|
+
})
|
|
231
|
+
]
|
|
232
|
+
})] }),
|
|
233
|
+
/* @__PURE__ */ s("div", { children: [/* @__PURE__ */ o("label", {
|
|
234
|
+
htmlFor: "progress-chart-type",
|
|
235
|
+
className: "mb-1 block text-xs font-medium text-text-tertiary",
|
|
236
|
+
children: m("i18n.progress.filters.chartType", "Chart Type")
|
|
237
|
+
}), /* @__PURE__ */ s("select", {
|
|
238
|
+
id: "progress-chart-type",
|
|
239
|
+
value: h.chartType,
|
|
240
|
+
onChange: (e) => g({ chartType: e.target.value }),
|
|
241
|
+
className: b,
|
|
242
|
+
children: [
|
|
243
|
+
/* @__PURE__ */ o("option", {
|
|
244
|
+
value: "bar",
|
|
245
|
+
children: m("i18n.progress.filters.chartType.bar", "Bar Chart")
|
|
246
|
+
}),
|
|
247
|
+
/* @__PURE__ */ o("option", {
|
|
248
|
+
value: "pie",
|
|
249
|
+
children: m("i18n.progress.filters.chartType.pie", "Pie Chart")
|
|
250
|
+
}),
|
|
251
|
+
/* @__PURE__ */ o("option", {
|
|
252
|
+
value: "heatmap",
|
|
253
|
+
children: m("i18n.progress.filters.chartType.heatmap", "Heatmap")
|
|
254
|
+
})
|
|
255
|
+
]
|
|
256
|
+
})] }),
|
|
257
|
+
/* @__PURE__ */ s("div", {
|
|
258
|
+
className: "flex items-center gap-2 pb-2",
|
|
259
|
+
children: [/* @__PURE__ */ o("input", {
|
|
260
|
+
type: "checkbox",
|
|
261
|
+
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 }),
|
|
265
|
+
className: "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
|
|
266
|
+
}), /* @__PURE__ */ o("label", {
|
|
267
|
+
htmlFor: "show-percentages",
|
|
268
|
+
className: "text-sm text-text-primary",
|
|
269
|
+
children: m("i18n.progress.filters.showPercentages", "Show Percentages")
|
|
148
270
|
})]
|
|
149
271
|
})
|
|
150
272
|
]
|
|
151
|
-
}),
|
|
152
|
-
/* @__PURE__ */ o("div", {
|
|
153
|
-
className: "mb-6 rounded-lg border border-border bg-surface-elevated p-6",
|
|
154
|
-
children: [/* @__PURE__ */ a("h2", {
|
|
155
|
-
className: "mb-4 text-lg font-semibold text-content-primary",
|
|
156
|
-
children: c("i18n.progress.sections.coverageByLanguage", "Coverage by Language")
|
|
157
|
-
}), /* @__PURE__ */ a("div", {
|
|
158
|
-
className: "space-y-3",
|
|
159
|
-
children: [
|
|
160
|
-
{
|
|
161
|
-
languageKey: "i18n.shared.language.en",
|
|
162
|
-
languageFallback: "English (en)",
|
|
163
|
-
code: "en",
|
|
164
|
-
total: 1245,
|
|
165
|
-
translated: 1245,
|
|
166
|
-
percentage: 100
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
languageKey: "i18n.progress.languages.spanish",
|
|
170
|
-
languageFallback: "Spanish (es)",
|
|
171
|
-
code: "es",
|
|
172
|
-
total: 1245,
|
|
173
|
-
translated: 971,
|
|
174
|
-
percentage: 78
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
languageKey: "i18n.progress.languages.french",
|
|
178
|
-
languageFallback: "French (fr)",
|
|
179
|
-
code: "fr",
|
|
180
|
-
total: 1245,
|
|
181
|
-
translated: 809,
|
|
182
|
-
percentage: 65
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
languageKey: "i18n.progress.languages.german",
|
|
186
|
-
languageFallback: "German (de)",
|
|
187
|
-
code: "de",
|
|
188
|
-
total: 1245,
|
|
189
|
-
translated: 523,
|
|
190
|
-
percentage: 42
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
languageKey: "i18n.progress.languages.japanese",
|
|
194
|
-
languageFallback: "Japanese (ja)",
|
|
195
|
-
code: "ja",
|
|
196
|
-
total: 1245,
|
|
197
|
-
translated: 187,
|
|
198
|
-
percentage: 15
|
|
199
|
-
}
|
|
200
|
-
].map((e) => /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ o("div", {
|
|
201
|
-
className: "mb-1 flex items-center justify-between text-sm",
|
|
202
|
-
children: [/* @__PURE__ */ a("span", {
|
|
203
|
-
className: "text-content-primary",
|
|
204
|
-
children: c(e.languageKey, e.languageFallback)
|
|
205
|
-
}), /* @__PURE__ */ o("span", {
|
|
206
|
-
className: "text-content-tertiary",
|
|
207
|
-
children: [
|
|
208
|
-
e.translated,
|
|
209
|
-
"/",
|
|
210
|
-
e.total,
|
|
211
|
-
" (",
|
|
212
|
-
e.percentage,
|
|
213
|
-
"%)"
|
|
214
|
-
]
|
|
215
|
-
})]
|
|
216
|
-
}), /* @__PURE__ */ a("div", {
|
|
217
|
-
className: "h-2 overflow-hidden rounded-full bg-surface",
|
|
218
|
-
children: /* @__PURE__ */ a("div", {
|
|
219
|
-
className: "h-full bg-accent-primary transition-all",
|
|
220
|
-
style: { width: `${e.percentage}%` }
|
|
221
|
-
})
|
|
222
|
-
})] }, e.code))
|
|
223
|
-
})]
|
|
224
|
-
}),
|
|
225
|
-
/* @__PURE__ */ o("div", {
|
|
226
|
-
className: "rounded-lg border border-border bg-surface-elevated p-6",
|
|
227
|
-
children: [/* @__PURE__ */ a("h2", {
|
|
228
|
-
className: "mb-4 text-lg font-semibold text-content-primary",
|
|
229
|
-
children: c("i18n.progress.sections.byStatus", "By Status")
|
|
230
|
-
}), /* @__PURE__ */ a("div", {
|
|
231
|
-
className: "space-y-3",
|
|
232
|
-
children: [
|
|
233
|
-
{
|
|
234
|
-
statusKey: "i18n.progress.status.published",
|
|
235
|
-
statusFallback: "Published",
|
|
236
|
-
count: 2426,
|
|
237
|
-
percentage: 65,
|
|
238
|
-
color: "bg-success"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
statusKey: "i18n.progress.status.approved",
|
|
242
|
-
statusFallback: "Approved",
|
|
243
|
-
count: 448,
|
|
244
|
-
percentage: 12,
|
|
245
|
-
color: "bg-accent-primary"
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
statusKey: "i18n.progress.status.pendingReview",
|
|
249
|
-
statusFallback: "Pending Review",
|
|
250
|
-
count: 299,
|
|
251
|
-
percentage: 8,
|
|
252
|
-
color: "bg-warning"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
statusKey: "i18n.progress.status.draft",
|
|
256
|
-
statusFallback: "Draft",
|
|
257
|
-
count: 562,
|
|
258
|
-
percentage: 15,
|
|
259
|
-
color: "bg-content-tertiary"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
statusKey: "i18n.progress.status.missing",
|
|
263
|
-
statusFallback: "Missing",
|
|
264
|
-
count: 2490,
|
|
265
|
-
percentage: 32,
|
|
266
|
-
color: "bg-error"
|
|
267
|
-
}
|
|
268
|
-
].map((e) => /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ o("div", {
|
|
269
|
-
className: "mb-1 flex items-center justify-between text-sm",
|
|
270
|
-
children: [/* @__PURE__ */ a("span", {
|
|
271
|
-
className: "text-content-primary",
|
|
272
|
-
children: c(e.statusKey, e.statusFallback)
|
|
273
|
-
}), /* @__PURE__ */ o("span", {
|
|
274
|
-
className: "text-content-tertiary",
|
|
275
|
-
children: [
|
|
276
|
-
e.count,
|
|
277
|
-
" (",
|
|
278
|
-
e.percentage,
|
|
279
|
-
"%)"
|
|
280
|
-
]
|
|
281
|
-
})]
|
|
282
|
-
}), /* @__PURE__ */ a("div", {
|
|
283
|
-
className: "h-2 overflow-hidden rounded-full bg-surface",
|
|
284
|
-
children: /* @__PURE__ */ a("div", {
|
|
285
|
-
className: `h-full transition-all ${e.color}`,
|
|
286
|
-
style: { width: `${e.percentage}%` }
|
|
287
|
-
})
|
|
288
|
-
})] }, e.statusKey))
|
|
289
|
-
})]
|
|
290
273
|
})
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
274
|
+
}),
|
|
275
|
+
/* @__PURE__ */ s(u, {
|
|
276
|
+
treatment: "plain",
|
|
277
|
+
className: "border-border-seam p-6",
|
|
278
|
+
children: [/* @__PURE__ */ o("h2", {
|
|
279
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
280
|
+
children: m("i18n.progress.sections.coverageByLanguage", "Coverage by Language")
|
|
281
|
+
}), /* @__PURE__ */ o("div", {
|
|
282
|
+
className: "space-y-3",
|
|
283
|
+
children: _.map((e) => /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ s("div", {
|
|
284
|
+
className: "mb-1 flex items-center justify-between text-sm",
|
|
285
|
+
children: [/* @__PURE__ */ o("span", {
|
|
286
|
+
className: "text-text-primary",
|
|
287
|
+
children: m(e.languageKey, e.languageFallback)
|
|
288
|
+
}), /* @__PURE__ */ s("span", {
|
|
289
|
+
className: "text-text-tertiary tabular-nums",
|
|
290
|
+
children: [
|
|
291
|
+
e.translated,
|
|
292
|
+
"/",
|
|
293
|
+
e.total,
|
|
294
|
+
" (",
|
|
295
|
+
e.percentage,
|
|
296
|
+
"%)"
|
|
297
|
+
]
|
|
298
|
+
})]
|
|
299
|
+
}), /* @__PURE__ */ o("div", {
|
|
300
|
+
className: "h-2 overflow-hidden rounded-full bg-bg-sunken",
|
|
301
|
+
role: "progressbar",
|
|
302
|
+
"aria-valuenow": e.percentage,
|
|
303
|
+
"aria-valuemin": 0,
|
|
304
|
+
"aria-valuemax": 100,
|
|
305
|
+
"aria-label": m(e.languageKey, e.languageFallback),
|
|
306
|
+
children: /* @__PURE__ */ o("div", {
|
|
307
|
+
className: "h-full rounded-full bg-action-primary-bg shadow-[var(--shadow-glow)] transition-all",
|
|
308
|
+
style: { width: `${e.percentage}%` }
|
|
309
|
+
})
|
|
310
|
+
})] }, e.code))
|
|
311
|
+
})]
|
|
312
|
+
}),
|
|
313
|
+
/* @__PURE__ */ s(u, {
|
|
314
|
+
treatment: "plain",
|
|
315
|
+
className: "border-border-seam p-6",
|
|
316
|
+
children: [/* @__PURE__ */ o("h2", {
|
|
317
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
318
|
+
children: m("i18n.progress.sections.byStatus", "By Status")
|
|
319
|
+
}), /* @__PURE__ */ o("div", {
|
|
320
|
+
className: "space-y-3",
|
|
321
|
+
children: v.map((e) => /* @__PURE__ */ s("div", { children: [/* @__PURE__ */ s("div", {
|
|
322
|
+
className: "mb-1 flex items-center justify-between text-sm",
|
|
323
|
+
children: [/* @__PURE__ */ o("span", {
|
|
324
|
+
className: "text-text-primary",
|
|
325
|
+
children: m(e.statusKey, e.statusFallback)
|
|
326
|
+
}), /* @__PURE__ */ s("span", {
|
|
327
|
+
className: "text-text-tertiary tabular-nums",
|
|
328
|
+
children: [
|
|
329
|
+
e.count,
|
|
330
|
+
" (",
|
|
331
|
+
e.percentage,
|
|
332
|
+
"%)"
|
|
333
|
+
]
|
|
334
|
+
})]
|
|
335
|
+
}), /* @__PURE__ */ o("div", {
|
|
336
|
+
className: "h-2 overflow-hidden rounded-full bg-bg-sunken",
|
|
337
|
+
role: "progressbar",
|
|
338
|
+
"aria-valuenow": e.percentage,
|
|
339
|
+
"aria-valuemin": 0,
|
|
340
|
+
"aria-valuemax": 100,
|
|
341
|
+
"aria-label": m(e.statusKey, e.statusFallback),
|
|
342
|
+
children: /* @__PURE__ */ o("div", {
|
|
343
|
+
className: `h-full rounded-full transition-all ${e.color}`,
|
|
344
|
+
style: { width: `${e.percentage}%` }
|
|
345
|
+
})
|
|
346
|
+
})] }, e.statusKey))
|
|
347
|
+
})]
|
|
348
|
+
})
|
|
349
|
+
]
|
|
350
|
+
})]
|
|
294
351
|
});
|
|
295
352
|
};
|
|
296
353
|
//#endregion
|
|
297
|
-
export {
|
|
354
|
+
export { p as ProgressDashboardPage };
|