Skip to content

Commit d6859c3

Browse files
authored
LEGO: Merge pull request 40547
LEGO: Merge pull request 40547
2 parents 21d781f + a6ea950 commit d6859c3

File tree

7 files changed

+654
-135
lines changed

7 files changed

+654
-135
lines changed

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

Lines changed: 98 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,10 +1490,13 @@
14901490
</Item>
14911491
<Item ItemId=";All_type_parameters_are_unused_6205" ItemType="0" PsrId="306" Leaf="true">
14921492
<Str Cat="Text">
1493-
<Val><![CDATA[All type parameters are unused]]></Val>
1494-
<Tgt Cat="Text" Stat="Loc" Orig="New">
1493+
<Val><![CDATA[All type parameters are unused.]]></Val>
1494+
<Tgt Cat="Text" Stat="Update" Orig="New">
14951495
<Val><![CDATA[未使用任何类型参数]]></Val>
14961496
</Tgt>
1497+
<Prev Cat="Text">
1498+
<Val><![CDATA[All type parameters are unused]]></Val>
1499+
</Prev>
14971500
</Str>
14981501
<Disp Icon="Str" />
14991502
</Item>
@@ -1778,10 +1781,13 @@
17781781
</Item>
17791782
<Item ItemId=";An_expression_of_type_void_cannot_be_tested_for_truthiness_1345" ItemType="0" PsrId="306" Leaf="true">
17801783
<Str Cat="Text">
1781-
<Val><![CDATA[An expression of type 'void' cannot be tested for truthiness]]></Val>
1782-
<Tgt Cat="Text" Stat="Loc" Orig="New">
1784+
<Val><![CDATA[An expression of type 'void' cannot be tested for truthiness.]]></Val>
1785+
<Tgt Cat="Text" Stat="Update" Orig="New">
17831786
<Val><![CDATA[无法测试 "void" 类型表达式的真实性]]></Val>
17841787
</Tgt>
1788+
<Prev Cat="Text">
1789+
<Val><![CDATA[An expression of type 'void' cannot be tested for truthiness]]></Val>
1790+
</Prev>
17851791
</Str>
17861792
<Disp Icon="Str" />
17871793
</Item>
@@ -2606,10 +2612,13 @@
26062612
</Item>
26072613
<Item ItemId=";Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732" ItemType="0" PsrId="306" Leaf="true">
26082614
<Str Cat="Text">
2609-
<Val><![CDATA[Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension]]></Val>
2610-
<Tgt Cat="Text" Stat="Loc" Orig="New">
2615+
<Val><![CDATA[Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension.]]></Val>
2616+
<Tgt Cat="Text" Stat="Update" Orig="New">
26112617
<Val><![CDATA[找不到模块 "{0}"。请考虑使用 "--resolveJsonModule" 导入带 ".json" 扩展的模块]]></Val>
26122618
</Tgt>
2619+
<Prev Cat="Text">
2620+
<Val><![CDATA[Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension]]></Val>
2621+
</Prev>
26132622
</Str>
26142623
<Disp Icon="Str" />
26152624
</Item>
@@ -3441,6 +3450,12 @@
34413450
</Str>
34423451
<Disp Icon="Str" />
34433452
</Item>
3453+
<Item ItemId=";Convert_0_to_1_in_0_95003" ItemType="0" PsrId="306" Leaf="true">
3454+
<Str Cat="Text">
3455+
<Val><![CDATA[Convert '{0}' to '{1} in {0}']]></Val>
3456+
</Str>
3457+
<Disp Icon="Str" />
3458+
</Item>
34443459
<Item ItemId=";Convert_0_to_mapped_object_type_95055" ItemType="0" PsrId="306" Leaf="true">
34453460
<Str Cat="Text">
34463461
<Val><![CDATA[Convert '{0}' to mapped object type]]></Val>
@@ -3522,6 +3537,15 @@
35223537
</Str>
35233538
<Disp Icon="Str" />
35243539
</Item>
3540+
<Item ItemId=";Convert_all_type_literals_to_mapped_type_95021" ItemType="0" PsrId="306" Leaf="true">
3541+
<Str Cat="Text">
3542+
<Val><![CDATA[Convert all type literals to mapped type]]></Val>
3543+
<Tgt Cat="Text" Stat="Loc" Orig="New">
3544+
<Val><![CDATA[将所有类型文本转换为映射类型]]></Val>
3545+
</Tgt>
3546+
</Str>
3547+
<Disp Icon="Str" />
3548+
</Item>
35253549
<Item ItemId=";Convert_arrow_function_or_function_expression_95122" ItemType="0" PsrId="306" Leaf="true">
35263550
<Str Cat="Text">
35273551
<Val><![CDATA[Convert arrow function or function expression]]></Val>
@@ -4472,10 +4496,13 @@
44724496
</Item>
44734497
<Item ItemId=";Dynamic_import_cannot_have_type_arguments_1326" ItemType="0" PsrId="306" Leaf="true">
44744498
<Str Cat="Text">
4475-
<Val><![CDATA[Dynamic import cannot have type arguments]]></Val>
4476-
<Tgt Cat="Text" Stat="Loc" Orig="New">
4499+
<Val><![CDATA[Dynamic import cannot have type arguments.]]></Val>
4500+
<Tgt Cat="Text" Stat="Update" Orig="New">
44774501
<Val><![CDATA[动态导入不能含有类型参数]]></Val>
44784502
</Tgt>
4503+
<Prev Cat="Text">
4504+
<Val><![CDATA[Dynamic import cannot have type arguments]]></Val>
4505+
</Prev>
44794506
</Str>
44804507
<Disp Icon="Str" />
44814508
</Item>
@@ -5619,6 +5646,12 @@
56195646
</Str>
56205647
<Disp Icon="Str" />
56215648
</Item>
5649+
<Item ItemId=";Generates_an_event_trace_and_a_list_of_types_6237" ItemType="0" PsrId="306" Leaf="true">
5650+
<Str Cat="Text">
5651+
<Val><![CDATA[Generates an event trace and a list of types.]]></Val>
5652+
</Str>
5653+
<Disp Icon="Str" />
5654+
</Item>
56225655
<Item ItemId=";Generates_corresponding_d_ts_file_6002" ItemType="0" PsrId="306" Leaf="true">
56235656
<Str Cat="Text">
56245657
<Val><![CDATA[Generates corresponding '.d.ts' file.]]></Val>
@@ -6036,6 +6069,12 @@
60366069
</Str>
60376070
<Disp Icon="Str" />
60386071
</Item>
6072+
<Item ItemId=";Include_undefined_in_index_signature_results_6800" ItemType="0" PsrId="306" Leaf="true">
6073+
<Str Cat="Text">
6074+
<Val><![CDATA[Include 'undefined' in index signature results]]></Val>
6075+
</Str>
6076+
<Disp Icon="Str" />
6077+
</Item>
60396078
<Item ItemId=";Index_signature_in_type_0_only_permits_reading_2542" ItemType="0" PsrId="306" Leaf="true">
60406079
<Str Cat="Text">
60416080
<Val><![CDATA[Index signature in type '{0}' only permits reading.]]></Val>
@@ -7248,6 +7287,12 @@
72487287
</Str>
72497288
<Disp Icon="Str" />
72507289
</Item>
7290+
<Item ItemId=";Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090" ItemType="0" PsrId="306" Leaf="true">
7291+
<Str Cat="Text">
7292+
<Val><![CDATA[Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?]]></Val>
7293+
</Str>
7294+
<Disp Icon="Str" />
7295+
</Item>
72517296
<Item ItemId=";Non_simple_parameter_declared_here_1348" ItemType="0" PsrId="306" Leaf="true">
72527297
<Str Cat="Text">
72537298
<Val><![CDATA[Non-simple parameter declared here.]]></Val>
@@ -7566,6 +7611,12 @@
75667611
</Str>
75677612
<Disp Icon="Str" />
75687613
</Item>
7614+
<Item ItemId=";Option_0_cannot_be_specified_when_option_jsx_is_1_5089" ItemType="0" PsrId="306" Leaf="true">
7615+
<Str Cat="Text">
7616+
<Val><![CDATA[Option '{0}' cannot be specified when option 'jsx' is '{1}'.]]></Val>
7617+
</Str>
7618+
<Disp Icon="Str" />
7619+
</Item>
75697620
<Item ItemId=";Option_0_cannot_be_specified_when_option_target_is_ES3_5048" ItemType="0" PsrId="306" Leaf="true">
75707621
<Str Cat="Text">
75717622
<Val><![CDATA[Option '{0}' cannot be specified when option 'target' is 'ES3'.]]></Val>
@@ -7638,15 +7689,6 @@
76387689
</Str>
76397690
<Disp Icon="Str" />
76407691
</Item>
7641-
<Item ItemId=";Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060" ItemType="0" PsrId="306" Leaf="true">
7642-
<Str Cat="Text">
7643-
<Val><![CDATA[Option 'paths' cannot be used without specifying '--baseUrl' option.]]></Val>
7644-
<Tgt Cat="Text" Stat="Loc" Orig="New">
7645-
<Val><![CDATA[在未指定 "--baseUrl" 选项的情况下,无法使用选项 "paths"。]]></Val>
7646-
</Tgt>
7647-
</Str>
7648-
<Disp Icon="Str" />
7649-
</Item>
76507692
<Item ItemId=";Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042" ItemType="0" PsrId="306" Leaf="true">
76517693
<Str Cat="Text">
76527694
<Val><![CDATA[Option 'project' cannot be mixed with source files on a command line.]]></Val>
@@ -8243,10 +8285,13 @@
82438285
</Item>
82448286
<Item ItemId=";Private_identifiers_cannot_be_used_as_parameters_18009" ItemType="0" PsrId="306" Leaf="true">
82458287
<Str Cat="Text">
8246-
<Val><![CDATA[Private identifiers cannot be used as parameters]]></Val>
8247-
<Tgt Cat="Text" Stat="Loc" Orig="New">
8288+
<Val><![CDATA[Private identifiers cannot be used as parameters.]]></Val>
8289+
<Tgt Cat="Text" Stat="Update" Orig="New">
82488290
<Val><![CDATA[不能将专用标识符用作参数]]></Val>
82498291
</Tgt>
8292+
<Prev Cat="Text">
8293+
<Val><![CDATA[Private identifiers cannot be used as parameters]]></Val>
8294+
</Prev>
82508295
</Str>
82518296
<Disp Icon="Str" />
82528297
</Item>
@@ -8480,10 +8525,13 @@
84808525
</Item>
84818526
<Item ItemId=";Property_0_is_a_static_member_of_type_1_2576" ItemType="0" PsrId="306" Leaf="true">
84828527
<Str Cat="Text">
8483-
<Val><![CDATA[Property '{0}' is a static member of type '{1}']]></Val>
8484-
<Tgt Cat="Text" Stat="Loc" Orig="New">
8528+
<Val><![CDATA[Property '{0}' is a static member of type '{1}'.]]></Val>
8529+
<Tgt Cat="Text" Stat="Update" Orig="New">
84858530
<Val><![CDATA[属性 "{0}" 不是类型为 "{1}" 的静态成员]]></Val>
84868531
</Tgt>
8532+
<Prev Cat="Text">
8533+
<Val><![CDATA[Property '{0}' is a static member of type '{1}']]></Val>
8534+
</Prev>
84878535
</Str>
84888536
<Disp Icon="Str" />
84898537
</Item>
@@ -8739,6 +8787,12 @@
87398787
</Str>
87408788
<Disp Icon="Str" />
87418789
</Item>
8790+
<Item ItemId=";Provides_a_root_package_name_when_using_outFile_with_declarations_1390" ItemType="0" PsrId="306" Leaf="true">
8791+
<Str Cat="Text">
8792+
<Val><![CDATA[Provides a root package name when using outFile with declarations.]]></Val>
8793+
</Str>
8794+
<Disp Icon="Str" />
8795+
</Item>
87428796
<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">
87438797
<Str Cat="Text">
87448798
<Val><![CDATA[Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.]]></Val>
@@ -9885,6 +9939,12 @@
98859939
</Str>
98869940
<Disp Icon="Str" />
98879941
</Item>
9942+
<Item ItemId=";Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238" ItemType="0" PsrId="306" Leaf="true">
9943+
<Str Cat="Text">
9944+
<Val><![CDATA[Specify the module specifier to be used to import the `jsx` and `jsxs` factory functions from. eg, react]]></Val>
9945+
</Str>
9946+
<Disp Icon="Str" />
9947+
</Item>
98889948
<Item ItemId=";Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058" ItemType="0" PsrId="306" Leaf="true">
98899949
<Str Cat="Text">
98909950
<Val><![CDATA[Specify the root directory of input files. Use to control the output directory structure with --outDir.]]></Val>
@@ -10176,6 +10236,12 @@
1017610236
</Str>
1017710237
<Disp Icon="Str" />
1017810238
</Item>
10239+
<Item ItemId=";Template_literal_type_argument_0_is_not_literal_type_or_a_generic_type_2793" ItemType="0" PsrId="306" Leaf="true">
10240+
<Str Cat="Text">
10241+
<Val><![CDATA[Template literal type argument '{0}' is not literal type or a generic type.]]></Val>
10242+
</Str>
10243+
<Disp Icon="Str" />
10244+
</Item>
1017910245
<Item ItemId=";The_0_modifier_can_only_be_used_in_TypeScript_files_8009" ItemType="0" PsrId="306" Leaf="true">
1018010246
<Str Cat="Text">
1018110247
<Val><![CDATA[The '{0}' modifier can only be used in TypeScript files.]]></Val>
@@ -10257,6 +10323,12 @@
1025710323
</Str>
1025810324
<Disp Icon="Str" />
1025910325
</Item>
10326+
<Item ItemId=";The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_de_1391" ItemType="0" PsrId="306" Leaf="true">
10327+
<Str Cat="Text">
10328+
<Val><![CDATA[The `bundledPackageName` option must be provided when using outFile and node module resolution with declaration emit.]]></Val>
10329+
</Str>
10330+
<Disp Icon="Str" />
10331+
</Item>
1026010332
<Item ItemId=";The_character_set_of_the_input_files_6163" ItemType="0" PsrId="306" Leaf="true">
1026110333
<Str Cat="Text">
1026210334
<Val><![CDATA[The character set of the input files.]]></Val>
@@ -12827,10 +12899,13 @@
1282712899
</Item>
1282812900
<Item ItemId=";_0_modifier_cannot_be_used_with_a_private_identifier_18019" ItemType="0" PsrId="306" Leaf="true">
1282912901
<Str Cat="Text">
12830-
<Val><![CDATA['{0}' modifier cannot be used with a private identifier]]></Val>
12831-
<Tgt Cat="Text" Stat="Loc" Orig="New">
12902+
<Val><![CDATA['{0}' modifier cannot be used with a private identifier.]]></Val>
12903+
<Tgt Cat="Text" Stat="Update" Orig="New">
1283212904
<Val><![CDATA["{0}" 修饰符不能与专用标识符一起使用。]]></Val>
1283312905
</Tgt>
12906+
<Prev Cat="Text">
12907+
<Val><![CDATA['{0}' modifier cannot be used with a private identifier]]></Val>
12908+
</Prev>
1283412909
</Str>
1283512910
<Disp Icon="Str" />
1283612911
</Item>

0 commit comments

Comments
 (0)