@burdenoff/microfe-i18n 2026.625.1 → 2026.625.2
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 +95 -96
- package/dist/i18n/pages/LanguagesListPage.js +72 -40
- package/dist/i18n/pages/LocaleConfigPage.js +85 -57
- package/dist/i18n/pages/ProductsListPage.js +26 -25
- package/dist/i18n/pages/ProgressDashboardPage.js +126 -101
- package/dist/i18n/pages/ReviewQueuePage.js +24 -23
- package/dist/i18n/pages/TranslationEditorPage.js +106 -78
- package/package.json +2 -2
|
@@ -6,36 +6,36 @@ import { useI18n as i } from "../providers/I18nProvider.js";
|
|
|
6
6
|
import { useI18nStore as a } from "../store/i18nStore.js";
|
|
7
7
|
import { useState as o } from "react";
|
|
8
8
|
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
9
|
-
import { CTAOverflowMenu as u, EmphasisPanel as d, GlassCard as f, GradientText as p,
|
|
9
|
+
import { CTAOverflowMenu as u, EmphasisPanel as d, GlassCard as f, GradientText as p, PagePurpose as m, ShowMore as h } from "@burdenoff/fe-libs/ui";
|
|
10
10
|
//#region src/i18n/pages/ImportExportPage.tsx
|
|
11
|
-
var
|
|
12
|
-
let { t:
|
|
11
|
+
var g = ({ mode: g }) => {
|
|
12
|
+
let { t: _ } = i(), v = (e, t, n) => _(e, t, n), { importState: y, startImport: b, resetImport: x } = a(), [S, C] = o("json"), [w, T] = o(null), E = (e) => {
|
|
13
13
|
let t = e.target.files?.[0];
|
|
14
|
-
t &&
|
|
15
|
-
}, E = () => {
|
|
16
|
-
C && (y(x, "job-123"), console.log("Starting import:", C.name, x));
|
|
14
|
+
t && T(t);
|
|
17
15
|
}, D = () => {
|
|
18
|
-
console.log("Starting
|
|
19
|
-
}, O =
|
|
16
|
+
w && (b(S, "job-123"), console.log("Starting import:", w.name, S));
|
|
17
|
+
}, O = () => {
|
|
18
|
+
console.log("Starting export:", S);
|
|
19
|
+
}, k = "w-full rounded-lg border border-border-seam bg-bg-elevated px-3 py-2 text-sm text-text-primary focus:border-action-primary-bg focus-visible:shadow-[var(--shadow-focus)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", A = "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]", j = /* @__PURE__ */ l(s, { children: [
|
|
20
20
|
/* @__PURE__ */ c("option", {
|
|
21
21
|
value: "json",
|
|
22
|
-
children:
|
|
22
|
+
children: v("i18n.shared.format.json", "JSON (i18next nested)")
|
|
23
23
|
}),
|
|
24
24
|
/* @__PURE__ */ c("option", {
|
|
25
25
|
value: "csv",
|
|
26
|
-
children:
|
|
26
|
+
children: v("i18n.shared.format.csv", "CSV")
|
|
27
27
|
}),
|
|
28
28
|
/* @__PURE__ */ c("option", {
|
|
29
29
|
value: "xlsx",
|
|
30
|
-
children:
|
|
30
|
+
children: v("i18n.shared.format.xlsx", "Excel (XLSX)")
|
|
31
31
|
}),
|
|
32
32
|
/* @__PURE__ */ c("option", {
|
|
33
33
|
value: "po",
|
|
34
|
-
children:
|
|
34
|
+
children: v("i18n.shared.format.po", "Gettext (PO)")
|
|
35
35
|
}),
|
|
36
36
|
/* @__PURE__ */ c("option", {
|
|
37
37
|
value: "xliff",
|
|
38
|
-
children:
|
|
38
|
+
children: v("i18n.shared.format.xliff", "XLIFF")
|
|
39
39
|
})
|
|
40
40
|
] });
|
|
41
41
|
return /* @__PURE__ */ l("div", {
|
|
@@ -46,29 +46,29 @@ var h = ({ mode: h }) => {
|
|
|
46
46
|
className: "mx-auto flex max-w-2xl items-center gap-4",
|
|
47
47
|
children: [/* @__PURE__ */ c("div", {
|
|
48
48
|
className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
|
|
49
|
-
children: c(
|
|
49
|
+
children: c(g === "import" ? r : t, {
|
|
50
50
|
className: "size-5",
|
|
51
51
|
"aria-hidden": "true"
|
|
52
52
|
})
|
|
53
53
|
}), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h1", {
|
|
54
54
|
className: "text-2xl font-bold tracking-tight text-text-primary",
|
|
55
|
-
children:
|
|
56
|
-
/* @__PURE__ */ c(p, { children:
|
|
55
|
+
children: g === "import" ? /* @__PURE__ */ l(s, { children: [
|
|
56
|
+
/* @__PURE__ */ c(p, { children: v("i18n.import.title.verb", "Import") }),
|
|
57
57
|
" ",
|
|
58
|
-
|
|
58
|
+
v("i18n.import.title.noun", "Translations")
|
|
59
59
|
] }) : /* @__PURE__ */ l(s, { children: [
|
|
60
|
-
/* @__PURE__ */ c(p, { children:
|
|
60
|
+
/* @__PURE__ */ c(p, { children: v("i18n.export.title.verb", "Export") }),
|
|
61
61
|
" ",
|
|
62
|
-
|
|
62
|
+
v("i18n.export.title.noun", "Translations")
|
|
63
63
|
] })
|
|
64
64
|
}), /* @__PURE__ */ c("p", {
|
|
65
65
|
className: "mt-0.5 text-sm text-text-secondary",
|
|
66
|
-
children:
|
|
66
|
+
children: g === "import" ? v("i18n.import.subtitle", "Bring translations in from a file") : v("i18n.export.subtitle", "Download translations in your chosen format")
|
|
67
67
|
})] })]
|
|
68
68
|
})
|
|
69
|
-
}), /* @__PURE__ */
|
|
70
|
-
className: "mx-auto max-w-2xl px-6 py-8 sm:px-8 lg:px-10",
|
|
71
|
-
children:
|
|
69
|
+
}), /* @__PURE__ */ l("div", {
|
|
70
|
+
className: "mx-auto max-w-2xl space-y-6 px-6 py-8 sm:px-8 lg:px-10",
|
|
71
|
+
children: [/* @__PURE__ */ c(m, { children: g === "import" ? v("i18n.import.purpose", "Bring existing translations into the system in bulk instead of typing them key by key. Upload a JSON, CSV, XLSX, PO, or XLIFF file exported from another tool or returned by a translation vendor, map it to the right product, module, and target language, and the keys and values are created or updated for you.") : v("i18n.export.purpose", "Pull translations out of the system as a downloadable file — to hand off to an external translation vendor, feed your app's build, or back up a locale. Choose a format and filter by product and language to export exactly the set of keys you need.") }), g === "import" ? /* @__PURE__ */ l("div", {
|
|
72
72
|
className: "space-y-6",
|
|
73
73
|
children: [
|
|
74
74
|
/* @__PURE__ */ c(f, {
|
|
@@ -80,26 +80,26 @@ var h = ({ mode: h }) => {
|
|
|
80
80
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
81
81
|
htmlFor: "import-format",
|
|
82
82
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
83
|
-
children:
|
|
83
|
+
children: v("i18n.import.fields.format", "Select Format")
|
|
84
84
|
}), /* @__PURE__ */ c("select", {
|
|
85
85
|
id: "import-format",
|
|
86
|
-
value:
|
|
87
|
-
onChange: (e) =>
|
|
88
|
-
className:
|
|
89
|
-
children:
|
|
86
|
+
value: S,
|
|
87
|
+
onChange: (e) => C(e.target.value),
|
|
88
|
+
className: k,
|
|
89
|
+
children: j
|
|
90
90
|
})] }),
|
|
91
91
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
92
92
|
htmlFor: "import-upload-file",
|
|
93
93
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
94
|
-
children:
|
|
94
|
+
children: v("i18n.import.fields.uploadFile", "Upload File")
|
|
95
95
|
}), /* @__PURE__ */ l("div", {
|
|
96
96
|
className: "relative rounded-lg border-2 border-dashed border-border-seam bg-bg-surface p-8 text-center transition-colors hover:border-action-primary-bg",
|
|
97
97
|
children: [
|
|
98
98
|
/* @__PURE__ */ c("input", {
|
|
99
99
|
id: "import-upload-file",
|
|
100
100
|
type: "file",
|
|
101
|
-
"aria-label":
|
|
102
|
-
onChange:
|
|
101
|
+
"aria-label": v("i18n.import.fields.uploadFile", "Upload File"),
|
|
102
|
+
onChange: E,
|
|
103
103
|
accept: ".json,.csv,.xlsx,.po,.xliff",
|
|
104
104
|
className: "absolute inset-0 cursor-pointer opacity-0"
|
|
105
105
|
}),
|
|
@@ -109,11 +109,11 @@ var h = ({ mode: h }) => {
|
|
|
109
109
|
}),
|
|
110
110
|
/* @__PURE__ */ c("p", {
|
|
111
111
|
className: "mb-1 text-sm font-medium text-text-primary",
|
|
112
|
-
children:
|
|
112
|
+
children: w ? w.name : v("i18n.import.fields.dropzonePlaceholder", "Drop file here or click to browse")
|
|
113
113
|
}),
|
|
114
114
|
/* @__PURE__ */ c("p", {
|
|
115
115
|
className: "text-xs text-text-tertiary",
|
|
116
|
-
children:
|
|
116
|
+
children: v("i18n.import.fields.supportedFormats", "Supported formats: JSON, CSV, XLSX, PO, XLIFF")
|
|
117
117
|
})
|
|
118
118
|
]
|
|
119
119
|
})] }),
|
|
@@ -122,10 +122,10 @@ var h = ({ mode: h }) => {
|
|
|
122
122
|
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
123
123
|
htmlFor: "import-product",
|
|
124
124
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
125
|
-
children:
|
|
125
|
+
children: v("i18n.import.fields.product", "Product")
|
|
126
126
|
}), /* @__PURE__ */ l("select", {
|
|
127
127
|
id: "import-product",
|
|
128
|
-
className:
|
|
128
|
+
className: k,
|
|
129
129
|
children: [
|
|
130
130
|
/* @__PURE__ */ c("option", {
|
|
131
131
|
value: "workspaces",
|
|
@@ -143,10 +143,10 @@ var h = ({ mode: h }) => {
|
|
|
143
143
|
})] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
144
144
|
htmlFor: "import-module",
|
|
145
145
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
146
|
-
children:
|
|
146
|
+
children: v("i18n.import.fields.module", "Module")
|
|
147
147
|
}), /* @__PURE__ */ l("select", {
|
|
148
148
|
id: "import-module",
|
|
149
|
-
className:
|
|
149
|
+
className: k,
|
|
150
150
|
children: [
|
|
151
151
|
/* @__PURE__ */ c("option", {
|
|
152
152
|
value: "auth",
|
|
@@ -166,31 +166,31 @@ var h = ({ mode: h }) => {
|
|
|
166
166
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
167
167
|
htmlFor: "import-target-language",
|
|
168
168
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
169
|
-
children:
|
|
169
|
+
children: v("i18n.import.fields.targetLanguage", "Target Language")
|
|
170
170
|
}), /* @__PURE__ */ l("select", {
|
|
171
171
|
id: "import-target-language",
|
|
172
|
-
className:
|
|
172
|
+
className: k,
|
|
173
173
|
children: [
|
|
174
174
|
/* @__PURE__ */ c("option", {
|
|
175
175
|
value: "es-ES",
|
|
176
|
-
children:
|
|
176
|
+
children: v("i18n.shared.language.esEs", "Spanish (es-ES)")
|
|
177
177
|
}),
|
|
178
178
|
/* @__PURE__ */ c("option", {
|
|
179
179
|
value: "fr-FR",
|
|
180
|
-
children:
|
|
180
|
+
children: v("i18n.shared.language.frFr", "French (fr-FR)")
|
|
181
181
|
}),
|
|
182
182
|
/* @__PURE__ */ c("option", {
|
|
183
183
|
value: "de-DE",
|
|
184
|
-
children:
|
|
184
|
+
children: v("i18n.shared.language.deDe", "German (de-DE)")
|
|
185
185
|
})
|
|
186
186
|
]
|
|
187
187
|
})] })
|
|
188
188
|
]
|
|
189
189
|
})
|
|
190
190
|
}),
|
|
191
|
-
/* @__PURE__ */ c(
|
|
191
|
+
/* @__PURE__ */ c(h, {
|
|
192
192
|
collapsedHeight: 0,
|
|
193
|
-
label:
|
|
193
|
+
label: v("i18n.import.options.show", "Import options"),
|
|
194
194
|
children: /* @__PURE__ */ l("div", {
|
|
195
195
|
className: "space-y-2 pt-4",
|
|
196
196
|
children: [
|
|
@@ -199,13 +199,13 @@ var h = ({ mode: h }) => {
|
|
|
199
199
|
children: [/* @__PURE__ */ c("input", {
|
|
200
200
|
type: "checkbox",
|
|
201
201
|
id: "create-namespaces",
|
|
202
|
-
"aria-label":
|
|
202
|
+
"aria-label": v("i18n.import.options.createNamespaces", "Create missing namespaces automatically"),
|
|
203
203
|
defaultChecked: !0,
|
|
204
|
-
className:
|
|
204
|
+
className: A
|
|
205
205
|
}), /* @__PURE__ */ c("label", {
|
|
206
206
|
htmlFor: "create-namespaces",
|
|
207
207
|
className: "text-sm text-text-primary",
|
|
208
|
-
children:
|
|
208
|
+
children: v("i18n.import.options.createNamespaces", "Create missing namespaces automatically")
|
|
209
209
|
})]
|
|
210
210
|
}),
|
|
211
211
|
/* @__PURE__ */ l("div", {
|
|
@@ -213,13 +213,13 @@ var h = ({ mode: h }) => {
|
|
|
213
213
|
children: [/* @__PURE__ */ c("input", {
|
|
214
214
|
type: "checkbox",
|
|
215
215
|
id: "update-existing",
|
|
216
|
-
"aria-label":
|
|
216
|
+
"aria-label": v("i18n.import.options.updateExisting", "Update existing translations"),
|
|
217
217
|
defaultChecked: !0,
|
|
218
|
-
className:
|
|
218
|
+
className: A
|
|
219
219
|
}), /* @__PURE__ */ c("label", {
|
|
220
220
|
htmlFor: "update-existing",
|
|
221
221
|
className: "text-sm text-text-primary",
|
|
222
|
-
children:
|
|
222
|
+
children: v("i18n.import.options.updateExisting", "Update existing translations")
|
|
223
223
|
})]
|
|
224
224
|
}),
|
|
225
225
|
/* @__PURE__ */ l("div", {
|
|
@@ -227,46 +227,45 @@ var h = ({ mode: h }) => {
|
|
|
227
227
|
children: [/* @__PURE__ */ c("input", {
|
|
228
228
|
type: "checkbox",
|
|
229
229
|
id: "skip-errors",
|
|
230
|
-
"aria-label":
|
|
231
|
-
className:
|
|
230
|
+
"aria-label": v("i18n.import.options.skipErrors", "Skip validation errors (import valid only)"),
|
|
231
|
+
className: A
|
|
232
232
|
}), /* @__PURE__ */ c("label", {
|
|
233
233
|
htmlFor: "skip-errors",
|
|
234
234
|
className: "text-sm text-text-primary",
|
|
235
|
-
children:
|
|
235
|
+
children: v("i18n.import.options.skipErrors", "Skip validation errors (import valid only)")
|
|
236
236
|
})]
|
|
237
237
|
})
|
|
238
238
|
]
|
|
239
239
|
})
|
|
240
240
|
}),
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
className: "border-border-seam p-4",
|
|
241
|
+
y.jobId && /* @__PURE__ */ l(d, {
|
|
242
|
+
className: "p-4",
|
|
244
243
|
children: [
|
|
245
244
|
/* @__PURE__ */ l("div", {
|
|
246
245
|
className: "mb-2 flex items-center justify-between text-sm",
|
|
247
246
|
children: [/* @__PURE__ */ c("span", {
|
|
248
247
|
className: "text-text-primary",
|
|
249
|
-
children:
|
|
248
|
+
children: v("i18n.import.progress.title", "Import Progress")
|
|
250
249
|
}), /* @__PURE__ */ l("span", {
|
|
251
250
|
className: "text-text-tertiary tabular-nums",
|
|
252
|
-
children: [
|
|
251
|
+
children: [y.progress, "%"]
|
|
253
252
|
})]
|
|
254
253
|
}),
|
|
255
254
|
/* @__PURE__ */ c("div", {
|
|
256
255
|
className: "h-2 overflow-hidden rounded-full bg-bg-sunken",
|
|
257
256
|
role: "progressbar",
|
|
258
|
-
"aria-valuenow":
|
|
257
|
+
"aria-valuenow": y.progress,
|
|
259
258
|
"aria-valuemin": 0,
|
|
260
259
|
"aria-valuemax": 100,
|
|
261
|
-
"aria-label":
|
|
260
|
+
"aria-label": v("i18n.import.progress.title", "Import Progress"),
|
|
262
261
|
children: /* @__PURE__ */ c("div", {
|
|
263
262
|
className: "h-full rounded-full bg-action-primary-bg shadow-[var(--shadow-glow)] transition-all",
|
|
264
|
-
style: { width: `${
|
|
263
|
+
style: { width: `${y.progress}%` }
|
|
265
264
|
})
|
|
266
265
|
}),
|
|
267
|
-
|
|
266
|
+
y.errors.length > 0 && /* @__PURE__ */ c("div", {
|
|
268
267
|
className: "mt-3 space-y-1",
|
|
269
|
-
children:
|
|
268
|
+
children: y.errors.map((t) => /* @__PURE__ */ l("div", {
|
|
270
269
|
className: "flex items-start gap-2 text-xs text-status-danger-text",
|
|
271
270
|
children: [/* @__PURE__ */ c(e, {
|
|
272
271
|
className: "mt-0.5 size-3 flex-shrink-0",
|
|
@@ -279,17 +278,17 @@ var h = ({ mode: h }) => {
|
|
|
279
278
|
/* @__PURE__ */ c(u, {
|
|
280
279
|
align: "start",
|
|
281
280
|
primary: {
|
|
282
|
-
label:
|
|
283
|
-
onSelect:
|
|
284
|
-
disabled: !
|
|
281
|
+
label: v("i18n.import.actions.start", "Start Import"),
|
|
282
|
+
onSelect: D,
|
|
283
|
+
disabled: !w,
|
|
285
284
|
icon: /* @__PURE__ */ c(r, {
|
|
286
285
|
className: "size-4",
|
|
287
286
|
"aria-hidden": "true"
|
|
288
287
|
})
|
|
289
288
|
},
|
|
290
|
-
actions:
|
|
291
|
-
label:
|
|
292
|
-
onSelect:
|
|
289
|
+
actions: y.jobId ? [{
|
|
290
|
+
label: v("i18n.import.actions.reset", "Reset"),
|
|
291
|
+
onSelect: x
|
|
293
292
|
}] : []
|
|
294
293
|
})
|
|
295
294
|
]
|
|
@@ -304,26 +303,26 @@ var h = ({ mode: h }) => {
|
|
|
304
303
|
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
305
304
|
htmlFor: "export-format",
|
|
306
305
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
307
|
-
children:
|
|
306
|
+
children: v("i18n.export.fields.format", "Export Format")
|
|
308
307
|
}), /* @__PURE__ */ c("select", {
|
|
309
308
|
id: "export-format",
|
|
310
|
-
value:
|
|
311
|
-
onChange: (e) =>
|
|
312
|
-
className:
|
|
313
|
-
children:
|
|
309
|
+
value: S,
|
|
310
|
+
onChange: (e) => C(e.target.value),
|
|
311
|
+
className: k,
|
|
312
|
+
children: j
|
|
314
313
|
})] }), /* @__PURE__ */ l("div", {
|
|
315
314
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
316
315
|
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
317
316
|
htmlFor: "export-product",
|
|
318
317
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
319
|
-
children:
|
|
318
|
+
children: v("i18n.export.fields.product", "Product")
|
|
320
319
|
}), /* @__PURE__ */ l("select", {
|
|
321
320
|
id: "export-product",
|
|
322
|
-
className:
|
|
321
|
+
className: k,
|
|
323
322
|
children: [
|
|
324
323
|
/* @__PURE__ */ c("option", {
|
|
325
324
|
value: "",
|
|
326
|
-
children:
|
|
325
|
+
children: v("i18n.export.fields.product.all", "All Products")
|
|
327
326
|
}),
|
|
328
327
|
/* @__PURE__ */ c("option", {
|
|
329
328
|
value: "workspaces",
|
|
@@ -337,31 +336,31 @@ var h = ({ mode: h }) => {
|
|
|
337
336
|
})] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
338
337
|
htmlFor: "export-language",
|
|
339
338
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
340
|
-
children:
|
|
339
|
+
children: v("i18n.export.fields.language", "Language")
|
|
341
340
|
}), /* @__PURE__ */ l("select", {
|
|
342
341
|
id: "export-language",
|
|
343
|
-
className:
|
|
342
|
+
className: k,
|
|
344
343
|
children: [
|
|
345
344
|
/* @__PURE__ */ c("option", {
|
|
346
345
|
value: "",
|
|
347
|
-
children:
|
|
346
|
+
children: v("i18n.export.fields.language.all", "All Languages")
|
|
348
347
|
}),
|
|
349
348
|
/* @__PURE__ */ c("option", {
|
|
350
349
|
value: "es-ES",
|
|
351
|
-
children:
|
|
350
|
+
children: v("i18n.export.fields.language.spanish", "Spanish")
|
|
352
351
|
}),
|
|
353
352
|
/* @__PURE__ */ c("option", {
|
|
354
353
|
value: "fr-FR",
|
|
355
|
-
children:
|
|
354
|
+
children: v("i18n.export.fields.language.french", "French")
|
|
356
355
|
})
|
|
357
356
|
]
|
|
358
357
|
})] })]
|
|
359
358
|
})]
|
|
360
359
|
})
|
|
361
360
|
}),
|
|
362
|
-
/* @__PURE__ */ c(
|
|
361
|
+
/* @__PURE__ */ c(h, {
|
|
363
362
|
collapsedHeight: 0,
|
|
364
|
-
label:
|
|
363
|
+
label: v("i18n.export.options.show", "Export options"),
|
|
365
364
|
children: /* @__PURE__ */ l("div", {
|
|
366
365
|
className: "space-y-2 pt-4",
|
|
367
366
|
children: [/* @__PURE__ */ l("div", {
|
|
@@ -369,25 +368,25 @@ var h = ({ mode: h }) => {
|
|
|
369
368
|
children: [/* @__PURE__ */ c("input", {
|
|
370
369
|
type: "checkbox",
|
|
371
370
|
id: "include-metadata",
|
|
372
|
-
"aria-label":
|
|
373
|
-
className:
|
|
371
|
+
"aria-label": v("i18n.export.options.includeMetadata", "Include metadata"),
|
|
372
|
+
className: A
|
|
374
373
|
}), /* @__PURE__ */ c("label", {
|
|
375
374
|
htmlFor: "include-metadata",
|
|
376
375
|
className: "text-sm text-text-primary",
|
|
377
|
-
children:
|
|
376
|
+
children: v("i18n.export.options.includeMetadata", "Include metadata")
|
|
378
377
|
})]
|
|
379
378
|
}), /* @__PURE__ */ l("div", {
|
|
380
379
|
className: "flex items-center gap-2",
|
|
381
380
|
children: [/* @__PURE__ */ c("input", {
|
|
382
381
|
type: "checkbox",
|
|
383
382
|
id: "published-only",
|
|
384
|
-
"aria-label":
|
|
383
|
+
"aria-label": v("i18n.export.options.publishedOnly", "Published translations only"),
|
|
385
384
|
defaultChecked: !0,
|
|
386
|
-
className:
|
|
385
|
+
className: A
|
|
387
386
|
}), /* @__PURE__ */ c("label", {
|
|
388
387
|
htmlFor: "published-only",
|
|
389
388
|
className: "text-sm text-text-primary",
|
|
390
|
-
children:
|
|
389
|
+
children: v("i18n.export.options.publishedOnly", "Published translations only")
|
|
391
390
|
})]
|
|
392
391
|
})]
|
|
393
392
|
})
|
|
@@ -404,18 +403,18 @@ var h = ({ mode: h }) => {
|
|
|
404
403
|
className: "text-sm",
|
|
405
404
|
children: [/* @__PURE__ */ c("p", {
|
|
406
405
|
className: "font-medium text-text-primary",
|
|
407
|
-
children:
|
|
406
|
+
children: v("i18n.export.preview.title", "Export Preview")
|
|
408
407
|
}), /* @__PURE__ */ c("p", {
|
|
409
408
|
className: "mt-1 text-text-secondary",
|
|
410
|
-
children:
|
|
409
|
+
children: v("i18n.export.preview.description", "Approximately 1,245 translation keys will be exported based on your selection.")
|
|
411
410
|
})]
|
|
412
411
|
})]
|
|
413
412
|
}),
|
|
414
413
|
/* @__PURE__ */ c(u, {
|
|
415
414
|
align: "start",
|
|
416
415
|
primary: {
|
|
417
|
-
label:
|
|
418
|
-
onSelect:
|
|
416
|
+
label: v("i18n.export.actions.start", "Export Translations"),
|
|
417
|
+
onSelect: O,
|
|
419
418
|
icon: /* @__PURE__ */ c(t, {
|
|
420
419
|
className: "size-4",
|
|
421
420
|
"aria-hidden": "true"
|
|
@@ -424,9 +423,9 @@ var h = ({ mode: h }) => {
|
|
|
424
423
|
actions: []
|
|
425
424
|
})
|
|
426
425
|
]
|
|
427
|
-
})
|
|
426
|
+
})]
|
|
428
427
|
})]
|
|
429
428
|
});
|
|
430
429
|
};
|
|
431
430
|
//#endregion
|
|
432
|
-
export {
|
|
431
|
+
export { g as ImportExportPage };
|