Skip to content

Commit 0f4b338

Browse files
authored
LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20250829194312467 to main (#62357)
1 parent 0f415c5 commit 0f4b338

File tree

13 files changed

+233
-116
lines changed

13 files changed

+233
-116
lines changed

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

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6060,20 +6060,29 @@
60606060
</Str>
60616061
<Disp Icon="Str" />
60626062
</Item>
6063-
<Item ItemId=";ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293" ItemType="0" PsrId="306" Leaf="true">
6063+
<Item ItemId=";ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286" ItemType="0" PsrId="306" Leaf="true">
60646064
<Str Cat="Text">
6065-
<Val><![CDATA[ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'.]]></Val>
6065+
<Val><![CDATA[ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'.]]></Val>
60666066
<Tgt Cat="Text" Stat="Loc" Orig="New">
6067-
<Val><![CDATA[当“module”设置为“preserve”时,CommonJS 模块中不允许使用 ESM 语法。]]></Val>
6067+
<Val><![CDATA[ECMAScript 导入和导出不能写入 "verbatimModuleSyntax" 下的 CommonJS 文件中。]]></Val>
60686068
</Tgt>
60696069
</Str>
60706070
<Disp Icon="Str" />
60716071
</Item>
6072-
<Item ItemId=";ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286" ItemType="0" PsrId="306" Leaf="true">
6072+
<Item ItemId=";ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295" ItemType="0" PsrId="306" Leaf="true">
60736073
<Str Cat="Text">
6074-
<Val><![CDATA[ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.]]></Val>
6074+
<Val><![CDATA[ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript.]]></Val>
60756075
<Tgt Cat="Text" Stat="Loc" Orig="New">
6076-
<Val><![CDATA[启用“verbatimModuleSyntax”时,CommonJS 模块中不允许使用 ESM 语法。]]></Val>
6076+
<Val><![CDATA[ECMAScript 导入和导出不能写入 "verbatimModuleSyntax" 下的 CommonJS 文件中。调整最近的 "package.json" 中的 "type" 字段,将此文件设置为 ECMAScript 模块,或调整 TypeScript 中的 "verbatimModuleSyntax"、"module" 和 "moduleResolution" 设置。]]></Val>
6077+
</Tgt>
6078+
</Str>
6079+
<Disp Icon="Str" />
6080+
</Item>
6081+
<Item ItemId=";ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293" ItemType="0" PsrId="306" Leaf="true">
6082+
<Str Cat="Text">
6083+
<Val><![CDATA[ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'.]]></Val>
6084+
<Tgt Cat="Text" Stat="Loc" Orig="New">
6085+
<Val><![CDATA[当 "module" 设置为 "preserve" 时,CommonJS 模块中不允许使用 ECMAScript 模块语法。]]></Val>
60776086
</Tgt>
60786087
</Str>
60796088
<Disp Icon="Str" />
@@ -10545,11 +10554,11 @@
1054510554
</Str>
1054610555
<Disp Icon="Str" />
1054710556
</Item>
10548-
<Item ItemId=";Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095" ItemType="0" PsrId="306" Leaf="true">
10557+
<Item ItemId=";Option_0_can_only_be_used_when_module_is_set_to_preserve_commonjs_or_es2015_or_later_5095" ItemType="0" PsrId="306" Leaf="true">
1054910558
<Str Cat="Text">
10550-
<Val><![CDATA[Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later.]]></Val>
10559+
<Val><![CDATA[Option '{0}' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.]]></Val>
1055110560
<Tgt Cat="Text" Stat="Loc" Orig="New">
10552-
<Val><![CDATA[只有在module设置为preserve”或“es2015或更高版本时,才能使用选项“{0}”。]]></Val>
10561+
<Val><![CDATA[只有在 "module" 设置为 "preserve"、"commonjs"、"es2015" 或更高版本时,才能使用选项“{0}”。]]></Val>
1055310562
</Tgt>
1055410563
</Str>
1055510564
<Disp Icon="Str" />

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

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6060,20 +6060,29 @@
60606060
</Str>
60616061
<Disp Icon="Str" />
60626062
</Item>
6063-
<Item ItemId=";ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293" ItemType="0" PsrId="306" Leaf="true">
6063+
<Item ItemId=";ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286" ItemType="0" PsrId="306" Leaf="true">
60646064
<Str Cat="Text">
6065-
<Val><![CDATA[ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'.]]></Val>
6065+
<Val><![CDATA[ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'.]]></Val>
60666066
<Tgt Cat="Text" Stat="Loc" Orig="New">
6067-
<Val><![CDATA[當 'module' 設定為 'preserve' 時,CommonJS 模組中不允許 ESM 語法。]]></Val>
6067+
<Val><![CDATA[無法在 'verbatimModuleSyntax' 底下的 CommonJS 檔案中撰寫 ECMAScript 匯入和匯出。]]></Val>
60686068
</Tgt>
60696069
</Str>
60706070
<Disp Icon="Str" />
60716071
</Item>
6072-
<Item ItemId=";ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286" ItemType="0" PsrId="306" Leaf="true">
6072+
<Item ItemId=";ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295" ItemType="0" PsrId="306" Leaf="true">
60736073
<Str Cat="Text">
6074-
<Val><![CDATA[ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.]]></Val>
6074+
<Val><![CDATA[ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript.]]></Val>
60756075
<Tgt Cat="Text" Stat="Loc" Orig="New">
6076-
<Val><![CDATA[啟用 'verbatimModuleSyntax' 時,CommonJS 模組中不允許 ESM 語法。]]></Val>
6076+
<Val><![CDATA[無法在 'verbatimModuleSyntax' 底下的 CommonJS 檔案中撰寫 ECMAScript 匯入和匯出。請調整最近的 'package.json' 中的 'type' 欄位,將此檔案設為 ECMAScript 模組,或調整 TypeScript 中的 'verbatimModuleSyntax'、'module' 和 'moduleResolution' 設定。]]></Val>
6077+
</Tgt>
6078+
</Str>
6079+
<Disp Icon="Str" />
6080+
</Item>
6081+
<Item ItemId=";ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293" ItemType="0" PsrId="306" Leaf="true">
6082+
<Str Cat="Text">
6083+
<Val><![CDATA[ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'.]]></Val>
6084+
<Tgt Cat="Text" Stat="Loc" Orig="New">
6085+
<Val><![CDATA[當 'module' 設定為 'preserve' 時,CommonJS 模組中不允許 ECMAScript 模組語法。]]></Val>
60776086
</Tgt>
60786087
</Str>
60796088
<Disp Icon="Str" />
@@ -10545,11 +10554,11 @@
1054510554
</Str>
1054610555
<Disp Icon="Str" />
1054710556
</Item>
10548-
<Item ItemId=";Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095" ItemType="0" PsrId="306" Leaf="true">
10557+
<Item ItemId=";Option_0_can_only_be_used_when_module_is_set_to_preserve_commonjs_or_es2015_or_later_5095" ItemType="0" PsrId="306" Leaf="true">
1054910558
<Str Cat="Text">
10550-
<Val><![CDATA[Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later.]]></Val>
10559+
<Val><![CDATA[Option '{0}' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.]]></Val>
1055110560
<Tgt Cat="Text" Stat="Loc" Orig="New">
10552-
<Val><![CDATA[只有當 'module' 設定為 'preserve'、'es2015' 或更新版本時,才能使用 '{0}' 選項。]]></Val>
10561+
<Val><![CDATA[只有當 'module' 設定為 'preserve'、'commonjs' 或 'es2015' 或更新版本時,才能使用選項 '{0}'。]]></Val>
1055310562
</Tgt>
1055410563
</Str>
1055510564
<Disp Icon="Str" />

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

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6069,20 +6069,29 @@
60696069
</Str>
60706070
<Disp Icon="Str" />
60716071
</Item>
6072-
<Item ItemId=";ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293" ItemType="0" PsrId="306" Leaf="true">
6072+
<Item ItemId=";ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286" ItemType="0" PsrId="306" Leaf="true">
60736073
<Str Cat="Text">
6074-
<Val><![CDATA[ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'.]]></Val>
6074+
<Val><![CDATA[ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'.]]></Val>
60756075
<Tgt Cat="Text" Stat="Loc" Orig="New">
6076-
<Val><![CDATA[Když je možnost „module“ nastavená na „preserve“, v modulu CommonJS se nepovoluje syntaxe ESM.]]></Val>
6076+
<Val><![CDATA[Importy a exporty ECMAScript nelze zapsat do souboru CommonJS v části verbatimModuleSyntax.]]></Val>
60776077
</Tgt>
60786078
</Str>
60796079
<Disp Icon="Str" />
60806080
</Item>
6081-
<Item ItemId=";ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286" ItemType="0" PsrId="306" Leaf="true">
6081+
<Item ItemId=";ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295" ItemType="0" PsrId="306" Leaf="true">
60826082
<Str Cat="Text">
6083-
<Val><![CDATA[ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.]]></Val>
6083+
<Val><![CDATA[ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript.]]></Val>
60846084
<Tgt Cat="Text" Stat="Loc" Orig="New">
6085-
<Val><![CDATA[Když je povolená syntaxe „verbatimModuleSyntax“, není v modulu CommonJS povolená syntaxe ESM.]]></Val>
6085+
<Val><![CDATA[Importy a exporty ECMAScript nelze zapsat do souboru CommonJS v části verbatimModuleSyntax. Upravte pole type v nejbližším souboru package.json tak, aby tento soubor byl modulem ECMAScript, případně upravte nastavení verbatimModuleSyntax, module a moduleResolution v TypeScriptu.]]></Val>
6086+
</Tgt>
6087+
</Str>
6088+
<Disp Icon="Str" />
6089+
</Item>
6090+
<Item ItemId=";ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293" ItemType="0" PsrId="306" Leaf="true">
6091+
<Str Cat="Text">
6092+
<Val><![CDATA[ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'.]]></Val>
6093+
<Tgt Cat="Text" Stat="Loc" Orig="New">
6094+
<Val><![CDATA[Syntaxe modulu ECMAScript není v modulu CommonJS povolená, pokud je možnost module nastavená na preserve.]]></Val>
60866095
</Tgt>
60876096
</Str>
60886097
<Disp Icon="Str" />
@@ -10554,11 +10563,11 @@
1055410563
</Str>
1055510564
<Disp Icon="Str" />
1055610565
</Item>
10557-
<Item ItemId=";Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095" ItemType="0" PsrId="306" Leaf="true">
10566+
<Item ItemId=";Option_0_can_only_be_used_when_module_is_set_to_preserve_commonjs_or_es2015_or_later_5095" ItemType="0" PsrId="306" Leaf="true">
1055810567
<Str Cat="Text">
10559-
<Val><![CDATA[Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later.]]></Val>
10568+
<Val><![CDATA[Option '{0}' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.]]></Val>
1056010569
<Tgt Cat="Text" Stat="Loc" Orig="New">
10561-
<Val><![CDATA[Možnost „{0}“ se dá použít jenom v případě, že je možnost „modul“ nastavená na „preserve“ nebo na „es2015“ a novější.]]></Val>
10570+
<Val><![CDATA[Možnost „{0}“ se dá použít jenom v případě, že je možnost „modul“ nastavená na „preserve“, „commonjs“ nebo na „es2015“ a novější.]]></Val>
1056210571
</Tgt>
1056310572
</Str>
1056410573
<Disp Icon="Str" />

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

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6057,20 +6057,29 @@
60576057
</Str>
60586058
<Disp Icon="Str" />
60596059
</Item>
6060-
<Item ItemId=";ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293" ItemType="0" PsrId="306" Leaf="true">
6060+
<Item ItemId=";ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_1286" ItemType="0" PsrId="306" Leaf="true">
60616061
<Str Cat="Text">
6062-
<Val><![CDATA[ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'.]]></Val>
6062+
<Val><![CDATA[ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'.]]></Val>
60636063
<Tgt Cat="Text" Stat="Loc" Orig="New">
6064-
<Val><![CDATA[Die ESM-Syntax ist in einem CommonJS-Modul nicht zulässig, wenn "module" auf "preserve" festgelegt ist.]]></Val>
6064+
<Val><![CDATA[ECMAScript-Importe und -Exporte können nicht in eine CommonJS-Datei unter „verbatimModuleSyntax“ geschrieben werden.]]></Val>
60656065
</Tgt>
60666066
</Str>
60676067
<Disp Icon="Str" />
60686068
</Item>
6069-
<Item ItemId=";ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286" ItemType="0" PsrId="306" Leaf="true">
6069+
<Item ItemId=";ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjus_1295" ItemType="0" PsrId="306" Leaf="true">
60706070
<Str Cat="Text">
6071-
<Val><![CDATA[ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.]]></Val>
6071+
<Val><![CDATA[ECMAScript imports and exports cannot be written in a CommonJS file under 'verbatimModuleSyntax'. Adjust the 'type' field in the nearest 'package.json' to make this file an ECMAScript module, or adjust your 'verbatimModuleSyntax', 'module', and 'moduleResolution' settings in TypeScript.]]></Val>
60726072
<Tgt Cat="Text" Stat="Loc" Orig="New">
6073-
<Val><![CDATA[Die ESM-Syntax ist in einem CommonJS-Modul nicht zulässig, wenn "verbatimModuleSyntax" aktiviert ist.]]></Val>
6073+
<Val><![CDATA[ECMAScript-Importe und -Exporte können nicht in eine CommonJS-Datei unter „verbatimModuleSyntax“ geschrieben werden. Passen Sie das Feld „type“ im nächsten „package.json“ an, um diese Datei zu einem ECMAScript-Modul zu machen, oder passen Sie die Einstellungen „verbatimModuleSyntax“, „module“ und „moduleResolution“ in TypeScript an.]]></Val>
6074+
</Tgt>
6075+
</Str>
6076+
<Disp Icon="Str" />
6077+
</Item>
6078+
<Item ItemId=";ECMAScript_module_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293" ItemType="0" PsrId="306" Leaf="true">
6079+
<Str Cat="Text">
6080+
<Val><![CDATA[ECMAScript module syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'.]]></Val>
6081+
<Tgt Cat="Text" Stat="Loc" Orig="New">
6082+
<Val><![CDATA[Die ECMAScript-Modulsyntax ist in einem CommonJS-Modul nicht zulässig, wenn „module“ auf „preserve“ festgelegt ist.]]></Val>
60746083
</Tgt>
60756084
</Str>
60766085
<Disp Icon="Str" />
@@ -10542,11 +10551,11 @@
1054210551
</Str>
1054310552
<Disp Icon="Str" />
1054410553
</Item>
10545-
<Item ItemId=";Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095" ItemType="0" PsrId="306" Leaf="true">
10554+
<Item ItemId=";Option_0_can_only_be_used_when_module_is_set_to_preserve_commonjs_or_es2015_or_later_5095" ItemType="0" PsrId="306" Leaf="true">
1054610555
<Str Cat="Text">
10547-
<Val><![CDATA[Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later.]]></Val>
10556+
<Val><![CDATA[Option '{0}' can only be used when 'module' is set to 'preserve', 'commonjs', or 'es2015' or later.]]></Val>
1054810557
<Tgt Cat="Text" Stat="Loc" Orig="New">
10549-
<Val><![CDATA[Die Option "{0}" kann nur verwendet werden, wenn "module" auf "preserve" oder auf "es2015" oder höher festgelegt ist.]]></Val>
10558+
<Val><![CDATA[Die Option {0} kann nur verwendet werden, wenn module auf preserve“, „commonjs“, „es2015 oder höher festgelegt ist.]]></Val>
1055010559
</Tgt>
1055110560
</Str>
1055210561
<Disp Icon="Str" />

0 commit comments

Comments
 (0)