Skip to content

Commit 6452cfb

Browse files
authored
LEGO: Merge pull request 44707
LEGO: Merge pull request 44707
1 parent fd49b26 commit 6452cfb

File tree

7 files changed

+341
-422
lines changed

7 files changed

+341
-422
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15513,6 +15513,15 @@
1551315513
</Str>
1551415514
<Disp Icon="Str" />
1551515515
</Item>
15516+
<Item ItemId=";arguments_cannot_be_referenced_in_property_initializers_2815" ItemType="0" PsrId="306" Leaf="true">
15517+
<Str Cat="Text">
15518+
<Val><![CDATA['arguments' cannot be referenced in property initializers.]]></Val>
15519+
<Tgt Cat="Text" Stat="Loc" Orig="New">
15520+
<Val><![CDATA[屬性初始設定式中不得參考 'arguments'。]]></Val>
15521+
</Tgt>
15522+
</Str>
15523+
<Disp Icon="Str" />
15524+
</Item>
1551615525
<Item ItemId=";await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375" ItemType="0" PsrId="306" Leaf="true">
1551715526
<Str Cat="Text">
1551815527
<Val><![CDATA['await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module.]]></Val>

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

Lines changed: 57 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -2103,29 +2103,20 @@
21032103
</Str>
21042104
<Disp Icon="Str" />
21052105
</Item>
2106-
<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">
2106+
<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">
21072107
<Str Cat="Text">
2108-
<Val><![CDATA[An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]5D;: {2}' instead.]]></Val>
2108+
<Val><![CDATA[An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead.]]></Val>
21092109
<Tgt Cat="Text" Stat="Loc" Orig="New">
2110-
<Val><![CDATA[Typ parametru signatury indexu nemůže být alias typu. Místo toho zvažte toto zadání: [{0}: {1}]5D;: {2}.]]></Val>
2110+
<Val><![CDATA[Typ parametru signatury indexu nemůže být typ literálu nebo obecný typ. Místo toho zvažte použití namapovaného typu objektu.]]></Val>
21112111
</Tgt>
21122112
</Str>
21132113
<Disp Icon="Str" />
21142114
</Item>
2115-
<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">
2115+
<Item ItemId=";An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268" ItemType="0" PsrId="306" Leaf="true">
21162116
<Str Cat="Text">
2117-
<Val><![CDATA[An index signature parameter type cannot be a union type. Consider using a mapped object type instead.]]></Val>
2117+
<Val><![CDATA[An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type.]]></Val>
21182118
<Tgt Cat="Text" Stat="Loc" Orig="New">
2119-
<Val><![CDATA[Typ parametru signatury indexu nemůže být typ sjednocení. Místo toho zvažte použití namapovaného typu objektu.]]></Val>
2120-
</Tgt>
2121-
</Str>
2122-
<Disp Icon="Str" />
2123-
</Item>
2124-
<Item ItemId=";An_index_signature_parameter_type_must_be_either_string_or_number_1023" ItemType="0" PsrId="306" Leaf="true">
2125-
<Str Cat="Text">
2126-
<Val><![CDATA[An index signature parameter type must be either 'string' or 'number'.]]></Val>
2127-
<Tgt Cat="Text" Stat="Loc" Orig="New">
2128-
<Val><![CDATA[Parametr signatury indexu musí být buď typu string, nebo number.]]></Val>
2119+
<Val><![CDATA[Typ parametru signatury indexu musí být řetězec, číslo, symbol nebo typ literálu šablony.]]></Val>
21292120
</Tgt>
21302121
</Str>
21312122
<Disp Icon="Str" />
@@ -5184,24 +5175,24 @@
51845175
</Str>
51855176
<Disp Icon="Str" />
51865177
</Item>
5187-
<Item ItemId=";Duplicate_label_0_1114" ItemType="0" PsrId="306" Leaf="true">
5178+
<Item ItemId=";Duplicate_index_signature_for_type_0_2374" ItemType="0" PsrId="306" Leaf="true">
51885179
<Str Cat="Text">
5189-
<Val><![CDATA[Duplicate label '{0}'.]]></Val>
5180+
<Val><![CDATA[Duplicate index signature for type '{0}'.]]></Val>
51905181
<Tgt Cat="Text" Stat="Loc" Orig="New">
5191-
<Val><![CDATA[Duplicitní popisek {0}]]></Val>
5182+
<Val><![CDATA[Duplicitní signatura indexu pro typ {0}.]]></Val>
51925183
</Tgt>
5193-
<Prev Cat="Text">
5194-
<Val><![CDATA[Duplicate label '{0}']]></Val>
5195-
</Prev>
51965184
</Str>
51975185
<Disp Icon="Str" />
51985186
</Item>
5199-
<Item ItemId=";Duplicate_number_index_signature_2375" ItemType="0" PsrId="306" Leaf="true">
5187+
<Item ItemId=";Duplicate_label_0_1114" ItemType="0" PsrId="306" Leaf="true">
52005188
<Str Cat="Text">
5201-
<Val><![CDATA[Duplicate number index signature.]]></Val>
5189+
<Val><![CDATA[Duplicate label '{0}'.]]></Val>
52025190
<Tgt Cat="Text" Stat="Loc" Orig="New">
5203-
<Val><![CDATA[Duplicitní podpis číselného indexu]]></Val>
5191+
<Val><![CDATA[Duplicitní popisek {0}]]></Val>
52045192
</Tgt>
5193+
<Prev Cat="Text">
5194+
<Val><![CDATA[Duplicate label '{0}']]></Val>
5195+
</Prev>
52055196
</Str>
52065197
<Disp Icon="Str" />
52075198
</Item>
@@ -5214,15 +5205,6 @@
52145205
</Str>
52155206
<Disp Icon="Str" />
52165207
</Item>
5217-
<Item ItemId=";Duplicate_string_index_signature_2374" ItemType="0" PsrId="306" Leaf="true">
5218-
<Str Cat="Text">
5219-
<Val><![CDATA[Duplicate string index signature.]]></Val>
5220-
<Tgt Cat="Text" Stat="Loc" Orig="New">
5221-
<Val><![CDATA[Duplicitní signatury řetězcového indexu]]></Val>
5222-
</Tgt>
5223-
</Str>
5224-
<Disp Icon="Str" />
5225-
</Item>
52265208
<Item ItemId=";Dynamic_import_cannot_have_type_arguments_1326" ItemType="0" PsrId="306" Leaf="true">
52275209
<Str Cat="Text">
52285210
<Val><![CDATA[Dynamic import cannot have type arguments.]]></Val>
@@ -7317,29 +7299,20 @@
73177299
</Str>
73187300
<Disp Icon="Str" />
73197301
</Item>
7320-
<Item ItemId=";Index_signature_in_type_0_only_permits_reading_2542" ItemType="0" PsrId="306" Leaf="true">
7302+
<Item ItemId=";Index_signature_for_type_0_is_missing_in_type_1_2329" ItemType="0" PsrId="306" Leaf="true">
73217303
<Str Cat="Text">
7322-
<Val><![CDATA[Index signature in type '{0}' only permits reading.]]></Val>
7304+
<Val><![CDATA[Index signature for type '{0}' is missing in type '{1}'.]]></Val>
73237305
<Tgt Cat="Text" Stat="Loc" Orig="New">
7324-
<Val><![CDATA[Signatura indexu v typu {0} povoluje jen čtení.]]></Val>
7306+
<Val><![CDATA[Signatura indexu pro typ {0} chybí v typu {1}.]]></Val>
73257307
</Tgt>
73267308
</Str>
73277309
<Disp Icon="Str" />
73287310
</Item>
7329-
<Item ItemId=";Index_signature_is_missing_in_type_0_2329" ItemType="0" PsrId="306" Leaf="true">
7330-
<Str Cat="Text">
7331-
<Val><![CDATA[Index signature is missing in type '{0}'.]]></Val>
7332-
<Tgt Cat="Text" Stat="Loc" Orig="New">
7333-
<Val><![CDATA[V typu {0} chybí signatura indexu.]]></Val>
7334-
</Tgt>
7335-
</Str>
7336-
<Disp Icon="Str" />
7337-
</Item>
7338-
<Item ItemId=";Index_signatures_are_incompatible_2330" ItemType="0" PsrId="306" Leaf="true">
7311+
<Item ItemId=";Index_signature_in_type_0_only_permits_reading_2542" ItemType="0" PsrId="306" Leaf="true">
73397312
<Str Cat="Text">
7340-
<Val><![CDATA[Index signatures are incompatible.]]></Val>
7313+
<Val><![CDATA[Index signature in type '{0}' only permits reading.]]></Val>
73417314
<Tgt Cat="Text" Stat="Loc" Orig="New">
7342-
<Val><![CDATA[Signatury indexu jsou nekompatibilní.]]></Val>
7315+
<Val><![CDATA[Signatura indexu v typu {0} povoluje jen čtení.]]></Val>
73437316
</Tgt>
73447317
</Str>
73457318
<Disp Icon="Str" />
@@ -8709,15 +8682,6 @@
87098682
</Str>
87108683
<Disp Icon="Str" />
87118684
</Item>
8712-
<Item ItemId=";Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413" ItemType="0" PsrId="306" Leaf="true">
8713-
<Str Cat="Text">
8714-
<Val><![CDATA[Numeric index type '{0}' is not assignable to string index type '{1}'.]]></Val>
8715-
<Tgt Cat="Text" Stat="Loc" Orig="New">
8716-
<Val><![CDATA[Typ číselného indexu {0} se nedá přiřadit k typu indexu řetězce {1}.]]></Val>
8717-
</Tgt>
8718-
</Str>
8719-
<Disp Icon="Str" />
8720-
</Item>
87218685
<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">
87228686
<Str Cat="Text">
87238687
<Val><![CDATA[Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers.]]></Val>
@@ -10299,20 +10263,11 @@
1029910263
</Str>
1030010264
<Disp Icon="Str" />
1030110265
</Item>
10302-
<Item ItemId=";Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412" ItemType="0" PsrId="306" Leaf="true">
10303-
<Str Cat="Text">
10304-
<Val><![CDATA[Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'.]]></Val>
10305-
<Tgt Cat="Text" Stat="Loc" Orig="New">
10306-
<Val><![CDATA[Vlastnost {0} typu {1} se nedá přiřadit k typu číselného indexu {2}.]]></Val>
10307-
</Tgt>
10308-
</Str>
10309-
<Disp Icon="Str" />
10310-
</Item>
10311-
<Item ItemId=";Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411" ItemType="0" PsrId="306" Leaf="true">
10266+
<Item ItemId=";Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411" ItemType="0" PsrId="306" Leaf="true">
1031210267
<Str Cat="Text">
10313-
<Val><![CDATA[Property '{0}' of type '{1}' is not assignable to string index type '{2}'.]]></Val>
10268+
<Val><![CDATA[Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'.]]></Val>
1031410269
<Tgt Cat="Text" Stat="Loc" Orig="New">
10315-
<Val><![CDATA[Vlastnost {0} typu {1} se nedá přiřadit k typu indexu řetězce {2}.]]></Val>
10270+
<Val><![CDATA[Vlastnost {0} typu {1} se nedá přiřadit k {2} typu indexu {3}.]]></Val>
1031610271
</Tgt>
1031710272
</Str>
1031810273
<Disp Icon="Str" />
@@ -14955,6 +14910,15 @@
1495514910
</Str>
1495614911
<Disp Icon="Str" />
1495714912
</Item>
14913+
<Item ItemId=";_0_and_1_index_signatures_are_incompatible_2330" ItemType="0" PsrId="306" Leaf="true">
14914+
<Str Cat="Text">
14915+
<Val><![CDATA['{0}' and '{1}' index signatures are incompatible.]]></Val>
14916+
<Tgt Cat="Text" Stat="Loc" Orig="New">
14917+
<Val><![CDATA[Signatury indexu {0} a {1} jsou nekompatibilní.]]></Val>
14918+
</Tgt>
14919+
</Str>
14920+
<Disp Icon="Str" />
14921+
</Item>
1495814922
<Item ItemId=";_0_and_1_operations_cannot_be_mixed_without_parentheses_5076" ItemType="0" PsrId="306" Leaf="true">
1495914923
<Str Cat="Text">
1496014924
<Val><![CDATA['{0}' and '{1}' operations cannot be mixed without parentheses.]]></Val>
@@ -15135,6 +15099,24 @@
1513515099
</Str>
1513615100
<Disp Icon="Str" />
1513715101
</Item>
15102+
<Item ItemId=";_0_index_signatures_are_incompatible_2634" ItemType="0" PsrId="306" Leaf="true">
15103+
<Str Cat="Text">
15104+
<Val><![CDATA['{0}' index signatures are incompatible.]]></Val>
15105+
<Tgt Cat="Text" Stat="Loc" Orig="New">
15106+
<Val><![CDATA[Signatury indexu {0} jsou nekompatibilní.]]></Val>
15107+
</Tgt>
15108+
</Str>
15109+
<Disp Icon="Str" />
15110+
</Item>
15111+
<Item ItemId=";_0_index_type_1_is_not_assignable_to_2_index_type_3_2413" ItemType="0" PsrId="306" Leaf="true">
15112+
<Str Cat="Text">
15113+
<Val><![CDATA['{0}' index type '{1}' is not assignable to '{2}' index type '{3}'.]]></Val>
15114+
<Tgt Cat="Text" Stat="Loc" Orig="New">
15115+
<Val><![CDATA[{0} Typ indexu {1} se nedá přiřadit k {2} typu indexu {3}.]]></Val>
15116+
</Tgt>
15117+
</Str>
15118+
<Disp Icon="Str" />
15119+
</Item>
1513815120
<Item ItemId=";_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692" ItemType="0" PsrId="306" Leaf="true">
1513915121
<Str Cat="Text">
1514015122
<Val><![CDATA['{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible.]]></Val>
@@ -15540,6 +15522,12 @@
1554015522
</Str>
1554115523
<Disp Icon="Str" />
1554215524
</Item>
15525+
<Item ItemId=";arguments_cannot_be_referenced_in_property_initializers_2815" ItemType="0" PsrId="306" Leaf="true">
15526+
<Str Cat="Text">
15527+
<Val><![CDATA['arguments' cannot be referenced in property initializers.]]></Val>
15528+
</Str>
15529+
<Disp Icon="Str" />
15530+
</Item>
1554315531
<Item ItemId=";await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375" ItemType="0" PsrId="306" Leaf="true">
1554415532
<Str Cat="Text">
1554515533
<Val><![CDATA['await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module.]]></Val>

0 commit comments

Comments
 (0)