Skip to content

Commit 36bc242

Browse files
authored
LEGO: Merge pull request 44704
LEGO: Merge pull request 44704
1 parent 15b4b32 commit 36bc242

File tree

3 files changed

+153
-207
lines changed

3 files changed

+153
-207
lines changed

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

Lines changed: 51 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,29 +2094,20 @@
20942094
</Str>
20952095
<Disp Icon="Str" />
20962096
</Item>
2097-
<Item ItemId=";An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336" ItemType="0" PsrId="306" Leaf="true">
2097+
<Item ItemId=";An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337" ItemType="0" PsrId="306" Leaf="true">
20982098
<Str Cat="Text">
2099-
<Val><![CDATA[An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]5D;: {2}' instead.]]></Val>
2099+
<Val><![CDATA[An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead.]]></Val>
21002100
<Tgt Cat="Text" Stat="Loc" Orig="New">
2101-
<Val><![CDATA[索引簽章參數類型不能是類型別名。請考慮改為撰寫 '[{0}: {1}]5D;: {2}'。]]></Val>
2101+
<Val><![CDATA[索引簽章參數類型不能是常值型別或泛型型別。請考慮改用對應的物件類型。]]></Val>
21022102
</Tgt>
21032103
</Str>
21042104
<Disp Icon="Str" />
21052105
</Item>
2106-
<Item ItemId=";An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337" ItemType="0" PsrId="306" Leaf="true">
2106+
<Item ItemId=";An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268" ItemType="0" PsrId="306" Leaf="true">
21072107
<Str Cat="Text">
2108-
<Val><![CDATA[An index signature parameter type cannot be a union type. Consider using a mapped object type instead.]]></Val>
2108+
<Val><![CDATA[An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type.]]></Val>
21092109
<Tgt Cat="Text" Stat="Loc" Orig="New">
2110-
<Val><![CDATA[索引簽章參數類型不能是等位型別。請考慮改用對應的物件類型。]]></Val>
2111-
</Tgt>
2112-
</Str>
2113-
<Disp Icon="Str" />
2114-
</Item>
2115-
<Item ItemId=";An_index_signature_parameter_type_must_be_either_string_or_number_1023" ItemType="0" PsrId="306" Leaf="true">
2116-
<Str Cat="Text">
2117-
<Val><![CDATA[An index signature parameter type must be either 'string' or 'number'.]]></Val>
2118-
<Tgt Cat="Text" Stat="Loc" Orig="New">
2119-
<Val><![CDATA[索引簽章參數類型必須為 'string' 或 'number'。]]></Val>
2110+
<Val><![CDATA[索引簽章參數類型必須是 'string'、'number'、'symbol' 或範本文字類型。]]></Val>
21202111
</Tgt>
21212112
</Str>
21222113
<Disp Icon="Str" />
@@ -5175,24 +5166,24 @@
51755166
</Str>
51765167
<Disp Icon="Str" />
51775168
</Item>
5178-
<Item ItemId=";Duplicate_label_0_1114" ItemType="0" PsrId="306" Leaf="true">
5169+
<Item ItemId=";Duplicate_index_signature_for_type_0_2374" ItemType="0" PsrId="306" Leaf="true">
51795170
<Str Cat="Text">
5180-
<Val><![CDATA[Duplicate label '{0}'.]]></Val>
5171+
<Val><![CDATA[Duplicate index signature for type '{0}'.]]></Val>
51815172
<Tgt Cat="Text" Stat="Loc" Orig="New">
5182-
<Val><![CDATA[標籤 '{0}' 重複。]]></Val>
5173+
<Val><![CDATA[類型 '{0}' 的索引簽章重複。]]></Val>
51835174
</Tgt>
5184-
<Prev Cat="Text">
5185-
<Val><![CDATA[Duplicate label '{0}']]></Val>
5186-
</Prev>
51875175
</Str>
51885176
<Disp Icon="Str" />
51895177
</Item>
5190-
<Item ItemId=";Duplicate_number_index_signature_2375" ItemType="0" PsrId="306" Leaf="true">
5178+
<Item ItemId=";Duplicate_label_0_1114" ItemType="0" PsrId="306" Leaf="true">
51915179
<Str Cat="Text">
5192-
<Val><![CDATA[Duplicate number index signature.]]></Val>
5180+
<Val><![CDATA[Duplicate label '{0}'.]]></Val>
51935181
<Tgt Cat="Text" Stat="Loc" Orig="New">
5194-
<Val><![CDATA[數字索引簽章重複。]]></Val>
5182+
<Val><![CDATA[標籤 '{0}' 重複。]]></Val>
51955183
</Tgt>
5184+
<Prev Cat="Text">
5185+
<Val><![CDATA[Duplicate label '{0}']]></Val>
5186+
</Prev>
51965187
</Str>
51975188
<Disp Icon="Str" />
51985189
</Item>
@@ -5205,15 +5196,6 @@
52055196
</Str>
52065197
<Disp Icon="Str" />
52075198
</Item>
5208-
<Item ItemId=";Duplicate_string_index_signature_2374" ItemType="0" PsrId="306" Leaf="true">
5209-
<Str Cat="Text">
5210-
<Val><![CDATA[Duplicate string index signature.]]></Val>
5211-
<Tgt Cat="Text" Stat="Loc" Orig="New">
5212-
<Val><![CDATA[字串索引簽章重複。]]></Val>
5213-
</Tgt>
5214-
</Str>
5215-
<Disp Icon="Str" />
5216-
</Item>
52175199
<Item ItemId=";Dynamic_import_cannot_have_type_arguments_1326" ItemType="0" PsrId="306" Leaf="true">
52185200
<Str Cat="Text">
52195201
<Val><![CDATA[Dynamic import cannot have type arguments.]]></Val>
@@ -7308,29 +7290,20 @@
73087290
</Str>
73097291
<Disp Icon="Str" />
73107292
</Item>
7311-
<Item ItemId=";Index_signature_in_type_0_only_permits_reading_2542" ItemType="0" PsrId="306" Leaf="true">
7312-
<Str Cat="Text">
7313-
<Val><![CDATA[Index signature in type '{0}' only permits reading.]]></Val>
7314-
<Tgt Cat="Text" Stat="Loc" Orig="New">
7315-
<Val><![CDATA[類型 '{0}' 中的索引簽章只允許讀取。]]></Val>
7316-
</Tgt>
7317-
</Str>
7318-
<Disp Icon="Str" />
7319-
</Item>
7320-
<Item ItemId=";Index_signature_is_missing_in_type_0_2329" ItemType="0" PsrId="306" Leaf="true">
7293+
<Item ItemId=";Index_signature_for_type_0_is_missing_in_type_1_2329" ItemType="0" PsrId="306" Leaf="true">
73217294
<Str Cat="Text">
7322-
<Val><![CDATA[Index signature is missing in type '{0}'.]]></Val>
7295+
<Val><![CDATA[Index signature for type '{0}' is missing in type '{1}'.]]></Val>
73237296
<Tgt Cat="Text" Stat="Loc" Orig="New">
7324-
<Val><![CDATA[類型 '{0}' 中遺漏索引簽章。]]></Val>
7297+
<Val><![CDATA[類型 '{0}' 的索引簽章在類型 '{1}' 中遺失。]]></Val>
73257298
</Tgt>
73267299
</Str>
73277300
<Disp Icon="Str" />
73287301
</Item>
7329-
<Item ItemId=";Index_signatures_are_incompatible_2330" ItemType="0" PsrId="306" Leaf="true">
7302+
<Item ItemId=";Index_signature_in_type_0_only_permits_reading_2542" ItemType="0" PsrId="306" Leaf="true">
73307303
<Str Cat="Text">
7331-
<Val><![CDATA[Index signatures are incompatible.]]></Val>
7304+
<Val><![CDATA[Index signature in type '{0}' only permits reading.]]></Val>
73327305
<Tgt Cat="Text" Stat="Loc" Orig="New">
7333-
<Val><![CDATA[索引簽章不相容。]]></Val>
7306+
<Val><![CDATA[類型 '{0}' 中的索引簽章只允許讀取。]]></Val>
73347307
</Tgt>
73357308
</Str>
73367309
<Disp Icon="Str" />
@@ -8700,15 +8673,6 @@
87008673
</Str>
87018674
<Disp Icon="Str" />
87028675
</Item>
8703-
<Item ItemId=";Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413" ItemType="0" PsrId="306" Leaf="true">
8704-
<Str Cat="Text">
8705-
<Val><![CDATA[Numeric index type '{0}' is not assignable to string index type '{1}'.]]></Val>
8706-
<Tgt Cat="Text" Stat="Loc" Orig="New">
8707-
<Val><![CDATA[數值索引類型 '{0}' 不可指派給字串索引類型 '{1}'。]]></Val>
8708-
</Tgt>
8709-
</Str>
8710-
<Disp Icon="Str" />
8711-
</Item>
87128676
<Item ItemId=";Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008" ItemType="0" PsrId="306" Leaf="true">
87138677
<Str Cat="Text">
87148678
<Val><![CDATA[Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers.]]></Val>
@@ -10290,20 +10254,11 @@
1029010254
</Str>
1029110255
<Disp Icon="Str" />
1029210256
</Item>
10293-
<Item ItemId=";Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412" ItemType="0" PsrId="306" Leaf="true">
10257+
<Item ItemId=";Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411" ItemType="0" PsrId="306" Leaf="true">
1029410258
<Str Cat="Text">
10295-
<Val><![CDATA[Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'.]]></Val>
10259+
<Val><![CDATA[Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'.]]></Val>
1029610260
<Tgt Cat="Text" Stat="Loc" Orig="New">
10297-
<Val><![CDATA[類型 '{1}' 的屬性 '{0}' 不可指派給數值索引類型 '{2}'。]]></Val>
10298-
</Tgt>
10299-
</Str>
10300-
<Disp Icon="Str" />
10301-
</Item>
10302-
<Item ItemId=";Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411" ItemType="0" PsrId="306" Leaf="true">
10303-
<Str Cat="Text">
10304-
<Val><![CDATA[Property '{0}' of type '{1}' is not assignable to string index type '{2}'.]]></Val>
10305-
<Tgt Cat="Text" Stat="Loc" Orig="New">
10306-
<Val><![CDATA[類型 '{1}' 的屬性 '{0}' 不可指派給字串索引類型 '{2}'。]]></Val>
10261+
<Val><![CDATA[類型 '{1}' 的屬性 '{0}' 不可指派給 '{2}' 索引類型 '{3}'。]]></Val>
1030710262
</Tgt>
1030810263
</Str>
1030910264
<Disp Icon="Str" />
@@ -14946,6 +14901,15 @@
1494614901
</Str>
1494714902
<Disp Icon="Str" />
1494814903
</Item>
14904+
<Item ItemId=";_0_and_1_index_signatures_are_incompatible_2330" ItemType="0" PsrId="306" Leaf="true">
14905+
<Str Cat="Text">
14906+
<Val><![CDATA['{0}' and '{1}' index signatures are incompatible.]]></Val>
14907+
<Tgt Cat="Text" Stat="Loc" Orig="New">
14908+
<Val><![CDATA['{0}' 和 '{1}' 索引簽章不相容。]]></Val>
14909+
</Tgt>
14910+
</Str>
14911+
<Disp Icon="Str" />
14912+
</Item>
1494914913
<Item ItemId=";_0_and_1_operations_cannot_be_mixed_without_parentheses_5076" ItemType="0" PsrId="306" Leaf="true">
1495014914
<Str Cat="Text">
1495114915
<Val><![CDATA['{0}' and '{1}' operations cannot be mixed without parentheses.]]></Val>
@@ -15126,6 +15090,24 @@
1512615090
</Str>
1512715091
<Disp Icon="Str" />
1512815092
</Item>
15093+
<Item ItemId=";_0_index_signatures_are_incompatible_2634" ItemType="0" PsrId="306" Leaf="true">
15094+
<Str Cat="Text">
15095+
<Val><![CDATA['{0}' index signatures are incompatible.]]></Val>
15096+
<Tgt Cat="Text" Stat="Loc" Orig="New">
15097+
<Val><![CDATA['{0}' 索引簽章不相容。]]></Val>
15098+
</Tgt>
15099+
</Str>
15100+
<Disp Icon="Str" />
15101+
</Item>
15102+
<Item ItemId=";_0_index_type_1_is_not_assignable_to_2_index_type_3_2413" ItemType="0" PsrId="306" Leaf="true">
15103+
<Str Cat="Text">
15104+
<Val><![CDATA['{0}' index type '{1}' is not assignable to '{2}' index type '{3}'.]]></Val>
15105+
<Tgt Cat="Text" Stat="Loc" Orig="New">
15106+
<Val><![CDATA['{0}' 索引類型 '{1}' 無法指派給 '{2}' 索引類型 '{3}'。]]></Val>
15107+
</Tgt>
15108+
</Str>
15109+
<Disp Icon="Str" />
15110+
</Item>
1512915111
<Item ItemId=";_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692" ItemType="0" PsrId="306" Leaf="true">
1513015112
<Str Cat="Text">
1513115113
<Val><![CDATA['{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible.]]></Val>

0 commit comments

Comments
 (0)