@feedmepos/mf-common 1.26.4 → 1.26.5

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.d.ts ADDED
@@ -0,0 +1,812 @@
1
+ import type { FeedMeI18nOptions } from "@feedmepos/i18n";
2
+ import { useI18n } from "@feedmepos/i18n";
3
+ import portalShellEnUS from "./locales/portalshell/en-US.json";
4
+ export { useI18n };
5
+ export { setEnabledLocales } from "./composables/useLocale";
6
+ export { useLocale } from "./composables/useLocale";
7
+ export type { FeedMeI18nOptions, I18n, DefineLocaleMessage } from "@feedmepos/i18n";
8
+ export { type CommonMessagesSchema } from "./locales/common/types";
9
+ export type PortalShellI18nSchema = typeof portalShellEnUS;
10
+ export declare const i18nMessages: {
11
+ "en-US": {
12
+ common: {
13
+ yes: string;
14
+ no: string;
15
+ ok: string;
16
+ accept: string;
17
+ download: string;
18
+ export: string;
19
+ import: string;
20
+ save: string;
21
+ update: string;
22
+ cancel: string;
23
+ confirm: string;
24
+ delete: string;
25
+ edit: string;
26
+ create: string;
27
+ search: string;
28
+ filter: string;
29
+ sort: string;
30
+ refresh: string;
31
+ close: string;
32
+ back: string;
33
+ continue: string;
34
+ next: string;
35
+ previous: string;
36
+ add: string;
37
+ remove: string;
38
+ select: string;
39
+ selectAll: string;
40
+ unselectAll: string;
41
+ selected: string;
42
+ };
43
+ portalCommon: {
44
+ dismiss: {
45
+ title: string;
46
+ message: string;
47
+ primaryActions: string;
48
+ };
49
+ };
50
+ portalshell: {
51
+ menu: {
52
+ account: string;
53
+ business: string;
54
+ myBusiness: string;
55
+ manageAccount: string;
56
+ country: {
57
+ label: string;
58
+ au: string;
59
+ bn: string;
60
+ my: string;
61
+ sg: string;
62
+ id: string;
63
+ th: string;
64
+ vn: string;
65
+ ph: string;
66
+ hk: string;
67
+ mo: string;
68
+ };
69
+ language: string;
70
+ logOut: string;
71
+ debug: string;
72
+ stopDebug: string;
73
+ };
74
+ apps: {
75
+ section: {
76
+ switchTo: string;
77
+ devSpace: string;
78
+ };
79
+ actions: {
80
+ settings: string;
81
+ switchToV2: string;
82
+ };
83
+ pos: {
84
+ label: string;
85
+ sublabel: string;
86
+ };
87
+ connect: {
88
+ label: string;
89
+ sublabel: string;
90
+ };
91
+ report: {
92
+ label: string;
93
+ sublabel: string;
94
+ };
95
+ inventory: {
96
+ label: string;
97
+ sublabel: string;
98
+ };
99
+ brand: {
100
+ label: string;
101
+ sublabel: string;
102
+ };
103
+ payment: {
104
+ label: string;
105
+ sublabel: string;
106
+ };
107
+ settings: {
108
+ label: string;
109
+ };
110
+ adminSpace: {
111
+ label: string;
112
+ sublabel: string;
113
+ };
114
+ };
115
+ messages: {
116
+ businessCopySuccess: string;
117
+ restaurantCopySuccess: string;
118
+ loadError: string;
119
+ };
120
+ selectBusiness: {
121
+ title: string;
122
+ searchPlaceholder: string;
123
+ createBusiness: string;
124
+ noBusiness: string;
125
+ noBusinessFound: string;
126
+ };
127
+ myBusiness: {
128
+ title: string;
129
+ };
130
+ debugUser: {
131
+ title: string;
132
+ subtitle: string;
133
+ debug: string;
134
+ phoneEmpty: string;
135
+ debugFailed: string;
136
+ stopDebugTitle: string;
137
+ stopDebugMessage: string;
138
+ stopDebugFailed: string;
139
+ };
140
+ logOut: {
141
+ title: string;
142
+ subtitle: string;
143
+ logOut: string;
144
+ };
145
+ manageAccount: {
146
+ title: string;
147
+ basicInfo: string;
148
+ name: string;
149
+ email: string;
150
+ phone: string;
151
+ password: string;
152
+ passwordSubtitle: string;
153
+ changePassword: string;
154
+ profileUpdated: string;
155
+ failedToUpdateProfile: string;
156
+ nameRequired: string;
157
+ emailRequired: string;
158
+ emailInvalid: string;
159
+ };
160
+ changePassword: {
161
+ step1: {
162
+ title: string;
163
+ subtitle: string;
164
+ currentPassword: string;
165
+ forgotPassword: string;
166
+ passwordConfirmed: string;
167
+ passwordConfirmFailed: string;
168
+ };
169
+ step2: {
170
+ title: string;
171
+ newPassword: string;
172
+ confirmNewPassword: string;
173
+ changePassword: string;
174
+ passwordChanged: string;
175
+ failedToChangePassword: string;
176
+ newPasswordRequired: string;
177
+ passwordMustBeAtLeast8Characters: string;
178
+ useAtLeast8Characters: string;
179
+ passwordsDoNotMatch: string;
180
+ };
181
+ };
182
+ customAttributes: {
183
+ form: {
184
+ key: string;
185
+ value: string;
186
+ valuePlaceholder: string;
187
+ attributeValueMustBeNumber: string;
188
+ noCustomAttributes: string;
189
+ };
190
+ queryBuilder: {
191
+ any: string;
192
+ noAttributeSettings: string;
193
+ };
194
+ };
195
+ components: {
196
+ restaurantSelector: {
197
+ allRestaurants: string;
198
+ restaurantCount: string;
199
+ selectRestaurant: string;
200
+ unknownRestaurant: string;
201
+ restaurantTaggingFilter: string;
202
+ resetFilter: string;
203
+ };
204
+ itemSelector: {
205
+ productsSelected: string;
206
+ expandAll: string;
207
+ collapseAll: string;
208
+ selectAll: string;
209
+ };
210
+ };
211
+ };
212
+ };
213
+ "zh-CN": {
214
+ common: {
215
+ yes: string;
216
+ no: string;
217
+ ok: string;
218
+ accept: string;
219
+ download: string;
220
+ export: string;
221
+ import: string;
222
+ save: string;
223
+ update: string;
224
+ cancel: string;
225
+ confirm: string;
226
+ delete: string;
227
+ edit: string;
228
+ create: string;
229
+ search: string;
230
+ filter: string;
231
+ sort: string;
232
+ refresh: string;
233
+ close: string;
234
+ back: string;
235
+ continue: string;
236
+ next: string;
237
+ previous: string;
238
+ add: string;
239
+ remove: string;
240
+ select: string;
241
+ selectAll: string;
242
+ unselectAll: string;
243
+ selected: string;
244
+ };
245
+ portalCommon: {
246
+ dismiss: {
247
+ title: string;
248
+ message: string;
249
+ primaryActions: string;
250
+ };
251
+ };
252
+ portalshell: {
253
+ menu: {
254
+ account: string;
255
+ business: string;
256
+ myBusiness: string;
257
+ manageAccount: string;
258
+ country: {
259
+ label: string;
260
+ au: string;
261
+ bn: string;
262
+ my: string;
263
+ sg: string;
264
+ id: string;
265
+ th: string;
266
+ vn: string;
267
+ ph: string;
268
+ hk: string;
269
+ mo: string;
270
+ };
271
+ language: string;
272
+ logOut: string;
273
+ debug: string;
274
+ stopDebug: string;
275
+ };
276
+ apps: {
277
+ section: {
278
+ switchTo: string;
279
+ devSpace: string;
280
+ };
281
+ actions: {
282
+ settings: string;
283
+ switchToV2: string;
284
+ };
285
+ pos: {
286
+ label: string;
287
+ sublabel: string;
288
+ };
289
+ connect: {
290
+ label: string;
291
+ sublabel: string;
292
+ };
293
+ report: {
294
+ label: string;
295
+ sublabel: string;
296
+ };
297
+ inventory: {
298
+ label: string;
299
+ sublabel: string;
300
+ };
301
+ brand: {
302
+ label: string;
303
+ sublabel: string;
304
+ };
305
+ payment: {
306
+ label: string;
307
+ sublabel: string;
308
+ };
309
+ settings: {
310
+ label: string;
311
+ };
312
+ adminSpace: {
313
+ label: string;
314
+ sublabel: string;
315
+ };
316
+ };
317
+ messages: {
318
+ businessCopySuccess: string;
319
+ restaurantCopySuccess: string;
320
+ };
321
+ selectBusiness: {
322
+ title: string;
323
+ searchPlaceholder: string;
324
+ createBusiness: string;
325
+ noBusiness: string;
326
+ noBusinessFound: string;
327
+ };
328
+ myBusiness: {
329
+ title: string;
330
+ };
331
+ debugUser: {
332
+ title: string;
333
+ subtitle: string;
334
+ debug: string;
335
+ phoneEmpty: string;
336
+ debugFailed: string;
337
+ stopDebugTitle: string;
338
+ stopDebugMessage: string;
339
+ stopDebugFailed: string;
340
+ };
341
+ logOut: {
342
+ title: string;
343
+ subtitle: string;
344
+ logOut: string;
345
+ };
346
+ manageAccount: {
347
+ title: string;
348
+ basicInfo: string;
349
+ name: string;
350
+ email: string;
351
+ phone: string;
352
+ password: string;
353
+ passwordSubtitle: string;
354
+ changePassword: string;
355
+ profileUpdated: string;
356
+ failedToUpdateProfile: string;
357
+ nameRequired: string;
358
+ emailRequired: string;
359
+ emailInvalid: string;
360
+ };
361
+ changePassword: {
362
+ step1: {
363
+ title: string;
364
+ subtitle: string;
365
+ currentPassword: string;
366
+ forgotPassword: string;
367
+ passwordConfirmed: string;
368
+ passwordConfirmFailed: string;
369
+ };
370
+ step2: {
371
+ title: string;
372
+ newPassword: string;
373
+ confirmNewPassword: string;
374
+ changePassword: string;
375
+ passwordChanged: string;
376
+ failedToChangePassword: string;
377
+ newPasswordRequired: string;
378
+ passwordMustBeAtLeast8Characters: string;
379
+ useAtLeast8Characters: string;
380
+ passwordsDoNotMatch: string;
381
+ };
382
+ };
383
+ customAttributes: {
384
+ form: {
385
+ key: string;
386
+ value: string;
387
+ valuePlaceholder: string;
388
+ attributeValueMustBeNumber: string;
389
+ };
390
+ queryBuilder: {
391
+ any: string;
392
+ noAttributeSettings: string;
393
+ };
394
+ };
395
+ components: {
396
+ restaurantSelector: {
397
+ allRestaurants: string;
398
+ restaurantCount: string;
399
+ selectRestaurant: string;
400
+ unknownRestaurant: string;
401
+ restaurantTaggingFilter: string;
402
+ resetFilter: string;
403
+ };
404
+ itemSelector: {
405
+ productsSelected: string;
406
+ expandAll: string;
407
+ collapseAll: string;
408
+ selectAll: string;
409
+ };
410
+ };
411
+ };
412
+ };
413
+ "th-TH": {
414
+ common: {
415
+ yes: string;
416
+ no: string;
417
+ ok: string;
418
+ accept: string;
419
+ download: string;
420
+ export: string;
421
+ import: string;
422
+ save: string;
423
+ update: string;
424
+ cancel: string;
425
+ confirm: string;
426
+ delete: string;
427
+ edit: string;
428
+ create: string;
429
+ search: string;
430
+ filter: string;
431
+ sort: string;
432
+ refresh: string;
433
+ close: string;
434
+ back: string;
435
+ continue: string;
436
+ next: string;
437
+ previous: string;
438
+ add: string;
439
+ remove: string;
440
+ select: string;
441
+ selectAll: string;
442
+ unselectAll: string;
443
+ selected: string;
444
+ };
445
+ portalCommon: {
446
+ dismiss: {
447
+ title: string;
448
+ message: string;
449
+ primaryActions: string;
450
+ };
451
+ };
452
+ portalshell: {
453
+ menu: {
454
+ account: string;
455
+ business: string;
456
+ myBusiness: string;
457
+ manageAccount: string;
458
+ country: {
459
+ label: string;
460
+ my: string;
461
+ sg: string;
462
+ id: string;
463
+ th: string;
464
+ vn: string;
465
+ ph: string;
466
+ hk: string;
467
+ mo: string;
468
+ };
469
+ language: string;
470
+ logOut: string;
471
+ debug: string;
472
+ stopDebug: string;
473
+ };
474
+ apps: {
475
+ section: {
476
+ switchTo: string;
477
+ devSpace: string;
478
+ };
479
+ actions: {
480
+ settings: string;
481
+ switchToV2: string;
482
+ };
483
+ pos: {
484
+ label: string;
485
+ sublabel: string;
486
+ };
487
+ connect: {
488
+ label: string;
489
+ sublabel: string;
490
+ };
491
+ report: {
492
+ label: string;
493
+ sublabel: string;
494
+ };
495
+ inventory: {
496
+ label: string;
497
+ sublabel: string;
498
+ };
499
+ brand: {
500
+ label: string;
501
+ sublabel: string;
502
+ };
503
+ payment: {
504
+ label: string;
505
+ sublabel: string;
506
+ };
507
+ settings: {
508
+ label: string;
509
+ };
510
+ adminSpace: {
511
+ label: string;
512
+ sublabel: string;
513
+ };
514
+ };
515
+ messages: {
516
+ businessCopySuccess: string;
517
+ restaurantCopySuccess: string;
518
+ loadError: string;
519
+ };
520
+ selectBusiness: {
521
+ title: string;
522
+ searchPlaceholder: string;
523
+ createBusiness: string;
524
+ noBusiness: string;
525
+ noBusinessFound: string;
526
+ };
527
+ myBusiness: {
528
+ title: string;
529
+ };
530
+ debugUser: {
531
+ title: string;
532
+ subtitle: string;
533
+ debug: string;
534
+ phoneEmpty: string;
535
+ debugFailed: string;
536
+ stopDebugTitle: string;
537
+ stopDebugMessage: string;
538
+ stopDebugFailed: string;
539
+ };
540
+ logOut: {
541
+ title: string;
542
+ subtitle: string;
543
+ logOut: string;
544
+ };
545
+ manageAccount: {
546
+ title: string;
547
+ basicInfo: string;
548
+ name: string;
549
+ email: string;
550
+ phone: string;
551
+ password: string;
552
+ passwordSubtitle: string;
553
+ changePassword: string;
554
+ profileUpdated: string;
555
+ failedToUpdateProfile: string;
556
+ nameRequired: string;
557
+ emailRequired: string;
558
+ emailInvalid: string;
559
+ };
560
+ changePassword: {
561
+ step1: {
562
+ title: string;
563
+ subtitle: string;
564
+ currentPassword: string;
565
+ forgotPassword: string;
566
+ passwordConfirmed: string;
567
+ passwordConfirmFailed: string;
568
+ };
569
+ step2: {
570
+ title: string;
571
+ newPassword: string;
572
+ confirmNewPassword: string;
573
+ changePassword: string;
574
+ passwordChanged: string;
575
+ failedToChangePassword: string;
576
+ newPasswordRequired: string;
577
+ passwordMustBeAtLeast8Characters: string;
578
+ useAtLeast8Characters: string;
579
+ passwordsDoNotMatch: string;
580
+ };
581
+ };
582
+ customAttributes: {
583
+ form: {
584
+ key: string;
585
+ value: string;
586
+ valuePlaceholder: string;
587
+ attributeValueMustBeNumber: string;
588
+ noCustomAttributes: string;
589
+ };
590
+ queryBuilder: {
591
+ any: string;
592
+ noAttributeSettings: string;
593
+ };
594
+ };
595
+ components: {
596
+ restaurantSelector: {
597
+ allRestaurants: string;
598
+ restaurantCount: string;
599
+ selectRestaurant: string;
600
+ unknownRestaurant: string;
601
+ restaurantTaggingFilter: string;
602
+ resetFilter: string;
603
+ };
604
+ itemSelector: {
605
+ productsSelected: string;
606
+ };
607
+ };
608
+ };
609
+ };
610
+ "zh-Hant": {
611
+ common: {
612
+ yes: string;
613
+ no: string;
614
+ ok: string;
615
+ accept: string;
616
+ download: string;
617
+ export: string;
618
+ import: string;
619
+ save: string;
620
+ update: string;
621
+ cancel: string;
622
+ confirm: string;
623
+ delete: string;
624
+ edit: string;
625
+ create: string;
626
+ search: string;
627
+ filter: string;
628
+ sort: string;
629
+ refresh: string;
630
+ close: string;
631
+ back: string;
632
+ continue: string;
633
+ next: string;
634
+ previous: string;
635
+ add: string;
636
+ remove: string;
637
+ select: string;
638
+ selectAll: string;
639
+ unselectAll: string;
640
+ selected: string;
641
+ };
642
+ portalCommon: {
643
+ dismiss: {
644
+ title: string;
645
+ message: string;
646
+ primaryActions: string;
647
+ };
648
+ };
649
+ portalshell: {
650
+ menu: {
651
+ account: string;
652
+ business: string;
653
+ myBusiness: string;
654
+ manageAccount: string;
655
+ country: {
656
+ label: string;
657
+ au: string;
658
+ bn: string;
659
+ my: string;
660
+ sg: string;
661
+ id: string;
662
+ th: string;
663
+ vn: string;
664
+ ph: string;
665
+ hk: string;
666
+ mo: string;
667
+ };
668
+ language: string;
669
+ logOut: string;
670
+ debug: string;
671
+ stopDebug: string;
672
+ };
673
+ apps: {
674
+ section: {
675
+ switchTo: string;
676
+ devSpace: string;
677
+ };
678
+ actions: {
679
+ settings: string;
680
+ switchToV2: string;
681
+ };
682
+ pos: {
683
+ label: string;
684
+ sublabel: string;
685
+ };
686
+ connect: {
687
+ label: string;
688
+ sublabel: string;
689
+ };
690
+ report: {
691
+ label: string;
692
+ sublabel: string;
693
+ };
694
+ inventory: {
695
+ label: string;
696
+ sublabel: string;
697
+ };
698
+ brand: {
699
+ label: string;
700
+ sublabel: string;
701
+ };
702
+ payment: {
703
+ label: string;
704
+ sublabel: string;
705
+ };
706
+ settings: {
707
+ label: string;
708
+ };
709
+ adminSpace: {
710
+ label: string;
711
+ sublabel: string;
712
+ };
713
+ };
714
+ messages: {
715
+ businessCopySuccess: string;
716
+ restaurantCopySuccess: string;
717
+ };
718
+ selectBusiness: {
719
+ title: string;
720
+ searchPlaceholder: string;
721
+ createBusiness: string;
722
+ noBusiness: string;
723
+ noBusinessFound: string;
724
+ };
725
+ myBusiness: {
726
+ title: string;
727
+ };
728
+ debugUser: {
729
+ title: string;
730
+ subtitle: string;
731
+ debug: string;
732
+ phoneEmpty: string;
733
+ debugFailed: string;
734
+ stopDebugTitle: string;
735
+ stopDebugMessage: string;
736
+ stopDebugFailed: string;
737
+ };
738
+ logOut: {
739
+ title: string;
740
+ subtitle: string;
741
+ logOut: string;
742
+ };
743
+ manageAccount: {
744
+ title: string;
745
+ basicInfo: string;
746
+ name: string;
747
+ email: string;
748
+ phone: string;
749
+ password: string;
750
+ passwordSubtitle: string;
751
+ changePassword: string;
752
+ profileUpdated: string;
753
+ failedToUpdateProfile: string;
754
+ nameRequired: string;
755
+ emailRequired: string;
756
+ emailInvalid: string;
757
+ };
758
+ changePassword: {
759
+ step1: {
760
+ title: string;
761
+ subtitle: string;
762
+ currentPassword: string;
763
+ forgotPassword: string;
764
+ passwordConfirmed: string;
765
+ passwordConfirmFailed: string;
766
+ };
767
+ step2: {
768
+ title: string;
769
+ newPassword: string;
770
+ confirmNewPassword: string;
771
+ changePassword: string;
772
+ passwordChanged: string;
773
+ failedToChangePassword: string;
774
+ newPasswordRequired: string;
775
+ passwordMustBeAtLeast8Characters: string;
776
+ useAtLeast8Characters: string;
777
+ passwordsDoNotMatch: string;
778
+ };
779
+ };
780
+ customAttributes: {
781
+ form: {
782
+ key: string;
783
+ value: string;
784
+ valuePlaceholder: string;
785
+ attributeValueMustBeNumber: string;
786
+ };
787
+ queryBuilder: {
788
+ any: string;
789
+ noAttributeSettings: string;
790
+ };
791
+ };
792
+ components: {
793
+ restaurantSelector: {
794
+ allRestaurants: string;
795
+ restaurantCount: string;
796
+ selectRestaurant: string;
797
+ unknownRestaurant: string;
798
+ restaurantTaggingFilter: string;
799
+ resetFilter: string;
800
+ };
801
+ itemSelector: {
802
+ productsSelected: string;
803
+ expandAll: string;
804
+ collapseAll: string;
805
+ selectAll: string;
806
+ };
807
+ };
808
+ };
809
+ };
810
+ };
811
+ export declare function createFeedMeI18n(options: FeedMeI18nOptions): import("@feedmepos/i18n").I18n<{}, {}, {}, string, boolean>;
812
+ //# sourceMappingURL=i18n.d.ts.map