sbuilder-mcp 0.78.0 → 0.80.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.
@@ -537,6 +537,765 @@ export const NEVER_TRANSLATED = [
537
537
  "videoId",
538
538
  "videoSrc"
539
539
  ];
540
+ /** Every translatable special per element, with its shape. */
541
+ export const TRANSLATABLE_FIELDS = {
542
+ "popup": [
543
+ {
544
+ "key": "closeLabel"
545
+ }
546
+ ],
547
+ "select": [
548
+ {
549
+ "key": "placeholder"
550
+ },
551
+ {
552
+ "key": "filterValues",
553
+ "list": {
554
+ "itemIdKey": "value",
555
+ "textKey": "label"
556
+ }
557
+ }
558
+ ],
559
+ "filter-checkbox": [
560
+ {
561
+ "key": "filterValues",
562
+ "list": {
563
+ "itemIdKey": "value",
564
+ "textKey": "label"
565
+ }
566
+ },
567
+ {
568
+ "key": "filterAllLabel"
569
+ }
570
+ ],
571
+ "filter-radio": [
572
+ {
573
+ "key": "filterValues",
574
+ "list": {
575
+ "itemIdKey": "value",
576
+ "textKey": "label"
577
+ }
578
+ },
579
+ {
580
+ "key": "filterAllLabel"
581
+ }
582
+ ],
583
+ "filter-color": [
584
+ {
585
+ "key": "filterValues",
586
+ "list": {
587
+ "itemIdKey": "value",
588
+ "textKey": "label"
589
+ }
590
+ },
591
+ {
592
+ "key": "filterAllLabel"
593
+ }
594
+ ],
595
+ "filter-tag": [
596
+ {
597
+ "key": "filterValues",
598
+ "list": {
599
+ "itemIdKey": "value",
600
+ "textKey": "label"
601
+ }
602
+ },
603
+ {
604
+ "key": "filterAllLabel"
605
+ }
606
+ ],
607
+ "account-info": [
608
+ {
609
+ "key": "promptText"
610
+ },
611
+ {
612
+ "key": "loginLabel"
613
+ }
614
+ ],
615
+ "cart-count": [
616
+ {
617
+ "key": "placeholder"
618
+ }
619
+ ],
620
+ "cart-total": [
621
+ {
622
+ "key": "label"
623
+ },
624
+ {
625
+ "key": "placeholder"
626
+ }
627
+ ],
628
+ "free-ship-bar": [
629
+ {
630
+ "key": "remainingText"
631
+ },
632
+ {
633
+ "key": "reachedText"
634
+ }
635
+ ],
636
+ "flash-sale-progress": [
637
+ {
638
+ "key": "soldText"
639
+ },
640
+ {
641
+ "key": "almostText"
642
+ },
643
+ {
644
+ "key": "soldOutText"
645
+ }
646
+ ],
647
+ "voucher-list": [
648
+ {
649
+ "key": "title"
650
+ },
651
+ {
652
+ "key": "buttonLabel"
653
+ },
654
+ {
655
+ "key": "emptyText"
656
+ },
657
+ {
658
+ "key": "copiedText"
659
+ },
660
+ {
661
+ "key": "failedText"
662
+ }
663
+ ],
664
+ "countdown": [
665
+ {
666
+ "key": "expiredText"
667
+ },
668
+ {
669
+ "key": "dayLabel"
670
+ },
671
+ {
672
+ "key": "hourLabel"
673
+ },
674
+ {
675
+ "key": "minuteLabel"
676
+ },
677
+ {
678
+ "key": "secondLabel"
679
+ }
680
+ ],
681
+ "order-history": [
682
+ {
683
+ "key": "title"
684
+ },
685
+ {
686
+ "key": "emptyText"
687
+ },
688
+ {
689
+ "key": "signedOutText"
690
+ },
691
+ {
692
+ "key": "lookupNumberPlaceholder"
693
+ },
694
+ {
695
+ "key": "lookupContactPlaceholder"
696
+ },
697
+ {
698
+ "key": "lookupButtonText"
699
+ }
700
+ ],
701
+ "order-receipt": [
702
+ {
703
+ "key": "title"
704
+ },
705
+ {
706
+ "key": "numberLabel"
707
+ },
708
+ {
709
+ "key": "placedLabel"
710
+ },
711
+ {
712
+ "key": "statusLabel"
713
+ },
714
+ {
715
+ "key": "itemsLabel"
716
+ },
717
+ {
718
+ "key": "totalLabel"
719
+ },
720
+ {
721
+ "key": "dueLabel"
722
+ },
723
+ {
724
+ "key": "unavailableText"
725
+ }
726
+ ],
727
+ "course-outline": [
728
+ {
729
+ "key": "emptyText"
730
+ }
731
+ ],
732
+ "my-courses": [
733
+ {
734
+ "key": "emptyText"
735
+ },
736
+ {
737
+ "key": "signedOutText"
738
+ },
739
+ {
740
+ "key": "continueText"
741
+ }
742
+ ],
743
+ "course-player": [
744
+ {
745
+ "key": "completeLabel"
746
+ },
747
+ {
748
+ "key": "completedLabel"
749
+ },
750
+ {
751
+ "key": "certificateText"
752
+ },
753
+ {
754
+ "key": "lockedText"
755
+ },
756
+ {
757
+ "key": "lockedLabel"
758
+ },
759
+ {
760
+ "key": "emptyText"
761
+ }
762
+ ],
763
+ "wishlist-list": [
764
+ {
765
+ "key": "title"
766
+ },
767
+ {
768
+ "key": "emptyText"
769
+ }
770
+ ],
771
+ "address-book": [
772
+ {
773
+ "key": "title"
774
+ },
775
+ {
776
+ "key": "emptyText"
777
+ },
778
+ {
779
+ "key": "signedOutText"
780
+ },
781
+ {
782
+ "key": "addLabel"
783
+ }
784
+ ],
785
+ "points-card": [
786
+ {
787
+ "key": "title"
788
+ },
789
+ {
790
+ "key": "signedOutText"
791
+ }
792
+ ],
793
+ "my-vouchers": [
794
+ {
795
+ "key": "title"
796
+ },
797
+ {
798
+ "key": "signedOutText"
799
+ },
800
+ {
801
+ "key": "buttonLabel"
802
+ },
803
+ {
804
+ "key": "emptyText"
805
+ },
806
+ {
807
+ "key": "copiedText"
808
+ },
809
+ {
810
+ "key": "failedText"
811
+ },
812
+ {
813
+ "key": "loadFailedText"
814
+ },
815
+ {
816
+ "key": "usedText"
817
+ },
818
+ {
819
+ "key": "expiredText"
820
+ }
821
+ ],
822
+ "my-tickets": [
823
+ {
824
+ "key": "title"
825
+ },
826
+ {
827
+ "key": "signedOutText"
828
+ },
829
+ {
830
+ "key": "buttonLabel"
831
+ },
832
+ {
833
+ "key": "emptyText"
834
+ },
835
+ {
836
+ "key": "loadFailedText"
837
+ },
838
+ {
839
+ "key": "usedText"
840
+ },
841
+ {
842
+ "key": "voidText"
843
+ }
844
+ ],
845
+ "member-field": [
846
+ {
847
+ "key": "prefix"
848
+ },
849
+ {
850
+ "key": "suffix"
851
+ },
852
+ {
853
+ "key": "guestText"
854
+ }
855
+ ],
856
+ "accordion-content": [
857
+ {
858
+ "key": "label"
859
+ }
860
+ ],
861
+ "button": [
862
+ {
863
+ "key": "text"
864
+ },
865
+ {
866
+ "key": "textHtml",
867
+ "html": true
868
+ }
869
+ ],
870
+ "cart-order": [
871
+ {
872
+ "key": "emptyText"
873
+ }
874
+ ],
875
+ "payment-status": [
876
+ {
877
+ "key": "paidTitle"
878
+ },
879
+ {
880
+ "key": "paidText"
881
+ },
882
+ {
883
+ "key": "pendingTitle"
884
+ },
885
+ {
886
+ "key": "pendingText"
887
+ },
888
+ {
889
+ "key": "failedTitle"
890
+ },
891
+ {
892
+ "key": "failedText"
893
+ },
894
+ {
895
+ "key": "retryLabel"
896
+ },
897
+ {
898
+ "key": "referenceLabel"
899
+ }
900
+ ],
901
+ "collection-media": [
902
+ {
903
+ "key": "alt"
904
+ }
905
+ ],
906
+ "divider": [
907
+ {
908
+ "key": "label"
909
+ }
910
+ ],
911
+ "heading": [
912
+ {
913
+ "key": "text"
914
+ },
915
+ {
916
+ "key": "textHtml",
917
+ "html": true
918
+ }
919
+ ],
920
+ "form-text": [
921
+ {
922
+ "key": "label"
923
+ },
924
+ {
925
+ "key": "placeholder"
926
+ },
927
+ {
928
+ "key": "description"
929
+ }
930
+ ],
931
+ "form-number": [
932
+ {
933
+ "key": "label"
934
+ },
935
+ {
936
+ "key": "placeholder"
937
+ },
938
+ {
939
+ "key": "description"
940
+ }
941
+ ],
942
+ "form-select": [
943
+ {
944
+ "key": "label"
945
+ },
946
+ {
947
+ "key": "options",
948
+ "list": "labels"
949
+ },
950
+ {
951
+ "key": "placeholder"
952
+ },
953
+ {
954
+ "key": "description"
955
+ }
956
+ ],
957
+ "form-address": [
958
+ {
959
+ "key": "label"
960
+ },
961
+ {
962
+ "key": "description"
963
+ },
964
+ {
965
+ "key": "provinceLabel"
966
+ },
967
+ {
968
+ "key": "wardLabel"
969
+ },
970
+ {
971
+ "key": "detailLabel"
972
+ },
973
+ {
974
+ "key": "provincePlaceholder"
975
+ },
976
+ {
977
+ "key": "wardPlaceholder"
978
+ },
979
+ {
980
+ "key": "detailPlaceholder"
981
+ },
982
+ {
983
+ "key": "placeholder"
984
+ }
985
+ ],
986
+ "form-discount-code": [
987
+ {
988
+ "key": "label"
989
+ },
990
+ {
991
+ "key": "placeholder"
992
+ },
993
+ {
994
+ "key": "description"
995
+ },
996
+ {
997
+ "key": "buttonLabel"
998
+ },
999
+ {
1000
+ "key": "appliedText"
1001
+ },
1002
+ {
1003
+ "key": "unknownCodeText"
1004
+ },
1005
+ {
1006
+ "key": "codeNotUsableText"
1007
+ },
1008
+ {
1009
+ "key": "quoteFailedText"
1010
+ }
1011
+ ],
1012
+ "form-radio": [
1013
+ {
1014
+ "key": "label"
1015
+ },
1016
+ {
1017
+ "key": "options",
1018
+ "list": "labels"
1019
+ },
1020
+ {
1021
+ "key": "description"
1022
+ }
1023
+ ],
1024
+ "form-payment": [
1025
+ {
1026
+ "key": "label"
1027
+ },
1028
+ {
1029
+ "key": "description"
1030
+ },
1031
+ {
1032
+ "key": "methods",
1033
+ "list": {
1034
+ "itemIdKey": "value",
1035
+ "textKey": [
1036
+ "label",
1037
+ "description"
1038
+ ]
1039
+ }
1040
+ }
1041
+ ],
1042
+ "form-timeslot": [
1043
+ {
1044
+ "key": "label"
1045
+ },
1046
+ {
1047
+ "key": "description"
1048
+ }
1049
+ ],
1050
+ "form-checkbox": [
1051
+ {
1052
+ "key": "label"
1053
+ },
1054
+ {
1055
+ "key": "options",
1056
+ "list": "labels"
1057
+ },
1058
+ {
1059
+ "key": "description"
1060
+ }
1061
+ ],
1062
+ "form-date": [
1063
+ {
1064
+ "key": "label"
1065
+ },
1066
+ {
1067
+ "key": "description"
1068
+ },
1069
+ {
1070
+ "key": "dayPlaceholder"
1071
+ },
1072
+ {
1073
+ "key": "monthPlaceholder"
1074
+ },
1075
+ {
1076
+ "key": "yearPlaceholder"
1077
+ },
1078
+ {
1079
+ "key": "dayLabel"
1080
+ },
1081
+ {
1082
+ "key": "monthLabel"
1083
+ },
1084
+ {
1085
+ "key": "yearLabel"
1086
+ },
1087
+ {
1088
+ "key": "timeLabel"
1089
+ }
1090
+ ],
1091
+ "form-calendar": [
1092
+ {
1093
+ "key": "label"
1094
+ },
1095
+ {
1096
+ "key": "description"
1097
+ }
1098
+ ],
1099
+ "form-file": [
1100
+ {
1101
+ "key": "label"
1102
+ },
1103
+ {
1104
+ "key": "placeholder"
1105
+ },
1106
+ {
1107
+ "key": "hintText"
1108
+ },
1109
+ {
1110
+ "key": "description"
1111
+ },
1112
+ {
1113
+ "key": "buttonLabel"
1114
+ }
1115
+ ],
1116
+ "form-paragraph": [
1117
+ {
1118
+ "key": "text"
1119
+ }
1120
+ ],
1121
+ "form-link": [
1122
+ {
1123
+ "key": "text"
1124
+ },
1125
+ {
1126
+ "key": "linkText"
1127
+ }
1128
+ ],
1129
+ "form-step-button": [
1130
+ {
1131
+ "key": "text"
1132
+ }
1133
+ ],
1134
+ "form-submit": [
1135
+ {
1136
+ "key": "text"
1137
+ },
1138
+ {
1139
+ "key": "submittingText"
1140
+ }
1141
+ ],
1142
+ "form-title": [
1143
+ {
1144
+ "key": "text"
1145
+ }
1146
+ ],
1147
+ "image": [
1148
+ {
1149
+ "key": "alt"
1150
+ }
1151
+ ],
1152
+ "image-comparison": [
1153
+ {
1154
+ "key": "beforeAlt"
1155
+ },
1156
+ {
1157
+ "key": "afterAlt"
1158
+ }
1159
+ ],
1160
+ "list-dataset": [
1161
+ {
1162
+ "key": "loadMoreLabel"
1163
+ }
1164
+ ],
1165
+ "list-item": [
1166
+ {
1167
+ "key": "text"
1168
+ }
1169
+ ],
1170
+ "product-image-feature": [
1171
+ {
1172
+ "key": "alt"
1173
+ }
1174
+ ],
1175
+ "search-input": [
1176
+ {
1177
+ "key": "searchPlaceholder"
1178
+ },
1179
+ {
1180
+ "key": "searchClearLabel"
1181
+ },
1182
+ {
1183
+ "key": "searchToggleLabel"
1184
+ }
1185
+ ],
1186
+ "tab-content": [
1187
+ {
1188
+ "key": "label"
1189
+ }
1190
+ ],
1191
+ "text": [
1192
+ {
1193
+ "key": "text"
1194
+ },
1195
+ {
1196
+ "key": "textHtml",
1197
+ "html": true
1198
+ }
1199
+ ],
1200
+ "text-marquee": [
1201
+ {
1202
+ "key": "text"
1203
+ }
1204
+ ],
1205
+ "text-marquee-item": [
1206
+ {
1207
+ "key": "text"
1208
+ }
1209
+ ],
1210
+ "breadcrumb": [
1211
+ {
1212
+ "key": "crumbs",
1213
+ "list": {
1214
+ "itemIdKey": "id",
1215
+ "textKey": "label"
1216
+ }
1217
+ },
1218
+ {
1219
+ "key": "homeLabel"
1220
+ }
1221
+ ],
1222
+ "menu": [
1223
+ {
1224
+ "key": "menuItems",
1225
+ "list": {
1226
+ "itemIdKey": "id",
1227
+ "textKey": "label"
1228
+ }
1229
+ }
1230
+ ],
1231
+ "chat-widget": [
1232
+ {
1233
+ "key": "title"
1234
+ },
1235
+ {
1236
+ "key": "launcherText"
1237
+ }
1238
+ ],
1239
+ "qr-code": [
1240
+ {
1241
+ "key": "alt"
1242
+ },
1243
+ {
1244
+ "key": "value",
1245
+ "when": {
1246
+ "key": "source",
1247
+ "equals": "text"
1248
+ }
1249
+ }
1250
+ ],
1251
+ "bundle-items": [
1252
+ {
1253
+ "key": "heading"
1254
+ },
1255
+ {
1256
+ "key": "quantitySeparator"
1257
+ }
1258
+ ],
1259
+ "search-keywords": [
1260
+ {
1261
+ "key": "keywordItems",
1262
+ "list": "strings"
1263
+ }
1264
+ ],
1265
+ "locale-switcher": [
1266
+ {
1267
+ "key": "panelTitle"
1268
+ }
1269
+ ],
1270
+ "theme-switcher": [
1271
+ {
1272
+ "key": "lightLabel"
1273
+ },
1274
+ {
1275
+ "key": "darkLabel"
1276
+ }
1277
+ ],
1278
+ "sale-badge": [
1279
+ {
1280
+ "key": "text"
1281
+ }
1282
+ ]
1283
+ };
1284
+ /** Content an element keeps in `config` (base only), addressed as `CONFIG_FIELD_PREFIX + key`. */
1285
+ export const TRANSLATABLE_CONFIG = {
1286
+ "text-dataset": [
1287
+ {
1288
+ "key": "textValue"
1289
+ },
1290
+ {
1291
+ "key": "moreText"
1292
+ },
1293
+ {
1294
+ "key": "lessText"
1295
+ }
1296
+ ]
1297
+ };
1298
+ export const CONFIG_FIELD_PREFIX = "config.";
540
1299
  /** The columns a translation may rewrite on each entity, SEO fields included. */
541
1300
  export const TRANSLATABLE_ENTITY_FIELDS = {
542
1301
  "product": [