@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
|
@@ -7,57 +7,77 @@ import { useI18n as a } from "../providers/I18nProvider.js";
|
|
|
7
7
|
import { useI18nStore as o } from "../store/i18nStore.js";
|
|
8
8
|
import { useState as s } from "react";
|
|
9
9
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
|
+
import { CTAOverflowMenu as u, EmphasisPanel as d, GlassCard as f, GradientText as p, NextSteps as m, PagePurpose as h } from "@burdenoff/fe-libs/ui";
|
|
10
11
|
//#region src/i18n/pages/TranslationEditorPage.tsx
|
|
11
|
-
var
|
|
12
|
-
let { t:
|
|
12
|
+
var g = () => {
|
|
13
|
+
let { t: g } = a(), _ = (e, t, n) => g(e, t, n), { editorMode: v, showPlurals: y, showSuggestions: b, comparisonLanguage: x, setEditorMode: S, togglePlurals: C, toggleSuggestions: w, setComparisonLanguage: T } = o(), [E, D] = s(""), [O, k] = s(""), A = {
|
|
13
14
|
id: "key-1",
|
|
14
15
|
key: "auth.signIn.title",
|
|
15
16
|
defaultValue: "Sign in to your account",
|
|
16
17
|
description: "Login page title",
|
|
17
18
|
characterLimit: 50,
|
|
18
19
|
placeholders: []
|
|
19
|
-
}
|
|
20
|
+
}, j = [{
|
|
21
|
+
value: "Inicia sesión en tu cuenta",
|
|
22
|
+
similarity: 95
|
|
23
|
+
}, {
|
|
24
|
+
value: "Accede a tu cuenta",
|
|
25
|
+
similarity: 87
|
|
26
|
+
}], M = (e) => `rounded-lg border px-3 py-2 text-sm font-medium transition-colors ${e ? "border-action-primary-bg bg-action-primary-bg/10 text-primary" : "border-border-seam bg-bg-elevated text-text-secondary hover:bg-bg-sunken"}`, N = "w-full rounded-lg border border-border-seam bg-bg-surface p-3 text-sm text-text-primary placeholder:text-text-tertiary 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)]", P = "w-full appearance-none rounded-lg border border-border-seam bg-bg-elevated py-2 pl-10 pr-10 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)]";
|
|
20
27
|
return /* @__PURE__ */ l("div", {
|
|
21
|
-
className: "flex h-full flex-col",
|
|
28
|
+
className: "flex h-full flex-col bg-bg-surface",
|
|
22
29
|
children: [
|
|
23
30
|
/* @__PURE__ */ c("div", {
|
|
24
|
-
className: "border-b border-border-
|
|
31
|
+
className: "border-b border-border-seam bg-bg-surface px-6 py-6 sm:px-8 lg:px-10",
|
|
25
32
|
children: /* @__PURE__ */ l("div", {
|
|
26
|
-
className: "flex items-
|
|
33
|
+
className: "mx-auto flex max-w-screen-2xl flex-col gap-4 lg:flex-row lg:items-start lg:justify-between",
|
|
27
34
|
children: [/* @__PURE__ */ l("div", {
|
|
28
|
-
className: "flex items-center gap-
|
|
29
|
-
children: [/* @__PURE__ */ c(
|
|
30
|
-
className: "
|
|
31
|
-
children:
|
|
35
|
+
className: "flex items-center gap-4",
|
|
36
|
+
children: [/* @__PURE__ */ c("div", {
|
|
37
|
+
className: "flex size-11 shrink-0 items-center justify-center rounded-xl bg-action-primary-bg/10 text-primary shadow-elevation-1",
|
|
38
|
+
children: /* @__PURE__ */ c(n, {
|
|
39
|
+
className: "size-5",
|
|
40
|
+
"aria-hidden": "true"
|
|
41
|
+
})
|
|
42
|
+
}), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ l("h1", {
|
|
43
|
+
className: "text-2xl font-bold tracking-tight text-text-primary",
|
|
44
|
+
children: [
|
|
45
|
+
"Translation",
|
|
46
|
+
" ",
|
|
47
|
+
/* @__PURE__ */ c(p, { children: _("i18n.editor.title.noun", "Editor") })
|
|
48
|
+
]
|
|
32
49
|
}), /* @__PURE__ */ c("p", {
|
|
33
|
-
className: "mt-1 text-sm text-
|
|
34
|
-
children:
|
|
50
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
51
|
+
children: A.key
|
|
35
52
|
})] })]
|
|
36
53
|
}), /* @__PURE__ */ l("div", {
|
|
37
|
-
className: "flex items-center gap-2",
|
|
54
|
+
className: "flex flex-wrap items-center gap-2",
|
|
38
55
|
children: [
|
|
39
56
|
/* @__PURE__ */ c("button", {
|
|
40
57
|
type: "button",
|
|
41
|
-
onClick:
|
|
42
|
-
|
|
43
|
-
|
|
58
|
+
onClick: C,
|
|
59
|
+
"aria-pressed": y,
|
|
60
|
+
className: M(y),
|
|
61
|
+
children: _("i18n.editor.actions.pluralForms", "Plural Forms")
|
|
44
62
|
}),
|
|
45
63
|
/* @__PURE__ */ c("button", {
|
|
46
64
|
type: "button",
|
|
47
|
-
onClick:
|
|
48
|
-
|
|
49
|
-
|
|
65
|
+
onClick: w,
|
|
66
|
+
"aria-pressed": b,
|
|
67
|
+
className: M(b),
|
|
68
|
+
children: _("i18n.editor.actions.suggestions", "Suggestions")
|
|
50
69
|
}),
|
|
51
70
|
/* @__PURE__ */ l("select", {
|
|
52
|
-
value:
|
|
53
|
-
|
|
54
|
-
|
|
71
|
+
value: v,
|
|
72
|
+
"aria-label": _("i18n.editor.mode.label", "Editor mode"),
|
|
73
|
+
onChange: (e) => S(e.target.value),
|
|
74
|
+
className: "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)]",
|
|
55
75
|
children: [/* @__PURE__ */ c("option", {
|
|
56
76
|
value: "simple",
|
|
57
|
-
children:
|
|
77
|
+
children: _("i18n.editor.mode.simple", "Simple")
|
|
58
78
|
}), /* @__PURE__ */ c("option", {
|
|
59
79
|
value: "advanced",
|
|
60
|
-
children:
|
|
80
|
+
children: _("i18n.editor.mode.advanced", "Advanced")
|
|
61
81
|
})]
|
|
62
82
|
})
|
|
63
83
|
]
|
|
@@ -65,19 +85,28 @@ var u = () => {
|
|
|
65
85
|
})
|
|
66
86
|
}),
|
|
67
87
|
/* @__PURE__ */ c("div", {
|
|
68
|
-
className: "border-b border-border-
|
|
88
|
+
className: "border-b border-border-seam bg-bg-surface px-6 py-3 sm:px-8 lg:px-10",
|
|
69
89
|
children: /* @__PURE__ */ l("div", {
|
|
70
|
-
className: "flex items-center gap-2 text-sm text-
|
|
90
|
+
className: "mx-auto flex max-w-screen-2xl items-center gap-2 text-sm text-text-secondary",
|
|
71
91
|
children: [
|
|
72
|
-
/* @__PURE__ */ c("span", { children:
|
|
73
|
-
/* @__PURE__ */ c(e, {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
/* @__PURE__ */ c(
|
|
92
|
+
/* @__PURE__ */ c("span", { children: _("i18n.editor.breadcrumb.product", "Workspaces") }),
|
|
93
|
+
/* @__PURE__ */ c(e, {
|
|
94
|
+
className: "size-4 -rotate-90",
|
|
95
|
+
"aria-hidden": "true"
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ c("span", { children: _("i18n.editor.breadcrumb.module", "Auth") }),
|
|
98
|
+
/* @__PURE__ */ c(e, {
|
|
99
|
+
className: "size-4 -rotate-90",
|
|
100
|
+
"aria-hidden": "true"
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ c("span", { children: _("i18n.editor.breadcrumb.namespace", "signIn") }),
|
|
103
|
+
/* @__PURE__ */ c(e, {
|
|
104
|
+
className: "size-4 -rotate-90",
|
|
105
|
+
"aria-hidden": "true"
|
|
106
|
+
}),
|
|
78
107
|
/* @__PURE__ */ c("span", {
|
|
79
|
-
className: "text-
|
|
80
|
-
children:
|
|
108
|
+
className: "text-text-primary",
|
|
109
|
+
children: A.key
|
|
81
110
|
})
|
|
82
111
|
]
|
|
83
112
|
})
|
|
@@ -85,164 +114,214 @@ var u = () => {
|
|
|
85
114
|
/* @__PURE__ */ l("div", {
|
|
86
115
|
className: "flex flex-1 overflow-hidden",
|
|
87
116
|
children: [/* @__PURE__ */ c("div", {
|
|
88
|
-
className: "flex flex-1 flex-col overflow-auto
|
|
117
|
+
className: "flex flex-1 flex-col overflow-auto",
|
|
89
118
|
children: /* @__PURE__ */ l("div", {
|
|
90
|
-
className: "p-6",
|
|
119
|
+
className: "mx-auto w-full max-w-3xl space-y-6 p-6 sm:p-8",
|
|
91
120
|
children: [
|
|
121
|
+
/* @__PURE__ */ c(h, { children: _("i18n.editor.purpose", "This is where the actual translating happens for one key at a time. You see the original (source) string, type its translation for the chosen target language, and can compare it side-by-side with another locale, reuse machine suggestions, and add plural forms. Save a draft while you work, then submit it for review when it's ready to be approved and published.") }),
|
|
122
|
+
/* @__PURE__ */ c(m, {
|
|
123
|
+
storageKey: "i18n-editor",
|
|
124
|
+
steps: [
|
|
125
|
+
{
|
|
126
|
+
id: "compare-source",
|
|
127
|
+
label: _("i18n.editor.next.compare", "Compare against the source language"),
|
|
128
|
+
description: _("i18n.editor.next.compare.desc", "Show the English original next to your translation to keep meaning and length aligned."),
|
|
129
|
+
done: !!x,
|
|
130
|
+
onClick: () => T("en")
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
id: "use-suggestions",
|
|
134
|
+
label: _("i18n.editor.next.suggestions", "Open translation suggestions"),
|
|
135
|
+
description: _("i18n.editor.next.suggestions.desc", "Reuse close matches from memory instead of translating from scratch."),
|
|
136
|
+
done: b,
|
|
137
|
+
onClick: () => {
|
|
138
|
+
b || w();
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
id: "add-plurals",
|
|
143
|
+
label: _("i18n.editor.next.plurals", "Add plural forms if the string counts things"),
|
|
144
|
+
description: _("i18n.editor.next.plurals.desc", "Provide one/other (and locale-specific) variants so counts read naturally."),
|
|
145
|
+
done: y,
|
|
146
|
+
onClick: () => {
|
|
147
|
+
y || C();
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}),
|
|
92
152
|
/* @__PURE__ */ l("div", {
|
|
93
|
-
className: "
|
|
153
|
+
className: "flex flex-col gap-4 sm:flex-row",
|
|
94
154
|
children: [/* @__PURE__ */ l("div", {
|
|
95
155
|
className: "flex-1",
|
|
96
156
|
children: [/* @__PURE__ */ c("label", {
|
|
97
|
-
|
|
98
|
-
|
|
157
|
+
htmlFor: "editor-target-language",
|
|
158
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
159
|
+
children: _("i18n.editor.fields.targetLanguage", "Target Language")
|
|
99
160
|
}), /* @__PURE__ */ l("div", {
|
|
100
161
|
className: "relative",
|
|
101
162
|
children: [
|
|
102
|
-
/* @__PURE__ */ c(t, {
|
|
163
|
+
/* @__PURE__ */ c(t, {
|
|
164
|
+
className: "pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary",
|
|
165
|
+
"aria-hidden": "true"
|
|
166
|
+
}),
|
|
103
167
|
/* @__PURE__ */ l("select", {
|
|
104
|
-
|
|
168
|
+
id: "editor-target-language",
|
|
169
|
+
className: P,
|
|
105
170
|
children: [
|
|
106
171
|
/* @__PURE__ */ c("option", {
|
|
107
172
|
value: "es-ES",
|
|
108
|
-
children:
|
|
173
|
+
children: _("i18n.shared.language.esEs", "Spanish (es-ES)")
|
|
109
174
|
}),
|
|
110
175
|
/* @__PURE__ */ c("option", {
|
|
111
176
|
value: "fr-FR",
|
|
112
|
-
children:
|
|
177
|
+
children: _("i18n.shared.language.frFr", "French (fr-FR)")
|
|
113
178
|
}),
|
|
114
179
|
/* @__PURE__ */ c("option", {
|
|
115
180
|
value: "de-DE",
|
|
116
|
-
children:
|
|
181
|
+
children: _("i18n.shared.language.deDe", "German (de-DE)")
|
|
117
182
|
})
|
|
118
183
|
]
|
|
119
184
|
}),
|
|
120
|
-
/* @__PURE__ */ c(e, {
|
|
185
|
+
/* @__PURE__ */ c(e, {
|
|
186
|
+
className: "pointer-events-none absolute right-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary",
|
|
187
|
+
"aria-hidden": "true"
|
|
188
|
+
})
|
|
121
189
|
]
|
|
122
190
|
})]
|
|
123
191
|
}), /* @__PURE__ */ l("div", {
|
|
124
192
|
className: "flex-1",
|
|
125
193
|
children: [/* @__PURE__ */ c("label", {
|
|
126
|
-
|
|
127
|
-
|
|
194
|
+
htmlFor: "editor-compare-language",
|
|
195
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
196
|
+
children: _("i18n.editor.fields.compareWith", "Compare With")
|
|
128
197
|
}), /* @__PURE__ */ l("div", {
|
|
129
198
|
className: "relative",
|
|
130
199
|
children: [
|
|
131
|
-
/* @__PURE__ */ c(t, {
|
|
200
|
+
/* @__PURE__ */ c(t, {
|
|
201
|
+
className: "pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary",
|
|
202
|
+
"aria-hidden": "true"
|
|
203
|
+
}),
|
|
132
204
|
/* @__PURE__ */ l("select", {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
205
|
+
id: "editor-compare-language",
|
|
206
|
+
value: x || "",
|
|
207
|
+
onChange: (e) => T(e.target.value || null),
|
|
208
|
+
className: P,
|
|
136
209
|
children: [/* @__PURE__ */ c("option", {
|
|
137
210
|
value: "",
|
|
138
|
-
children:
|
|
211
|
+
children: _("i18n.shared.empty.none", "None")
|
|
139
212
|
}), /* @__PURE__ */ c("option", {
|
|
140
213
|
value: "en",
|
|
141
|
-
children:
|
|
214
|
+
children: _("i18n.shared.language.en", "English (en)")
|
|
142
215
|
})]
|
|
143
216
|
}),
|
|
144
|
-
/* @__PURE__ */ c(e, {
|
|
217
|
+
/* @__PURE__ */ c(e, {
|
|
218
|
+
className: "pointer-events-none absolute right-3 top-1/2 size-4 -translate-y-1/2 text-text-secondary",
|
|
219
|
+
"aria-hidden": "true"
|
|
220
|
+
})
|
|
145
221
|
]
|
|
146
222
|
})]
|
|
147
223
|
})]
|
|
148
224
|
}),
|
|
149
|
-
|
|
150
|
-
|
|
225
|
+
x && /* @__PURE__ */ l(f, {
|
|
226
|
+
treatment: "plain",
|
|
227
|
+
className: "border-border-seam p-4",
|
|
151
228
|
children: [
|
|
152
229
|
/* @__PURE__ */ c("p", {
|
|
153
|
-
className: "mb-2 text-sm font-medium text-
|
|
154
|
-
children:
|
|
230
|
+
className: "mb-2 text-sm font-medium text-text-primary",
|
|
231
|
+
children: _("i18n.editor.comparison.sourceLanguage", "English (Source)")
|
|
155
232
|
}),
|
|
156
233
|
/* @__PURE__ */ c("p", {
|
|
157
|
-
className: "text-sm text-
|
|
158
|
-
children:
|
|
234
|
+
className: "text-sm text-text-secondary",
|
|
235
|
+
children: A.defaultValue
|
|
159
236
|
}),
|
|
160
237
|
/* @__PURE__ */ l("div", {
|
|
161
|
-
className: "mt-3 flex items-center gap-4 text-xs text-
|
|
162
|
-
children: [/* @__PURE__ */ c("span", { children:
|
|
238
|
+
className: "mt-3 flex flex-wrap items-center gap-4 text-xs text-text-tertiary",
|
|
239
|
+
children: [/* @__PURE__ */ c("span", { children: _("i18n.editor.comparison.characterLimit", "Character limit: {{limit}}", { limit: A.characterLimit }) }), /* @__PURE__ */ c("span", { children: _("i18n.editor.comparison.placeholders", "Placeholders: none") })]
|
|
163
240
|
})
|
|
164
241
|
]
|
|
165
242
|
}),
|
|
166
|
-
/* @__PURE__ */ l(
|
|
167
|
-
className: "
|
|
243
|
+
/* @__PURE__ */ l(d, {
|
|
244
|
+
className: "p-5",
|
|
168
245
|
children: [/* @__PURE__ */ l("div", {
|
|
169
246
|
className: "mb-2 flex items-center justify-between",
|
|
170
247
|
children: [/* @__PURE__ */ c("label", {
|
|
171
248
|
htmlFor: "editor-translation-value",
|
|
172
|
-
className: "text-sm font-medium text-
|
|
173
|
-
children:
|
|
249
|
+
className: "text-sm font-medium text-text-primary",
|
|
250
|
+
children: _("i18n.editor.fields.translationValue", "Translation Value")
|
|
174
251
|
}), /* @__PURE__ */ c("span", {
|
|
175
|
-
className: "text-xs text-
|
|
176
|
-
children:
|
|
177
|
-
current:
|
|
178
|
-
limit:
|
|
252
|
+
className: "text-xs text-text-tertiary tabular-nums",
|
|
253
|
+
children: _("i18n.editor.fields.characterCount", "{{current}}/{{limit}}", {
|
|
254
|
+
current: E.length,
|
|
255
|
+
limit: A.characterLimit
|
|
179
256
|
})
|
|
180
257
|
})]
|
|
181
258
|
}), /* @__PURE__ */ c("textarea", {
|
|
182
259
|
id: "editor-translation-value",
|
|
183
|
-
"aria-label":
|
|
184
|
-
value:
|
|
185
|
-
onChange: (e) =>
|
|
186
|
-
placeholder:
|
|
187
|
-
maxLength:
|
|
188
|
-
className:
|
|
260
|
+
"aria-label": _("i18n.editor.fields.translationValue", "Translation Value"),
|
|
261
|
+
value: E,
|
|
262
|
+
onChange: (e) => D(e.target.value),
|
|
263
|
+
placeholder: _("i18n.editor.fields.translationPlaceholder", "Enter translation..."),
|
|
264
|
+
maxLength: A.characterLimit,
|
|
265
|
+
className: N,
|
|
189
266
|
rows: 4
|
|
190
267
|
})]
|
|
191
268
|
}),
|
|
192
|
-
/* @__PURE__ */ l("div", {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
269
|
+
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("label", {
|
|
270
|
+
htmlFor: "editor-notes",
|
|
271
|
+
className: "mb-2 block text-sm font-medium text-text-primary",
|
|
272
|
+
children: _("i18n.editor.fields.notes", "Translation Notes")
|
|
273
|
+
}), /* @__PURE__ */ c("textarea", {
|
|
274
|
+
id: "editor-notes",
|
|
275
|
+
"aria-label": _("i18n.editor.fields.notes", "Translation Notes"),
|
|
276
|
+
value: O,
|
|
277
|
+
onChange: (e) => k(e.target.value),
|
|
278
|
+
placeholder: _("i18n.editor.fields.notesPlaceholder", "Add notes for reviewers..."),
|
|
279
|
+
className: N,
|
|
280
|
+
rows: 3
|
|
281
|
+
})] }),
|
|
282
|
+
/* @__PURE__ */ c(u, {
|
|
283
|
+
align: "start",
|
|
284
|
+
primary: {
|
|
285
|
+
label: _("i18n.editor.actions.saveDraft", "Save Draft"),
|
|
286
|
+
onSelect: () => void 0,
|
|
287
|
+
icon: /* @__PURE__ */ c(r, {
|
|
288
|
+
className: "size-4",
|
|
289
|
+
"aria-hidden": "true"
|
|
290
|
+
})
|
|
291
|
+
},
|
|
292
|
+
actions: [{
|
|
293
|
+
label: _("i18n.editor.actions.submitForReview", "Submit for Review"),
|
|
294
|
+
onSelect: () => void 0,
|
|
295
|
+
icon: /* @__PURE__ */ c(i, {
|
|
296
|
+
className: "size-4",
|
|
297
|
+
"aria-hidden": "true"
|
|
298
|
+
})
|
|
299
|
+
}]
|
|
219
300
|
})
|
|
220
301
|
]
|
|
221
302
|
})
|
|
222
|
-
}),
|
|
223
|
-
className: "w-80 overflow-auto border-l border-border-
|
|
224
|
-
children: [/* @__PURE__ */ c("
|
|
225
|
-
className: "mb-4 text-sm font-
|
|
226
|
-
children:
|
|
303
|
+
}), b && /* @__PURE__ */ l("aside", {
|
|
304
|
+
className: "hidden w-80 shrink-0 overflow-auto border-l border-border-seam bg-bg-elevated p-6 lg:block",
|
|
305
|
+
children: [/* @__PURE__ */ c("h2", {
|
|
306
|
+
className: "mb-4 text-sm font-semibold text-text-primary",
|
|
307
|
+
children: _("i18n.editor.suggestions.title", "Suggestions")
|
|
227
308
|
}), /* @__PURE__ */ c("div", {
|
|
228
309
|
className: "space-y-3",
|
|
229
|
-
children:
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
children: d("i18n.editor.suggestions.match", "{{similarity}}% match", { similarity: e.similarity })
|
|
245
|
-
})]
|
|
310
|
+
children: j.map((e) => /* @__PURE__ */ c(f, {
|
|
311
|
+
treatment: "plain",
|
|
312
|
+
className: "border-border-seam",
|
|
313
|
+
children: /* @__PURE__ */ l("button", {
|
|
314
|
+
type: "button",
|
|
315
|
+
className: "block w-full cursor-pointer rounded-[inherit] p-3 text-left focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-focus-ring)]",
|
|
316
|
+
onClick: () => D(e.value),
|
|
317
|
+
children: [/* @__PURE__ */ c("p", {
|
|
318
|
+
className: "text-sm text-text-primary",
|
|
319
|
+
children: e.value
|
|
320
|
+
}), /* @__PURE__ */ c("p", {
|
|
321
|
+
className: "mt-1 text-xs text-text-tertiary tabular-nums",
|
|
322
|
+
children: _("i18n.editor.suggestions.match", "{{similarity}}% match", { similarity: e.similarity })
|
|
323
|
+
})]
|
|
324
|
+
})
|
|
246
325
|
}, e.value))
|
|
247
326
|
})]
|
|
248
327
|
})]
|
|
@@ -251,4 +330,4 @@ var u = () => {
|
|
|
251
330
|
});
|
|
252
331
|
};
|
|
253
332
|
//#endregion
|
|
254
|
-
export {
|
|
333
|
+
export { g as TranslationEditorPage };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { createLucideIcon as e } from "../createLucideIcon.js";
|
|
2
|
+
//#region node_modules/lucide-react/dist/esm/icons/boxes.js
|
|
3
|
+
var t = e("Boxes", [
|
|
4
|
+
["path", {
|
|
5
|
+
d: "M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",
|
|
6
|
+
key: "lc1i9w"
|
|
7
|
+
}],
|
|
8
|
+
["path", {
|
|
9
|
+
d: "m7 16.5-4.74-2.85",
|
|
10
|
+
key: "1o9zyk"
|
|
11
|
+
}],
|
|
12
|
+
["path", {
|
|
13
|
+
d: "m7 16.5 5-3",
|
|
14
|
+
key: "va8pkn"
|
|
15
|
+
}],
|
|
16
|
+
["path", {
|
|
17
|
+
d: "M7 16.5v5.17",
|
|
18
|
+
key: "jnp8gn"
|
|
19
|
+
}],
|
|
20
|
+
["path", {
|
|
21
|
+
d: "M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",
|
|
22
|
+
key: "8zsnat"
|
|
23
|
+
}],
|
|
24
|
+
["path", {
|
|
25
|
+
d: "m17 16.5-5-3",
|
|
26
|
+
key: "8arw3v"
|
|
27
|
+
}],
|
|
28
|
+
["path", {
|
|
29
|
+
d: "m17 16.5 4.74-2.85",
|
|
30
|
+
key: "8rfmw"
|
|
31
|
+
}],
|
|
32
|
+
["path", {
|
|
33
|
+
d: "M17 16.5v5.17",
|
|
34
|
+
key: "k6z78m"
|
|
35
|
+
}],
|
|
36
|
+
["path", {
|
|
37
|
+
d: "M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",
|
|
38
|
+
key: "1xygjf"
|
|
39
|
+
}],
|
|
40
|
+
["path", {
|
|
41
|
+
d: "M12 8 7.26 5.15",
|
|
42
|
+
key: "1vbdud"
|
|
43
|
+
}],
|
|
44
|
+
["path", {
|
|
45
|
+
d: "m12 8 4.74-2.85",
|
|
46
|
+
key: "3rx089"
|
|
47
|
+
}],
|
|
48
|
+
["path", {
|
|
49
|
+
d: "M12 13.5V8",
|
|
50
|
+
key: "1io7kd"
|
|
51
|
+
}]
|
|
52
|
+
]);
|
|
53
|
+
//#endregion
|
|
54
|
+
export { t as Boxes };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createLucideIcon as e } from "../createLucideIcon.js";
|
|
2
|
+
//#region node_modules/lucide-react/dist/esm/icons/gauge.js
|
|
3
|
+
var t = e("Gauge", [["path", {
|
|
4
|
+
d: "m12 14 4-4",
|
|
5
|
+
key: "9kzdfg"
|
|
6
|
+
}], ["path", {
|
|
7
|
+
d: "M3.34 19a10 10 0 1 1 17.32 0",
|
|
8
|
+
key: "19p75a"
|
|
9
|
+
}]]);
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as Gauge };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-i18n",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.625.2",
|
|
4
4
|
"description": "Internationalization (i18n) micro-frontend module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"format:check": "prettier --check \"src/**/*.{ts,tsx}\""
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@burdenoff/fe-libs": "2026.529.2",
|
|
38
37
|
"@apollo/client": "^3.12.4",
|
|
38
|
+
"@burdenoff/fe-libs": "2026.625.5",
|
|
39
39
|
"graphql": "^16.10.0",
|
|
40
40
|
"lucide-react": "^0.468.0",
|
|
41
41
|
"react": "^19.0.0",
|