File tree 3 files changed +4
-1
lines changed
3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ const g2js = require('gradle-to-js/lib/parser');
11
11
import os from 'node:os' ;
12
12
const properties = require ( 'properties' ) ;
13
13
import { depVersions } from './utils/dep-versions' ;
14
+ import { t } from './utils/i18n' ;
14
15
15
16
let bsdiff ;
16
17
let hdiff ;
@@ -512,7 +513,7 @@ async function pack(dir: string, output: string) {
512
513
} ) ;
513
514
zipfile . end ( ) ;
514
515
} ) ;
515
- console . log ( `ppk热更包已生成并保存到: ${ output } ` ) ;
516
+ console . log ( t ( 'ppkPackageGenerated' , { output } ) ) ;
516
517
}
517
518
518
519
export function readEntire ( entry : string , zipFile : ZipFile ) {
Original file line number Diff line number Diff line change @@ -39,4 +39,5 @@ This can reduce the risk of inconsistent dependencies and supply chain attacks.
39
39
cancelled : 'Cancelled' ,
40
40
operationSuccess : 'Operation successful' ,
41
41
failedToParseUpdateJson : 'Failed to parse file `update.json`. Try to remove it manually.' ,
42
+ ppkPackageGenerated : 'ppk package generated and saved to: {{output}}' ,
42
43
} ;
Original file line number Diff line number Diff line change @@ -37,4 +37,5 @@ export default {
37
37
cancelled : '已取消' ,
38
38
operationSuccess : '操作成功' ,
39
39
failedToParseUpdateJson : '无法解析文件 `update.json`。请手动删除它。' ,
40
+ ppkPackageGenerated : 'ppk 热更包已生成并保存到: {{output}}' ,
40
41
} ;
You can’t perform that action at this time.
0 commit comments