@xlsx-editor.dev/i18n 0.0.0-stage → 0.1.0-beta.0

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.
@@ -0,0 +1,730 @@
1
+ /**
2
+ * Shared locale data, types, and runtime helpers for the @xlsx-editor.dev
3
+ * editor adapters.
4
+ *
5
+ * Import everything from the package root. `sideEffects: false` lets
6
+ * consumer bundlers tree-shake unused locales.
7
+ *
8
+ * ```ts
9
+ * import {
10
+ * en, // typed locale data
11
+ * locales, // record keyed by BCP-47 tag
12
+ * deepMerge, createT, // build a t() for custom hosts
13
+ * type LocaleStrings, // shape of `en` (source of truth)
14
+ * type Translations, // shape of a community partial
15
+ * type TranslationKey, // every valid `t()` key
16
+ * type LocaleCode, // 'en', the one locale shipped
17
+ * } from '@xlsx-editor.dev/i18n';
18
+ * ```
19
+ *
20
+ * The React adapter wraps `createT` in its own bindings: the `locale` prop
21
+ * of `XlsxEditor.Root` and the `useTranslation` hook. Use those for app
22
+ * code. Reach for `createT` directly when building another host.
23
+ *
24
+ * @packageDocumentation
25
+ * @public
26
+ */
27
+ declare const enJson: {
28
+ _lang: string;
29
+ common: {
30
+ apply: string;
31
+ cancel: string;
32
+ };
33
+ viewport: {
34
+ ariaLabel: string;
35
+ };
36
+ grid: {
37
+ label: string;
38
+ exitDescription: string;
39
+ exitHint: string;
40
+ activeCell: string;
41
+ activeCellEmpty: string;
42
+ selectedRange: string;
43
+ selectedRow: string;
44
+ selectedRows: string;
45
+ selectedColumn: string;
46
+ selectedColumns: string;
47
+ selectedSheet: string;
48
+ selectionCell: string;
49
+ decimalsIncreased: string;
50
+ decimalsDecreased: string;
51
+ numberFormatChanged: string;
52
+ activeFormula: string;
53
+ activeFormulaNoResult: string;
54
+ staleResult: string;
55
+ staleNoResult: string;
56
+ textContinues: string;
57
+ sheetActive: string;
58
+ undone: string;
59
+ redone: string;
60
+ undoneAt: string;
61
+ redoneAt: string;
62
+ undoneOnSheet: string;
63
+ redoneOnSheet: string;
64
+ undoneSheet: string;
65
+ redoneSheet: string;
66
+ zoom: string;
67
+ typingUndone: string;
68
+ copied: string;
69
+ cut: string;
70
+ cutEnded: string;
71
+ copyUnmarked: string;
72
+ sheetAdded: string;
73
+ sheetMoved: string;
74
+ sheetDeleted: string;
75
+ sheetAddUndone: string;
76
+ sheetAddRedone: string;
77
+ sheetDeleteUndone: string;
78
+ sheetDeleteRedone: string;
79
+ sheetRenameUndone: string;
80
+ sheetRenameRedone: string;
81
+ sheetMoveUndone: string;
82
+ sheetMoveRedone: string;
83
+ };
84
+ formulaBar: {
85
+ nameBox: string;
86
+ nameBoxHint: string;
87
+ content: string;
88
+ contentHint: string;
89
+ lines: string;
90
+ shortened: string;
91
+ shortenedEdit: string;
92
+ };
93
+ sheetTabs: {
94
+ ariaLabel: string;
95
+ newSheetName: string;
96
+ add: string;
97
+ menu: string;
98
+ rename: string;
99
+ delete: string;
100
+ moveLeft: string;
101
+ moveRight: string;
102
+ renameInput: string;
103
+ };
104
+ zoom: {
105
+ zoomIn: string;
106
+ zoomOut: string;
107
+ zoomLevel: string;
108
+ reset: string;
109
+ resetAt: string;
110
+ };
111
+ status: {
112
+ empty: string;
113
+ loading: string;
114
+ stale: string;
115
+ staleShort: string;
116
+ protected: string;
117
+ protectedShort: string;
118
+ viewWaits: string;
119
+ viewWaitsShort: string;
120
+ conditionalHidden: string;
121
+ conditionalHiddenShort: string;
122
+ failed: {
123
+ package: string;
124
+ fonts: string;
125
+ noWorksheet: string;
126
+ tooLarge: string;
127
+ tooLargePart: string;
128
+ smallerCopy: string;
129
+ };
130
+ limits: {
131
+ zipMaxEntries: string;
132
+ zipMaxTotalBytes: string;
133
+ zipMaxRatio: string;
134
+ xmlMaxBytes: string;
135
+ xmlMaxElements: string;
136
+ xmlMaxDepth: string;
137
+ };
138
+ pastLimit: {
139
+ styles: string;
140
+ theme: string;
141
+ drawing: string;
142
+ relationships: string;
143
+ other: string;
144
+ more: string;
145
+ short: string;
146
+ };
147
+ };
148
+ editing: {
149
+ decimalsUnchanged: string;
150
+ resizeUnreadDrawing: string;
151
+ cellEditor: string;
152
+ anchoredObject: string;
153
+ refused: {
154
+ "unknown-sheet": string;
155
+ "bad-reference": string;
156
+ "bad-value": string;
157
+ "text-too-long": string;
158
+ "bad-size": string;
159
+ "merge-one-cell": string;
160
+ "merge-overlap": string;
161
+ "merge-drops-values": string;
162
+ "bad-position": string;
163
+ "invalid-sheet": string;
164
+ "shared-formula": string;
165
+ "unreadable-formula": string;
166
+ "formula-syntax": string;
167
+ "r1c1-formula": string;
168
+ "unsupported-function": string;
169
+ "unknown-formula-reference": string;
170
+ "invalid-character": string;
171
+ "unsupported-package": string;
172
+ "cell-alternate-content": string;
173
+ "bad-format": string;
174
+ "unreadable-number-format": string;
175
+ "range-too-large": string;
176
+ "clear-too-large": string;
177
+ "decimals-too-large": string;
178
+ "decimals-unchanged": string;
179
+ "style-limit": string;
180
+ "invalid-part": string;
181
+ locked: string;
182
+ "structure-blocked": string;
183
+ "sheet-range-blocked": string;
184
+ "grid-full": string;
185
+ "stale-revision": string;
186
+ "save-failed": string;
187
+ "sheet-name-invalid": string;
188
+ "sheet-name-too-long": string;
189
+ "sheet-name-taken": string;
190
+ "sheet-name-ambiguous": string;
191
+ "last-sheet": string;
192
+ "nothing-to-undo": string;
193
+ "nothing-to-redo": string;
194
+ "not-editable": string;
195
+ "whole-sheet": string;
196
+ "merged-range": string;
197
+ "paste-html": string;
198
+ "copy-too-large": string;
199
+ "copy-conditional-limit": string;
200
+ "copy-array-formula": string;
201
+ "copy-unreadable-formula": string;
202
+ "copy-wrapped-formula": string;
203
+ "paste-unreadable-formula": string;
204
+ "cut-wrapped-value": string;
205
+ "cut-expired": string;
206
+ "copy-expired": string;
207
+ "paste-name-scope": string;
208
+ "paste-reference-outside": string;
209
+ "too-many-rows": string;
210
+ "resize-anchor": string;
211
+ "view-mode": string;
212
+ composing: string;
213
+ "edit-pending": string;
214
+ "edit-dropped": string;
215
+ loading: string;
216
+ "go-to-reference": string;
217
+ "go-to-name": string;
218
+ "go-to-sheet": string;
219
+ };
220
+ refusedUnnamed: {
221
+ "shared-formula": string;
222
+ "unsupported-function": string;
223
+ "cell-alternate-content": string;
224
+ "merge-drops-values": string;
225
+ "structure-blocked": string;
226
+ "grid-full": string;
227
+ "sheet-range-blocked": string;
228
+ "sheet-name-too-long": string;
229
+ "sheet-name-taken": string;
230
+ "sheet-name-ambiguous": string;
231
+ "copy-array-formula": string;
232
+ "copy-unreadable-formula": string;
233
+ "copy-wrapped-formula": string;
234
+ "cut-wrapped-value": string;
235
+ "paste-unreadable-formula": string;
236
+ "paste-name-scope": string;
237
+ "paste-reference-outside": string;
238
+ "resize-anchor": string;
239
+ "go-to-name": string;
240
+ "go-to-sheet": string;
241
+ "merge-overlap": string;
242
+ };
243
+ cutRefused: {
244
+ loading: string;
245
+ "view-mode": string;
246
+ "not-editable": string;
247
+ "merged-range": string;
248
+ "copy-too-large": string;
249
+ "copy-conditional-limit": string;
250
+ "copy-array-formula": string;
251
+ "copy-unreadable-formula": string;
252
+ "copy-wrapped-formula": string;
253
+ "cut-wrapped-value": string;
254
+ "cell-alternate-content": string;
255
+ "shared-formula": string;
256
+ "invalid-sheet": string;
257
+ other: string;
258
+ };
259
+ cutRefusedUnnamed: {
260
+ "copy-array-formula": string;
261
+ "copy-unreadable-formula": string;
262
+ "copy-wrapped-formula": string;
263
+ "cut-wrapped-value": string;
264
+ "cell-alternate-content": string;
265
+ "shared-formula": string;
266
+ };
267
+ wrappedFormulaRefused: {
268
+ named: string;
269
+ unnamed: string;
270
+ };
271
+ notWorksheetRefused: {
272
+ named: string;
273
+ unnamed: string;
274
+ };
275
+ alternateRefused: {
276
+ clear: string;
277
+ clearAll: string;
278
+ paste: string;
279
+ merge: string;
280
+ commit: string;
281
+ };
282
+ alternateRefusedUnnamed: {
283
+ merge: string;
284
+ commit: string;
285
+ };
286
+ formulaRangeRefused: {
287
+ clear: string;
288
+ clearAll: string;
289
+ paste: string;
290
+ merge: string;
291
+ commit: string;
292
+ };
293
+ formulaRangeRefusedUnnamed: {
294
+ clear: string;
295
+ clearAll: string;
296
+ paste: string;
297
+ merge: string;
298
+ commit: string;
299
+ };
300
+ formulaCellRefused: {
301
+ edit: string;
302
+ save: string;
303
+ cut: string;
304
+ clear: string;
305
+ clearAll: string;
306
+ paste: string;
307
+ merge: string;
308
+ commit: string;
309
+ };
310
+ formulaUnreadableRefused: {
311
+ edit: string;
312
+ save: string;
313
+ cut: string;
314
+ clear: string;
315
+ clearAll: string;
316
+ paste: string;
317
+ merge: string;
318
+ commit: string;
319
+ };
320
+ lockedRefused: {
321
+ format: string;
322
+ clearFormats: string;
323
+ clearAll: string;
324
+ clear: string;
325
+ cut: string;
326
+ cutFormats: string;
327
+ paste: string;
328
+ pasteFormats: string;
329
+ structure: string;
330
+ size: string;
331
+ workbook: string;
332
+ merge: string;
333
+ };
334
+ saveRefused: {
335
+ loading: string;
336
+ "not-editable": string;
337
+ "save-failed": string;
338
+ composing: string;
339
+ "view-mode": string;
340
+ "unknown-sheet": string;
341
+ "bad-reference": string;
342
+ "bad-value": string;
343
+ "text-too-long": string;
344
+ "invalid-sheet": string;
345
+ "shared-formula": string;
346
+ "unreadable-formula": string;
347
+ "formula-syntax": string;
348
+ "r1c1-formula": string;
349
+ "unsupported-function": string;
350
+ "unknown-formula-reference": string;
351
+ "invalid-character": string;
352
+ "unsupported-package": string;
353
+ "cell-alternate-content": string;
354
+ "style-limit": string;
355
+ "invalid-part": string;
356
+ locked: string;
357
+ "stale-revision": string;
358
+ other: string;
359
+ };
360
+ saveRefusedUnnamed: {
361
+ "unsupported-function": string;
362
+ "shared-formula": string;
363
+ "cell-alternate-content": string;
364
+ };
365
+ };
366
+ formattingBar: {
367
+ label: string;
368
+ groups: {
369
+ history: string;
370
+ font: string;
371
+ fill: string;
372
+ borders: string;
373
+ alignment: string;
374
+ number: string;
375
+ cells: string;
376
+ clear: string;
377
+ file: string;
378
+ };
379
+ undo: string;
380
+ redo: string;
381
+ bold: string;
382
+ italic: string;
383
+ underline: string;
384
+ fontColor: string;
385
+ fillColor: string;
386
+ more: string;
387
+ };
388
+ font: {
389
+ selectAriaLabel: string;
390
+ };
391
+ fontSize: {
392
+ label: string;
393
+ typeSize: string;
394
+ invalid: string;
395
+ };
396
+ colorPicker: {
397
+ noFill: string;
398
+ colors: {
399
+ black: string;
400
+ white: string;
401
+ darkGray: string;
402
+ lightGray: string;
403
+ darkRed: string;
404
+ red: string;
405
+ orange: string;
406
+ yellow: string;
407
+ lightGreen: string;
408
+ green: string;
409
+ lightBlue: string;
410
+ blue: string;
411
+ darkBlue: string;
412
+ purple: string;
413
+ };
414
+ };
415
+ borders: {
416
+ outline: string;
417
+ all: string;
418
+ none: string;
419
+ };
420
+ alignment: {
421
+ alignLeft: string;
422
+ center: string;
423
+ alignRight: string;
424
+ alignTop: string;
425
+ alignMiddle: string;
426
+ alignBottom: string;
427
+ wrapText: string;
428
+ };
429
+ numberFormat: {
430
+ label: string;
431
+ general: string;
432
+ number: string;
433
+ currency: string;
434
+ accounting: string;
435
+ percent: string;
436
+ scientific: string;
437
+ fraction: string;
438
+ shortDate: string;
439
+ longDate: string;
440
+ time: string;
441
+ text: string;
442
+ custom: string;
443
+ family: string;
444
+ increaseDecimals: string;
445
+ decreaseDecimals: string;
446
+ more: string;
447
+ problem: {
448
+ empty: string;
449
+ tooLong: string;
450
+ invalidCharacter: string;
451
+ unreadable: string;
452
+ };
453
+ };
454
+ dialogs: {
455
+ numberFormat: {
456
+ title: string;
457
+ code: string;
458
+ codeHint: string;
459
+ codeHintNoList: string;
460
+ preview: string;
461
+ previewSample: string;
462
+ previewBlank: string;
463
+ existing: string;
464
+ noExisting: string;
465
+ notApplied: string;
466
+ };
467
+ };
468
+ cells: {
469
+ insertRows: string;
470
+ insertColumns: string;
471
+ deleteRows: string;
472
+ deleteColumns: string;
473
+ };
474
+ clear: {
475
+ contents: string;
476
+ formats: string;
477
+ all: string;
478
+ };
479
+ toolbar: {
480
+ save: string;
481
+ disabledTitle: string;
482
+ hintTitle: string;
483
+ };
484
+ structureSubject: {
485
+ cell: string;
486
+ "wrapped-formula": string;
487
+ "cell-content": string;
488
+ row: string;
489
+ "merged-range": string;
490
+ columns: string;
491
+ hyperlink: string;
492
+ "sheet-view": string;
493
+ "conditional-formatting": string;
494
+ "data-validation": string;
495
+ filter: string;
496
+ table: string;
497
+ comment: string;
498
+ drawing: string;
499
+ "linked-drawing": string;
500
+ control: string;
501
+ chart: string;
502
+ "pivot-table": string;
503
+ "other-sheet": string;
504
+ "not-worksheet": string;
505
+ "defined-name": string;
506
+ "sheet-content": string;
507
+ "workbook-content": string;
508
+ };
509
+ hint: {
510
+ conditionalFormat: string;
511
+ decimalsLargeSelection: string;
512
+ };
513
+ disabledReason: {
514
+ editorNotReady: string;
515
+ loading: string;
516
+ notWired: string;
517
+ nothingToUndo: string;
518
+ nothingToRedo: string;
519
+ editPending: string;
520
+ rangeTooLarge: string;
521
+ clearTooLarge: string;
522
+ structureBlocked: string;
523
+ structureBlockedUnnamed: string;
524
+ structureUnavailable: string;
525
+ wholeSheet: string;
526
+ noSave: string;
527
+ viewMode: string;
528
+ locked: string;
529
+ cellAlternateContent: string;
530
+ cellAlternateContentClearAll: string;
531
+ formulaRange: string;
532
+ formulaRangeClearAll: string;
533
+ formulaCell: string;
534
+ formulaCellClearAll: string;
535
+ formulaUnreadable: string;
536
+ formulaUnreadableClearAll: string;
537
+ formatLocked: string;
538
+ stylesUnread: string;
539
+ stylesUnreadProtected: string;
540
+ structureLocked: string;
541
+ workbookLocked: string;
542
+ lastSheet: string;
543
+ notWorksheet: string;
544
+ sheetEditBlocked: string;
545
+ composing: string;
546
+ decimalsNoNumberSelection: string;
547
+ decimalsNoNumber: string;
548
+ decimalsNoShownPlaces: string;
549
+ decimalsGeneralSection: string;
550
+ decimalsGeneralSectionSelection: string;
551
+ decimalsDate: string;
552
+ decimalsDateSelection: string;
553
+ decimalsText: string;
554
+ decimalsTextSelection: string;
555
+ decimalsFraction: string;
556
+ decimalsFractionSelection: string;
557
+ decimalsNoDecimals: string;
558
+ decimalsNoDecimalsSelection: string;
559
+ decimalsNoDecimalsCellSelection: string;
560
+ decimalsMaxDecimals: string;
561
+ decimalsMaxDecimalsSelection: string;
562
+ decimalsMaxDecimalsCellSelection: string;
563
+ decimalsTooLong: string;
564
+ decimalsTooLongSelection: string;
565
+ decimalsUnreadable: string;
566
+ decimalsUnreadableSelection: string;
567
+ decimalsNoCode: string;
568
+ decimalsNoCodeSelection: string;
569
+ decimalsMissingCode: string;
570
+ decimalsMissingCodeSelection: string;
571
+ decimalsTooLarge: string;
572
+ mergeLocked: string;
573
+ mergeOneCell: string;
574
+ mergeOverlap: string;
575
+ noMergedRange: string;
576
+ };
577
+ };
578
+
579
+ /**
580
+ * Shared locale data, types, and runtime helpers for the @xlsx-editor.dev
581
+ * editor adapters.
582
+ *
583
+ * Import everything from the package root. `sideEffects: false` lets
584
+ * consumer bundlers tree-shake unused locales.
585
+ *
586
+ * ```ts
587
+ * import {
588
+ * en, // typed locale data
589
+ * locales, // record keyed by BCP-47 tag
590
+ * deepMerge, createT, // build a t() for custom hosts
591
+ * type LocaleStrings, // shape of `en` (source of truth)
592
+ * type Translations, // shape of a community partial
593
+ * type TranslationKey, // every valid `t()` key
594
+ * type LocaleCode, // 'en', the one locale shipped
595
+ * } from '@xlsx-editor.dev/i18n';
596
+ * ```
597
+ *
598
+ * The React adapter wraps `createT` in its own bindings: the `locale` prop
599
+ * of `XlsxEditor.Root` and the `useTranslation` hook. Use those for app
600
+ * code. Reach for `createT` directly when building another host.
601
+ *
602
+ * @packageDocumentation
603
+ * @public
604
+ */
605
+
606
+ /**
607
+ * Full locale string set, auto-derived from `en.json` (the source of truth).
608
+ * Every other locale is a `PartialLocaleStrings` against this shape.
609
+ *
610
+ * @public
611
+ */
612
+ type LocaleStrings = typeof enJson;
613
+ /**
614
+ * Every locale code shipped from this package. Pass to `locales[code]`
615
+ * for runtime lookup; assign to `_lang` to drive `Intl.PluralRules`.
616
+ *
617
+ * Custom codes are accepted at runtime ({@link PartialLocaleStrings._lang}
618
+ * widens to any string), but the shipped union is the IDE-completion list.
619
+ *
620
+ * @public
621
+ */
622
+ type LocaleCode = 'en';
623
+ /** English (`en`) — the source of truth, 100% covered. @public */
624
+ declare const en: LocaleStrings;
625
+ /**
626
+ * Every shipped locale, keyed by BCP-47 tag. Use for runtime locale
627
+ * pickers and "look up the locale matching this user preference" code:
628
+ *
629
+ * ```ts
630
+ * <XlsxEditor locale={locales[userLocale]} />
631
+ * ```
632
+ *
633
+ * Importing `locales` defeats the per-locale tree-shake — the bundler
634
+ * sees a static reference to every locale. If you only need one or two,
635
+ * import them by name (`import { en } from '@xlsx-editor.dev/i18n'`) instead.
636
+ *
637
+ * @public
638
+ */
639
+ declare const locales: Record<LocaleCode, PartialLocaleStrings>;
640
+ /**
641
+ * Recursive Partial that allows `null` at leaves to signal "not yet
642
+ * translated, fall back to English." Community translations use this shape;
643
+ * `bun run i18n:fix` keeps every locale aligned to `en.json` with `null`
644
+ * placeholders for missing keys.
645
+ *
646
+ * @public
647
+ */
648
+ type DeepPartial<T> = {
649
+ [K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K] | null;
650
+ };
651
+ /**
652
+ * Partial locale strings — what consumers pass to the `locale` prop of
653
+ * `XlsxEditor.Root`.
654
+ * Missing keys fall back to English. Optional `_lang` carries the BCP-47
655
+ * tag used by `Intl.PluralRules`; shipped codes autocomplete but custom
656
+ * strings are accepted.
657
+ *
658
+ * @public
659
+ */
660
+ type PartialLocaleStrings = DeepPartial<LocaleStrings> & {
661
+ _lang?: LocaleCode | (string & {});
662
+ /**
663
+ * Reserved for the writing direction of the interface strings, as DOCX Editor's catalogs
664
+ * carry it. It has no effect: the chrome is laid out left to right, and only English ships.
665
+ */
666
+ _dir?: 'ltr' | 'rtl' | (string & {});
667
+ };
668
+ /**
669
+ * Alias for `PartialLocaleStrings`. Prefer this name when typing the
670
+ * consumer-facing `locale` prop or a function parameter.
671
+ *
672
+ * @public
673
+ */
674
+ type Translations = PartialLocaleStrings;
675
+ type DotPath<T, Prefix extends string = ''> = {
676
+ [K in keyof T & string]: T[K] extends Record<string, unknown> ? DotPath<T[K], `${Prefix}${K}.`> : `${Prefix}${K}`;
677
+ }[keyof T & string];
678
+ /**
679
+ * Every valid dot-notation key into `LocaleStrings`, e.g. `'zoom.zoomIn'`
680
+ * or `'grid.label'`. Pass to `t(key, vars?)` for
681
+ * compile-time-checked translation lookup.
682
+ *
683
+ * @public
684
+ */
685
+ type TranslationKey = DotPath<LocaleStrings>;
686
+ type AnyRecord = Record<string, unknown>;
687
+ /**
688
+ * Deep-merge a partial locale over a base locale. Null leaves in the
689
+ * override are treated as "not translated" and fall back to the base.
690
+ * The adapter calls this once when the `locale` prop changes, then hands the
691
+ * result to {@link createT}.
692
+ *
693
+ * @public
694
+ */
695
+ declare function deepMerge(base: AnyRecord, override: AnyRecord | undefined): AnyRecord;
696
+ /**
697
+ * The signature of `t()`: look up a translation by dot-notation key,
698
+ * interpolate `{vars}`, and resolve ICU plurals.
699
+ *
700
+ * @public
701
+ */
702
+ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) => string;
703
+ /**
704
+ * Build a typed `t(key, vars?)` function from a merged locale.
705
+ *
706
+ * - **Lookup**: dot-notation paths against the locale tree
707
+ * (`'zoom.zoomIn'`, `'grid.label'`).
708
+ * - **Interpolation**: `{name}` placeholders read from `vars`.
709
+ * - **Plurals**: ICU `{count, plural, =0 {none} one {# item} other {# items}}`
710
+ * with `Intl.PluralRules` for CLDR categories and `=N` for exact matches.
711
+ * - **Fallback**: missing keys return the key string itself, useful for
712
+ * spotting un-translated UI in development.
713
+ *
714
+ * The React adapter wraps this in `useTranslation()`; use it directly
715
+ * when building another host (server-rendered docs, CLI, etc.).
716
+ *
717
+ * @example
718
+ * ```ts
719
+ * import { deepMerge, createT, en } from '@xlsx-editor.dev/i18n';
720
+ * const t = createT(en);
721
+ * t('zoom.zoomIn'); // → 'Zoom in'
722
+ * t('grid.label', { sheet: 'Sales' });
723
+ * ```
724
+ *
725
+ * @public
726
+ */
727
+ declare function createT(strings: LocaleStrings, lang?: string): TFunction;
728
+
729
+ export { createT, deepMerge, en, locales };
730
+ export type { DeepPartial, LocaleCode, LocaleStrings, PartialLocaleStrings, TFunction, TranslationKey, Translations };