Skip to content

Commit b725d2b

Browse files
committed
i18n
1 parent 3f1b43e commit b725d2b

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/bundle.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const g2js = require('gradle-to-js/lib/parser');
1111
import os from 'node:os';
1212
const properties = require('properties');
1313
import { depVersions } from './utils/dep-versions';
14+
import { t } from './utils/i18n';
1415

1516
let bsdiff;
1617
let 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

518519
export function readEntire(entry: string, zipFile: ZipFile) {

src/locales/en.ts

+1
Original file line numberDiff line numberDiff 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
};

src/locales/zh.ts

+1
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ export default {
3737
cancelled: '已取消',
3838
operationSuccess: '操作成功',
3939
failedToParseUpdateJson: '无法解析文件 `update.json`。请手动删除它。',
40+
ppkPackageGenerated: 'ppk 热更包已生成并保存到: {{output}}',
4041
};

0 commit comments

Comments
 (0)