@burdenoff/microfe-i18n 2026.624.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 +359 -321
- package/dist/i18n/pages/LanguagesListPage.js +150 -86
- package/dist/i18n/pages/LocaleConfigPage.js +297 -243
- package/dist/i18n/pages/ProductsListPage.js +148 -84
- package/dist/i18n/pages/ProgressDashboardPage.js +365 -283
- package/dist/i18n/pages/ReviewQueuePage.js +187 -149
- package/dist/i18n/pages/TranslationEditorPage.js +205 -126
- 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, EmphasisPanel as s, GlassCard as c, GradientText as l, NextSteps as u, OptionalFields as d, PagePurpose as f } from "@burdenoff/fe-libs/ui";
|
|
7
7
|
//#region src/i18n/pages/LocaleConfigPage.tsx
|
|
8
|
-
var
|
|
9
|
-
let [
|
|
8
|
+
var p = () => {
|
|
9
|
+
let [p, m] = r({
|
|
10
10
|
code: "es-ES",
|
|
11
11
|
name: "Spanish",
|
|
12
12
|
nativeName: "Español",
|
|
@@ -26,200 +26,249 @@ var s = () => {
|
|
|
26
26
|
few: !1,
|
|
27
27
|
many: !1
|
|
28
28
|
}
|
|
29
|
-
}),
|
|
30
|
-
|
|
29
|
+
}), h = (e, t) => {
|
|
30
|
+
m((n) => ({
|
|
31
31
|
...n,
|
|
32
32
|
[e]: t
|
|
33
33
|
}));
|
|
34
|
-
},
|
|
35
|
-
|
|
34
|
+
}, g = (e, t) => {
|
|
35
|
+
m((n) => ({
|
|
36
36
|
...n,
|
|
37
37
|
pluralRules: {
|
|
38
38
|
...n.pluralRules,
|
|
39
39
|
[e]: t
|
|
40
40
|
}
|
|
41
41
|
}));
|
|
42
|
-
}
|
|
42
|
+
}, _ = () => {
|
|
43
|
+
console.log("Saving locale config:", p);
|
|
44
|
+
}, v = "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)]", y = "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(l, { 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
|
+
p.name,
|
|
58
66
|
" (",
|
|
59
|
-
|
|
67
|
+
p.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: _,
|
|
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 "${p.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__ */
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
98
|
+
/* @__PURE__ */ i(f, { children: "This is where you define how a single locale behaves — not its translations, but the rules around them: which code and region it represents, whether text flows left-to-right or right-to-left, how dates, numbers and currency are formatted, which CLDR plural forms apply, and which locales to fall back to when a string is missing. Get these right once and every translation in this language renders correctly for its users." }),
|
|
99
|
+
/* @__PURE__ */ i(u, {
|
|
100
|
+
storageKey: "i18n-locale-config",
|
|
101
|
+
steps: [
|
|
102
|
+
{
|
|
103
|
+
id: "set-default",
|
|
104
|
+
label: "Make this the default locale",
|
|
105
|
+
description: "Used as the fallback whenever a string has no translation in the requested language.",
|
|
106
|
+
done: p.isDefault,
|
|
107
|
+
onClick: () => h("isDefault", !0)
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: "check-formatting",
|
|
111
|
+
label: "Review date, number & currency formats",
|
|
112
|
+
description: "Confirm the previews match how users in this region expect to read values.",
|
|
113
|
+
onClick: () => document.getElementById("locale-formatting")?.scrollIntoView({
|
|
114
|
+
behavior: "smooth",
|
|
115
|
+
block: "start"
|
|
116
|
+
})
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: "save-config",
|
|
120
|
+
label: "Save your changes",
|
|
121
|
+
description: "Persist this locale's configuration so translations start rendering with these rules.",
|
|
122
|
+
onClick: _
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}),
|
|
126
|
+
/* @__PURE__ */ a(s, {
|
|
127
|
+
className: "p-6",
|
|
128
|
+
children: [
|
|
129
|
+
/* @__PURE__ */ i("h2", {
|
|
130
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
131
|
+
children: "Basic Information"
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ a("div", {
|
|
134
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
135
|
+
children: [
|
|
136
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
137
|
+
htmlFor: "locale-language-code",
|
|
138
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
139
|
+
children: "Language Code"
|
|
140
|
+
}), /* @__PURE__ */ i("input", {
|
|
141
|
+
id: "locale-language-code",
|
|
142
|
+
type: "text",
|
|
143
|
+
"aria-label": "Language Code",
|
|
144
|
+
value: p.code,
|
|
145
|
+
onChange: (e) => h("code", e.target.value),
|
|
146
|
+
className: v
|
|
147
|
+
})] }),
|
|
148
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
149
|
+
htmlFor: "locale-name",
|
|
150
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
151
|
+
children: "Name"
|
|
152
|
+
}), /* @__PURE__ */ i("input", {
|
|
153
|
+
id: "locale-name",
|
|
154
|
+
type: "text",
|
|
155
|
+
"aria-label": "Name",
|
|
156
|
+
value: p.name,
|
|
157
|
+
onChange: (e) => h("name", e.target.value),
|
|
158
|
+
className: v
|
|
159
|
+
})] }),
|
|
160
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
161
|
+
htmlFor: "locale-native-name",
|
|
162
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
163
|
+
children: "Native Name"
|
|
164
|
+
}), /* @__PURE__ */ i("input", {
|
|
165
|
+
id: "locale-native-name",
|
|
166
|
+
type: "text",
|
|
167
|
+
"aria-label": "Native Name",
|
|
168
|
+
value: p.nativeName,
|
|
169
|
+
onChange: (e) => h("nativeName", e.target.value),
|
|
170
|
+
className: v
|
|
171
|
+
})] }),
|
|
172
|
+
/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("label", {
|
|
173
|
+
htmlFor: "locale-region",
|
|
174
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
175
|
+
children: "Region"
|
|
176
|
+
}), /* @__PURE__ */ i("input", {
|
|
177
|
+
id: "locale-region",
|
|
178
|
+
type: "text",
|
|
179
|
+
"aria-label": "Region",
|
|
180
|
+
value: p.region,
|
|
181
|
+
onChange: (e) => h("region", e.target.value),
|
|
182
|
+
className: v
|
|
183
|
+
})] })
|
|
184
|
+
]
|
|
185
|
+
}),
|
|
186
|
+
/* @__PURE__ */ a("div", {
|
|
187
|
+
className: "mt-4 flex items-center gap-2",
|
|
188
|
+
children: [/* @__PURE__ */ i("input", {
|
|
189
|
+
type: "checkbox",
|
|
190
|
+
id: "is-default",
|
|
191
|
+
"aria-label": "Set as default language",
|
|
192
|
+
checked: p.isDefault,
|
|
193
|
+
onChange: (e) => h("isDefault", e.target.checked),
|
|
194
|
+
className: y
|
|
195
|
+
}), /* @__PURE__ */ i("label", {
|
|
196
|
+
htmlFor: "is-default",
|
|
197
|
+
className: "text-sm text-text-primary",
|
|
198
|
+
children: "Set as default language"
|
|
199
|
+
})]
|
|
200
|
+
})
|
|
201
|
+
]
|
|
202
|
+
}),
|
|
203
|
+
/* @__PURE__ */ a(c, {
|
|
204
|
+
treatment: "plain",
|
|
205
|
+
className: "border-border-seam p-6",
|
|
206
|
+
children: [/* @__PURE__ */ i("h2", {
|
|
207
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
208
|
+
children: "Text Direction & Layout"
|
|
178
209
|
}), /* @__PURE__ */ a("div", {
|
|
179
|
-
className: "flex items-center gap-
|
|
180
|
-
children: [/* @__PURE__ */
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
210
|
+
className: "flex items-center gap-6",
|
|
211
|
+
children: [/* @__PURE__ */ a("div", {
|
|
212
|
+
className: "flex items-center gap-2",
|
|
213
|
+
children: [/* @__PURE__ */ i("input", {
|
|
214
|
+
type: "radio",
|
|
215
|
+
id: "ltr",
|
|
216
|
+
name: "direction",
|
|
217
|
+
"aria-label": "LTR (Left to Right)",
|
|
218
|
+
checked: p.direction === "ltr",
|
|
219
|
+
onChange: () => h("direction", "ltr"),
|
|
220
|
+
className: "size-4 border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
|
|
221
|
+
}), /* @__PURE__ */ i("label", {
|
|
222
|
+
htmlFor: "ltr",
|
|
223
|
+
className: "text-sm text-text-primary",
|
|
224
|
+
children: "LTR (Left to Right)"
|
|
225
|
+
})]
|
|
226
|
+
}), /* @__PURE__ */ a("div", {
|
|
227
|
+
className: "flex items-center gap-2",
|
|
228
|
+
children: [/* @__PURE__ */ i("input", {
|
|
229
|
+
type: "radio",
|
|
230
|
+
id: "rtl",
|
|
231
|
+
name: "direction",
|
|
232
|
+
"aria-label": "RTL (Right to Left)",
|
|
233
|
+
checked: p.direction === "rtl",
|
|
234
|
+
onChange: () => h("direction", "rtl"),
|
|
235
|
+
className: "size-4 border-border-seam text-primary focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]"
|
|
236
|
+
}), /* @__PURE__ */ i("label", {
|
|
237
|
+
htmlFor: "rtl",
|
|
238
|
+
className: "text-sm text-text-primary",
|
|
239
|
+
children: "RTL (Right to Left)"
|
|
240
|
+
})]
|
|
192
241
|
})]
|
|
193
242
|
})]
|
|
194
|
-
})
|
|
195
|
-
/* @__PURE__ */ a(
|
|
243
|
+
}),
|
|
244
|
+
/* @__PURE__ */ a(d, {
|
|
196
245
|
title: "Advanced settings",
|
|
197
246
|
description: "ICU plural-form overrides and fallback locale rules.",
|
|
198
247
|
children: [/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("h2", {
|
|
199
|
-
className: "mb-4 text-lg font-semibold text-
|
|
248
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
200
249
|
children: "Fallback Chain"
|
|
201
250
|
}), /* @__PURE__ */ a("div", {
|
|
202
251
|
className: "space-y-2",
|
|
203
252
|
children: [
|
|
204
253
|
/* @__PURE__ */ i("div", {
|
|
205
|
-
className: "rounded-lg border border-border-
|
|
254
|
+
className: "rounded-lg border border-border-seam bg-bg-elevated p-3",
|
|
206
255
|
children: /* @__PURE__ */ a("div", {
|
|
207
256
|
className: "flex items-center justify-between",
|
|
208
257
|
children: [/* @__PURE__ */ i("span", {
|
|
209
|
-
className: "text-sm text-
|
|
258
|
+
className: "text-sm text-text-primary",
|
|
210
259
|
children: "1. Spanish (es-ES)"
|
|
211
260
|
}), /* @__PURE__ */ i("span", {
|
|
212
|
-
className: "text-xs text-
|
|
261
|
+
className: "text-xs text-text-tertiary",
|
|
213
262
|
children: "Current"
|
|
214
263
|
})]
|
|
215
264
|
})
|
|
216
265
|
}),
|
|
217
|
-
|
|
218
|
-
className: "rounded-lg border border-border-
|
|
266
|
+
p.fallbackLanguages.map((e, t) => /* @__PURE__ */ i("div", {
|
|
267
|
+
className: "rounded-lg border border-border-seam bg-bg-surface p-3",
|
|
219
268
|
children: /* @__PURE__ */ a("div", {
|
|
220
269
|
className: "flex items-center justify-between",
|
|
221
270
|
children: [/* @__PURE__ */ a("span", {
|
|
222
|
-
className: "text-sm text-
|
|
271
|
+
className: "text-sm text-text-primary",
|
|
223
272
|
children: [
|
|
224
273
|
t + 2,
|
|
225
274
|
".",
|
|
@@ -228,130 +277,135 @@ var s = () => {
|
|
|
228
277
|
]
|
|
229
278
|
}), /* @__PURE__ */ i("button", {
|
|
230
279
|
type: "button",
|
|
231
|
-
className: "text-xs text-
|
|
280
|
+
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
281
|
children: "Remove"
|
|
233
282
|
})]
|
|
234
283
|
})
|
|
235
284
|
}, e)),
|
|
236
285
|
/* @__PURE__ */ i("button", {
|
|
237
286
|
type: "button",
|
|
238
|
-
className: "w-full rounded-lg border-2 border-dashed border-border-
|
|
287
|
+
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
288
|
children: "+ Add Fallback Language"
|
|
240
289
|
})
|
|
241
290
|
]
|
|
242
291
|
})] }), /* @__PURE__ */ a("div", {
|
|
243
292
|
className: "mt-6",
|
|
244
293
|
children: [/* @__PURE__ */ i("h2", {
|
|
245
|
-
className: "mb-4 text-lg font-semibold text-
|
|
294
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
246
295
|
children: "Plural Rules (CLDR-based)"
|
|
247
296
|
}), /* @__PURE__ */ i("div", {
|
|
248
|
-
className: "grid grid-cols-
|
|
249
|
-
children: Object.entries(
|
|
250
|
-
className: "flex items-center gap-2 rounded-lg border border-border-
|
|
297
|
+
className: "grid grid-cols-2 gap-3 sm:grid-cols-3",
|
|
298
|
+
children: Object.entries(p.pluralRules).map(([e, t]) => /* @__PURE__ */ a("div", {
|
|
299
|
+
className: "flex items-center gap-2 rounded-lg border border-border-seam bg-bg-elevated p-3",
|
|
251
300
|
children: [/* @__PURE__ */ i("input", {
|
|
252
301
|
type: "checkbox",
|
|
253
302
|
id: `plural-${e}`,
|
|
254
303
|
"aria-label": `Plural form: ${e}`,
|
|
255
304
|
checked: t,
|
|
256
|
-
onChange: (t) =>
|
|
257
|
-
className:
|
|
305
|
+
onChange: (t) => g(e, t.target.checked),
|
|
306
|
+
className: y
|
|
258
307
|
}), /* @__PURE__ */ i("label", {
|
|
259
308
|
htmlFor: `plural-${e}`,
|
|
260
|
-
className: "text-sm text-
|
|
309
|
+
className: "text-sm text-text-primary",
|
|
261
310
|
children: e
|
|
262
311
|
})]
|
|
263
312
|
}, e))
|
|
264
313
|
})]
|
|
265
314
|
})]
|
|
266
315
|
}),
|
|
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
|
-
|
|
316
|
+
/* @__PURE__ */ a(c, {
|
|
317
|
+
id: "locale-formatting",
|
|
318
|
+
treatment: "plain",
|
|
319
|
+
className: "scroll-mt-6 border-border-seam p-6",
|
|
320
|
+
children: [/* @__PURE__ */ i("h2", {
|
|
321
|
+
className: "mb-4 text-lg font-semibold text-text-primary",
|
|
322
|
+
children: "Formatting"
|
|
323
|
+
}), /* @__PURE__ */ a("div", {
|
|
324
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
325
|
+
children: [
|
|
326
|
+
/* @__PURE__ */ a("div", { children: [
|
|
327
|
+
/* @__PURE__ */ i("label", {
|
|
328
|
+
htmlFor: "locale-date-format",
|
|
329
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
330
|
+
children: "Date Format"
|
|
331
|
+
}),
|
|
332
|
+
/* @__PURE__ */ i("input", {
|
|
333
|
+
id: "locale-date-format",
|
|
334
|
+
type: "text",
|
|
335
|
+
"aria-label": "Date Format",
|
|
336
|
+
value: p.dateFormat,
|
|
337
|
+
onChange: (e) => h("dateFormat", e.target.value),
|
|
338
|
+
className: v
|
|
339
|
+
}),
|
|
340
|
+
/* @__PURE__ */ i("p", {
|
|
341
|
+
className: "mt-1 text-xs text-text-tertiary tabular-nums",
|
|
342
|
+
children: "Preview: 25/12/2025"
|
|
343
|
+
})
|
|
344
|
+
] }),
|
|
345
|
+
/* @__PURE__ */ a("div", { children: [
|
|
346
|
+
/* @__PURE__ */ i("label", {
|
|
347
|
+
htmlFor: "locale-time-format",
|
|
348
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
349
|
+
children: "Time Format"
|
|
350
|
+
}),
|
|
351
|
+
/* @__PURE__ */ i("input", {
|
|
352
|
+
id: "locale-time-format",
|
|
353
|
+
type: "text",
|
|
354
|
+
"aria-label": "Time Format",
|
|
355
|
+
value: p.timeFormat,
|
|
356
|
+
onChange: (e) => h("timeFormat", e.target.value),
|
|
357
|
+
className: v
|
|
358
|
+
}),
|
|
359
|
+
/* @__PURE__ */ i("p", {
|
|
360
|
+
className: "mt-1 text-xs text-text-tertiary tabular-nums",
|
|
361
|
+
children: "Preview: 14:30"
|
|
362
|
+
})
|
|
363
|
+
] }),
|
|
364
|
+
/* @__PURE__ */ a("div", { children: [
|
|
365
|
+
/* @__PURE__ */ i("label", {
|
|
366
|
+
htmlFor: "locale-number-format",
|
|
367
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
368
|
+
children: "Number Format"
|
|
369
|
+
}),
|
|
370
|
+
/* @__PURE__ */ i("input", {
|
|
371
|
+
id: "locale-number-format",
|
|
372
|
+
type: "text",
|
|
373
|
+
"aria-label": "Number Format",
|
|
374
|
+
value: p.numberFormat,
|
|
375
|
+
onChange: (e) => h("numberFormat", e.target.value),
|
|
376
|
+
className: v
|
|
377
|
+
}),
|
|
378
|
+
/* @__PURE__ */ i("p", {
|
|
379
|
+
className: "mt-1 text-xs text-text-tertiary tabular-nums",
|
|
380
|
+
children: "Preview: 1.234,56"
|
|
381
|
+
})
|
|
382
|
+
] }),
|
|
383
|
+
/* @__PURE__ */ a("div", { children: [
|
|
384
|
+
/* @__PURE__ */ i("label", {
|
|
385
|
+
htmlFor: "locale-currency-code",
|
|
386
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
387
|
+
children: "Currency Code"
|
|
388
|
+
}),
|
|
389
|
+
/* @__PURE__ */ i("input", {
|
|
390
|
+
id: "locale-currency-code",
|
|
391
|
+
type: "text",
|
|
392
|
+
"aria-label": "Currency Code",
|
|
393
|
+
value: p.currencyCode,
|
|
394
|
+
onChange: (e) => h("currencyCode", e.target.value),
|
|
395
|
+
className: v
|
|
396
|
+
}),
|
|
397
|
+
/* @__PURE__ */ i("p", {
|
|
398
|
+
className: "mt-1 text-xs text-text-tertiary",
|
|
399
|
+
children: "Symbol: €"
|
|
400
|
+
})
|
|
401
|
+
] })
|
|
402
|
+
]
|
|
403
|
+
})]
|
|
404
|
+
})
|
|
351
405
|
]
|
|
352
406
|
})
|
|
353
407
|
})]
|
|
354
408
|
});
|
|
355
409
|
};
|
|
356
410
|
//#endregion
|
|
357
|
-
export {
|
|
411
|
+
export { p as LocaleConfigPage };
|