@burdenoff/microfe-i18n 2026.510.107
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.d.ts +34 -0
- package/dist/i18n/I18nRoot.d.ts.map +1 -0
- package/dist/i18n/I18nRoot.js +103 -0
- package/dist/i18n/I18nRoutes.d.ts +24 -0
- package/dist/i18n/I18nRoutes.d.ts.map +1 -0
- package/dist/i18n/I18nRoutes.js +82 -0
- package/dist/i18n/index.d.ts +40 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/pages/ImportExportPage.d.ts +10 -0
- package/dist/i18n/pages/ImportExportPage.d.ts.map +1 -0
- package/dist/i18n/pages/ImportExportPage.js +368 -0
- package/dist/i18n/pages/LanguagesListPage.d.ts +8 -0
- package/dist/i18n/pages/LanguagesListPage.d.ts.map +1 -0
- package/dist/i18n/pages/LanguagesListPage.js +148 -0
- package/dist/i18n/pages/LocaleConfigPage.d.ts +8 -0
- package/dist/i18n/pages/LocaleConfigPage.d.ts.map +1 -0
- package/dist/i18n/pages/LocaleConfigPage.js +318 -0
- package/dist/i18n/pages/ProductsListPage.d.ts +8 -0
- package/dist/i18n/pages/ProductsListPage.d.ts.map +1 -0
- package/dist/i18n/pages/ProductsListPage.js +131 -0
- package/dist/i18n/pages/ProgressDashboardPage.d.ts +8 -0
- package/dist/i18n/pages/ProgressDashboardPage.d.ts.map +1 -0
- package/dist/i18n/pages/ProgressDashboardPage.js +294 -0
- package/dist/i18n/pages/ReviewQueuePage.d.ts +8 -0
- package/dist/i18n/pages/ReviewQueuePage.d.ts.map +1 -0
- package/dist/i18n/pages/ReviewQueuePage.js +209 -0
- package/dist/i18n/pages/TranslationEditorPage.d.ts +8 -0
- package/dist/i18n/pages/TranslationEditorPage.d.ts.map +1 -0
- package/dist/i18n/pages/TranslationEditorPage.js +243 -0
- package/dist/i18n/providers/I18nProvider.d.ts +21 -0
- package/dist/i18n/providers/I18nProvider.d.ts.map +1 -0
- package/dist/i18n/providers/I18nProvider.js +45 -0
- package/dist/i18n/store/i18nStore.d.ts +46 -0
- package/dist/i18n/store/i18nStore.d.ts.map +1 -0
- package/dist/i18n/store/i18nStore.js +103 -0
- package/dist/i18n/types/index.d.ts +323 -0
- package/dist/i18n/types/index.d.ts.map +1 -0
- package/dist/i18n/utils/i18n.d.ts +3 -0
- package/dist/i18n/utils/i18n.d.ts.map +1 -0
- package/dist/i18n/utils/i18n.js +9 -0
- package/dist/i18n.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +8 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +8 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +26 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check-big.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-x.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/download.js +21 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/file-text.js +26 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/globe.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/languages.js +30 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/message-square.js +8 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/package.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/save.js +18 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/search.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/send.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.js +32 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/trending-up.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/upload.js +21 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +4 -0
- package/dist/utils/nativeBridge.d.ts +3 -0
- package/dist/utils/nativeBridge.d.ts.map +1 -0
- package/package.json +93 -0
|
@@ -0,0 +1,294 @@
|
|
|
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 { TrendingUp as n } from "../../node_modules/lucide-react/dist/esm/icons/trending-up.js";
|
|
4
|
+
import { useI18n as r } from "../providers/I18nProvider.js";
|
|
5
|
+
import { useI18nStore as i } from "../store/i18nStore.js";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
//#region src/i18n/pages/ProgressDashboardPage.tsx
|
|
8
|
+
var s = () => {
|
|
9
|
+
let { t: s } = r(), c = (e, t, n) => s(e, t, n), { progressView: l, updateProgressView: u } = i();
|
|
10
|
+
return /* @__PURE__ */ o("div", {
|
|
11
|
+
className: "flex h-full flex-col",
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ a("div", {
|
|
14
|
+
className: "border-b border-border bg-surface-elevated p-6",
|
|
15
|
+
children: /* @__PURE__ */ o("div", {
|
|
16
|
+
className: "flex items-center justify-between",
|
|
17
|
+
children: [/* @__PURE__ */ o("div", {
|
|
18
|
+
className: "flex items-center gap-3",
|
|
19
|
+
children: [/* @__PURE__ */ a(n, { className: "size-6 text-accent-primary" }), /* @__PURE__ */ a("h1", {
|
|
20
|
+
className: "text-2xl font-semibold text-content-primary",
|
|
21
|
+
children: c("i18n.progress.title", "Translation Progress")
|
|
22
|
+
})]
|
|
23
|
+
}), /* @__PURE__ */ o("div", {
|
|
24
|
+
className: "flex items-center gap-2",
|
|
25
|
+
children: [/* @__PURE__ */ o("button", {
|
|
26
|
+
className: "flex items-center gap-2 rounded-md border border-border bg-surface px-4 py-2 text-sm font-medium text-content-primary hover:bg-surface-elevated",
|
|
27
|
+
children: [/* @__PURE__ */ a(t, { className: "size-4" }), c("i18n.progress.actions.generateReport", "Generate Report")]
|
|
28
|
+
}), /* @__PURE__ */ o("button", {
|
|
29
|
+
className: "flex items-center gap-2 rounded-md bg-accent-primary px-4 py-2 text-sm font-medium text-white hover:bg-accent-primary-hover",
|
|
30
|
+
children: [/* @__PURE__ */ a(e, { className: "size-4" }), c("i18n.progress.actions.export", "Export")]
|
|
31
|
+
})]
|
|
32
|
+
})]
|
|
33
|
+
})
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ a("div", {
|
|
36
|
+
className: "border-b border-border bg-surface p-4",
|
|
37
|
+
children: /* @__PURE__ */ o("div", {
|
|
38
|
+
className: "flex items-center gap-4",
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
|
|
41
|
+
className: "mb-1 block text-xs font-medium text-content-tertiary",
|
|
42
|
+
children: c("i18n.progress.filters.groupBy", "Group By")
|
|
43
|
+
}), /* @__PURE__ */ o("select", {
|
|
44
|
+
value: l.groupBy,
|
|
45
|
+
onChange: (e) => u({ groupBy: e.target.value }),
|
|
46
|
+
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",
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ a("option", {
|
|
49
|
+
value: "language",
|
|
50
|
+
children: c("i18n.progress.filters.groupBy.language", "Language")
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ a("option", {
|
|
53
|
+
value: "product",
|
|
54
|
+
children: c("i18n.progress.filters.groupBy.product", "Product")
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ a("option", {
|
|
57
|
+
value: "module",
|
|
58
|
+
children: c("i18n.progress.filters.groupBy.module", "Module")
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
})] }),
|
|
62
|
+
/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("label", {
|
|
63
|
+
className: "mb-1 block text-xs font-medium text-content-tertiary",
|
|
64
|
+
children: c("i18n.progress.filters.chartType", "Chart Type")
|
|
65
|
+
}), /* @__PURE__ */ o("select", {
|
|
66
|
+
value: l.chartType,
|
|
67
|
+
onChange: (e) => u({ chartType: e.target.value }),
|
|
68
|
+
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",
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ a("option", {
|
|
71
|
+
value: "bar",
|
|
72
|
+
children: c("i18n.progress.filters.chartType.bar", "Bar Chart")
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ a("option", {
|
|
75
|
+
value: "pie",
|
|
76
|
+
children: c("i18n.progress.filters.chartType.pie", "Pie Chart")
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ a("option", {
|
|
79
|
+
value: "heatmap",
|
|
80
|
+
children: c("i18n.progress.filters.chartType.heatmap", "Heatmap")
|
|
81
|
+
})
|
|
82
|
+
]
|
|
83
|
+
})] }),
|
|
84
|
+
/* @__PURE__ */ o("div", {
|
|
85
|
+
className: "flex items-center gap-2",
|
|
86
|
+
children: [/* @__PURE__ */ a("input", {
|
|
87
|
+
type: "checkbox",
|
|
88
|
+
id: "show-percentages",
|
|
89
|
+
checked: l.showPercentages,
|
|
90
|
+
onChange: (e) => u({ showPercentages: e.target.checked }),
|
|
91
|
+
className: "size-4 rounded border-border text-accent-primary focus:ring-accent-primary"
|
|
92
|
+
}), /* @__PURE__ */ a("label", {
|
|
93
|
+
htmlFor: "show-percentages",
|
|
94
|
+
className: "text-sm text-content-primary",
|
|
95
|
+
children: c("i18n.progress.filters.showPercentages", "Show Percentages")
|
|
96
|
+
})]
|
|
97
|
+
})
|
|
98
|
+
]
|
|
99
|
+
})
|
|
100
|
+
}),
|
|
101
|
+
/* @__PURE__ */ o("div", {
|
|
102
|
+
className: "flex-1 overflow-auto p-6",
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ o("div", {
|
|
105
|
+
className: "mb-6 grid grid-cols-4 gap-4",
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ o("div", {
|
|
108
|
+
className: "rounded-lg border border-border bg-surface-elevated p-4",
|
|
109
|
+
children: [/* @__PURE__ */ a("p", {
|
|
110
|
+
className: "text-sm text-content-tertiary",
|
|
111
|
+
children: c("i18n.progress.stats.totalKeys", "Total Keys")
|
|
112
|
+
}), /* @__PURE__ */ a("p", {
|
|
113
|
+
className: "mt-1 text-2xl font-semibold text-content-primary",
|
|
114
|
+
children: "6,225"
|
|
115
|
+
})]
|
|
116
|
+
}),
|
|
117
|
+
/* @__PURE__ */ o("div", {
|
|
118
|
+
className: "rounded-lg border border-border bg-surface-elevated p-4",
|
|
119
|
+
children: [/* @__PURE__ */ a("p", {
|
|
120
|
+
className: "text-sm text-content-tertiary",
|
|
121
|
+
children: c("i18n.progress.stats.translated", "Translated")
|
|
122
|
+
}), /* @__PURE__ */ a("p", {
|
|
123
|
+
className: "mt-1 text-2xl font-semibold text-success",
|
|
124
|
+
children: "3,735"
|
|
125
|
+
})]
|
|
126
|
+
}),
|
|
127
|
+
/* @__PURE__ */ o("div", {
|
|
128
|
+
className: "rounded-lg border border-border bg-surface-elevated p-4",
|
|
129
|
+
children: [/* @__PURE__ */ a("p", {
|
|
130
|
+
className: "text-sm text-content-tertiary",
|
|
131
|
+
children: c("i18n.progress.stats.overallCoverage", "Overall Coverage")
|
|
132
|
+
}), /* @__PURE__ */ a("p", {
|
|
133
|
+
className: "mt-1 text-2xl font-semibold text-accent-primary",
|
|
134
|
+
children: "68%"
|
|
135
|
+
})]
|
|
136
|
+
}),
|
|
137
|
+
/* @__PURE__ */ o("div", {
|
|
138
|
+
className: "rounded-lg border border-border bg-surface-elevated p-4",
|
|
139
|
+
children: [/* @__PURE__ */ a("p", {
|
|
140
|
+
className: "text-sm text-content-tertiary",
|
|
141
|
+
children: c("i18n.progress.stats.languages", "Languages")
|
|
142
|
+
}), /* @__PURE__ */ a("p", {
|
|
143
|
+
className: "mt-1 text-2xl font-semibold text-content-primary",
|
|
144
|
+
children: "5"
|
|
145
|
+
})]
|
|
146
|
+
})
|
|
147
|
+
]
|
|
148
|
+
}),
|
|
149
|
+
/* @__PURE__ */ o("div", {
|
|
150
|
+
className: "mb-6 rounded-lg border border-border bg-surface-elevated p-6",
|
|
151
|
+
children: [/* @__PURE__ */ a("h2", {
|
|
152
|
+
className: "mb-4 text-lg font-semibold text-content-primary",
|
|
153
|
+
children: c("i18n.progress.sections.coverageByLanguage", "Coverage by Language")
|
|
154
|
+
}), /* @__PURE__ */ a("div", {
|
|
155
|
+
className: "space-y-3",
|
|
156
|
+
children: [
|
|
157
|
+
{
|
|
158
|
+
languageKey: "i18n.shared.language.en",
|
|
159
|
+
languageFallback: "English (en)",
|
|
160
|
+
code: "en",
|
|
161
|
+
total: 1245,
|
|
162
|
+
translated: 1245,
|
|
163
|
+
percentage: 100
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
languageKey: "i18n.progress.languages.spanish",
|
|
167
|
+
languageFallback: "Spanish (es)",
|
|
168
|
+
code: "es",
|
|
169
|
+
total: 1245,
|
|
170
|
+
translated: 971,
|
|
171
|
+
percentage: 78
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
languageKey: "i18n.progress.languages.french",
|
|
175
|
+
languageFallback: "French (fr)",
|
|
176
|
+
code: "fr",
|
|
177
|
+
total: 1245,
|
|
178
|
+
translated: 809,
|
|
179
|
+
percentage: 65
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
languageKey: "i18n.progress.languages.german",
|
|
183
|
+
languageFallback: "German (de)",
|
|
184
|
+
code: "de",
|
|
185
|
+
total: 1245,
|
|
186
|
+
translated: 523,
|
|
187
|
+
percentage: 42
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
languageKey: "i18n.progress.languages.japanese",
|
|
191
|
+
languageFallback: "Japanese (ja)",
|
|
192
|
+
code: "ja",
|
|
193
|
+
total: 1245,
|
|
194
|
+
translated: 187,
|
|
195
|
+
percentage: 15
|
|
196
|
+
}
|
|
197
|
+
].map((e) => /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ o("div", {
|
|
198
|
+
className: "mb-1 flex items-center justify-between text-sm",
|
|
199
|
+
children: [/* @__PURE__ */ a("span", {
|
|
200
|
+
className: "text-content-primary",
|
|
201
|
+
children: c(e.languageKey, e.languageFallback)
|
|
202
|
+
}), /* @__PURE__ */ o("span", {
|
|
203
|
+
className: "text-content-tertiary",
|
|
204
|
+
children: [
|
|
205
|
+
e.translated,
|
|
206
|
+
"/",
|
|
207
|
+
e.total,
|
|
208
|
+
" (",
|
|
209
|
+
e.percentage,
|
|
210
|
+
"%)"
|
|
211
|
+
]
|
|
212
|
+
})]
|
|
213
|
+
}), /* @__PURE__ */ a("div", {
|
|
214
|
+
className: "h-2 overflow-hidden rounded-full bg-surface",
|
|
215
|
+
children: /* @__PURE__ */ a("div", {
|
|
216
|
+
className: "h-full bg-accent-primary transition-all",
|
|
217
|
+
style: { width: `${e.percentage}%` }
|
|
218
|
+
})
|
|
219
|
+
})] }, e.code))
|
|
220
|
+
})]
|
|
221
|
+
}),
|
|
222
|
+
/* @__PURE__ */ o("div", {
|
|
223
|
+
className: "rounded-lg border border-border bg-surface-elevated p-6",
|
|
224
|
+
children: [/* @__PURE__ */ a("h2", {
|
|
225
|
+
className: "mb-4 text-lg font-semibold text-content-primary",
|
|
226
|
+
children: c("i18n.progress.sections.byStatus", "By Status")
|
|
227
|
+
}), /* @__PURE__ */ a("div", {
|
|
228
|
+
className: "space-y-3",
|
|
229
|
+
children: [
|
|
230
|
+
{
|
|
231
|
+
statusKey: "i18n.progress.status.published",
|
|
232
|
+
statusFallback: "Published",
|
|
233
|
+
count: 2426,
|
|
234
|
+
percentage: 65,
|
|
235
|
+
color: "bg-success"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
statusKey: "i18n.progress.status.approved",
|
|
239
|
+
statusFallback: "Approved",
|
|
240
|
+
count: 448,
|
|
241
|
+
percentage: 12,
|
|
242
|
+
color: "bg-accent-primary"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
statusKey: "i18n.progress.status.pendingReview",
|
|
246
|
+
statusFallback: "Pending Review",
|
|
247
|
+
count: 299,
|
|
248
|
+
percentage: 8,
|
|
249
|
+
color: "bg-warning"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
statusKey: "i18n.progress.status.draft",
|
|
253
|
+
statusFallback: "Draft",
|
|
254
|
+
count: 562,
|
|
255
|
+
percentage: 15,
|
|
256
|
+
color: "bg-content-tertiary"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
statusKey: "i18n.progress.status.missing",
|
|
260
|
+
statusFallback: "Missing",
|
|
261
|
+
count: 2490,
|
|
262
|
+
percentage: 32,
|
|
263
|
+
color: "bg-error"
|
|
264
|
+
}
|
|
265
|
+
].map((e) => /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ o("div", {
|
|
266
|
+
className: "mb-1 flex items-center justify-between text-sm",
|
|
267
|
+
children: [/* @__PURE__ */ a("span", {
|
|
268
|
+
className: "text-content-primary",
|
|
269
|
+
children: c(e.statusKey, e.statusFallback)
|
|
270
|
+
}), /* @__PURE__ */ o("span", {
|
|
271
|
+
className: "text-content-tertiary",
|
|
272
|
+
children: [
|
|
273
|
+
e.count,
|
|
274
|
+
" (",
|
|
275
|
+
e.percentage,
|
|
276
|
+
"%)"
|
|
277
|
+
]
|
|
278
|
+
})]
|
|
279
|
+
}), /* @__PURE__ */ a("div", {
|
|
280
|
+
className: "h-2 overflow-hidden rounded-full bg-surface",
|
|
281
|
+
children: /* @__PURE__ */ a("div", {
|
|
282
|
+
className: `h-full transition-all ${e.color}`,
|
|
283
|
+
style: { width: `${e.percentage}%` }
|
|
284
|
+
})
|
|
285
|
+
})] }, e.statusKey))
|
|
286
|
+
})]
|
|
287
|
+
})
|
|
288
|
+
]
|
|
289
|
+
})
|
|
290
|
+
]
|
|
291
|
+
});
|
|
292
|
+
};
|
|
293
|
+
//#endregion
|
|
294
|
+
export { s as ProgressDashboardPage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReviewQueuePage.d.ts","sourceRoot":"","sources":["../../../src/i18n/pages/ReviewQueuePage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,EAoL7B,CAAC"}
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { CircleCheckBig as e } from "../../node_modules/lucide-react/dist/esm/icons/circle-check-big.js";
|
|
2
|
+
import { CircleX as t } from "../../node_modules/lucide-react/dist/esm/icons/circle-x.js";
|
|
3
|
+
import { MessageSquare as n } from "../../node_modules/lucide-react/dist/esm/icons/message-square.js";
|
|
4
|
+
import { useState as r } from "react";
|
|
5
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
//#region src/i18n/pages/ReviewQueuePage.tsx
|
|
7
|
+
var s = () => {
|
|
8
|
+
let [s, c] = r([]), [l, u] = r(""), [d, f] = r(!1), p = [
|
|
9
|
+
{
|
|
10
|
+
id: "1",
|
|
11
|
+
key: "auth.signIn.emailLabel",
|
|
12
|
+
sourceValue: "Email address",
|
|
13
|
+
targetValue: "Dirección de correo electrónico",
|
|
14
|
+
languageCode: "es-ES",
|
|
15
|
+
submittedBy: "maria@example.com",
|
|
16
|
+
submittedAt: "2 hours ago"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: "2",
|
|
20
|
+
key: "dashboard.welcome.message",
|
|
21
|
+
sourceValue: "Welcome back, {{name}}!",
|
|
22
|
+
targetValue: "Bienvenue, {{name}}!",
|
|
23
|
+
languageCode: "fr-FR",
|
|
24
|
+
submittedBy: "pierre@example.com",
|
|
25
|
+
submittedAt: "5 hours ago"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: "3",
|
|
29
|
+
key: "billing.plan.upgrade",
|
|
30
|
+
sourceValue: "Upgrade your plan",
|
|
31
|
+
targetValue: "Aktualisieren Sie Ihren Plan",
|
|
32
|
+
languageCode: "de-DE",
|
|
33
|
+
submittedBy: "hans@example.com",
|
|
34
|
+
submittedAt: "1 day ago"
|
|
35
|
+
}
|
|
36
|
+
], m = (e) => {
|
|
37
|
+
c((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
|
|
38
|
+
}, h = (e) => {
|
|
39
|
+
console.log(`${e} translations:`, s), c([]);
|
|
40
|
+
};
|
|
41
|
+
return /* @__PURE__ */ o("div", {
|
|
42
|
+
className: "flex h-full flex-col",
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ a("div", {
|
|
45
|
+
className: "border-b border-border bg-surface-elevated p-6",
|
|
46
|
+
children: /* @__PURE__ */ o("div", {
|
|
47
|
+
className: "flex items-center justify-between",
|
|
48
|
+
children: [/* @__PURE__ */ o("div", {
|
|
49
|
+
className: "flex items-center gap-3",
|
|
50
|
+
children: [/* @__PURE__ */ a(e, { className: "size-6 text-accent-primary" }), /* @__PURE__ */ a("h1", {
|
|
51
|
+
className: "text-2xl font-semibold text-content-primary",
|
|
52
|
+
children: "Review Queue"
|
|
53
|
+
})]
|
|
54
|
+
}), /* @__PURE__ */ a("div", {
|
|
55
|
+
className: "flex items-center gap-2",
|
|
56
|
+
children: s.length > 0 && /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o("button", {
|
|
57
|
+
onClick: () => h("approve"),
|
|
58
|
+
className: "flex items-center gap-2 rounded-md bg-success px-4 py-2 text-sm font-medium text-white hover:bg-success/90",
|
|
59
|
+
children: [
|
|
60
|
+
/* @__PURE__ */ a(e, { className: "size-4" }),
|
|
61
|
+
"Approve Selected (",
|
|
62
|
+
s.length,
|
|
63
|
+
")"
|
|
64
|
+
]
|
|
65
|
+
}), /* @__PURE__ */ o("button", {
|
|
66
|
+
onClick: () => h("reject"),
|
|
67
|
+
className: "flex items-center gap-2 rounded-md bg-error px-4 py-2 text-sm font-medium text-white hover:bg-error/90",
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ a(t, { className: "size-4" }),
|
|
70
|
+
"Reject Selected (",
|
|
71
|
+
s.length,
|
|
72
|
+
")"
|
|
73
|
+
]
|
|
74
|
+
})] })
|
|
75
|
+
})]
|
|
76
|
+
})
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ a("div", {
|
|
79
|
+
className: "border-b border-border bg-surface p-4",
|
|
80
|
+
children: /* @__PURE__ */ o("div", {
|
|
81
|
+
className: "flex items-center gap-4",
|
|
82
|
+
children: [/* @__PURE__ */ o("select", {
|
|
83
|
+
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",
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ a("option", {
|
|
86
|
+
value: "pending",
|
|
87
|
+
children: "Pending Review"
|
|
88
|
+
}),
|
|
89
|
+
/* @__PURE__ */ a("option", {
|
|
90
|
+
value: "my-assignments",
|
|
91
|
+
children: "My Assignments"
|
|
92
|
+
}),
|
|
93
|
+
/* @__PURE__ */ a("option", {
|
|
94
|
+
value: "all",
|
|
95
|
+
children: "All"
|
|
96
|
+
})
|
|
97
|
+
]
|
|
98
|
+
}), /* @__PURE__ */ o("select", {
|
|
99
|
+
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",
|
|
100
|
+
children: [
|
|
101
|
+
/* @__PURE__ */ a("option", {
|
|
102
|
+
value: "all",
|
|
103
|
+
children: "All Languages"
|
|
104
|
+
}),
|
|
105
|
+
/* @__PURE__ */ a("option", {
|
|
106
|
+
value: "es-ES",
|
|
107
|
+
children: "Spanish"
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ a("option", {
|
|
110
|
+
value: "fr-FR",
|
|
111
|
+
children: "French"
|
|
112
|
+
}),
|
|
113
|
+
/* @__PURE__ */ a("option", {
|
|
114
|
+
value: "de-DE",
|
|
115
|
+
children: "German"
|
|
116
|
+
})
|
|
117
|
+
]
|
|
118
|
+
})]
|
|
119
|
+
})
|
|
120
|
+
}),
|
|
121
|
+
/* @__PURE__ */ o("div", {
|
|
122
|
+
className: "flex-1 overflow-auto p-6",
|
|
123
|
+
children: [/* @__PURE__ */ a("div", {
|
|
124
|
+
className: "space-y-4",
|
|
125
|
+
children: p.map((r) => /* @__PURE__ */ a("div", {
|
|
126
|
+
className: "rounded-lg border border-border bg-surface-elevated p-6 transition-all hover:border-accent-primary",
|
|
127
|
+
children: /* @__PURE__ */ o("div", {
|
|
128
|
+
className: "flex items-start gap-4",
|
|
129
|
+
children: [/* @__PURE__ */ a("input", {
|
|
130
|
+
type: "checkbox",
|
|
131
|
+
checked: s.includes(r.id),
|
|
132
|
+
onChange: () => m(r.id),
|
|
133
|
+
className: "mt-1 size-4 rounded border-border text-accent-primary focus:ring-accent-primary"
|
|
134
|
+
}), /* @__PURE__ */ o("div", {
|
|
135
|
+
className: "flex-1",
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ a("div", {
|
|
138
|
+
className: "mb-3 flex items-start justify-between",
|
|
139
|
+
children: /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("h3", {
|
|
140
|
+
className: "font-medium text-content-primary",
|
|
141
|
+
children: r.key
|
|
142
|
+
}), /* @__PURE__ */ a("span", {
|
|
143
|
+
className: "mt-1 inline-block rounded bg-accent-primary/10 px-2 py-0.5 text-xs font-medium text-accent-primary",
|
|
144
|
+
children: r.languageCode
|
|
145
|
+
})] })
|
|
146
|
+
}),
|
|
147
|
+
/* @__PURE__ */ o("div", {
|
|
148
|
+
className: "space-y-3",
|
|
149
|
+
children: [/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("p", {
|
|
150
|
+
className: "mb-1 text-xs font-medium text-content-tertiary",
|
|
151
|
+
children: "Source"
|
|
152
|
+
}), /* @__PURE__ */ a("p", {
|
|
153
|
+
className: "text-sm text-content-secondary",
|
|
154
|
+
children: r.sourceValue
|
|
155
|
+
})] }), /* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("p", {
|
|
156
|
+
className: "mb-1 text-xs font-medium text-content-tertiary",
|
|
157
|
+
children: "Target"
|
|
158
|
+
}), /* @__PURE__ */ a("p", {
|
|
159
|
+
className: "text-sm text-content-primary",
|
|
160
|
+
children: r.targetValue
|
|
161
|
+
})] })]
|
|
162
|
+
}),
|
|
163
|
+
/* @__PURE__ */ o("div", {
|
|
164
|
+
className: "mt-4 flex items-center justify-between",
|
|
165
|
+
children: [/* @__PURE__ */ o("p", {
|
|
166
|
+
className: "text-xs text-content-tertiary",
|
|
167
|
+
children: [
|
|
168
|
+
"Submitted by ",
|
|
169
|
+
r.submittedBy,
|
|
170
|
+
" • ",
|
|
171
|
+
r.submittedAt
|
|
172
|
+
]
|
|
173
|
+
}), /* @__PURE__ */ o("div", {
|
|
174
|
+
className: "flex items-center gap-2",
|
|
175
|
+
children: [
|
|
176
|
+
/* @__PURE__ */ o("button", {
|
|
177
|
+
onClick: () => f(!0),
|
|
178
|
+
className: "flex items-center gap-1 rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-medium text-content-primary hover:bg-surface-elevated",
|
|
179
|
+
children: [/* @__PURE__ */ a(n, { className: "size-3" }), "Add Notes"]
|
|
180
|
+
}),
|
|
181
|
+
/* @__PURE__ */ o("button", {
|
|
182
|
+
className: "flex items-center gap-1 rounded-md bg-success px-3 py-1.5 text-xs font-medium text-white hover:bg-success/90",
|
|
183
|
+
children: [/* @__PURE__ */ a(e, { className: "size-3" }), "Approve"]
|
|
184
|
+
}),
|
|
185
|
+
/* @__PURE__ */ o("button", {
|
|
186
|
+
className: "flex items-center gap-1 rounded-md bg-error px-3 py-1.5 text-xs font-medium text-white hover:bg-error/90",
|
|
187
|
+
children: [/* @__PURE__ */ a(t, { className: "size-3" }), "Reject"]
|
|
188
|
+
})
|
|
189
|
+
]
|
|
190
|
+
})]
|
|
191
|
+
})
|
|
192
|
+
]
|
|
193
|
+
})]
|
|
194
|
+
})
|
|
195
|
+
}, r.id))
|
|
196
|
+
}), /* @__PURE__ */ o("div", {
|
|
197
|
+
className: "mt-6 text-center text-sm text-content-tertiary",
|
|
198
|
+
children: [
|
|
199
|
+
"Showing ",
|
|
200
|
+
p.length,
|
|
201
|
+
" of 47 pending reviews"
|
|
202
|
+
]
|
|
203
|
+
})]
|
|
204
|
+
})
|
|
205
|
+
]
|
|
206
|
+
});
|
|
207
|
+
};
|
|
208
|
+
//#endregion
|
|
209
|
+
export { s as ReviewQueuePage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TranslationEditorPage.d.ts","sourceRoot":"","sources":["../../../src/i18n/pages/TranslationEditorPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,EA2RnC,CAAC"}
|