@burdenoff/microfe-i18n 2026.624.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
|
@@ -3,10 +3,10 @@ import { Settings as t } from "../../node_modules/lucide-react/dist/esm/icons/se
|
|
|
3
3
|
import { Trash2 as n } from "../../node_modules/lucide-react/dist/esm/icons/trash-2.js";
|
|
4
4
|
import { useState as r } from "react";
|
|
5
5
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
-
import {
|
|
6
|
+
import { CTAOverflowMenu as o, GlassCard as s, GradientText as c, OptionalFields as l } from "@burdenoff/fe-libs/ui";
|
|
7
7
|
//#region src/i18n/pages/LocaleConfigPage.tsx
|
|
8
|
-
var
|
|
9
|
-
let [
|
|
8
|
+
var u = () => {
|
|
9
|
+
let [u, d] = r({
|
|
10
10
|
code: "es-ES",
|
|
11
11
|
name: "Spanish",
|
|
12
12
|
nativeName: "Español",
|
|
@@ -26,200 +26,222 @@ var s = () => {
|
|
|
26
26
|
few: !1,
|
|
27
27
|
many: !1
|
|
28
28
|
}
|
|
29
|
-
}),
|
|
30
|
-
|
|
29
|
+
}), f = (e, t) => {
|
|
30
|
+
d((n) => ({
|
|
31
31
|
...n,
|
|
32
32
|
[e]: t
|
|
33
33
|
}));
|
|
34
|
-
},
|
|
35
|
-
|
|
34
|
+
}, p = (e, t) => {
|
|
35
|
+
d((n) => ({
|
|
36
36
|
...n,
|
|
37
37
|
pluralRules: {
|
|
38
38
|
...n.pluralRules,
|
|
39
39
|
[e]: t
|
|
40
40
|
}
|
|
41
41
|
}));
|
|
42
|
-
}
|
|
42
|
+
}, m = () => {
|
|
43
|
+
console.log("Saving locale config:", u);
|
|
44
|
+
}, h = "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)]", g = "size-4 rounded border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]";
|
|
43
45
|
return /* @__PURE__ */ a("div", {
|
|
44
|
-
className: "flex h-full flex-col",
|
|
46
|
+
className: "flex h-full flex-col bg-bg-surface",
|
|
45
47
|
children: [/* @__PURE__ */ i("div", {
|
|
46
|
-
className: "border-b border-border-
|
|
48
|
+
className: "border-b border-border-seam bg-bg-surface px-6 py-6 sm:px-8 lg:px-10",
|
|
47
49
|
children: /* @__PURE__ */ a("div", {
|
|
48
|
-
className: "flex items-
|
|
50
|
+
className: "mx-auto flex max-w-3xl flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
|
|
49
51
|
children: [/* @__PURE__ */ a("div", {
|
|
50
|
-
className: "flex items-center gap-
|
|
51
|
-
children: [/* @__PURE__ */ i(
|
|
52
|
-
className: "
|
|
53
|
-
children:
|
|
52
|
+
className: "flex items-center gap-4",
|
|
53
|
+
children: [/* @__PURE__ */ i("div", {
|
|
54
|
+
className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
|
|
55
|
+
children: /* @__PURE__ */ i(t, {
|
|
56
|
+
className: "size-5",
|
|
57
|
+
"aria-hidden": "true"
|
|
58
|
+
})
|
|
59
|
+
}), /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ a("h1", {
|
|
60
|
+
className: "text-2xl font-bold tracking-tight text-text-primary",
|
|
61
|
+
children: ["Locale ", /* @__PURE__ */ i(c, { children: "Configuration" })]
|
|
54
62
|
}), /* @__PURE__ */ a("p", {
|
|
55
|
-
className: "mt-1 text-sm text-
|
|
63
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
56
64
|
children: [
|
|
57
|
-
|
|
65
|
+
u.name,
|
|
58
66
|
" (",
|
|
59
|
-
|
|
67
|
+
u.nativeName,
|
|
60
68
|
")"
|
|
61
69
|
]
|
|
62
70
|
})] })]
|
|
63
|
-
}), /* @__PURE__ */
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
}), /* @__PURE__ */ i(o, {
|
|
72
|
+
primary: {
|
|
73
|
+
label: "Save Changes",
|
|
74
|
+
onSelect: m,
|
|
75
|
+
icon: /* @__PURE__ */ i(e, {
|
|
76
|
+
className: "size-4",
|
|
77
|
+
"aria-hidden": "true"
|
|
78
|
+
})
|
|
79
|
+
},
|
|
80
|
+
actions: [{
|
|
81
|
+
label: "Delete Language",
|
|
82
|
+
onSelect: () => {
|
|
83
|
+
window.confirm(`Delete language "${u.name}"? This cannot be undone.`);
|
|
73
84
|
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
85
|
+
intent: "destructive",
|
|
86
|
+
icon: /* @__PURE__ */ i(n, {
|
|
87
|
+
className: "size-4",
|
|
88
|
+
"aria-hidden": "true"
|
|
89
|
+
})
|
|
90
|
+
}]
|
|
77
91
|
})]
|
|
78
92
|
})
|
|
79
93
|
}), /* @__PURE__ */ i("div", {
|
|
80
|
-
className: "flex-1 overflow-auto
|
|
94
|
+
className: "flex-1 overflow-auto px-6 py-8 sm:px-8 lg:px-10",
|
|
81
95
|
children: /* @__PURE__ */ a("div", {
|
|
82
|
-
className: "mx-auto max-w-3xl space-y-
|
|
96
|
+
className: "mx-auto max-w-3xl space-y-6",
|
|
83
97
|
children: [
|
|
84
|
-
/* @__PURE__ */ a(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
children: "
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
children: "
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
children: "
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
children: "
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
}),
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
name: "direction",
|
|
169
|
-
"aria-label": "LTR (Left to Right)",
|
|
170
|
-
checked: s.direction === "ltr",
|
|
171
|
-
onChange: () => l("direction", "ltr"),
|
|
172
|
-
className: "size-4 border-border-subtle text-accent-primary focus:ring-accent-primary"
|
|
173
|
-
}), /* @__PURE__ */ i("label", {
|
|
174
|
-
htmlFor: "ltr",
|
|
175
|
-
className: "text-sm text-content-primary",
|
|
176
|
-
children: "LTR (Left to Right)"
|
|
177
|
-
})]
|
|
98
|
+
/* @__PURE__ */ a(s, {
|
|
99
|
+
treatment: "plain",
|
|
100
|
+
className: "border-border-seam p-6",
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ i("h2", {
|
|
103
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
104
|
+
children: "Basic Information"
|
|
105
|
+
}),
|
|
106
|
+
/* @__PURE__ */ a("div", {
|
|
107
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
108
|
+
children: [
|
|
109
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
110
|
+
htmlFor: "locale-language-code",
|
|
111
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
112
|
+
children: "Language Code"
|
|
113
|
+
}), /* @__PURE__ */ i("input", {
|
|
114
|
+
id: "locale-language-code",
|
|
115
|
+
type: "text",
|
|
116
|
+
"aria-label": "Language Code",
|
|
117
|
+
value: u.code,
|
|
118
|
+
onChange: (e) => f("code", e.target.value),
|
|
119
|
+
className: h
|
|
120
|
+
})] }),
|
|
121
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
122
|
+
htmlFor: "locale-name",
|
|
123
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
124
|
+
children: "Name"
|
|
125
|
+
}), /* @__PURE__ */ i("input", {
|
|
126
|
+
id: "locale-name",
|
|
127
|
+
type: "text",
|
|
128
|
+
"aria-label": "Name",
|
|
129
|
+
value: u.name,
|
|
130
|
+
onChange: (e) => f("name", e.target.value),
|
|
131
|
+
className: h
|
|
132
|
+
})] }),
|
|
133
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
134
|
+
htmlFor: "locale-native-name",
|
|
135
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
136
|
+
children: "Native Name"
|
|
137
|
+
}), /* @__PURE__ */ i("input", {
|
|
138
|
+
id: "locale-native-name",
|
|
139
|
+
type: "text",
|
|
140
|
+
"aria-label": "Native Name",
|
|
141
|
+
value: u.nativeName,
|
|
142
|
+
onChange: (e) => f("nativeName", e.target.value),
|
|
143
|
+
className: h
|
|
144
|
+
})] }),
|
|
145
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
146
|
+
htmlFor: "locale-region",
|
|
147
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
148
|
+
children: "Region"
|
|
149
|
+
}), /* @__PURE__ */ i("input", {
|
|
150
|
+
id: "locale-region",
|
|
151
|
+
type: "text",
|
|
152
|
+
"aria-label": "Region",
|
|
153
|
+
value: u.region,
|
|
154
|
+
onChange: (e) => f("region", e.target.value),
|
|
155
|
+
className: h
|
|
156
|
+
})] })
|
|
157
|
+
]
|
|
158
|
+
}),
|
|
159
|
+
/* @__PURE__ */ a("div", {
|
|
160
|
+
className: "mt-4 flex items-center gap-2",
|
|
161
|
+
children: [/* @__PURE__ */ i("input", {
|
|
162
|
+
type: "checkbox",
|
|
163
|
+
id: "is-default",
|
|
164
|
+
"aria-label": "Set as default language",
|
|
165
|
+
checked: u.isDefault,
|
|
166
|
+
onChange: (e) => f("isDefault", e.target.checked),
|
|
167
|
+
className: g
|
|
168
|
+
}), /* @__PURE__ */ i("label", {
|
|
169
|
+
htmlFor: "is-default",
|
|
170
|
+
className: "text-sm text-text-primary",
|
|
171
|
+
children: "Set as default language"
|
|
172
|
+
})]
|
|
173
|
+
})
|
|
174
|
+
]
|
|
175
|
+
}),
|
|
176
|
+
/* @__PURE__ */ a(s, {
|
|
177
|
+
treatment: "plain",
|
|
178
|
+
className: "border-border-seam p-6",
|
|
179
|
+
children: [/* @__PURE__ */ i("h2", {
|
|
180
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
181
|
+
children: "Text Direction & Layout"
|
|
178
182
|
}), /* @__PURE__ */ a("div", {
|
|
179
|
-
className: "flex items-center gap-
|
|
180
|
-
children: [/* @__PURE__ */
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
183
|
+
className: "flex items-center gap-6",
|
|
184
|
+
children: [/* @__PURE__ */ a("div", {
|
|
185
|
+
className: "flex items-center gap-2",
|
|
186
|
+
children: [/* @__PURE__ */ i("input", {
|
|
187
|
+
type: "radio",
|
|
188
|
+
id: "ltr",
|
|
189
|
+
name: "direction",
|
|
190
|
+
"aria-label": "LTR (Left to Right)",
|
|
191
|
+
checked: u.direction === "ltr",
|
|
192
|
+
onChange: () => f("direction", "ltr"),
|
|
193
|
+
className: "size-4 border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
|
|
194
|
+
}), /* @__PURE__ */ i("label", {
|
|
195
|
+
htmlFor: "ltr",
|
|
196
|
+
className: "text-sm text-text-primary",
|
|
197
|
+
children: "LTR (Left to Right)"
|
|
198
|
+
})]
|
|
199
|
+
}), /* @__PURE__ */ a("div", {
|
|
200
|
+
className: "flex items-center gap-2",
|
|
201
|
+
children: [/* @__PURE__ */ i("input", {
|
|
202
|
+
type: "radio",
|
|
203
|
+
id: "rtl",
|
|
204
|
+
name: "direction",
|
|
205
|
+
"aria-label": "RTL (Right to Left)",
|
|
206
|
+
checked: u.direction === "rtl",
|
|
207
|
+
onChange: () => f("direction", "rtl"),
|
|
208
|
+
className: "size-4 border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
|
|
209
|
+
}), /* @__PURE__ */ i("label", {
|
|
210
|
+
htmlFor: "rtl",
|
|
211
|
+
className: "text-sm text-text-primary",
|
|
212
|
+
children: "RTL (Right to Left)"
|
|
213
|
+
})]
|
|
192
214
|
})]
|
|
193
215
|
})]
|
|
194
|
-
})
|
|
195
|
-
/* @__PURE__ */ a(
|
|
216
|
+
}),
|
|
217
|
+
/* @__PURE__ */ a(l, {
|
|
196
218
|
title: "Advanced settings",
|
|
197
219
|
description: "ICU plural-form overrides and fallback locale rules.",
|
|
198
220
|
children: [/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("h2", {
|
|
199
|
-
className: "mb-4 text-lg font-semibold text-
|
|
221
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
200
222
|
children: "Fallback Chain"
|
|
201
223
|
}), /* @__PURE__ */ a("div", {
|
|
202
224
|
className: "space-y-2",
|
|
203
225
|
children: [
|
|
204
226
|
/* @__PURE__ */ i("div", {
|
|
205
|
-
className: "rounded-lg border border-border-
|
|
227
|
+
className: "rounded-lg border border-border-seam bg-bg-elevated p-3",
|
|
206
228
|
children: /* @__PURE__ */ a("div", {
|
|
207
229
|
className: "flex items-center justify-between",
|
|
208
230
|
children: [/* @__PURE__ */ i("span", {
|
|
209
|
-
className: "text-sm text-
|
|
231
|
+
className: "text-sm text-text-primary",
|
|
210
232
|
children: "1. Spanish (es-ES)"
|
|
211
233
|
}), /* @__PURE__ */ i("span", {
|
|
212
|
-
className: "text-xs text-
|
|
234
|
+
className: "text-xs text-text-tertiary",
|
|
213
235
|
children: "Current"
|
|
214
236
|
})]
|
|
215
237
|
})
|
|
216
238
|
}),
|
|
217
|
-
|
|
218
|
-
className: "rounded-lg border border-border-
|
|
239
|
+
u.fallbackLanguages.map((e, t) => /* @__PURE__ */ i("div", {
|
|
240
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3",
|
|
219
241
|
children: /* @__PURE__ */ a("div", {
|
|
220
242
|
className: "flex items-center justify-between",
|
|
221
243
|
children: [/* @__PURE__ */ a("span", {
|
|
222
|
-
className: "text-sm text-
|
|
244
|
+
className: "text-sm text-text-primary",
|
|
223
245
|
children: [
|
|
224
246
|
t + 2,
|
|
225
247
|
".",
|
|
@@ -228,130 +250,134 @@ var s = () => {
|
|
|
228
250
|
]
|
|
229
251
|
}), /* @__PURE__ */ i("button", {
|
|
230
252
|
type: "button",
|
|
231
|
-
className: "text-xs text-
|
|
253
|
+
className: "rounded text-xs text-status-danger-text hover:underline focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]",
|
|
232
254
|
children: "Remove"
|
|
233
255
|
})]
|
|
234
256
|
})
|
|
235
257
|
}, e)),
|
|
236
258
|
/* @__PURE__ */ i("button", {
|
|
237
259
|
type: "button",
|
|
238
|
-
className: "w-full rounded-lg border-2 border-dashed border-border-
|
|
260
|
+
className: "w-full rounded-lg border-2 border-dashed border-border-seam bg-bg-surface p-3 text-sm text-text-secondary transition-colors hover:border-action-primary-bg hover:text-primary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]",
|
|
239
261
|
children: "+ Add Fallback Language"
|
|
240
262
|
})
|
|
241
263
|
]
|
|
242
264
|
})] }), /* @__PURE__ */ a("div", {
|
|
243
265
|
className: "mt-6",
|
|
244
266
|
children: [/* @__PURE__ */ i("h2", {
|
|
245
|
-
className: "mb-4 text-lg font-semibold text-
|
|
267
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
246
268
|
children: "Plural Rules (CLDR-based)"
|
|
247
269
|
}), /* @__PURE__ */ i("div", {
|
|
248
|
-
className: "grid grid-cols-
|
|
249
|
-
children: Object.entries(
|
|
250
|
-
className: "flex items-center gap-2 rounded-lg border border-border-
|
|
270
|
+
className: "grid grid-cols-2 gap-3 sm:grid-cols-3",
|
|
271
|
+
children: Object.entries(u.pluralRules).map(([e, t]) => /* @__PURE__ */ a("div", {
|
|
272
|
+
className: "flex items-center gap-2 rounded-lg border border-border-seam bg-bg-elevated p-3",
|
|
251
273
|
children: [/* @__PURE__ */ i("input", {
|
|
252
274
|
type: "checkbox",
|
|
253
275
|
id: `plural-${e}`,
|
|
254
276
|
"aria-label": `Plural form: ${e}`,
|
|
255
277
|
checked: t,
|
|
256
|
-
onChange: (t) =>
|
|
257
|
-
className:
|
|
278
|
+
onChange: (t) => p(e, t.target.checked),
|
|
279
|
+
className: g
|
|
258
280
|
}), /* @__PURE__ */ i("label", {
|
|
259
281
|
htmlFor: `plural-${e}`,
|
|
260
|
-
className: "text-sm text-
|
|
282
|
+
className: "text-sm text-text-primary",
|
|
261
283
|
children: e
|
|
262
284
|
})]
|
|
263
285
|
}, e))
|
|
264
286
|
})]
|
|
265
287
|
})]
|
|
266
288
|
}),
|
|
267
|
-
/* @__PURE__ */ a(
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
289
|
+
/* @__PURE__ */ a(s, {
|
|
290
|
+
treatment: "plain",
|
|
291
|
+
className: "border-border-seam p-6",
|
|
292
|
+
children: [/* @__PURE__ */ i("h2", {
|
|
293
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
294
|
+
children: "Formatting"
|
|
295
|
+
}), /* @__PURE__ */ a("div", {
|
|
296
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
297
|
+
children: [
|
|
298
|
+
/* @__PURE__ */ a("div", { children: [
|
|
299
|
+
/* @__PURE__ */ i("label", {
|
|
300
|
+
htmlFor: "locale-date-format",
|
|
301
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
302
|
+
children: "Date Format"
|
|
303
|
+
}),
|
|
304
|
+
/* @__PURE__ */ i("input", {
|
|
305
|
+
id: "locale-date-format",
|
|
306
|
+
type: "text",
|
|
307
|
+
"aria-label": "Date Format",
|
|
308
|
+
value: u.dateFormat,
|
|
309
|
+
onChange: (e) => f("dateFormat", e.target.value),
|
|
310
|
+
className: h
|
|
311
|
+
}),
|
|
312
|
+
/* @__PURE__ */ i("p", {
|
|
313
|
+
className: "mt-1 text-xs text-text-tertiary tabular-nums",
|
|
314
|
+
children: "Preview: 25/12/2025"
|
|
315
|
+
})
|
|
316
|
+
] }),
|
|
317
|
+
/* @__PURE__ */ a("div", { children: [
|
|
318
|
+
/* @__PURE__ */ i("label", {
|
|
319
|
+
htmlFor: "locale-time-format",
|
|
320
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
321
|
+
children: "Time Format"
|
|
322
|
+
}),
|
|
323
|
+
/* @__PURE__ */ i("input", {
|
|
324
|
+
id: "locale-time-format",
|
|
325
|
+
type: "text",
|
|
326
|
+
"aria-label": "Time Format",
|
|
327
|
+
value: u.timeFormat,
|
|
328
|
+
onChange: (e) => f("timeFormat", e.target.value),
|
|
329
|
+
className: h
|
|
330
|
+
}),
|
|
331
|
+
/* @__PURE__ */ i("p", {
|
|
332
|
+
className: "mt-1 text-xs text-text-tertiary tabular-nums",
|
|
333
|
+
children: "Preview: 14:30"
|
|
334
|
+
})
|
|
335
|
+
] }),
|
|
336
|
+
/* @__PURE__ */ a("div", { children: [
|
|
337
|
+
/* @__PURE__ */ i("label", {
|
|
338
|
+
htmlFor: "locale-number-format",
|
|
339
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
340
|
+
children: "Number Format"
|
|
341
|
+
}),
|
|
342
|
+
/* @__PURE__ */ i("input", {
|
|
343
|
+
id: "locale-number-format",
|
|
344
|
+
type: "text",
|
|
345
|
+
"aria-label": "Number Format",
|
|
346
|
+
value: u.numberFormat,
|
|
347
|
+
onChange: (e) => f("numberFormat", e.target.value),
|
|
348
|
+
className: h
|
|
349
|
+
}),
|
|
350
|
+
/* @__PURE__ */ i("p", {
|
|
351
|
+
className: "mt-1 text-xs text-text-tertiary tabular-nums",
|
|
352
|
+
children: "Preview: 1.234,56"
|
|
353
|
+
})
|
|
354
|
+
] }),
|
|
355
|
+
/* @__PURE__ */ a("div", { children: [
|
|
356
|
+
/* @__PURE__ */ i("label", {
|
|
357
|
+
htmlFor: "locale-currency-code",
|
|
358
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
359
|
+
children: "Currency Code"
|
|
360
|
+
}),
|
|
361
|
+
/* @__PURE__ */ i("input", {
|
|
362
|
+
id: "locale-currency-code",
|
|
363
|
+
type: "text",
|
|
364
|
+
"aria-label": "Currency Code",
|
|
365
|
+
value: u.currencyCode,
|
|
366
|
+
onChange: (e) => f("currencyCode", e.target.value),
|
|
367
|
+
className: h
|
|
368
|
+
}),
|
|
369
|
+
/* @__PURE__ */ i("p", {
|
|
370
|
+
className: "mt-1 text-xs text-text-tertiary",
|
|
371
|
+
children: "Symbol: €"
|
|
372
|
+
})
|
|
373
|
+
] })
|
|
374
|
+
]
|
|
375
|
+
})]
|
|
376
|
+
})
|
|
351
377
|
]
|
|
352
378
|
})
|
|
353
379
|
})]
|
|
354
380
|
});
|
|
355
381
|
};
|
|
356
382
|
//#endregion
|
|
357
|
-
export {
|
|
383
|
+
export { u as LocaleConfigPage };
|