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