@burdenoff/microfe-i18n 2026.801.1 → 2026.830.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/I18nRoot.js +52 -40
- package/dist/i18n/hooks/useTr.js +9 -0
- package/dist/i18n/pages/ImportExportPage.js +85 -85
- package/dist/i18n/pages/LanguagesListPage.js +44 -44
- package/dist/i18n/pages/LocaleConfigPage.js +183 -181
- package/dist/i18n/pages/ProductsListPage.js +24 -24
- package/dist/i18n/pages/ProgressDashboardPage.js +54 -54
- package/dist/i18n/pages/ReviewQueuePage.js +114 -112
- package/dist/i18n/pages/TranslationEditorPage.js +74 -74
- package/dist/i18n/providers/I18nProvider.js +35 -34
- package/dist/i18n/translations/en.js +372 -0
- package/dist/i18n.js +4 -3
- package/package.json +4 -3
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
//#region src/i18n/translations/en.ts
|
|
2
|
+
var e = { i18n: {
|
|
3
|
+
nav: {
|
|
4
|
+
languages: "Languages",
|
|
5
|
+
products: "Products",
|
|
6
|
+
translationEditor: "Translation Editor",
|
|
7
|
+
progress: "Progress",
|
|
8
|
+
reviewQueue: "Review Queue",
|
|
9
|
+
import: "Import",
|
|
10
|
+
export: "Export",
|
|
11
|
+
localeSettings: "Locale Settings"
|
|
12
|
+
},
|
|
13
|
+
footer: { status: "I18n Ready" },
|
|
14
|
+
shared: {
|
|
15
|
+
status: {
|
|
16
|
+
active: "Active",
|
|
17
|
+
inactive: "Inactive",
|
|
18
|
+
archived: "Archived"
|
|
19
|
+
},
|
|
20
|
+
direction: {
|
|
21
|
+
ltr: "LTR",
|
|
22
|
+
rtl: "RTL"
|
|
23
|
+
},
|
|
24
|
+
empty: { none: "None" },
|
|
25
|
+
language: {
|
|
26
|
+
en: "English (en)",
|
|
27
|
+
esEs: "Spanish (es-ES)",
|
|
28
|
+
frFr: "French (fr-FR)",
|
|
29
|
+
deDe: "German (de-DE)"
|
|
30
|
+
},
|
|
31
|
+
format: {
|
|
32
|
+
json: "JSON (i18next nested)",
|
|
33
|
+
csv: "CSV",
|
|
34
|
+
xlsx: "Excel (XLSX)",
|
|
35
|
+
po: "Gettext (PO)",
|
|
36
|
+
xliff: "XLIFF"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
languages: {
|
|
40
|
+
title: "Languages",
|
|
41
|
+
subtitle: "Configure the locales your products ship in",
|
|
42
|
+
purpose: "This is the master list of every locale your products can ship in — the set of languages translators can work in and users can switch to. Add a language here before any of its translations can be entered, set which one is the default fallback, and configure its formatting and text direction.",
|
|
43
|
+
actions: { add: "Add Language" },
|
|
44
|
+
summary: {
|
|
45
|
+
label: "Languages configured",
|
|
46
|
+
active: "{{count}} active",
|
|
47
|
+
default: "Default: {{name}}"
|
|
48
|
+
},
|
|
49
|
+
filters: {
|
|
50
|
+
searchAriaLabel: "Search languages",
|
|
51
|
+
searchPlaceholder: "Search languages...",
|
|
52
|
+
status: {
|
|
53
|
+
label: "Filter by status",
|
|
54
|
+
all: "All Status"
|
|
55
|
+
},
|
|
56
|
+
direction: {
|
|
57
|
+
label: "Filter by direction",
|
|
58
|
+
all: "All Directions"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
empty: {
|
|
62
|
+
title: "No languages yet",
|
|
63
|
+
description: "Add a language to begin localizing your products.",
|
|
64
|
+
search: {
|
|
65
|
+
title: "No languages match",
|
|
66
|
+
description: "Adjust your filters to see more languages."
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
badges: { default: "Default" },
|
|
70
|
+
card: { code: "Code: {{code}}" }
|
|
71
|
+
},
|
|
72
|
+
products: {
|
|
73
|
+
title: "Products",
|
|
74
|
+
subtitle: "Manage localization across products and their modules",
|
|
75
|
+
purpose: "Products are the apps you localize. Each one groups the modules (auth, billing, calendar…) whose user-facing text needs translating. Register a product here so its translation keys, languages, and coverage are tracked together — pick a product to drill into its modules and manage their strings.",
|
|
76
|
+
actions: { add: "Add Product" },
|
|
77
|
+
summary: {
|
|
78
|
+
label: "Products tracked",
|
|
79
|
+
modules: "{{count}} modules",
|
|
80
|
+
active: "All active"
|
|
81
|
+
},
|
|
82
|
+
search: {
|
|
83
|
+
ariaLabel: "Search products",
|
|
84
|
+
placeholder: "Search products..."
|
|
85
|
+
},
|
|
86
|
+
empty: {
|
|
87
|
+
title: "No products yet",
|
|
88
|
+
description: "Add your first product to start managing translations.",
|
|
89
|
+
search: {
|
|
90
|
+
title: "No products found",
|
|
91
|
+
description: "Try a different search term to find a product."
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
modules: { count: "Modules ({{count}})" }
|
|
95
|
+
},
|
|
96
|
+
editor: {
|
|
97
|
+
title: { noun: "Editor" },
|
|
98
|
+
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.",
|
|
99
|
+
actions: {
|
|
100
|
+
pluralForms: "Plural Forms",
|
|
101
|
+
suggestions: "Suggestions",
|
|
102
|
+
saveDraft: "Save Draft",
|
|
103
|
+
submitForReview: "Submit for Review"
|
|
104
|
+
},
|
|
105
|
+
mode: {
|
|
106
|
+
label: "Editor mode",
|
|
107
|
+
simple: "Simple",
|
|
108
|
+
advanced: "Advanced"
|
|
109
|
+
},
|
|
110
|
+
breadcrumb: {
|
|
111
|
+
product: "Workspaces",
|
|
112
|
+
module: "Auth",
|
|
113
|
+
namespace: "signIn"
|
|
114
|
+
},
|
|
115
|
+
next: {
|
|
116
|
+
compare: "Compare against the source language",
|
|
117
|
+
"compare.desc": "Show the English original next to your translation to keep meaning and length aligned.",
|
|
118
|
+
suggestions: "Open translation suggestions",
|
|
119
|
+
"suggestions.desc": "Reuse close matches from memory instead of translating from scratch.",
|
|
120
|
+
plurals: "Add plural forms if the string counts things",
|
|
121
|
+
"plurals.desc": "Provide one/other (and locale-specific) variants so counts read naturally."
|
|
122
|
+
},
|
|
123
|
+
fields: {
|
|
124
|
+
targetLanguage: "Target Language",
|
|
125
|
+
compareWith: "Compare With",
|
|
126
|
+
translationValue: "Translation Value",
|
|
127
|
+
characterCount: "{{current}}/{{limit}}",
|
|
128
|
+
translationPlaceholder: "Enter translation...",
|
|
129
|
+
notes: "Translation Notes",
|
|
130
|
+
notesPlaceholder: "Add notes for reviewers..."
|
|
131
|
+
},
|
|
132
|
+
comparison: {
|
|
133
|
+
sourceLanguage: "English (Source)",
|
|
134
|
+
characterLimit: "Character limit: {{limit}}",
|
|
135
|
+
placeholders: "Placeholders: none"
|
|
136
|
+
},
|
|
137
|
+
suggestions: {
|
|
138
|
+
title: "Suggestions",
|
|
139
|
+
match: "{{similarity}}% match"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
progress: {
|
|
143
|
+
title: "Translation Progress",
|
|
144
|
+
subtitle: "Coverage and status across every locale",
|
|
145
|
+
purpose: "See at a glance how complete your localization is — what share of keys are translated, approved, and published for each language and status. Use it to spot the locales that are lagging, decide where translators should focus next, and confirm you are ready to ship a language before release.",
|
|
146
|
+
actions: {
|
|
147
|
+
export: "Export",
|
|
148
|
+
generateReport: "Generate Report"
|
|
149
|
+
},
|
|
150
|
+
next: {
|
|
151
|
+
groupByLanguage: "Group coverage by language",
|
|
152
|
+
groupByLanguageDesc: "Find the locales that are furthest behind so you can prioritise them.",
|
|
153
|
+
reviewQueue: "Clear the pending review backlog",
|
|
154
|
+
reviewQueueDesc: "Approve translations waiting in the queue to lift your published coverage.",
|
|
155
|
+
export: "Export a coverage snapshot",
|
|
156
|
+
exportDesc: "Download the current numbers to share progress with your team."
|
|
157
|
+
},
|
|
158
|
+
stats: {
|
|
159
|
+
totalKeys: "Total Keys",
|
|
160
|
+
translated: "Translated",
|
|
161
|
+
overallCoverage: "Overall Coverage",
|
|
162
|
+
languages: "Languages"
|
|
163
|
+
},
|
|
164
|
+
summary: {
|
|
165
|
+
translatedOfTotal: "3,735 / 6,225 keys",
|
|
166
|
+
languages: "5 languages"
|
|
167
|
+
},
|
|
168
|
+
controls: { show: "Display options" },
|
|
169
|
+
filters: {
|
|
170
|
+
groupBy: "Group By",
|
|
171
|
+
groupByLanguage: "Language",
|
|
172
|
+
groupByProduct: "Product",
|
|
173
|
+
groupByModule: "Module",
|
|
174
|
+
chartType: "Chart Type",
|
|
175
|
+
chartTypeBar: "Bar Chart",
|
|
176
|
+
chartTypePie: "Pie Chart",
|
|
177
|
+
chartTypeHeatmap: "Heatmap",
|
|
178
|
+
showPercentages: "Show Percentages"
|
|
179
|
+
},
|
|
180
|
+
sections: {
|
|
181
|
+
coverageByLanguage: "Coverage by Language",
|
|
182
|
+
byStatus: "By Status"
|
|
183
|
+
},
|
|
184
|
+
languages: {
|
|
185
|
+
spanish: "Spanish (es)",
|
|
186
|
+
french: "French (fr)",
|
|
187
|
+
german: "German (de)",
|
|
188
|
+
japanese: "Japanese (ja)"
|
|
189
|
+
},
|
|
190
|
+
status: {
|
|
191
|
+
published: "Published",
|
|
192
|
+
approved: "Approved",
|
|
193
|
+
pendingReview: "Pending Review",
|
|
194
|
+
draft: "Draft",
|
|
195
|
+
missing: "Missing"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
import: {
|
|
199
|
+
title: {
|
|
200
|
+
verb: "Import",
|
|
201
|
+
noun: "Translations"
|
|
202
|
+
},
|
|
203
|
+
subtitle: "Bring translations in from a file",
|
|
204
|
+
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.",
|
|
205
|
+
fields: {
|
|
206
|
+
format: "Select Format",
|
|
207
|
+
uploadFile: "Upload File",
|
|
208
|
+
dropzonePlaceholder: "Drop file here or click to browse",
|
|
209
|
+
supportedFormats: "Supported formats: JSON, CSV, XLSX, PO, XLIFF",
|
|
210
|
+
product: "Product",
|
|
211
|
+
module: "Module",
|
|
212
|
+
targetLanguage: "Target Language"
|
|
213
|
+
},
|
|
214
|
+
options: {
|
|
215
|
+
show: "Import options",
|
|
216
|
+
createNamespaces: "Create missing namespaces automatically",
|
|
217
|
+
updateExisting: "Update existing translations",
|
|
218
|
+
skipErrors: "Skip validation errors (import valid only)"
|
|
219
|
+
},
|
|
220
|
+
progress: { title: "Import Progress" },
|
|
221
|
+
actions: {
|
|
222
|
+
start: "Start Import",
|
|
223
|
+
reset: "Reset"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
export: {
|
|
227
|
+
title: {
|
|
228
|
+
verb: "Export",
|
|
229
|
+
noun: "Translations"
|
|
230
|
+
},
|
|
231
|
+
subtitle: "Download translations in your chosen format",
|
|
232
|
+
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.",
|
|
233
|
+
fields: {
|
|
234
|
+
format: "Export Format",
|
|
235
|
+
product: "Product",
|
|
236
|
+
productAll: "All Products",
|
|
237
|
+
language: "Language",
|
|
238
|
+
languageAll: "All Languages",
|
|
239
|
+
languageSpanish: "Spanish",
|
|
240
|
+
languageFrench: "French"
|
|
241
|
+
},
|
|
242
|
+
options: {
|
|
243
|
+
show: "Export options",
|
|
244
|
+
includeMetadata: "Include metadata",
|
|
245
|
+
publishedOnly: "Published translations only"
|
|
246
|
+
},
|
|
247
|
+
preview: {
|
|
248
|
+
title: "Export Preview",
|
|
249
|
+
description: "Approximately 1,245 translation keys will be exported based on your selection."
|
|
250
|
+
},
|
|
251
|
+
actions: { start: "Export Translations" }
|
|
252
|
+
},
|
|
253
|
+
review: {
|
|
254
|
+
title: "Review",
|
|
255
|
+
subtitle: "Approve or reject submitted translations",
|
|
256
|
+
purpose: "This is the quality gate before a translation goes live. Submitted translations land here so a reviewer can compare each one against its source string, then approve it (which publishes it to that locale) or reject it back to the translator with notes. Select several at once to approve or reject them in bulk and keep the backlog moving.",
|
|
257
|
+
actions: {
|
|
258
|
+
approveSelected: "Approve Selected ({{count}})",
|
|
259
|
+
rejectSelected: "Reject Selected ({{count}})"
|
|
260
|
+
},
|
|
261
|
+
confirm: { rejectSelected: "Reject {{count}} selected translation(s)?" },
|
|
262
|
+
next: {
|
|
263
|
+
selectAll: "Select everything in view",
|
|
264
|
+
selectAllDesc: "Tick every pending translation so you can act on the whole batch at once.",
|
|
265
|
+
approveBatch: "Approve the selected translations",
|
|
266
|
+
approveBatchDesc: "Publish the ones you've checked to their locales in a single action.",
|
|
267
|
+
reviewItem: "Compare each translation against its source",
|
|
268
|
+
reviewItemDesc: "Scan source vs. target below and add notes before approving or rejecting an individual entry."
|
|
269
|
+
},
|
|
270
|
+
summary: { label: "Pending review" },
|
|
271
|
+
filters: {
|
|
272
|
+
status: {
|
|
273
|
+
label: "Filter by review status",
|
|
274
|
+
pending: "Pending Review",
|
|
275
|
+
myAssignments: "My Assignments",
|
|
276
|
+
all: "All"
|
|
277
|
+
},
|
|
278
|
+
language: {
|
|
279
|
+
label: "Filter by language",
|
|
280
|
+
all: "All Languages",
|
|
281
|
+
spanish: "Spanish",
|
|
282
|
+
french: "French",
|
|
283
|
+
german: "German"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
empty: {
|
|
287
|
+
title: "Nothing to review",
|
|
288
|
+
description: "All caught up — there are no translations waiting for review."
|
|
289
|
+
},
|
|
290
|
+
card: {
|
|
291
|
+
selectAria: "Select translation {{key}}",
|
|
292
|
+
source: "Source",
|
|
293
|
+
target: "Target",
|
|
294
|
+
submittedBy: "Submitted by {{name}} • {{time}}",
|
|
295
|
+
actions: {
|
|
296
|
+
approve: "Approve",
|
|
297
|
+
addNotes: "Add Notes",
|
|
298
|
+
reject: "Reject"
|
|
299
|
+
},
|
|
300
|
+
confirm: { reject: "Reject translation \"{{key}}\"?" }
|
|
301
|
+
},
|
|
302
|
+
list: { showing: "Showing {{visible}} of {{total}} pending reviews" }
|
|
303
|
+
},
|
|
304
|
+
locale: {
|
|
305
|
+
title: "Configuration",
|
|
306
|
+
subtitle: "{{name}} ({{nativeName}})",
|
|
307
|
+
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.",
|
|
308
|
+
actions: {
|
|
309
|
+
save: "Save Changes",
|
|
310
|
+
delete: "Delete Language"
|
|
311
|
+
},
|
|
312
|
+
confirm: { delete: "Delete language \"{{name}}\"? This cannot be undone." },
|
|
313
|
+
next: {
|
|
314
|
+
setDefault: "Make this the default locale",
|
|
315
|
+
setDefaultDesc: "Used as the fallback whenever a string has no translation in the requested language.",
|
|
316
|
+
checkFormatting: "Review date, number & currency formats",
|
|
317
|
+
checkFormattingDesc: "Confirm the previews match how users in this region expect to read values.",
|
|
318
|
+
saveConfig: "Save your changes",
|
|
319
|
+
saveConfigDesc: "Persist this locale's configuration so translations start rendering with these rules."
|
|
320
|
+
},
|
|
321
|
+
sections: {
|
|
322
|
+
basicInfo: "Basic Information",
|
|
323
|
+
direction: "Text Direction & Layout",
|
|
324
|
+
advanced: "Advanced settings",
|
|
325
|
+
fallbackChain: "Fallback Chain",
|
|
326
|
+
pluralRules: "Plural Rules (CLDR-based)",
|
|
327
|
+
formatting: "Formatting"
|
|
328
|
+
},
|
|
329
|
+
advanced: { description: "ICU plural-form overrides and fallback locale rules." },
|
|
330
|
+
fields: {
|
|
331
|
+
code: "Language Code",
|
|
332
|
+
name: "Name",
|
|
333
|
+
nativeName: "Native Name",
|
|
334
|
+
region: "Region",
|
|
335
|
+
isDefault: "Set as default language",
|
|
336
|
+
dateFormat: "Date Format",
|
|
337
|
+
timeFormat: "Time Format",
|
|
338
|
+
numberFormat: "Number Format",
|
|
339
|
+
currencyCode: "Currency Code"
|
|
340
|
+
},
|
|
341
|
+
direction: {
|
|
342
|
+
ltr: "LTR (Left to Right)",
|
|
343
|
+
rtl: "RTL (Right to Left)"
|
|
344
|
+
},
|
|
345
|
+
fallback: {
|
|
346
|
+
current: "Current",
|
|
347
|
+
remove: "Remove",
|
|
348
|
+
add: "+ Add Fallback Language",
|
|
349
|
+
spanish: "Spanish (es-ES)",
|
|
350
|
+
spanishShort: "Spanish (es)",
|
|
351
|
+
englishShort: "English (en)"
|
|
352
|
+
},
|
|
353
|
+
pluralRules: { description: "Plural Rules (CLDR-based)" },
|
|
354
|
+
formatPreview: {
|
|
355
|
+
date: "Preview: 25/12/2025",
|
|
356
|
+
time: "Preview: 14:30",
|
|
357
|
+
number: "Preview: 1.234,56",
|
|
358
|
+
symbol: "Symbol: €"
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
} };
|
|
362
|
+
function t(e, n = "") {
|
|
363
|
+
let r = {};
|
|
364
|
+
for (let [i, a] of Object.entries(e)) {
|
|
365
|
+
let e = n ? `${n}.${i}` : i;
|
|
366
|
+
typeof a == "string" ? r[e] = a : a && typeof a == "object" && Object.assign(r, t(a, e));
|
|
367
|
+
}
|
|
368
|
+
return r;
|
|
369
|
+
}
|
|
370
|
+
var n = t(e);
|
|
371
|
+
//#endregion
|
|
372
|
+
export { n as enTranslations };
|
package/dist/i18n.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useI18n as e } from "./i18n/providers/I18nProvider.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { useTr as t } from "./i18n/hooks/useTr.js";
|
|
3
|
+
import { useI18nStore as n } from "./i18n/store/i18nStore.js";
|
|
4
|
+
import { I18nRoot as r } from "./i18n/I18nRoot.js";
|
|
5
|
+
export { r as I18nRoot, e as useI18n, n as useI18nStore, t as useTr };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-i18n",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.830.1",
|
|
4
4
|
"description": "Internationalization (i18n) micro-frontend module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"lint:sanity": "if [ \"${CI:-}\" = \"true\" ]; then bun run lint; else bun run lint -- --cache --cache-location .eslintcache; fi",
|
|
23
23
|
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
24
24
|
"type:check": "bash scripts/build-limits.sh tsc --noEmit",
|
|
25
|
-
"
|
|
25
|
+
"test": "bun test",
|
|
26
|
+
"sanity": "bash scripts/build-limits.sh --gate bash -c 'bun run codegen && bun run lint:sanity && bun run format && bun run type:check && bun run test && bun run build'",
|
|
26
27
|
"schema:pull": "echo \"No GraphQL operations — skipping schema:pull\"",
|
|
27
28
|
"codegen": "echo \"No GraphQL operations — skipping codegen\"",
|
|
28
29
|
"codegen:all": "echo \"No GraphQL operations — skipping codegen:all\"",
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"@apollo/client": "^3.12.0"
|
|
68
69
|
},
|
|
69
70
|
"publishConfig": {
|
|
70
|
-
"access": "
|
|
71
|
+
"access": "public"
|
|
71
72
|
},
|
|
72
73
|
"types": "./dist/index.d.ts",
|
|
73
74
|
"files": [
|