Skip to content

Commit 8c52e4e

Browse files
committed
LEGO: check in for master to temporary branch.
1 parent 2621a02 commit 8c52e4e

1 file changed

Lines changed: 105 additions & 0 deletions

File tree

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

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,30 +144,45 @@
144144
<Item ItemId=";A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166" ItemType="0" PsrId="306" Leaf="true">
145145
<Str Cat="Text">
146146
<Val><![CDATA[A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type.]]></Val>
147+
<Tgt Cat="Text" Stat="Loc" Orig="New">
148+
<Val><![CDATA[类属性声明中的计算属性名称必须引用类型为文本类型或“唯一符号”类型的表达式。]]></Val>
149+
</Tgt>
147150
</Str>
148151
<Disp Icon="Str" />
149152
</Item>
150153
<Item ItemId=";A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168" ItemType="0" PsrId="306" Leaf="true">
151154
<Str Cat="Text">
152155
<Val><![CDATA[A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type.]]></Val>
156+
<Tgt Cat="Text" Stat="Loc" Orig="New">
157+
<Val><![CDATA[方法重载中的计算属性名称必须引用类型为文本类型或“唯一符号”类型的表达式。]]></Val>
158+
</Tgt>
153159
</Str>
154160
<Disp Icon="Str" />
155161
</Item>
156162
<Item ItemId=";A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170" ItemType="0" PsrId="306" Leaf="true">
157163
<Str Cat="Text">
158164
<Val><![CDATA[A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.]]></Val>
165+
<Tgt Cat="Text" Stat="Loc" Orig="New">
166+
<Val><![CDATA[类型文本中的计算属性名称必须引用类型为文本类型或“唯一符号”类型的表达式。]]></Val>
167+
</Tgt>
159168
</Str>
160169
<Disp Icon="Str" />
161170
</Item>
162171
<Item ItemId=";A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165" ItemType="0" PsrId="306" Leaf="true">
163172
<Str Cat="Text">
164173
<Val><![CDATA[A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type.]]></Val>
174+
<Tgt Cat="Text" Stat="Loc" Orig="New">
175+
<Val><![CDATA[环境上下文中的计算属性名称必须引用类型为文本类型或“唯一符号”类型的表达式。]]></Val>
176+
</Tgt>
165177
</Str>
166178
<Disp Icon="Str" />
167179
</Item>
168180
<Item ItemId=";A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169" ItemType="0" PsrId="306" Leaf="true">
169181
<Str Cat="Text">
170182
<Val><![CDATA[A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type.]]></Val>
183+
<Tgt Cat="Text" Stat="Loc" Orig="New">
184+
<Val><![CDATA[接口中的计算属性名称必须引用必须引用类型为文本类型或“唯一符号”的表达式。]]></Val>
185+
</Tgt>
171186
</Str>
172187
<Disp Icon="Str" />
173188
</Item>
@@ -291,6 +306,12 @@
291306
</Str>
292307
<Disp Icon="Str" />
293308
</Item>
309+
<Item ItemId=";A_definite_assignment_assertion_is_not_permitted_in_this_context_1255" ItemType="0" PsrId="306" Leaf="true">
310+
<Str Cat="Text">
311+
<Val><![CDATA[A definite assignment assertion '!' is not permitted in this context.]]></Val>
312+
</Str>
313+
<Disp Icon="Str" />
314+
</Item>
294315
<Item ItemId=";A_destructuring_declaration_must_have_an_initializer_1182" ItemType="0" PsrId="306" Leaf="true">
295316
<Str Cat="Text">
296317
<Val><![CDATA[A destructuring declaration must have an initializer.]]></Val>
@@ -507,12 +528,18 @@
507528
<Item ItemId=";A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331" ItemType="0" PsrId="306" Leaf="true">
508529
<Str Cat="Text">
509530
<Val><![CDATA[A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'.]]></Val>
531+
<Tgt Cat="Text" Stat="Loc" Orig="New">
532+
<Val><![CDATA[类型为“唯一符号”的类的属性必须同时为“静态”和“只读”。]]></Val>
533+
</Tgt>
510534
</Str>
511535
<Disp Icon="Str" />
512536
</Item>
513537
<Item ItemId=";A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330" ItemType="0" PsrId="306" Leaf="true">
514538
<Str Cat="Text">
515539
<Val><![CDATA[A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'.]]></Val>
540+
<Tgt Cat="Text" Stat="Loc" Orig="New">
541+
<Val><![CDATA[类型为“唯一符号”的接口或类型文本的属性必须是“只读”]]></Val>
542+
</Tgt>
516543
</Str>
517544
<Disp Icon="Str" />
518545
</Item>
@@ -765,6 +792,9 @@
765792
<Item ItemId=";A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332" ItemType="0" PsrId="306" Leaf="true">
766793
<Str Cat="Text">
767794
<Val><![CDATA[A variable whose type is a 'unique symbol' type must be 'const'.]]></Val>
795+
<Tgt Cat="Text" Stat="Loc" Orig="New">
796+
<Val><![CDATA[类型为“唯一符号”的变量必须是“常量”。]]></Val>
797+
</Tgt>
768798
</Str>
769799
<Disp Icon="Str" />
770800
</Item>
@@ -2583,6 +2613,9 @@
25832613
<Item ItemId=";Duplicate_declaration_0_2718" ItemType="0" PsrId="306" Leaf="true">
25842614
<Str Cat="Text">
25852615
<Val><![CDATA[Duplicate declaration '{0}'.]]></Val>
2616+
<Tgt Cat="Text" Stat="Loc" Orig="New">
2617+
<Val><![CDATA[重复声明“{0}”。]]></Val>
2618+
</Tgt>
25862619
</Str>
25872620
<Disp Icon="Str" />
25882621
</Item>
@@ -2796,6 +2829,15 @@
27962829
</Str>
27972830
<Disp Icon="Str" />
27982831
</Item>
2832+
<Item ItemId=";Enable_strict_checking_of_property_initialization_in_classes_6187" ItemType="0" PsrId="306" Leaf="true">
2833+
<Str Cat="Text">
2834+
<Val><![CDATA[Enable strict checking of property initialization in classes.]]></Val>
2835+
<Tgt Cat="Text" Stat="Loc" Orig="New">
2836+
<Val><![CDATA[启用类中属性初始化的严格检查。]]></Val>
2837+
</Tgt>
2838+
</Str>
2839+
<Disp Icon="Str" />
2840+
</Item>
27992841
<Item ItemId=";Enable_strict_null_checks_6113" ItemType="0" PsrId="306" Leaf="true">
28002842
<Str Cat="Text">
28012843
<Val><![CDATA[Enable strict null checks.]]></Val>
@@ -2937,6 +2979,9 @@
29372979
<Item ItemId=";Expected_0_arguments_but_got_1_or_more_2556" ItemType="0" PsrId="306" Leaf="true">
29382980
<Str Cat="Text">
29392981
<Val><![CDATA[Expected {0} arguments, but got {1} or more.]]></Val>
2982+
<Tgt Cat="Text" Stat="Loc" Orig="New">
2983+
<Val><![CDATA[应有 {0} 个参数,但获得的数量大于等于 {1}。]]></Val>
2984+
</Tgt>
29402985
</Str>
29412986
<Disp Icon="Str" />
29422987
</Item>
@@ -2970,6 +3015,9 @@
29703015
<Item ItemId=";Expected_at_least_0_arguments_but_got_1_or_more_2557" ItemType="0" PsrId="306" Leaf="true">
29713016
<Str Cat="Text">
29723017
<Val><![CDATA[Expected at least {0} arguments, but got {1} or more.]]></Val>
3018+
<Tgt Cat="Text" Stat="Loc" Orig="New">
3019+
<Val><![CDATA[应有至少 {0} 个参数,但获得的数量大于等于 {1}。]]></Val>
3020+
</Tgt>
29733021
</Str>
29743022
<Disp Icon="Str" />
29753023
</Item>
@@ -4506,12 +4554,18 @@
45064554
<Item ItemId=";Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101" ItemType="0" PsrId="306" Leaf="true">
45074555
<Str Cat="Text">
45084556
<Val><![CDATA[Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'.]]></Val>
4557+
<Tgt Cat="Text" Stat="Loc" Orig="New">
4558+
<Val><![CDATA[导出接口的方法“{0}”具有或正在使用私有模块“{2}”中的名称“{1}”。]]></Val>
4559+
</Tgt>
45094560
</Str>
45104561
<Disp Icon="Str" />
45114562
</Item>
45124563
<Item ItemId=";Method_0_of_exported_interface_has_or_is_using_private_name_1_4102" ItemType="0" PsrId="306" Leaf="true">
45134564
<Str Cat="Text">
45144565
<Val><![CDATA[Method '{0}' of exported interface has or is using private name '{1}'.]]></Val>
4566+
<Tgt Cat="Text" Stat="Loc" Orig="New">
4567+
<Val><![CDATA[导出接口的方法“{0}”具有或正在使用专用名称“{1}”。]]></Val>
4568+
</Tgt>
45154569
</Str>
45164570
<Disp Icon="Str" />
45174571
</Item>
@@ -5439,6 +5493,15 @@
54395493
</Str>
54405494
<Disp Icon="Str" />
54415495
</Item>
5496+
<Item ItemId=";Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564" ItemType="0" PsrId="306" Leaf="true">
5497+
<Str Cat="Text">
5498+
<Val><![CDATA[Property '{0}' has no initializer and is not definitely assigned in the constructor.]]></Val>
5499+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5500+
<Val><![CDATA[属性“{0}”没有初始化表达式,且未在构造函数中明确赋值。]]></Val>
5501+
</Tgt>
5502+
</Str>
5503+
<Disp Icon="Str" />
5504+
</Item>
54425505
<Item ItemId=";Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033" ItemType="0" PsrId="306" Leaf="true">
54435506
<Str Cat="Text">
54445507
<Val><![CDATA[Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation.]]></Val>
@@ -5559,6 +5622,15 @@
55595622
</Str>
55605623
<Disp Icon="Str" />
55615624
</Item>
5625+
<Item ItemId=";Property_0_is_used_before_being_assigned_2565" ItemType="0" PsrId="306" Leaf="true">
5626+
<Str Cat="Text">
5627+
<Val><![CDATA[Property '{0}' is used before being assigned.]]></Val>
5628+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5629+
<Val><![CDATA[在赋值前使用了属性“{0}”。]]></Val>
5630+
</Tgt>
5631+
</Str>
5632+
<Disp Icon="Str" />
5633+
</Item>
55625634
<Item ItemId=";Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606" ItemType="0" PsrId="306" Leaf="true">
55635635
<Str Cat="Text">
55645636
<Val><![CDATA[Property '{0}' of JSX spread attribute is not assignable to target property.]]></Val>
@@ -5661,18 +5733,27 @@
56615733
<Item ItemId=";Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098" ItemType="0" PsrId="306" Leaf="true">
56625734
<Str Cat="Text">
56635735
<Val><![CDATA[Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.]]></Val>
5736+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5737+
<Val><![CDATA[导出类的公共方法“{0}”具有或正在使用外部模块“{2}”中的名称“{1}”,但不能为其命名。]]></Val>
5738+
</Tgt>
56645739
</Str>
56655740
<Disp Icon="Str" />
56665741
</Item>
56675742
<Item ItemId=";Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099" ItemType="0" PsrId="306" Leaf="true">
56685743
<Str Cat="Text">
56695744
<Val><![CDATA[Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'.]]></Val>
5745+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5746+
<Val><![CDATA[导出类的公共方法“{0}”具有或正在使用私有模块“{2}”中的名称“{1}”。]]></Val>
5747+
</Tgt>
56705748
</Str>
56715749
<Disp Icon="Str" />
56725750
</Item>
56735751
<Item ItemId=";Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100" ItemType="0" PsrId="306" Leaf="true">
56745752
<Str Cat="Text">
56755753
<Val><![CDATA[Public method '{0}' of exported class has or is using private name '{1}'.]]></Val>
5754+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5755+
<Val><![CDATA[导出类的公共方法“{0}”具有或正在使用专用名称“{1}”。]]></Val>
5756+
</Tgt>
56765757
</Str>
56775758
<Disp Icon="Str" />
56785759
</Item>
@@ -5706,18 +5787,27 @@
57065787
<Item ItemId=";Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095" ItemType="0" PsrId="306" Leaf="true">
57075788
<Str Cat="Text">
57085789
<Val><![CDATA[Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.]]></Val>
5790+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5791+
<Val><![CDATA[导出类的公共静态方法“{0}”具有或正在使用外部模块“{2}”中的名称“{1}”,但不能为其命名。]]></Val>
5792+
</Tgt>
57095793
</Str>
57105794
<Disp Icon="Str" />
57115795
</Item>
57125796
<Item ItemId=";Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096" ItemType="0" PsrId="306" Leaf="true">
57135797
<Str Cat="Text">
57145798
<Val><![CDATA[Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'.]]></Val>
5799+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5800+
<Val><![CDATA[导出类的公共静态方法“{0}”具有或正在使用私有模块“{2}”中的名称“{1}”。]]></Val>
5801+
</Tgt>
57155802
</Str>
57165803
<Disp Icon="Str" />
57175804
</Item>
57185805
<Item ItemId=";Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097" ItemType="0" PsrId="306" Leaf="true">
57195806
<Str Cat="Text">
57205807
<Val><![CDATA[Public static method '{0}' of exported class has or is using private name '{1}'.]]></Val>
5808+
<Tgt Cat="Text" Stat="Loc" Orig="New">
5809+
<Val><![CDATA[导出类的公共静态方法“{0}”具有或正在使用专用名称“{1}”。]]></Val>
5810+
</Tgt>
57215811
</Str>
57225812
<Disp Icon="Str" />
57235813
</Item>
@@ -6510,6 +6600,9 @@
65106600
<Item ItemId=";Subsequent_property_declarations_must_have_the_same_type_Property_0_has_type_1_at_2_but_here_has_typ_2717" ItemType="0" PsrId="306" Leaf="true">
65116601
<Str Cat="Text">
65126602
<Val><![CDATA[Subsequent property declarations must have the same type. Property '{0}' has type '{1}' at {2}, but here has type '{3}'.]]></Val>
6603+
<Tgt Cat="Text" Stat="Loc" Orig="New">
6604+
<Val><![CDATA[后续属性声明必须属于同一类型。属性“{0}”在“{2}”中必须为类型“{1}”,但此处却为类型“{3}”。]]></Val>
6605+
</Tgt>
65136606
</Str>
65146607
<Disp Icon="Str" />
65156608
</Item>
@@ -6738,6 +6831,9 @@
67386831
<Item ItemId=";The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527" ItemType="0" PsrId="306" Leaf="true">
67396832
<Str Cat="Text">
67406833
<Val><![CDATA[The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary.]]></Val>
6834+
<Tgt Cat="Text" Stat="Loc" Orig="New">
6835+
<Val><![CDATA[“{0}”的推断类型引用不可访问的“{1}”类型。需要类型批注。]]></Val>
6836+
</Tgt>
67416837
</Str>
67426838
<Disp Icon="Str" />
67436839
</Item>
@@ -8790,18 +8886,27 @@
87908886
<Item ItemId=";unique_symbol_types_are_not_allowed_here_1335" ItemType="0" PsrId="306" Leaf="true">
87918887
<Str Cat="Text">
87928888
<Val><![CDATA['unique symbol' types are not allowed here.]]></Val>
8889+
<Tgt Cat="Text" Stat="Loc" Orig="New">
8890+
<Val><![CDATA[此处不允许“唯一符号”类型。]]></Val>
8891+
</Tgt>
87938892
</Str>
87948893
<Disp Icon="Str" />
87958894
</Item>
87968895
<Item ItemId=";unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334" ItemType="0" PsrId="306" Leaf="true">
87978896
<Str Cat="Text">
87988897
<Val><![CDATA['unique symbol' types are only allowed on variables in a variable statement.]]></Val>
8898+
<Tgt Cat="Text" Stat="Loc" Orig="New">
8899+
<Val><![CDATA[“唯一符号”类型仅可在变量语句中的变量上使用。]]></Val>
8900+
</Tgt>
87998901
</Str>
88008902
<Disp Icon="Str" />
88018903
</Item>
88028904
<Item ItemId=";unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333" ItemType="0" PsrId="306" Leaf="true">
88038905
<Str Cat="Text">
88048906
<Val><![CDATA['unique symbol' types may not be used on a variable declaration with a binding name.]]></Val>
8907+
<Tgt Cat="Text" Stat="Loc" Orig="New">
8908+
<Val><![CDATA[不可在具有绑定名称的变量声明中使用“唯一符号”类型。]]></Val>
8909+
</Tgt>
88058910
</Str>
88068911
<Disp Icon="Str" />
88078912
</Item>

0 commit comments

Comments
 (0)