File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
Expand file tree Collapse file tree 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');
1111import os from 'node:os' ;
1212const properties = require ( 'properties' ) ;
1313import { depVersions } from './utils/dep-versions' ;
14+ import { t } from './utils/i18n' ;
1415
1516let bsdiff ;
1617let hdiff ;
@@ -512,7 +513,7 @@ async function pack(dir: string, output: string) {
512513 } ) ;
513514 zipfile . end ( ) ;
514515 } ) ;
515- console . log ( `ppk热更包已生成并保存到: ${ output } ` ) ;
516+ console . log ( t ( 'ppkPackageGenerated' , { output } ) ) ;
516517}
517518
518519export 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.
3939 cancelled : 'Cancelled' ,
4040 operationSuccess : 'Operation successful' ,
4141 failedToParseUpdateJson : 'Failed to parse file `update.json`. Try to remove it manually.' ,
42+ ppkPackageGenerated : 'ppk package generated and saved to: {{output}}' ,
4243} ;
Original file line number Diff line number Diff line change @@ -37,4 +37,5 @@ export default {
3737 cancelled : '已取消' ,
3838 operationSuccess : '操作成功' ,
3939 failedToParseUpdateJson : '无法解析文件 `update.json`。请手动删除它。' ,
40+ ppkPackageGenerated : 'ppk 热更包已生成并保存到: {{output}}' ,
4041} ;
You can’t perform that action at this time.
0 commit comments