@engagently/types 4.6.2 → 4.7.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.
Files changed (2) hide show
  1. package/dist/i18n/i18n.d.ts +678 -17
  2. package/package.json +1 -1
@@ -1,8 +1,10 @@
1
- import type { InitOptions } from 'i18next';
1
+ import type { InitOptions, TFuncKey } from 'i18next';
2
2
  import i18n from 'i18next';
3
+ export type TranslationKeys = TFuncKey<[keyof (typeof resources)['en']]>;
4
+ export type Language = 'de' | 'en';
3
5
  export declare const defaultResources: {
4
6
  de: {
5
- common: {
7
+ readonly common: {
6
8
  account: {
7
9
  account: string;
8
10
  bookmarks: string;
@@ -17,6 +19,7 @@ export declare const defaultResources: {
17
19
  cancel: string;
18
20
  close: string;
19
21
  continue: string;
22
+ confirm: string;
20
23
  "open-discussion": string;
21
24
  "go-to-discussion": string;
22
25
  na: string;
@@ -61,8 +64,9 @@ export declare const defaultResources: {
61
64
  };
62
65
  vote: string;
63
66
  vote_other: string;
67
+ "are-you-sure": string;
64
68
  };
65
- discussions: {
69
+ readonly discussions: {
66
70
  alerts: {
67
71
  "featured-comments-only": {
68
72
  message: string;
@@ -173,6 +177,8 @@ export declare const defaultResources: {
173
177
  "no-comments-yet": string;
174
178
  "no-recent-comments": string;
175
179
  "onboarding-username-change": string;
180
+ "username-change-blocked": string;
181
+ "username-change-confirm": string;
176
182
  placeholders: {
177
183
  "new-commentary": string;
178
184
  "new-reply": string;
@@ -218,7 +224,7 @@ export declare const defaultResources: {
218
224
  };
219
225
  };
220
226
  };
221
- emojis: {
227
+ readonly emojis: {
222
228
  categories: {
223
229
  people: string;
224
230
  nature: string;
@@ -233,13 +239,659 @@ export declare const defaultResources: {
233
239
  "recently-used": string;
234
240
  search: string;
235
241
  };
236
- errors: {
242
+ readonly errors: {
237
243
  inline: {
238
244
  "write-comment": string;
239
245
  };
240
246
  "report-commentary": string;
247
+ api: {
248
+ EGY_USERNAME_NOT_EDITABLE: string;
249
+ EGY_USERNAME_LOCKED: string;
250
+ EGY_USERNAME_INVALID: string;
251
+ };
252
+ };
253
+ readonly features: {
254
+ COMMENT: {
255
+ "call-to-action": string;
256
+ };
257
+ COMMENTARY_READ: {
258
+ "call-to-action": string;
259
+ };
260
+ INSTANT_CONTEXT: {
261
+ "call-to-action": string;
262
+ };
263
+ MY_PROFILE: {
264
+ "call-to-action": string;
265
+ };
266
+ ONBOARD_NAMEHINT: {
267
+ "call-to-action": string;
268
+ };
269
+ PROFILE: {
270
+ "call-to-action": string;
271
+ };
272
+ REACTION: {
273
+ "call-to-action": string;
274
+ };
275
+ REPLY: {
276
+ "call-to-action": string;
277
+ };
278
+ REPORT: {
279
+ "call-to-action": string;
280
+ };
281
+ SHARE: {
282
+ "call-to-action": string;
283
+ };
284
+ IGNORE: {
285
+ "call-to-action": string;
286
+ };
287
+ };
288
+ readonly interpolation: {
289
+ comment: string;
290
+ "comment-do": string;
291
+ comments: string;
292
+ conversation: string;
293
+ conversations: string;
294
+ discussion: string;
295
+ discussions: string;
296
+ list: string;
297
+ lists: string;
298
+ message: string;
299
+ messages: string;
300
+ poll: string;
301
+ polls: string;
302
+ replies: string;
303
+ reply: string;
304
+ "reply-do": string;
305
+ thread: string;
306
+ threads: string;
307
+ vote: string;
308
+ votes: string;
309
+ };
310
+ readonly messages: {
311
+ "discussion-closed": string;
312
+ "discussion-global-closed": string;
313
+ "discussion-live-closed": string;
314
+ "discussion-preamble": string;
315
+ "log-in-to-comment": string;
316
+ "user-sanction-block-until": string;
317
+ "user-sanction-block": string;
318
+ "user-sanction-warn": string;
319
+ "username-change": string;
320
+ };
321
+ readonly poll: {
322
+ "thank-you-for-vote": string;
323
+ "call-to-action": string;
324
+ };
325
+ };
326
+ en: {
327
+ readonly common: {
328
+ account: {
329
+ account: string;
330
+ bookmarks: string;
331
+ "last-active": string;
332
+ "member-since": string;
333
+ profile: string;
334
+ "profile-not-public": string;
335
+ "recent-activity": string;
336
+ settings: string;
337
+ };
338
+ actions: {
339
+ cancel: string;
340
+ close: string;
341
+ continue: string;
342
+ confirm: string;
343
+ "open-discussion": string;
344
+ "go-to-discussion": string;
345
+ na: string;
346
+ save: string;
347
+ edit: string;
348
+ send: string;
349
+ "show-all-comments": string;
350
+ view: string;
351
+ };
352
+ and: string;
353
+ comment: string;
354
+ "comment-in-thread": string;
355
+ comment_other: string;
356
+ commentary: string;
357
+ commentary_other: string;
358
+ confirm: string;
359
+ "copy-to-clipboard": string;
360
+ "date-and-time": string;
361
+ edited: string;
362
+ "featured-comment": string;
363
+ live: string;
364
+ "load-more": string;
365
+ "load-more-comments": string;
366
+ "load-newer-comments": string;
367
+ "load-older-comments": string;
368
+ "load-newer-replies": string;
369
+ "load-older-replies": string;
370
+ logout: string;
371
+ "logout-hint": string;
372
+ options: string;
373
+ reply: string;
374
+ reply_other: string;
375
+ "reply-count": string;
376
+ "reply-count_other": string;
377
+ session: string;
378
+ share: string;
379
+ "shared-comment": string;
380
+ user: {
381
+ bio: string;
382
+ name: string;
383
+ "private-profile": string;
384
+ };
385
+ vote: string;
386
+ vote_other: string;
387
+ "are-you-sure": string;
388
+ };
389
+ readonly discussions: {
390
+ alerts: {
391
+ "featured-comments-only": {
392
+ message: string;
393
+ title_one: string;
394
+ title_other: string;
395
+ };
396
+ "bookmark-limit": {
397
+ message: string;
398
+ };
399
+ "ignore-user-limit": {
400
+ message: string;
401
+ };
402
+ "no-bookmarks": {
403
+ message: string;
404
+ title: string;
405
+ };
406
+ "no-ignored-users": {
407
+ message: string;
408
+ title: string;
409
+ };
410
+ "no-comments": {
411
+ message: string;
412
+ title: string;
413
+ };
414
+ };
415
+ "comment-as": string;
416
+ "commentary-actions": {
417
+ bookmark: {
418
+ inactive: string;
419
+ active: string;
420
+ deletable: string;
421
+ };
422
+ ignore: string;
423
+ unignore: string;
424
+ "ignore-hint": string;
425
+ edit: string;
426
+ delete: string;
427
+ moderate: string;
428
+ reply: string;
429
+ report: {
430
+ action: string;
431
+ title: string;
432
+ "justification-description": string;
433
+ reasons: {
434
+ OTHER: string;
435
+ SPAM: string;
436
+ TOXIC: string;
437
+ BULLY: string;
438
+ HATE: string;
439
+ VIOLENCE: string;
440
+ SEXUAL: string;
441
+ PRIVACY: string;
442
+ FAKE: string;
443
+ TERMS: string;
444
+ LEGAL: string;
445
+ };
446
+ submitted: string;
447
+ };
448
+ reaction: {
449
+ REACTION1: string;
450
+ REACTION1_zero: string;
451
+ REACTION2: string;
452
+ REACTION2_zero: string;
453
+ REACTION3: string;
454
+ REACTION3_zero: string;
455
+ };
456
+ share: string;
457
+ };
458
+ "commentary-not-available": string;
459
+ feedback: string;
460
+ filters: {
461
+ CREATED_AT_ASC: {
462
+ description: string;
463
+ header: string;
464
+ title: string;
465
+ };
466
+ CREATED_AT_DESC: {
467
+ description: string;
468
+ header: string;
469
+ title: string;
470
+ };
471
+ POPULARITY_DESC: {
472
+ description: string;
473
+ header: string;
474
+ title: string;
475
+ };
476
+ LIST: {
477
+ description: string;
478
+ title: string;
479
+ };
480
+ THREAD: {
481
+ description: string;
482
+ title: string;
483
+ };
484
+ sort: string;
485
+ };
486
+ labels: {
487
+ "sort-comments": string;
488
+ "view-structure": string;
489
+ "author-badge": string;
490
+ "comment-list": string;
491
+ "discussion-link": string;
492
+ "commentary-actions": string;
493
+ };
494
+ "new-commentary": string;
495
+ "new-commentary_other": string;
496
+ "no-more-comments": string;
497
+ "no-comments-yet": string;
498
+ "no-recent-comments": string;
499
+ "onboarding-username-change": string;
500
+ "username-change-blocked": string;
501
+ "username-change-confirm": string;
502
+ placeholders: {
503
+ "new-commentary": string;
504
+ "new-reply": string;
505
+ };
506
+ "reply-as": string;
507
+ "reply-to": string;
508
+ "show-less": string;
509
+ "show-more": string;
510
+ "text-editor": {
511
+ bold: string;
512
+ emojis: string;
513
+ italic: string;
514
+ underline: string;
515
+ };
516
+ "view-mode": string;
517
+ "view-modes": {
518
+ "all-comments": string;
519
+ featured: string;
520
+ focus: string;
521
+ list: string;
522
+ live: string;
523
+ };
524
+ views: {
525
+ user: {
526
+ "back-to-discussion": string;
527
+ data: {
528
+ nav: string;
529
+ title: string;
530
+ tabs: {
531
+ comments: string;
532
+ bookmarks: string;
533
+ "ignored-users": string;
534
+ };
535
+ };
536
+ settings: {
537
+ nav: string;
538
+ title: string;
539
+ tabs: {
540
+ account: string;
541
+ };
542
+ };
543
+ };
544
+ };
545
+ };
546
+ readonly emojis: {
547
+ categories: {
548
+ people: string;
549
+ nature: string;
550
+ foods: string;
551
+ activity: string;
552
+ places: string;
553
+ objects: string;
554
+ symbols: string;
555
+ flags: string;
556
+ };
557
+ choose: string;
558
+ "recently-used": string;
559
+ search: string;
560
+ };
561
+ readonly errors: {
562
+ inline: {
563
+ "write-comment": string;
564
+ };
565
+ "report-commentary": string;
566
+ api: {
567
+ EGY_USERNAME_NOT_EDITABLE: string;
568
+ EGY_USERNAME_LOCKED: string;
569
+ EGY_USERNAME_INVALID: string;
570
+ };
571
+ };
572
+ readonly features: {
573
+ COMMENT: {
574
+ "call-to-action": string;
575
+ };
576
+ COMMENTARY_READ: {
577
+ "call-to-action": string;
578
+ };
579
+ INSTANT_CONTEXT: {
580
+ "call-to-action": string;
581
+ };
582
+ MY_PROFILE: {
583
+ "call-to-action": string;
584
+ };
585
+ ONBOARD_NAMEHINT: {
586
+ "call-to-action": string;
587
+ };
588
+ PROFILE: {
589
+ "call-to-action": string;
590
+ };
591
+ REACTION: {
592
+ "call-to-action": string;
593
+ };
594
+ REPLY: {
595
+ "call-to-action": string;
596
+ };
597
+ REPORT: {
598
+ "call-to-action": string;
599
+ };
600
+ SHARE: {
601
+ "call-to-action": string;
602
+ };
603
+ IGNORE: {
604
+ "call-to-action": string;
605
+ };
606
+ };
607
+ readonly interpolation: {
608
+ comment: string;
609
+ "comment-do": string;
610
+ comments: string;
611
+ conversation: string;
612
+ conversations: string;
613
+ discussion: string;
614
+ discussions: string;
615
+ list: string;
616
+ lists: string;
617
+ message: string;
618
+ messages: string;
619
+ poll: string;
620
+ polls: string;
621
+ replies: string;
622
+ reply: string;
623
+ "reply-do": string;
624
+ thread: string;
625
+ threads: string;
626
+ vote: string;
627
+ votes: string;
628
+ };
629
+ readonly messages: {
630
+ "discussion-closed": string;
631
+ "discussion-global-closed": string;
632
+ "discussion-live-closed": string;
633
+ "discussion-preamble": string;
634
+ "log-in-to-comment": string;
635
+ "user-sanction-block-until": string;
636
+ "user-sanction-block": string;
637
+ "user-sanction-warn": string;
638
+ "username-change": string;
639
+ };
640
+ readonly poll: {
641
+ "thank-you-for-vote": string;
642
+ "call-to-action": string;
643
+ };
644
+ };
645
+ };
646
+ declare const resources: {
647
+ de: {
648
+ readonly common: {
649
+ account: {
650
+ account: string;
651
+ bookmarks: string;
652
+ "last-active": string;
653
+ "member-since": string;
654
+ profile: string;
655
+ "profile-not-public": string;
656
+ "recent-activity": string;
657
+ settings: string;
658
+ };
659
+ actions: {
660
+ cancel: string;
661
+ close: string;
662
+ continue: string;
663
+ confirm: string;
664
+ "open-discussion": string;
665
+ "go-to-discussion": string;
666
+ na: string;
667
+ save: string;
668
+ edit: string;
669
+ send: string;
670
+ "show-all-comments": string;
671
+ view: string;
672
+ };
673
+ and: string;
674
+ comment: string;
675
+ "comment-in-thread": string;
676
+ comment_other: string;
677
+ commentary: string;
678
+ commentary_other: string;
679
+ confirm: string;
680
+ "copy-to-clipboard": string;
681
+ "date-and-time": string;
682
+ edited: string;
683
+ "featured-comment": string;
684
+ live: string;
685
+ "load-more": string;
686
+ "load-more-comments": string;
687
+ "load-newer-comments": string;
688
+ "load-older-comments": string;
689
+ "load-newer-replies": string;
690
+ "load-older-replies": string;
691
+ logout: string;
692
+ "logout-hint": string;
693
+ options: string;
694
+ reply: string;
695
+ reply_other: string;
696
+ "reply-count": string;
697
+ "reply-count_other": string;
698
+ session: string;
699
+ share: string;
700
+ "shared-comment": string;
701
+ user: {
702
+ bio: string;
703
+ name: string;
704
+ "private-profile": string;
705
+ };
706
+ vote: string;
707
+ vote_other: string;
708
+ "are-you-sure": string;
709
+ };
710
+ readonly discussions: {
711
+ alerts: {
712
+ "featured-comments-only": {
713
+ message: string;
714
+ title_one: string;
715
+ title_other: string;
716
+ };
717
+ "bookmark-limit": {
718
+ message: string;
719
+ };
720
+ "ignore-user-limit": {
721
+ message: string;
722
+ };
723
+ "no-bookmarks": {
724
+ message: string;
725
+ title: string;
726
+ };
727
+ "no-ignored-users": {
728
+ message: string;
729
+ title: string;
730
+ };
731
+ "no-comments": {
732
+ message: string;
733
+ title: string;
734
+ };
735
+ };
736
+ "comment-as": string;
737
+ "commentary-actions": {
738
+ bookmark: {
739
+ inactive: string;
740
+ active: string;
741
+ deletable: string;
742
+ };
743
+ ignore: string;
744
+ unignore: string;
745
+ "ignore-hint": string;
746
+ edit: string;
747
+ delete: string;
748
+ moderate: string;
749
+ reply: string;
750
+ report: {
751
+ action: string;
752
+ title: string;
753
+ "justification-description": string;
754
+ reasons: {
755
+ OTHER: string;
756
+ SPAM: string;
757
+ TOXIC: string;
758
+ BULLY: string;
759
+ HATE: string;
760
+ VIOLENCE: string;
761
+ SEXUAL: string;
762
+ PRIVACY: string;
763
+ FAKE: string;
764
+ TERMS: string;
765
+ LEGAL: string;
766
+ };
767
+ submitted: string;
768
+ };
769
+ reaction: {
770
+ REACTION1: string;
771
+ REACTION1_zero: string;
772
+ REACTION2: string;
773
+ REACTION2_zero: string;
774
+ REACTION3: string;
775
+ REACTION3_zero: string;
776
+ };
777
+ share: string;
778
+ };
779
+ "commentary-not-available": string;
780
+ feedback: string;
781
+ filters: {
782
+ CREATED_AT_ASC: {
783
+ description: string;
784
+ header: string;
785
+ title: string;
786
+ };
787
+ CREATED_AT_DESC: {
788
+ description: string;
789
+ header: string;
790
+ title: string;
791
+ };
792
+ POPULARITY_DESC: {
793
+ description: string;
794
+ header: string;
795
+ title: string;
796
+ };
797
+ LIST: {
798
+ description: string;
799
+ title: string;
800
+ };
801
+ THREAD: {
802
+ description: string;
803
+ title: string;
804
+ };
805
+ sort: string;
806
+ };
807
+ labels: {
808
+ "sort-comments": string;
809
+ "view-structure": string;
810
+ "author-badge": string;
811
+ "comment-list": string;
812
+ "discussion-link": string;
813
+ "commentary-actions": string;
814
+ };
815
+ "new-commentary": string;
816
+ "new-commentary_other": string;
817
+ "no-more-comments": string;
818
+ "no-comments-yet": string;
819
+ "no-recent-comments": string;
820
+ "onboarding-username-change": string;
821
+ "username-change-blocked": string;
822
+ "username-change-confirm": string;
823
+ placeholders: {
824
+ "new-commentary": string;
825
+ "new-reply": string;
826
+ };
827
+ "reply-as": string;
828
+ "reply-to": string;
829
+ "show-less": string;
830
+ "show-more": string;
831
+ "text-editor": {
832
+ bold: string;
833
+ emojis: string;
834
+ italic: string;
835
+ underline: string;
836
+ };
837
+ "view-mode": string;
838
+ "view-modes": {
839
+ "all-comments": string;
840
+ featured: string;
841
+ focus: string;
842
+ list: string;
843
+ live: string;
844
+ thread: string;
845
+ };
846
+ views: {
847
+ user: {
848
+ "back-to-discussion": string;
849
+ data: {
850
+ nav: string;
851
+ title: string;
852
+ tabs: {
853
+ comments: string;
854
+ bookmarks: string;
855
+ "ignored-users": string;
856
+ };
857
+ };
858
+ settings: {
859
+ nav: string;
860
+ title: string;
861
+ tabs: {
862
+ account: string;
863
+ };
864
+ };
865
+ };
866
+ };
867
+ };
868
+ readonly emojis: {
869
+ categories: {
870
+ people: string;
871
+ nature: string;
872
+ foods: string;
873
+ activity: string;
874
+ places: string;
875
+ objects: string;
876
+ symbols: string;
877
+ flags: string;
878
+ };
879
+ choose: string;
880
+ "recently-used": string;
881
+ search: string;
882
+ };
883
+ readonly errors: {
884
+ inline: {
885
+ "write-comment": string;
886
+ };
887
+ "report-commentary": string;
888
+ api: {
889
+ EGY_USERNAME_NOT_EDITABLE: string;
890
+ EGY_USERNAME_LOCKED: string;
891
+ EGY_USERNAME_INVALID: string;
892
+ };
241
893
  };
242
- features: {
894
+ readonly features: {
243
895
  COMMENT: {
244
896
  "call-to-action": string;
245
897
  };
@@ -274,7 +926,7 @@ export declare const defaultResources: {
274
926
  "call-to-action": string;
275
927
  };
276
928
  };
277
- interpolation: {
929
+ readonly interpolation: {
278
930
  comment: string;
279
931
  "comment-do": string;
280
932
  comments: string;
@@ -296,7 +948,7 @@ export declare const defaultResources: {
296
948
  vote: string;
297
949
  votes: string;
298
950
  };
299
- messages: {
951
+ readonly messages: {
300
952
  "discussion-closed": string;
301
953
  "discussion-global-closed": string;
302
954
  "discussion-live-closed": string;
@@ -307,13 +959,13 @@ export declare const defaultResources: {
307
959
  "user-sanction-warn": string;
308
960
  "username-change": string;
309
961
  };
310
- poll: {
962
+ readonly poll: {
311
963
  "thank-you-for-vote": string;
312
964
  "call-to-action": string;
313
965
  };
314
966
  };
315
967
  en: {
316
- common: {
968
+ readonly common: {
317
969
  account: {
318
970
  account: string;
319
971
  bookmarks: string;
@@ -328,6 +980,7 @@ export declare const defaultResources: {
328
980
  cancel: string;
329
981
  close: string;
330
982
  continue: string;
983
+ confirm: string;
331
984
  "open-discussion": string;
332
985
  "go-to-discussion": string;
333
986
  na: string;
@@ -372,8 +1025,9 @@ export declare const defaultResources: {
372
1025
  };
373
1026
  vote: string;
374
1027
  vote_other: string;
1028
+ "are-you-sure": string;
375
1029
  };
376
- discussions: {
1030
+ readonly discussions: {
377
1031
  alerts: {
378
1032
  "featured-comments-only": {
379
1033
  message: string;
@@ -484,6 +1138,8 @@ export declare const defaultResources: {
484
1138
  "no-comments-yet": string;
485
1139
  "no-recent-comments": string;
486
1140
  "onboarding-username-change": string;
1141
+ "username-change-blocked": string;
1142
+ "username-change-confirm": string;
487
1143
  placeholders: {
488
1144
  "new-commentary": string;
489
1145
  "new-reply": string;
@@ -528,7 +1184,7 @@ export declare const defaultResources: {
528
1184
  };
529
1185
  };
530
1186
  };
531
- emojis: {
1187
+ readonly emojis: {
532
1188
  categories: {
533
1189
  people: string;
534
1190
  nature: string;
@@ -543,13 +1199,18 @@ export declare const defaultResources: {
543
1199
  "recently-used": string;
544
1200
  search: string;
545
1201
  };
546
- errors: {
1202
+ readonly errors: {
547
1203
  inline: {
548
1204
  "write-comment": string;
549
1205
  };
550
1206
  "report-commentary": string;
1207
+ api: {
1208
+ EGY_USERNAME_NOT_EDITABLE: string;
1209
+ EGY_USERNAME_LOCKED: string;
1210
+ EGY_USERNAME_INVALID: string;
1211
+ };
551
1212
  };
552
- features: {
1213
+ readonly features: {
553
1214
  COMMENT: {
554
1215
  "call-to-action": string;
555
1216
  };
@@ -584,7 +1245,7 @@ export declare const defaultResources: {
584
1245
  "call-to-action": string;
585
1246
  };
586
1247
  };
587
- interpolation: {
1248
+ readonly interpolation: {
588
1249
  comment: string;
589
1250
  "comment-do": string;
590
1251
  comments: string;
@@ -606,7 +1267,7 @@ export declare const defaultResources: {
606
1267
  vote: string;
607
1268
  votes: string;
608
1269
  };
609
- messages: {
1270
+ readonly messages: {
610
1271
  "discussion-closed": string;
611
1272
  "discussion-global-closed": string;
612
1273
  "discussion-live-closed": string;
@@ -617,7 +1278,7 @@ export declare const defaultResources: {
617
1278
  "user-sanction-warn": string;
618
1279
  "username-change": string;
619
1280
  };
620
- poll: {
1281
+ readonly poll: {
621
1282
  "thank-you-for-vote": string;
622
1283
  "call-to-action": string;
623
1284
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engagently/types",
3
- "version": "4.6.2",
3
+ "version": "4.7.1",
4
4
  "main": "./index.ts",
5
5
  "types": "dist/types/engagently.d.ts",
6
6
  "files": [