Skip to content

Commit 6ac6a04

Browse files
authored
LEGO: Merge pull request 38781
LEGO: Merge pull request 38781
2 parents 324d292 + a095dde commit 6ac6a04

File tree

2 files changed

+130
-4
lines changed

2 files changed

+130
-4
lines changed

src/loc/lcl/chs/diagnosticMessages/diagnosticMessages.generated.json.lcl

Lines changed: 67 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,24 @@
450450
</Str>
451451
<Disp Icon="Str" />
452452
</Item>
453+
<Item ItemId=";A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086" ItemType="0" PsrId="306" Leaf="true">
454+
<Str Cat="Text">
455+
<Val><![CDATA[A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type.]]></Val>
456+
<Tgt Cat="Text" Stat="Loc" Orig="New">
457+
<Val><![CDATA[标记的元组元素被声明为可选,并且问号位于名称之后、冒号之前,而不是位于类型之后。]]></Val>
458+
</Tgt>
459+
</Str>
460+
<Disp Icon="Str" />
461+
</Item>
462+
<Item ItemId=";A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087" ItemType="0" PsrId="306" Leaf="true">
463+
<Str Cat="Text">
464+
<Val><![CDATA[A labeled tuple element is declared as rest with a `...` before the name, rather than before the type.]]></Val>
465+
<Tgt Cat="Text" Stat="Loc" Orig="New">
466+
<Val><![CDATA[标记的元组元素在名称之前(而不是类型之前)以 "…" 声明为 rest。]]></Val>
467+
</Tgt>
468+
</Str>
469+
<Disp Icon="Str" />
470+
</Item>
453471
<Item ItemId=";A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651" ItemType="0" PsrId="306" Leaf="true">
454472
<Str Cat="Text">
455473
<Val><![CDATA[A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums.]]></Val>
@@ -867,6 +885,15 @@
867885
</Str>
868886
<Disp Icon="Str" />
869887
</Item>
888+
<Item ItemId=";A_tuple_member_cannot_be_both_optional_and_rest_5085" ItemType="0" PsrId="306" Leaf="true">
889+
<Str Cat="Text">
890+
<Val><![CDATA[A tuple member cannot be both optional and rest.]]></Val>
891+
<Tgt Cat="Text" Stat="Loc" Orig="New">
892+
<Val><![CDATA[元组成员不能既是可选的又是 rest。]]></Val>
893+
</Tgt>
894+
</Str>
895+
<Disp Icon="Str" />
896+
</Item>
870897
<Item ItemId=";A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007" ItemType="0" PsrId="306" Leaf="true">
871898
<Str Cat="Text">
872899
<Val><![CDATA[A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.]]></Val>
@@ -3522,6 +3549,15 @@
35223549
</Str>
35233550
<Disp Icon="Str" />
35243551
</Item>
3552+
<Item ItemId=";Convert_overload_list_to_single_signature_95118" ItemType="0" PsrId="306" Leaf="true">
3553+
<Str Cat="Text">
3554+
<Val><![CDATA[Convert overload list to single signature]]></Val>
3555+
<Tgt Cat="Text" Stat="Loc" Orig="New">
3556+
<Val><![CDATA[将重载列表转换为单一签名]]></Val>
3557+
</Tgt>
3558+
</Str>
3559+
<Disp Icon="Str" />
3560+
</Item>
35253561
<Item ItemId=";Convert_parameters_to_destructured_object_95075" ItemType="0" PsrId="306" Leaf="true">
35263562
<Str Cat="Text">
35273563
<Val><![CDATA[Convert parameters to destructured object]]></Val>
@@ -6055,7 +6091,7 @@
60556091
<Str Cat="Text">
60566092
<Val><![CDATA[Its element type '{0}' is not a valid JSX element.]]></Val>
60576093
<Tgt Cat="Text" Stat="Loc" Orig="New">
6058-
<Val><![CDATA[其元素类型{0}不是有效的 JSX 元素。]]></Val>
6094+
<Val><![CDATA[其元素类型 "{0}" 不是有效的 JSX 元素。]]></Val>
60596095
</Tgt>
60606096
</Str>
60616097
<Disp Icon="Str" />
@@ -6064,7 +6100,7 @@
60646100
<Str Cat="Text">
60656101
<Val><![CDATA[Its instance type '{0}' is not a valid JSX element.]]></Val>
60666102
<Tgt Cat="Text" Stat="Loc" Orig="New">
6067-
<Val><![CDATA[其实例类型{0}不是有效的 JSX 元素。]]></Val>
6103+
<Val><![CDATA[其实例类型 "{0}" 不是有效的 JSX 元素。]]></Val>
60686104
</Tgt>
60696105
</Str>
60706106
<Disp Icon="Str" />
@@ -6073,7 +6109,7 @@
60736109
<Str Cat="Text">
60746110
<Val><![CDATA[Its return type '{0}' is not a valid JSX element.]]></Val>
60756111
<Tgt Cat="Text" Stat="Loc" Orig="New">
6076-
<Val><![CDATA[其返回类型{0}不是有效的 JSX 元素。]]></Val>
6112+
<Val><![CDATA[其返回类型 "{0}" 不是有效的 JSX 元素。]]></Val>
60776113
</Tgt>
60786114
</Str>
60796115
<Disp Icon="Str" />
@@ -6807,6 +6843,15 @@
68076843
</Str>
68086844
<Disp Icon="Str" />
68096845
</Item>
6846+
<Item ItemId=";Move_labeled_tuple_element_modifiers_to_labels_95117" ItemType="0" PsrId="306" Leaf="true">
6847+
<Str Cat="Text">
6848+
<Val><![CDATA[Move labeled tuple element modifiers to labels]]></Val>
6849+
<Tgt Cat="Text" Stat="Loc" Orig="New">
6850+
<Val><![CDATA[将已标记的元组元素修饰符移至标签]]></Val>
6851+
</Tgt>
6852+
</Str>
6853+
<Disp Icon="Str" />
6854+
</Item>
68106855
<Item ItemId=";Move_to_a_new_file_95049" ItemType="0" PsrId="306" Leaf="true">
68116856
<Str Cat="Text">
68126857
<Val><![CDATA[Move to a new file]]></Val>
@@ -8761,7 +8806,7 @@
87618806
<Str Cat="Text">
87628807
<Val><![CDATA[Replace '{0}' with 'Promise<{1}>']]></Val>
87638808
<Tgt Cat="Text" Stat="Loc" Orig="New">
8764-
<Val><![CDATA[将{0}替换为 "Promise<{1}>"]]></Val>
8809+
<Val><![CDATA[将 "{0}" 替换为 "Promise<{1}>"]]></Val>
87658810
</Tgt>
87668811
</Str>
87678812
<Disp Icon="Str" />
@@ -10599,6 +10644,15 @@
1059910644
</Str>
1060010645
<Disp Icon="Str" />
1060110646
</Item>
10647+
<Item ItemId=";This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234" ItemType="0" PsrId="306" Leaf="true">
10648+
<Str Cat="Text">
10649+
<Val><![CDATA[This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?]]></Val>
10650+
<Tgt Cat="Text" Stat="Loc" Orig="New">
10651+
<Val><![CDATA[此表达式是 "get" 访问器,因此不可调用。你想在不使用 "()" 的情况下使用它吗?]]></Val>
10652+
</Tgt>
10653+
</Str>
10654+
<Disp Icon="Str" />
10655+
</Item>
1060210656
<Item ItemId=";This_expression_is_not_constructable_2351" ItemType="0" PsrId="306" Leaf="true">
1060310657
<Str Cat="Text">
1060410658
<Val><![CDATA[This expression is not constructable.]]></Val>
@@ -10764,6 +10818,15 @@
1076410818
</Str>
1076510819
<Disp Icon="Str" />
1076610820
</Item>
10821+
<Item ItemId=";Tuple_members_must_all_have_names_or_all_not_have_names_5084" ItemType="0" PsrId="306" Leaf="true">
10822+
<Str Cat="Text">
10823+
<Val><![CDATA[Tuple members must all have names or all not have names.]]></Val>
10824+
<Tgt Cat="Text" Stat="Loc" Orig="New">
10825+
<Val><![CDATA[元组成员必须全部具有或全部不具有名称。]]></Val>
10826+
</Tgt>
10827+
</Str>
10828+
<Disp Icon="Str" />
10829+
</Item>
1076710830
<Item ItemId=";Tuple_type_0_of_length_1_has_no_element_at_index_2_2493" ItemType="0" PsrId="306" Leaf="true">
1076810831
<Str Cat="Text">
1076910832
<Val><![CDATA[Tuple type '{0}' of length '{1}' has no element at index '{2}'.]]></Val>

src/loc/lcl/plk/diagnosticMessages/diagnosticMessages.generated.json.lcl

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,24 @@
443443
</Str>
444444
<Disp Icon="Str" />
445445
</Item>
446+
<Item ItemId=";A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086" ItemType="0" PsrId="306" Leaf="true">
447+
<Str Cat="Text">
448+
<Val><![CDATA[A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type.]]></Val>
449+
<Tgt Cat="Text" Stat="Loc" Orig="New">
450+
<Val><![CDATA[Element krotki z etykietą jest deklarowany jako opcjonalny za pomocą znaku zapytania po nazwie i przed dwukropkiem, a nie po typie.]]></Val>
451+
</Tgt>
452+
</Str>
453+
<Disp Icon="Str" />
454+
</Item>
455+
<Item ItemId=";A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087" ItemType="0" PsrId="306" Leaf="true">
456+
<Str Cat="Text">
457+
<Val><![CDATA[A labeled tuple element is declared as rest with a `...` before the name, rather than before the type.]]></Val>
458+
<Tgt Cat="Text" Stat="Loc" Orig="New">
459+
<Val><![CDATA[Element krotki z etykietą jest deklarowany jako rest przy użyciu znaku „...” przed nazwą, a nie przed typem.]]></Val>
460+
</Tgt>
461+
</Str>
462+
<Disp Icon="Str" />
463+
</Item>
446464
<Item ItemId=";A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651" ItemType="0" PsrId="306" Leaf="true">
447465
<Str Cat="Text">
448466
<Val><![CDATA[A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums.]]></Val>
@@ -857,6 +875,15 @@
857875
</Str>
858876
<Disp Icon="Str" />
859877
</Item>
878+
<Item ItemId=";A_tuple_member_cannot_be_both_optional_and_rest_5085" ItemType="0" PsrId="306" Leaf="true">
879+
<Str Cat="Text">
880+
<Val><![CDATA[A tuple member cannot be both optional and rest.]]></Val>
881+
<Tgt Cat="Text" Stat="Loc" Orig="New">
882+
<Val><![CDATA[Składowa krotki nie może być jednocześnie opcjonalna i typu rest.]]></Val>
883+
</Tgt>
884+
</Str>
885+
<Disp Icon="Str" />
886+
</Item>
860887
<Item ItemId=";A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007" ItemType="0" PsrId="306" Leaf="true">
861888
<Str Cat="Text">
862889
<Val><![CDATA[A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.]]></Val>
@@ -3512,6 +3539,15 @@
35123539
</Str>
35133540
<Disp Icon="Str" />
35143541
</Item>
3542+
<Item ItemId=";Convert_overload_list_to_single_signature_95118" ItemType="0" PsrId="306" Leaf="true">
3543+
<Str Cat="Text">
3544+
<Val><![CDATA[Convert overload list to single signature]]></Val>
3545+
<Tgt Cat="Text" Stat="Loc" Orig="New">
3546+
<Val><![CDATA[Konwertuj listę przeciążeń na pojedynczą sygnaturę]]></Val>
3547+
</Tgt>
3548+
</Str>
3549+
<Disp Icon="Str" />
3550+
</Item>
35153551
<Item ItemId=";Convert_parameters_to_destructured_object_95075" ItemType="0" PsrId="306" Leaf="true">
35163552
<Str Cat="Text">
35173553
<Val><![CDATA[Convert parameters to destructured object]]></Val>
@@ -6797,6 +6833,15 @@
67976833
</Str>
67986834
<Disp Icon="Str" />
67996835
</Item>
6836+
<Item ItemId=";Move_labeled_tuple_element_modifiers_to_labels_95117" ItemType="0" PsrId="306" Leaf="true">
6837+
<Str Cat="Text">
6838+
<Val><![CDATA[Move labeled tuple element modifiers to labels]]></Val>
6839+
<Tgt Cat="Text" Stat="Loc" Orig="New">
6840+
<Val><![CDATA[Przenieś modyfikatory elementów krotki z etykietami do etykiet]]></Val>
6841+
</Tgt>
6842+
</Str>
6843+
<Disp Icon="Str" />
6844+
</Item>
68006845
<Item ItemId=";Move_to_a_new_file_95049" ItemType="0" PsrId="306" Leaf="true">
68016846
<Str Cat="Text">
68026847
<Val><![CDATA[Move to a new file]]></Val>
@@ -10586,6 +10631,15 @@
1058610631
</Str>
1058710632
<Disp Icon="Str" />
1058810633
</Item>
10634+
<Item ItemId=";This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234" ItemType="0" PsrId="306" Leaf="true">
10635+
<Str Cat="Text">
10636+
<Val><![CDATA[This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?]]></Val>
10637+
<Tgt Cat="Text" Stat="Loc" Orig="New">
10638+
<Val><![CDATA[Tego wyrażenia nie można wywoływać, ponieważ jest to metoda dostępu „get”. Czy chodziło Ci o użycie go bez znaków „()”?]]></Val>
10639+
</Tgt>
10640+
</Str>
10641+
<Disp Icon="Str" />
10642+
</Item>
1058910643
<Item ItemId=";This_expression_is_not_constructable_2351" ItemType="0" PsrId="306" Leaf="true">
1059010644
<Str Cat="Text">
1059110645
<Val><![CDATA[This expression is not constructable.]]></Val>
@@ -10751,6 +10805,15 @@
1075110805
</Str>
1075210806
<Disp Icon="Str" />
1075310807
</Item>
10808+
<Item ItemId=";Tuple_members_must_all_have_names_or_all_not_have_names_5084" ItemType="0" PsrId="306" Leaf="true">
10809+
<Str Cat="Text">
10810+
<Val><![CDATA[Tuple members must all have names or all not have names.]]></Val>
10811+
<Tgt Cat="Text" Stat="Loc" Orig="New">
10812+
<Val><![CDATA[Wszystkie składowe krotki muszą mieć nazwy albo wszystkie nie mogą mieć nazw.]]></Val>
10813+
</Tgt>
10814+
</Str>
10815+
<Disp Icon="Str" />
10816+
</Item>
1075410817
<Item ItemId=";Tuple_type_0_of_length_1_has_no_element_at_index_2_2493" ItemType="0" PsrId="306" Leaf="true">
1075510818
<Str Cat="Text">
1075610819
<Val><![CDATA[Tuple type '{0}' of length '{1}' has no element at index '{2}'.]]></Val>

0 commit comments

Comments
 (0)