Skip to content

Commit 09b84d5

Browse files
authoredJan 28, 2022
LEGO: Merge pull request 47647
LEGO: Merge pull request 47647
1 parent deb36b9 commit 09b84d5

File tree

3 files changed

+173
-23
lines changed

3 files changed

+173
-23
lines changed
 

Diff for: ‎src/loc/lcl/chs/diagnosticMessages/diagnosticMessages.generated.json.lcl

+104-23
Original file line numberDiff line numberDiff line change
@@ -855,15 +855,15 @@
855855
</Str>
856856
<Disp Icon="Str" />
857857
</Item>
858-
<Item ItemId=";A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376" ItemType="0" PsrId="306" Leaf="true">
858+
<Item ItemId=";A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401" ItemType="0" PsrId="306" Leaf="true">
859859
<Str Cat="Text">
860-
<Val><![CDATA[A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers.]]></Val>
861-
<Tgt Cat="Text" Stat="Loc" Orig="New">
862-
<Val><![CDATA[当类包含初始化的属性、参数属性或专用标识符时,"super" 调用必须是构造函数中的第一个语句。]]></Val>
863-
</Tgt>
864-
<Prev Cat="Text">
865-
<Val><![CDATA[A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties.]]></Val>
866-
</Prev>
860+
<Val><![CDATA[A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers.]]></Val>
861+
</Str>
862+
<Disp Icon="Str" />
863+
</Item>
864+
<Item ItemId=";A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376" ItemType="0" PsrId="306" Leaf="true">
865+
<Str Cat="Text">
866+
<Val><![CDATA[A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers.]]></Val>
867867
</Str>
868868
<Disp Icon="Str" />
869869
</Item>
@@ -2121,12 +2121,9 @@
21212121
</Str>
21222122
<Disp Icon="Str" />
21232123
</Item>
2124-
<Item ItemId=";An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117" ItemType="0" PsrId="306" Leaf="true">
2124+
<Item ItemId=";An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117" ItemType="0" PsrId="306" Leaf="true">
21252125
<Str Cat="Text">
2126-
<Val><![CDATA[An object literal cannot have multiple properties with the same name in strict mode.]]></Val>
2127-
<Tgt Cat="Text" Stat="Loc" Orig="New">
2128-
<Val><![CDATA[严格模式下,对象文字不能包含多个具有相同名称的属性。]]></Val>
2129-
</Tgt>
2126+
<Val><![CDATA[An object literal cannot have multiple properties with the same name.]]></Val>
21302127
</Str>
21312128
<Disp Icon="Str" />
21322129
</Item>
@@ -2916,6 +2913,12 @@
29162913
</Str>
29172914
<Disp Icon="Str" />
29182915
</Item>
2916+
<Item ItemId=";Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311" ItemType="0" PsrId="306" Leaf="true">
2917+
<Str Cat="Text">
2918+
<Val><![CDATA[Cannot find name '{0}'. Did you mean to write this in an async function?]]></Val>
2919+
</Str>
2920+
<Disp Icon="Str" />
2921+
</Item>
29192922
<Item ItemId=";Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583" ItemType="0" PsrId="306" Leaf="true">
29202923
<Str Cat="Text">
29212924
<Val><![CDATA[Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later.]]></Val>
@@ -3609,6 +3612,12 @@
36093612
</Str>
36103613
<Disp Icon="Str" />
36113614
</Item>
3615+
<Item ItemId=";Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124" ItemType="0" PsrId="306" Leaf="true">
3616+
<Str Cat="Text">
3617+
<Val><![CDATA[Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'.]]></Val>
3618+
</Str>
3619+
<Disp Icon="Str" />
3620+
</Item>
36123621
<Item ItemId=";Compiler_option_0_requires_a_value_of_type_1_5024" ItemType="0" PsrId="306" Leaf="true">
36133622
<Str Cat="Text">
36143623
<Val><![CDATA[Compiler option '{0}' requires a value of type {1}.]]></Val>
@@ -5241,12 +5250,9 @@
52415250
</Str>
52425251
<Disp Icon="Str" />
52435252
</Item>
5244-
<Item ItemId=";Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_1324" ItemType="0" PsrId="306" Leaf="true">
5253+
<Item ItemId=";Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_or_nodenext_1324" ItemType="0" PsrId="306" Leaf="true">
52455254
<Str Cat="Text">
5246-
<Val><![CDATA[Dynamic imports only support a second argument when the '--module' option is set to 'esnext'.]]></Val>
5247-
<Tgt Cat="Text" Stat="Loc" Orig="New">
5248-
<Val><![CDATA[只有在 "--module" 选项设置为 "esnext" 时,动态导入才支持第二个参数。]]></Val>
5249-
</Tgt>
5255+
<Val><![CDATA[Dynamic imports only support a second argument when the '--module' option is set to 'esnext' or 'nodenext'.]]></Val>
52505256
</Str>
52515257
<Disp Icon="Str" />
52525258
</Item>
@@ -5766,6 +5772,12 @@
57665772
</Str>
57675773
<Disp Icon="Str" />
57685774
</Item>
5775+
<Item ItemId=";Errors_Files_6041" ItemType="0" PsrId="306" Leaf="true">
5776+
<Str Cat="Text">
5777+
<Val><![CDATA[Errors Files]]></Val>
5778+
</Str>
5779+
<Disp Icon="Str" />
5780+
</Item>
57695781
<Item ItemId=";Examples_Colon_0_6026" ItemType="0" PsrId="306" Leaf="true">
57705782
<Str Cat="Text">
57715783
<Val><![CDATA[Examples: {0}]]></Val>
@@ -6543,6 +6555,18 @@
65436555
</Str>
65446556
<Disp Icon="Str" />
65456557
</Item>
6558+
<Item ItemId=";Found_0_errors_in_1_files_6261" ItemType="0" PsrId="306" Leaf="true">
6559+
<Str Cat="Text">
6560+
<Val><![CDATA[Found {0} errors in {1} files.]]></Val>
6561+
</Str>
6562+
<Disp Icon="Str" />
6563+
</Item>
6564+
<Item ItemId=";Found_0_errors_in_the_same_file_starting_at_Colon_1_6260" ItemType="0" PsrId="306" Leaf="true">
6565+
<Str Cat="Text">
6566+
<Val><![CDATA[Found {0} errors in the same file, starting at: {1}]]></Val>
6567+
</Str>
6568+
<Disp Icon="Str" />
6569+
</Item>
65466570
<Item ItemId=";Found_1_error_6216" ItemType="0" PsrId="306" Leaf="true">
65476571
<Str Cat="Text">
65486572
<Val><![CDATA[Found 1 error.]]></Val>
@@ -6561,6 +6585,12 @@
65616585
</Str>
65626586
<Disp Icon="Str" />
65636587
</Item>
6588+
<Item ItemId=";Found_1_error_in_1_6259" ItemType="0" PsrId="306" Leaf="true">
6589+
<Str Cat="Text">
6590+
<Val><![CDATA[Found 1 error in {1}]]></Val>
6591+
</Str>
6592+
<Disp Icon="Str" />
6593+
</Item>
65646594
<Item ItemId=";Found_package_json_at_0_6099" ItemType="0" PsrId="306" Leaf="true">
65656595
<Str Cat="Text">
65666596
<Val><![CDATA[Found 'package.json' at '{0}'.]]></Val>
@@ -7068,12 +7098,21 @@
70687098
</Str>
70697099
<Disp Icon="Str" />
70707100
</Item>
7071-
<Item ItemId=";Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_2821" ItemType="0" PsrId="306" Leaf="true">
7101+
<Item ItemId=";Import_assertion_values_must_be_string_literal_expressions_2837" ItemType="0" PsrId="306" Leaf="true">
70727102
<Str Cat="Text">
7073-
<Val><![CDATA[Import assertions are only supported when the '--module' option is set to 'esnext'.]]></Val>
7074-
<Tgt Cat="Text" Stat="Loc" Orig="New">
7075-
<Val><![CDATA[只有在 "--module" 选项设置为 "esnext" 时,才支持导入断言。]]></Val>
7076-
</Tgt>
7103+
<Val><![CDATA[Import assertion values must be string literal expressions.]]></Val>
7104+
</Str>
7105+
<Disp Icon="Str" />
7106+
</Item>
7107+
<Item ItemId=";Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836" ItemType="0" PsrId="306" Leaf="true">
7108+
<Str Cat="Text">
7109+
<Val><![CDATA[Import assertions are not allowed on statements that transpile to commonjs 'require' calls.]]></Val>
7110+
</Str>
7111+
<Disp Icon="Str" />
7112+
</Item>
7113+
<Item ItemId=";Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821" ItemType="0" PsrId="306" Leaf="true">
7114+
<Str Cat="Text">
7115+
<Val><![CDATA[Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.]]></Val>
70777116
</Str>
70787117
<Disp Icon="Str" />
70797118
</Item>
@@ -7308,6 +7347,12 @@
73087347
</Str>
73097348
<Disp Icon="Str" />
73107349
</Item>
7350+
<Item ItemId=";Includes_imports_of_types_referenced_by_0_90054" ItemType="0" PsrId="306" Leaf="true">
7351+
<Str Cat="Text">
7352+
<Val><![CDATA[Includes imports of types referenced by '{0}']]></Val>
7353+
</Str>
7354+
<Disp Icon="Str" />
7355+
</Item>
73117356
<Item ItemId=";Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914" ItemType="0" PsrId="306" Leaf="true">
73127357
<Str Cat="Text">
73137358
<Val><![CDATA[Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:]]></Val>
@@ -10557,6 +10602,18 @@
1055710602
</Str>
1055810603
<Disp Icon="Str" />
1055910604
</Item>
10605+
<Item ItemId=";Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834" ItemType="0" PsrId="306" Leaf="true">
10606+
<Str Cat="Text">
10607+
<Val><![CDATA[Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Consider adding an extension to the import path.]]></Val>
10608+
</Str>
10609+
<Disp Icon="Str" />
10610+
</Item>
10611+
<Item ItemId=";Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835" ItemType="0" PsrId="306" Leaf="true">
10612+
<Str Cat="Text">
10613+
<Val><![CDATA[Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean '{0}'?]]></Val>
10614+
</Str>
10615+
<Disp Icon="Str" />
10616+
</Item>
1056010617
<Item ItemId=";Remove_a_list_of_directories_from_the_watch_process_6628" ItemType="0" PsrId="306" Leaf="true">
1056110618
<Str Cat="Text">
1056210619
<Val><![CDATA[Remove a list of directories from the watch process.]]></Val>
@@ -10683,6 +10740,24 @@
1068310740
</Str>
1068410741
<Disp Icon="Str" />
1068510742
</Item>
10743+
<Item ItemId=";Remove_type_from_import_declaration_from_0_90055" ItemType="0" PsrId="306" Leaf="true">
10744+
<Str Cat="Text">
10745+
<Val><![CDATA[Remove 'type' from import declaration from "{0}"]]></Val>
10746+
<Tgt Cat="Text" Stat="Loc" Orig="New">
10747+
<Val><![CDATA[从“{0}”中删除导入声明中的“type”]]></Val>
10748+
</Tgt>
10749+
</Str>
10750+
<Disp Icon="Str" />
10751+
</Item>
10752+
<Item ItemId=";Remove_type_from_import_of_0_from_1_90056" ItemType="0" PsrId="306" Leaf="true">
10753+
<Str Cat="Text">
10754+
<Val><![CDATA[Remove 'type' from import of '{0}' from "{1}"]]></Val>
10755+
<Tgt Cat="Text" Stat="Loc" Orig="New">
10756+
<Val><![CDATA[从“{1}”中删除“{0}”导入中的“type”]]></Val>
10757+
</Tgt>
10758+
</Str>
10759+
<Disp Icon="Str" />
10760+
</Item>
1068610761
<Item ItemId=";Remove_type_parameters_90012" ItemType="0" PsrId="306" Leaf="true">
1068710762
<Str Cat="Text">
1068810763
<Val><![CDATA[Remove type parameters]]></Val>
@@ -15681,6 +15756,12 @@
1568115756
</Str>
1568215757
<Disp Icon="Str" />
1568315758
</Item>
15759+
<Item ItemId=";catch_or_finally_expected_1472" ItemType="0" PsrId="306" Leaf="true">
15760+
<Str Cat="Text">
15761+
<Val><![CDATA['catch' or 'finally' expected.]]></Val>
15762+
</Str>
15763+
<Disp Icon="Str" />
15764+
</Item>
1568415765
<Item ItemId=";const_declarations_can_only_be_declared_inside_a_block_1156" ItemType="0" PsrId="306" Leaf="true">
1568515766
<Str Cat="Text">
1568615767
<Val><![CDATA['const' declarations can only be declared inside a block.]]></Val>

0 commit comments

Comments
 (0)