@burdenoff/microfe-i18n 2026.1115.1 → 2026.1120.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 +95 -95
- package/dist/i18n/pages/LanguagesListPage.js +49 -48
- package/dist/i18n/pages/ProductsListPage.js +2 -1
- package/dist/i18n/pages/ProgressDashboardPage.js +58 -58
- package/dist/i18n/pages/ReviewQueuePage.js +60 -59
- package/dist/i18n/pages/TranslationEditorPage.js +79 -79
- package/package.json +2 -2
|
@@ -6,34 +6,34 @@ import { useTr as i } from "../hooks/useTr.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, PagePurpose as m, ShowMore as h } from "@burdenoff/fe-libs/ui";
|
|
9
|
+
import { CTAOverflowMenu as u, EmphasisPanel as d, GlassCard as f, GradientText as p, PagePurpose as m, ShowMore as h, ThemedSelect as g } from "@burdenoff/fe-libs/ui";
|
|
10
10
|
// src/i18n/pages/ImportExportPage.tsx
|
|
11
|
-
var
|
|
12
|
-
let
|
|
11
|
+
var _ = ({ mode: _ }) => {
|
|
12
|
+
let v = i(), { 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
|
-
},
|
|
16
|
-
|
|
17
|
-
},
|
|
14
|
+
t && T(t);
|
|
15
|
+
}, D = () => {
|
|
16
|
+
w && (b(S, "job-123"), w.name);
|
|
17
|
+
}, O = () => {}, 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)] scheme-normal dark:scheme-dark [&_option]:bg-bg-surface [&_option]:text-text-primary", 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: [
|
|
18
18
|
/* @__PURE__ */ c("option", {
|
|
19
19
|
value: "json",
|
|
20
|
-
children:
|
|
20
|
+
children: v("i18n.shared.format.json", "JSON (i18next nested)")
|
|
21
21
|
}),
|
|
22
22
|
/* @__PURE__ */ c("option", {
|
|
23
23
|
value: "csv",
|
|
24
|
-
children:
|
|
24
|
+
children: v("i18n.shared.format.csv", "CSV")
|
|
25
25
|
}),
|
|
26
26
|
/* @__PURE__ */ c("option", {
|
|
27
27
|
value: "xlsx",
|
|
28
|
-
children:
|
|
28
|
+
children: v("i18n.shared.format.xlsx", "Excel (XLSX)")
|
|
29
29
|
}),
|
|
30
30
|
/* @__PURE__ */ c("option", {
|
|
31
31
|
value: "po",
|
|
32
|
-
children:
|
|
32
|
+
children: v("i18n.shared.format.po", "Gettext (PO)")
|
|
33
33
|
}),
|
|
34
34
|
/* @__PURE__ */ c("option", {
|
|
35
35
|
value: "xliff",
|
|
36
|
-
children:
|
|
36
|
+
children: v("i18n.shared.format.xliff", "XLIFF")
|
|
37
37
|
})
|
|
38
38
|
] });
|
|
39
39
|
return /* @__PURE__ */ l("div", {
|
|
@@ -44,29 +44,29 @@ var g = ({ mode: g }) => {
|
|
|
44
44
|
className: "mx-auto flex max-w-2xl items-center gap-4",
|
|
45
45
|
children: [/* @__PURE__ */ c("div", {
|
|
46
46
|
className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
|
|
47
|
-
children: c(
|
|
47
|
+
children: c(_ === "import" ? e : t, {
|
|
48
48
|
className: "size-5",
|
|
49
49
|
"aria-hidden": "true"
|
|
50
50
|
})
|
|
51
51
|
}), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("h1", {
|
|
52
52
|
className: "text-2xl font-bold tracking-tight text-text-primary",
|
|
53
|
-
children:
|
|
54
|
-
/* @__PURE__ */ c(p, { children:
|
|
53
|
+
children: _ === "import" ? /* @__PURE__ */ l(s, { children: [
|
|
54
|
+
/* @__PURE__ */ c(p, { children: v("i18n.import.title.verb", "Import") }),
|
|
55
55
|
" ",
|
|
56
|
-
|
|
56
|
+
v("i18n.import.title.noun", "Translations")
|
|
57
57
|
] }) : /* @__PURE__ */ l(s, { children: [
|
|
58
|
-
/* @__PURE__ */ c(p, { children:
|
|
58
|
+
/* @__PURE__ */ c(p, { children: v("i18n.export.title.verb", "Export") }),
|
|
59
59
|
" ",
|
|
60
|
-
|
|
60
|
+
v("i18n.export.title.noun", "Translations")
|
|
61
61
|
] })
|
|
62
62
|
}), /* @__PURE__ */ c("p", {
|
|
63
63
|
className: "mt-0.5 text-sm text-text-secondary",
|
|
64
|
-
children:
|
|
64
|
+
children: _ === "import" ? v("i18n.import.subtitle", "Bring translations in from a file") : v("i18n.export.subtitle", "Download translations in your chosen format")
|
|
65
65
|
})] })]
|
|
66
66
|
})
|
|
67
67
|
}), /* @__PURE__ */ l("div", {
|
|
68
68
|
className: "mx-auto max-w-2xl space-y-6 px-6 py-8 sm:px-8 lg:px-10",
|
|
69
|
-
children: [/* @__PURE__ */ c(m, { children:
|
|
69
|
+
children: [/* @__PURE__ */ c(m, { children: _ === "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.") }), _ === "import" ? /* @__PURE__ */ l("div", {
|
|
70
70
|
className: "space-y-6",
|
|
71
71
|
children: [
|
|
72
72
|
/* @__PURE__ */ c(f, {
|
|
@@ -78,26 +78,26 @@ var g = ({ mode: g }) => {
|
|
|
78
78
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
79
79
|
htmlFor: "import-format",
|
|
80
80
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
81
|
-
children:
|
|
82
|
-
}), /* @__PURE__ */ c(
|
|
81
|
+
children: v("i18n.import.fields.format", "Select Format")
|
|
82
|
+
}), /* @__PURE__ */ c(g, {
|
|
83
83
|
id: "import-format",
|
|
84
|
-
value:
|
|
85
|
-
onChange: (e) =>
|
|
86
|
-
className:
|
|
87
|
-
children:
|
|
84
|
+
value: S,
|
|
85
|
+
onChange: (e) => C(e.target.value),
|
|
86
|
+
className: k,
|
|
87
|
+
children: j
|
|
88
88
|
})] }),
|
|
89
89
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
90
90
|
htmlFor: "import-upload-file",
|
|
91
91
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
92
|
-
children:
|
|
92
|
+
children: v("i18n.import.fields.uploadFile", "Upload File")
|
|
93
93
|
}), /* @__PURE__ */ l("div", {
|
|
94
94
|
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",
|
|
95
95
|
children: [
|
|
96
96
|
/* @__PURE__ */ c("input", {
|
|
97
97
|
id: "import-upload-file",
|
|
98
98
|
type: "file",
|
|
99
|
-
"aria-label":
|
|
100
|
-
onChange:
|
|
99
|
+
"aria-label": v("i18n.import.fields.uploadFile", "Upload File"),
|
|
100
|
+
onChange: E,
|
|
101
101
|
accept: ".json,.csv,.xlsx,.po,.xliff",
|
|
102
102
|
className: "absolute inset-0 cursor-pointer opacity-0"
|
|
103
103
|
}),
|
|
@@ -107,11 +107,11 @@ var g = ({ mode: g }) => {
|
|
|
107
107
|
}),
|
|
108
108
|
/* @__PURE__ */ c("p", {
|
|
109
109
|
className: "mb-1 text-sm font-medium text-text-primary",
|
|
110
|
-
children:
|
|
110
|
+
children: w ? w.name : v("i18n.import.fields.dropzonePlaceholder", "Drop file here or click to browse")
|
|
111
111
|
}),
|
|
112
112
|
/* @__PURE__ */ c("p", {
|
|
113
113
|
className: "text-xs text-text-tertiary",
|
|
114
|
-
children:
|
|
114
|
+
children: v("i18n.import.fields.supportedFormats", "Supported formats: JSON, CSV, XLSX, PO, XLIFF")
|
|
115
115
|
})
|
|
116
116
|
]
|
|
117
117
|
})] }),
|
|
@@ -120,10 +120,10 @@ var g = ({ mode: g }) => {
|
|
|
120
120
|
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
121
121
|
htmlFor: "import-product",
|
|
122
122
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
123
|
-
children:
|
|
124
|
-
}), /* @__PURE__ */ l(
|
|
123
|
+
children: v("i18n.import.fields.product", "Product")
|
|
124
|
+
}), /* @__PURE__ */ l(g, {
|
|
125
125
|
id: "import-product",
|
|
126
|
-
className:
|
|
126
|
+
className: k,
|
|
127
127
|
children: [
|
|
128
128
|
/* @__PURE__ */ c("option", {
|
|
129
129
|
value: "workspaces",
|
|
@@ -141,10 +141,10 @@ var g = ({ mode: g }) => {
|
|
|
141
141
|
})] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
142
142
|
htmlFor: "import-module",
|
|
143
143
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
144
|
-
children:
|
|
145
|
-
}), /* @__PURE__ */ l(
|
|
144
|
+
children: v("i18n.import.fields.module", "Module")
|
|
145
|
+
}), /* @__PURE__ */ l(g, {
|
|
146
146
|
id: "import-module",
|
|
147
|
-
className:
|
|
147
|
+
className: k,
|
|
148
148
|
children: [
|
|
149
149
|
/* @__PURE__ */ c("option", {
|
|
150
150
|
value: "auth",
|
|
@@ -164,22 +164,22 @@ var g = ({ mode: g }) => {
|
|
|
164
164
|
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
165
165
|
htmlFor: "import-target-language",
|
|
166
166
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
167
|
-
children:
|
|
168
|
-
}), /* @__PURE__ */ l(
|
|
167
|
+
children: v("i18n.import.fields.targetLanguage", "Target Language")
|
|
168
|
+
}), /* @__PURE__ */ l(g, {
|
|
169
169
|
id: "import-target-language",
|
|
170
|
-
className:
|
|
170
|
+
className: k,
|
|
171
171
|
children: [
|
|
172
172
|
/* @__PURE__ */ c("option", {
|
|
173
173
|
value: "es-ES",
|
|
174
|
-
children:
|
|
174
|
+
children: v("i18n.shared.language.esEs", "Spanish (es-ES)")
|
|
175
175
|
}),
|
|
176
176
|
/* @__PURE__ */ c("option", {
|
|
177
177
|
value: "fr-FR",
|
|
178
|
-
children:
|
|
178
|
+
children: v("i18n.shared.language.frFr", "French (fr-FR)")
|
|
179
179
|
}),
|
|
180
180
|
/* @__PURE__ */ c("option", {
|
|
181
181
|
value: "de-DE",
|
|
182
|
-
children:
|
|
182
|
+
children: v("i18n.shared.language.deDe", "German (de-DE)")
|
|
183
183
|
})
|
|
184
184
|
]
|
|
185
185
|
})] })
|
|
@@ -188,7 +188,7 @@ var g = ({ mode: g }) => {
|
|
|
188
188
|
}),
|
|
189
189
|
/* @__PURE__ */ c(h, {
|
|
190
190
|
collapsedHeight: 0,
|
|
191
|
-
label:
|
|
191
|
+
label: v("i18n.import.options.show", "Import options"),
|
|
192
192
|
children: /* @__PURE__ */ l("div", {
|
|
193
193
|
className: "space-y-2 pt-4",
|
|
194
194
|
children: [
|
|
@@ -197,13 +197,13 @@ var g = ({ mode: g }) => {
|
|
|
197
197
|
children: [/* @__PURE__ */ c("input", {
|
|
198
198
|
type: "checkbox",
|
|
199
199
|
id: "create-namespaces",
|
|
200
|
-
"aria-label":
|
|
200
|
+
"aria-label": v("i18n.import.options.createNamespaces", "Create missing namespaces automatically"),
|
|
201
201
|
defaultChecked: !0,
|
|
202
|
-
className:
|
|
202
|
+
className: A
|
|
203
203
|
}), /* @__PURE__ */ c("label", {
|
|
204
204
|
htmlFor: "create-namespaces",
|
|
205
205
|
className: "text-sm text-text-primary",
|
|
206
|
-
children:
|
|
206
|
+
children: v("i18n.import.options.createNamespaces", "Create missing namespaces automatically")
|
|
207
207
|
})]
|
|
208
208
|
}),
|
|
209
209
|
/* @__PURE__ */ l("div", {
|
|
@@ -211,13 +211,13 @@ var g = ({ mode: g }) => {
|
|
|
211
211
|
children: [/* @__PURE__ */ c("input", {
|
|
212
212
|
type: "checkbox",
|
|
213
213
|
id: "update-existing",
|
|
214
|
-
"aria-label":
|
|
214
|
+
"aria-label": v("i18n.import.options.updateExisting", "Update existing translations"),
|
|
215
215
|
defaultChecked: !0,
|
|
216
|
-
className:
|
|
216
|
+
className: A
|
|
217
217
|
}), /* @__PURE__ */ c("label", {
|
|
218
218
|
htmlFor: "update-existing",
|
|
219
219
|
className: "text-sm text-text-primary",
|
|
220
|
-
children:
|
|
220
|
+
children: v("i18n.import.options.updateExisting", "Update existing translations")
|
|
221
221
|
})]
|
|
222
222
|
}),
|
|
223
223
|
/* @__PURE__ */ l("div", {
|
|
@@ -225,45 +225,45 @@ var g = ({ mode: g }) => {
|
|
|
225
225
|
children: [/* @__PURE__ */ c("input", {
|
|
226
226
|
type: "checkbox",
|
|
227
227
|
id: "skip-errors",
|
|
228
|
-
"aria-label":
|
|
229
|
-
className:
|
|
228
|
+
"aria-label": v("i18n.import.options.skipErrors", "Skip validation errors (import valid only)"),
|
|
229
|
+
className: A
|
|
230
230
|
}), /* @__PURE__ */ c("label", {
|
|
231
231
|
htmlFor: "skip-errors",
|
|
232
232
|
className: "text-sm text-text-primary",
|
|
233
|
-
children:
|
|
233
|
+
children: v("i18n.import.options.skipErrors", "Skip validation errors (import valid only)")
|
|
234
234
|
})]
|
|
235
235
|
})
|
|
236
236
|
]
|
|
237
237
|
})
|
|
238
238
|
}),
|
|
239
|
-
|
|
239
|
+
y.jobId && /* @__PURE__ */ l(d, {
|
|
240
240
|
className: "p-4",
|
|
241
241
|
children: [
|
|
242
242
|
/* @__PURE__ */ l("div", {
|
|
243
243
|
className: "mb-2 flex items-center justify-between text-sm",
|
|
244
244
|
children: [/* @__PURE__ */ c("span", {
|
|
245
245
|
className: "text-text-primary",
|
|
246
|
-
children:
|
|
246
|
+
children: v("i18n.import.progress.title", "Import Progress")
|
|
247
247
|
}), /* @__PURE__ */ l("span", {
|
|
248
248
|
className: "text-text-tertiary tabular-nums",
|
|
249
|
-
children: [
|
|
249
|
+
children: [y.progress, "%"]
|
|
250
250
|
})]
|
|
251
251
|
}),
|
|
252
252
|
/* @__PURE__ */ c("div", {
|
|
253
253
|
className: "h-2 overflow-hidden rounded-full bg-bg-sunken",
|
|
254
254
|
role: "progressbar",
|
|
255
|
-
"aria-valuenow":
|
|
255
|
+
"aria-valuenow": y.progress,
|
|
256
256
|
"aria-valuemin": 0,
|
|
257
257
|
"aria-valuemax": 100,
|
|
258
|
-
"aria-label":
|
|
258
|
+
"aria-label": v("i18n.import.progress.title", "Import Progress"),
|
|
259
259
|
children: /* @__PURE__ */ c("div", {
|
|
260
260
|
className: "h-full rounded-full bg-action-primary-bg shadow-[var(--shadow-glow)] transition-all",
|
|
261
|
-
style: { width: `${
|
|
261
|
+
style: { width: `${y.progress}%` }
|
|
262
262
|
})
|
|
263
263
|
}),
|
|
264
|
-
|
|
264
|
+
y.errors.length > 0 && /* @__PURE__ */ c("div", {
|
|
265
265
|
className: "mt-3 space-y-1",
|
|
266
|
-
children:
|
|
266
|
+
children: y.errors.map((e) => /* @__PURE__ */ l("div", {
|
|
267
267
|
className: "flex items-start gap-2 text-xs text-status-danger-text",
|
|
268
268
|
children: [/* @__PURE__ */ c(r, {
|
|
269
269
|
className: "mt-0.5 size-3 flex-shrink-0",
|
|
@@ -276,17 +276,17 @@ var g = ({ mode: g }) => {
|
|
|
276
276
|
/* @__PURE__ */ c(u, {
|
|
277
277
|
align: "start",
|
|
278
278
|
primary: {
|
|
279
|
-
label:
|
|
280
|
-
onSelect:
|
|
281
|
-
disabled: !
|
|
279
|
+
label: v("i18n.import.actions.start", "Start Import"),
|
|
280
|
+
onSelect: D,
|
|
281
|
+
disabled: !w,
|
|
282
282
|
icon: /* @__PURE__ */ c(e, {
|
|
283
283
|
className: "size-4",
|
|
284
284
|
"aria-hidden": "true"
|
|
285
285
|
})
|
|
286
286
|
},
|
|
287
|
-
actions:
|
|
288
|
-
label:
|
|
289
|
-
onSelect:
|
|
287
|
+
actions: y.jobId ? [{
|
|
288
|
+
label: v("i18n.import.actions.reset", "Reset"),
|
|
289
|
+
onSelect: x
|
|
290
290
|
}] : []
|
|
291
291
|
})
|
|
292
292
|
]
|
|
@@ -301,26 +301,26 @@ var g = ({ mode: g }) => {
|
|
|
301
301
|
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
302
302
|
htmlFor: "export-format",
|
|
303
303
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
304
|
-
children:
|
|
305
|
-
}), /* @__PURE__ */ c(
|
|
304
|
+
children: v("i18n.export.fields.format", "Export Format")
|
|
305
|
+
}), /* @__PURE__ */ c(g, {
|
|
306
306
|
id: "export-format",
|
|
307
|
-
value:
|
|
308
|
-
onChange: (e) =>
|
|
309
|
-
className:
|
|
310
|
-
children:
|
|
307
|
+
value: S,
|
|
308
|
+
onChange: (e) => C(e.target.value),
|
|
309
|
+
className: k,
|
|
310
|
+
children: j
|
|
311
311
|
})] }), /* @__PURE__ */ l("div", {
|
|
312
312
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
313
313
|
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
314
314
|
htmlFor: "export-product",
|
|
315
315
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
316
|
-
children:
|
|
317
|
-
}), /* @__PURE__ */ l(
|
|
316
|
+
children: v("i18n.export.fields.product", "Product")
|
|
317
|
+
}), /* @__PURE__ */ l(g, {
|
|
318
318
|
id: "export-product",
|
|
319
|
-
className:
|
|
319
|
+
className: k,
|
|
320
320
|
children: [
|
|
321
321
|
/* @__PURE__ */ c("option", {
|
|
322
322
|
value: "",
|
|
323
|
-
children:
|
|
323
|
+
children: v("i18n.export.fields.product.all", "All Products")
|
|
324
324
|
}),
|
|
325
325
|
/* @__PURE__ */ c("option", {
|
|
326
326
|
value: "workspaces",
|
|
@@ -334,22 +334,22 @@ var g = ({ mode: g }) => {
|
|
|
334
334
|
})] }), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
335
335
|
htmlFor: "export-language",
|
|
336
336
|
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
337
|
-
children:
|
|
338
|
-
}), /* @__PURE__ */ l(
|
|
337
|
+
children: v("i18n.export.fields.language", "Language")
|
|
338
|
+
}), /* @__PURE__ */ l(g, {
|
|
339
339
|
id: "export-language",
|
|
340
|
-
className:
|
|
340
|
+
className: k,
|
|
341
341
|
children: [
|
|
342
342
|
/* @__PURE__ */ c("option", {
|
|
343
343
|
value: "",
|
|
344
|
-
children:
|
|
344
|
+
children: v("i18n.export.fields.language.all", "All Languages")
|
|
345
345
|
}),
|
|
346
346
|
/* @__PURE__ */ c("option", {
|
|
347
347
|
value: "es-ES",
|
|
348
|
-
children:
|
|
348
|
+
children: v("i18n.export.fields.language.spanish", "Spanish")
|
|
349
349
|
}),
|
|
350
350
|
/* @__PURE__ */ c("option", {
|
|
351
351
|
value: "fr-FR",
|
|
352
|
-
children:
|
|
352
|
+
children: v("i18n.export.fields.language.french", "French")
|
|
353
353
|
})
|
|
354
354
|
]
|
|
355
355
|
})] })]
|
|
@@ -358,7 +358,7 @@ var g = ({ mode: g }) => {
|
|
|
358
358
|
}),
|
|
359
359
|
/* @__PURE__ */ c(h, {
|
|
360
360
|
collapsedHeight: 0,
|
|
361
|
-
label:
|
|
361
|
+
label: v("i18n.export.options.show", "Export options"),
|
|
362
362
|
children: /* @__PURE__ */ l("div", {
|
|
363
363
|
className: "space-y-2 pt-4",
|
|
364
364
|
children: [/* @__PURE__ */ l("div", {
|
|
@@ -366,25 +366,25 @@ var g = ({ mode: g }) => {
|
|
|
366
366
|
children: [/* @__PURE__ */ c("input", {
|
|
367
367
|
type: "checkbox",
|
|
368
368
|
id: "include-metadata",
|
|
369
|
-
"aria-label":
|
|
370
|
-
className:
|
|
369
|
+
"aria-label": v("i18n.export.options.includeMetadata", "Include metadata"),
|
|
370
|
+
className: A
|
|
371
371
|
}), /* @__PURE__ */ c("label", {
|
|
372
372
|
htmlFor: "include-metadata",
|
|
373
373
|
className: "text-sm text-text-primary",
|
|
374
|
-
children:
|
|
374
|
+
children: v("i18n.export.options.includeMetadata", "Include metadata")
|
|
375
375
|
})]
|
|
376
376
|
}), /* @__PURE__ */ l("div", {
|
|
377
377
|
className: "flex items-center gap-2",
|
|
378
378
|
children: [/* @__PURE__ */ c("input", {
|
|
379
379
|
type: "checkbox",
|
|
380
380
|
id: "published-only",
|
|
381
|
-
"aria-label":
|
|
381
|
+
"aria-label": v("i18n.export.options.publishedOnly", "Published translations only"),
|
|
382
382
|
defaultChecked: !0,
|
|
383
|
-
className:
|
|
383
|
+
className: A
|
|
384
384
|
}), /* @__PURE__ */ c("label", {
|
|
385
385
|
htmlFor: "published-only",
|
|
386
386
|
className: "text-sm text-text-primary",
|
|
387
|
-
children:
|
|
387
|
+
children: v("i18n.export.options.publishedOnly", "Published translations only")
|
|
388
388
|
})]
|
|
389
389
|
})]
|
|
390
390
|
})
|
|
@@ -401,18 +401,18 @@ var g = ({ mode: g }) => {
|
|
|
401
401
|
className: "text-sm",
|
|
402
402
|
children: [/* @__PURE__ */ c("p", {
|
|
403
403
|
className: "font-medium text-text-primary",
|
|
404
|
-
children:
|
|
404
|
+
children: v("i18n.export.preview.title", "Export Preview")
|
|
405
405
|
}), /* @__PURE__ */ c("p", {
|
|
406
406
|
className: "mt-1 text-text-secondary",
|
|
407
|
-
children:
|
|
407
|
+
children: v("i18n.export.preview.description", "Approximately 1,245 translation keys will be exported based on your selection.")
|
|
408
408
|
})]
|
|
409
409
|
})]
|
|
410
410
|
}),
|
|
411
411
|
/* @__PURE__ */ c(u, {
|
|
412
412
|
align: "start",
|
|
413
413
|
primary: {
|
|
414
|
-
label:
|
|
415
|
-
onSelect:
|
|
414
|
+
label: v("i18n.export.actions.start", "Export Translations"),
|
|
415
|
+
onSelect: O,
|
|
416
416
|
icon: /* @__PURE__ */ c(t, {
|
|
417
417
|
className: "size-4",
|
|
418
418
|
"aria-hidden": "true"
|
|
@@ -425,4 +425,4 @@ var g = ({ mode: g }) => {
|
|
|
425
425
|
})]
|
|
426
426
|
});
|
|
427
427
|
};
|
|
428
|
-
export {
|
|
428
|
+
export { _ as ImportExportPage };
|