Skip to content

Commit 854af3a

Browse files
Merge pull request #49030 from typescript-bot/pick/49016/release-4.7
🤖 Pick PR #49016 (LEGO: Pull request from lego/hb_537...) into release-4.7
2 parents dbee2ab + 43e2066 commit 854af3a

File tree

3 files changed

+192
-120
lines changed

3 files changed

+192
-120
lines changed

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

+64-40
Original file line numberDiff line numberDiff line change
@@ -5360,10 +5360,13 @@
53605360
</Item>
53615361
<Item ItemId=";Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323" ItemType="0" PsrId="306" Leaf="true">
53625362
<Str Cat="Text">
5363-
<Val><![CDATA[Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node12', or 'nodenext'.]]></Val>
5363+
<Val><![CDATA[Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'.]]></Val>
53645364
<Tgt Cat="Text" Stat="Loc" Orig="New">
5365-
<Val><![CDATA[只有在 '--module' 旗標設定為 'es2020'、'es2022'、'esnext'、'commonjs'、'amd'、'system'、'umd'、'node12' 或 'nodenext',才支援動態匯入。]]></Val>
5365+
<Val><![CDATA[只有在 '--module' 旗標設定為 'es2020'、'es2022'、'esnext'、'commonjs'、'amd'、'system'、'umd'、'node16' 或 'nodenext',才支援動態匯入。]]></Val>
53665366
</Tgt>
5367+
<Prev Cat="Text">
5368+
<Val><![CDATA[Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node12', or 'nodenext'.]]></Val>
5369+
</Prev>
53675370
</Str>
53685371
<Disp Icon="Str" />
53695372
</Item>
@@ -5376,11 +5379,11 @@
53765379
</Str>
53775380
<Disp Icon="Str" />
53785381
</Item>
5379-
<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">
5382+
<Item ItemId=";Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324" ItemType="0" PsrId="306" Leaf="true">
53805383
<Str Cat="Text">
5381-
<Val><![CDATA[Dynamic imports only support a second argument when the '--module' option is set to 'esnext' or 'nodenext'.]]></Val>
5384+
<Val><![CDATA[Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'.]]></Val>
53825385
<Tgt Cat="Text" Stat="Loc" Orig="New">
5383-
<Val><![CDATA[當 '--module' 選項設定為 'esnext' 時,動態匯入只支援第二個引數。]]></Val>
5386+
<Val><![CDATA[當 '--module' 選項設定為 'esnext'、'node16' 或 'nodenext' 時,動態匯入只支援第二個引數。]]></Val>
53845387
</Tgt>
53855388
</Str>
53865389
<Disp Icon="Str" />
@@ -7965,15 +7968,6 @@
79657968
</Str>
79667969
<Disp Icon="Str" />
79677970
</Item>
7968-
<Item ItemId=";JSON_imports_are_experimental_in_ES_module_mode_imports_7062" ItemType="0" PsrId="306" Leaf="true">
7969-
<Str Cat="Text">
7970-
<Val><![CDATA[JSON imports are experimental in ES module mode imports.]]></Val>
7971-
<Tgt Cat="Text" Stat="Loc" Orig="New">
7972-
<Val><![CDATA[JSON 匯入在 ES 模組模式匯入中為實驗性。]]></Val>
7973-
</Tgt>
7974-
</Str>
7975-
<Disp Icon="Str" />
7976-
</Item>
79777971
<Item ItemId=";JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000" ItemType="0" PsrId="306" Leaf="true">
79787972
<Str Cat="Text">
79797973
<Val><![CDATA[JSX attributes must only be assigned a non-empty 'expression'.]]></Val>
@@ -10757,19 +10751,25 @@
1075710751
</Item>
1075810752
<Item ItemId=";Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834" ItemType="0" PsrId="306" Leaf="true">
1075910753
<Str Cat="Text">
10760-
<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>
10754+
<Val><![CDATA[Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path.]]></Val>
1076110755
<Tgt Cat="Text" Stat="Loc" Orig="New">
10762-
<Val><![CDATA[當 '--moduleResolution' 為 'node12' 或 'nodenext' 時,相對匯入路徑在 EcmaScript 匯入中需要明確的副檔名。請考慮將延伸模組新增到匯入路徑。]]></Val>
10756+
<Val><![CDATA[當 '--moduleResolution' 為 'node16' 或 'nodenext' 時,相對匯入路徑在 EcmaScript 匯入中需要明確的副檔名。請考慮將副檔名新增到匯入路徑。]]></Val>
1076310757
</Tgt>
10758+
<Prev Cat="Text">
10759+
<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>
10760+
</Prev>
1076410761
</Str>
1076510762
<Disp Icon="Str" />
1076610763
</Item>
1076710764
<Item ItemId=";Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835" ItemType="0" PsrId="306" Leaf="true">
1076810765
<Str Cat="Text">
10769-
<Val><![CDATA[Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean '{0}'?]]></Val>
10766+
<Val><![CDATA[Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?]]></Val>
1077010767
<Tgt Cat="Text" Stat="Loc" Orig="New">
10771-
<Val><![CDATA[當 '--moduleResolution' 為 'node12' 或 'nodenext' 時,相對匯入路徑在 EcmaScript 匯入中需要明確的副檔名。您是 指 '{0}' 嗎?]]></Val>
10768+
<Val><![CDATA[當 '--moduleResolution' 為 'node16' 或 'nodenext' 時,相對匯入路徑在 EcmaScript 匯入中需要明確的副檔名。您是 指 '{0}' 嗎?]]></Val>
1077210769
</Tgt>
10770+
<Prev Cat="Text">
10771+
<Val><![CDATA[Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node12' or 'nodenext'. Did you mean '{0}'?]]></Val>
10772+
</Prev>
1077310773
</Str>
1077410774
<Disp Icon="Str" />
1077510775
</Item>
@@ -11115,11 +11115,11 @@
1111511115
</Str>
1111611116
<Disp Icon="Str" />
1111711117
</Item>
11118-
<Item ItemId=";Resolution_modes_are_only_supported_when_moduleResolution_is_node12_or_nodenext_1452" ItemType="0" PsrId="306" Leaf="true">
11118+
<Item ItemId=";Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452" ItemType="0" PsrId="306" Leaf="true">
1111911119
<Str Cat="Text">
11120-
<Val><![CDATA[Resolution modes are only supported when `moduleResolution` is `node12` or `nodenext`.]]></Val>
11120+
<Val><![CDATA[Resolution modes are only supported when `moduleResolution` is `node16` or `nodenext`.]]></Val>
1112111121
<Tgt Cat="Text" Stat="Loc" Orig="New">
11122-
<Val><![CDATA[只有當 'moduleResolution' 為 'node12' 或 'nodenext' 時,才支援解析模式。]]></Val>
11122+
<Val><![CDATA[只有當 'moduleResolution' 為 'node16' 或 'nodenext' 時,才支援解析模式。]]></Val>
1112311123
</Tgt>
1112411124
</Str>
1112511125
<Disp Icon="Str" />
@@ -12696,6 +12696,15 @@
1269612696
</Str>
1269712697
<Disp Icon="Str" />
1269812698
</Item>
12699+
<Item ItemId=";The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309" ItemType="0" PsrId="306" Leaf="true">
12700+
<Str Cat="Text">
12701+
<Val><![CDATA[The current file is a CommonJS module and cannot use 'await' at the top level.]]></Val>
12702+
<Tgt Cat="Text" Stat="Loc" Orig="New">
12703+
<Val><![CDATA[目前的檔案是 CommonJS 模組,無法在最上層使用 'await'。]]></Val>
12704+
</Tgt>
12705+
</Str>
12706+
<Disp Icon="Str" />
12707+
</Item>
1269912708
<Item ItemId=";The_current_host_does_not_support_the_0_option_5001" ItemType="0" PsrId="306" Leaf="true">
1270012709
<Str Cat="Text">
1270112710
<Val><![CDATA[The current host does not support the '{0}' option.]]></Val>
@@ -12827,10 +12836,13 @@
1282712836
</Item>
1282812837
<Item ItemId=";The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343" ItemType="0" PsrId="306" Leaf="true">
1282912838
<Str Cat="Text">
12830-
<Val><![CDATA[The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node12', or 'nodenext'.]]></Val>
12839+
<Val><![CDATA[The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'.]]></Val>
1283112840
<Tgt Cat="Text" Stat="Loc" Orig="New">
12832-
<Val><![CDATA[只有當 '--module' 選項為 'es2020'、'es2022'、'esnext'、'system'、, 'node12' 或 'nodenext' 時,才允許 'import.meta' 中繼屬性。]]></Val>
12841+
<Val><![CDATA[只有當 '--module' 選項為 'es2020'、'es2022'、'esnext'、'system'、, 'node16' 或 'nodenext' 時,才允許 'import.meta' 中繼屬性。]]></Val>
1283312842
</Tgt>
12843+
<Prev Cat="Text">
12844+
<Val><![CDATA[The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node12', or 'nodenext'.]]></Val>
12845+
</Prev>
1283412846
</Str>
1283512847
<Disp Icon="Str" />
1283612848
</Item>
@@ -13140,6 +13152,24 @@
1314013152
</Str>
1314113153
<Disp Icon="Str" />
1314213154
</Item>
13155+
<Item ItemId=";The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209" ItemType="0" PsrId="306" Leaf="true">
13156+
<Str Cat="Text">
13157+
<Val><![CDATA[The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate.]]></Val>
13158+
<Tgt Cat="Text" Stat="Loc" Orig="New">
13159+
<Val><![CDATA[專案根目錄模棱兩可,但需要用以解決檔案 '{1}' 中的匯出對應項目 '{0}'。請提供 'rootDir' 編譯器選項來釐清。]]></Val>
13160+
</Tgt>
13161+
</Str>
13162+
<Disp Icon="Str" />
13163+
</Item>
13164+
<Item ItemId=";The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210" ItemType="0" PsrId="306" Leaf="true">
13165+
<Str Cat="Text">
13166+
<Val><![CDATA[The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate.]]></Val>
13167+
<Tgt Cat="Text" Stat="Loc" Orig="New">
13168+
<Val><![CDATA[專案根目錄模稜兩可,但需要在檔案 '{1}' 中解析匯入對應項目 '{0}'。請提供 'rootDir' 編譯器選項來釐清。]]></Val>
13169+
</Tgt>
13170+
</Str>
13171+
<Disp Icon="Str" />
13172+
</Item>
1314313173
<Item ItemId=";The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014" ItemType="0" PsrId="306" Leaf="true">
1314413174
<Str Cat="Text">
1314513175
<Val><![CDATA[The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling.]]></Val>
@@ -13728,15 +13758,6 @@
1372813758
</Str>
1372913759
<Disp Icon="Str" />
1373013760
</Item>
13731-
<Item ItemId=";This_type_parameter_probably_needs_an_extends_object_constraint_2208" ItemType="0" PsrId="306" Leaf="true">
13732-
<Str Cat="Text">
13733-
<Val><![CDATA[This type parameter probably needs an `extends object` constraint.]]></Val>
13734-
<Tgt Cat="Text" Stat="Loc" Orig="New">
13735-
<Val><![CDATA[此類型參數可能需要 'extends object' 限制式。]]></Val>
13736-
</Tgt>
13737-
</Str>
13738-
<Disp Icon="Str" />
13739-
</Item>
1374013761
<Item ItemId=";This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326" ItemType="0" PsrId="306" Leaf="true">
1374113762
<Str Cat="Text">
1374213763
<Val><![CDATA[This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments.]]></Val>
@@ -13746,11 +13767,11 @@
1374613767
</Str>
1374713768
<Disp Icon="Str" />
1374813769
</Item>
13749-
<Item ItemId=";Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_o_1378" ItemType="0" PsrId="306" Leaf="true">
13770+
<Item ItemId=";Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378" ItemType="0" PsrId="306" Leaf="true">
1375013771
<Str Cat="Text">
13751-
<Val><![CDATA[Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher.]]></Val>
13772+
<Val><![CDATA[Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.]]></Val>
1375213773
<Tgt Cat="Text" Stat="Loc" Orig="New">
13753-
<Val><![CDATA[只有在 'module' 選項設定為 'es2022'、'esnext'、'system' 或 'nodenext',而且 'target' 選項設定為 'es2017' 或更高版本時,才允許最上層的 'await' 運算式。]]></Val>
13774+
<Val><![CDATA[只有在 'module' 選項設定為 'es2022'、'esnext'、'system'、'node16' 或 'nodenext',而且 'target' 選項設定為 'es2017' 或更高版本時,才允許最上層的 'await' 運算式。]]></Val>
1375413775
</Tgt>
1375513776
</Str>
1375613777
<Disp Icon="Str" />
@@ -13764,11 +13785,11 @@
1376413785
</Str>
1376513786
<Disp Icon="Str" />
1376613787
</Item>
13767-
<Item ItemId=";Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_or__1432" ItemType="0" PsrId="306" Leaf="true">
13788+
<Item ItemId=";Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432" ItemType="0" PsrId="306" Leaf="true">
1376813789
<Str Cat="Text">
13769-
<Val><![CDATA[Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', or 'nodenext', and the 'target' option is set to 'es2017' or higher.]]></Val>
13790+
<Val><![CDATA[Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher.]]></Val>
1377013791
<Tgt Cat="Text" Stat="Loc" Orig="New">
13771-
<Val><![CDATA[只有在 'module' 選項設為 'es2022'、'esnext'、'system' 或 'nodenext',而且 'target' 選項設為 'es2017' 或更高版本時,才允許最上層的 'for await' 迴圈。]]></Val>
13792+
<Val><![CDATA[只有在 'module' 選項設為 'es2022'、'esnext'、'system'、'node16' 或 'nodenext',而且 'target' 選項設為 'es2017' 或更高版本時,才允許最上層的 'for await' 迴圈。]]></Val>
1377213793
</Tgt>
1377313794
</Str>
1377413795
<Disp Icon="Str" />
@@ -15950,10 +15971,13 @@
1595015971
</Item>
1595115972
<Item ItemId=";auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476" ItemType="0" PsrId="306" Leaf="true">
1595215973
<Str Cat="Text">
15953-
<Val><![CDATA["auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node12+) as modules.]]></Val>
15974+
<Val><![CDATA["auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.]]></Val>
1595415975
<Tgt Cat="Text" Stat="Loc" Orig="New">
15955-
<Val><![CDATA["auto": 處理具有 imports、exports、import.meta, jsx (具有 jsx: react-jsx) esm 格式 (具有 module: node12+) 的檔案作為模組。]]></Val>
15976+
<Val><![CDATA["auto": 處理具有 imports、exports、import.meta, jsx (具有 jsx: react-jsx) 的檔案,或以 esm 格式 (具有 module: node16+) 作為模組。]]></Val>
1595615977
</Tgt>
15978+
<Prev Cat="Text">
15979+
<Val><![CDATA["auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node12+) as modules.]]></Val>
15980+
</Prev>
1595715981
</Str>
1595815982
<Disp Icon="Str" />
1595915983
</Item>

0 commit comments

Comments
 (0)