mirror of
https://gitcode.com/github-mirrors/react-native-update-cli.git
synced 2025-09-16 01:41:37 +08:00
i18n
This commit is contained in:
@@ -11,6 +11,7 @@ const g2js = require('gradle-to-js/lib/parser');
|
||||
import os from 'node:os';
|
||||
const properties = require('properties');
|
||||
import { depVersions } from './utils/dep-versions';
|
||||
import { t } from './utils/i18n';
|
||||
|
||||
let bsdiff;
|
||||
let hdiff;
|
||||
@@ -512,7 +513,7 @@ async function pack(dir: string, output: string) {
|
||||
});
|
||||
zipfile.end();
|
||||
});
|
||||
console.log(`ppk热更包已生成并保存到: ${output}`);
|
||||
console.log(t('ppkPackageGenerated', { output }));
|
||||
}
|
||||
|
||||
export function readEntire(entry: string, zipFile: ZipFile) {
|
||||
|
@@ -39,4 +39,5 @@ This can reduce the risk of inconsistent dependencies and supply chain attacks.
|
||||
cancelled: 'Cancelled',
|
||||
operationSuccess: 'Operation successful',
|
||||
failedToParseUpdateJson: 'Failed to parse file `update.json`. Try to remove it manually.',
|
||||
ppkPackageGenerated: 'ppk package generated and saved to: {{output}}',
|
||||
};
|
||||
|
@@ -37,4 +37,5 @@ export default {
|
||||
cancelled: '已取消',
|
||||
operationSuccess: '操作成功',
|
||||
failedToParseUpdateJson: '无法解析文件 `update.json`。请手动删除它。',
|
||||
ppkPackageGenerated: 'ppk 热更包已生成并保存到: {{output}}',
|
||||
};
|
||||
|
Reference in New Issue
Block a user