1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-23 01:36:43 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Implement localized message for disabled incremental hot update in development environment

This commit is contained in:
sunnylqm
2025-09-16 12:51:02 +08:00
parent bfb520bd07
commit 3732c196a1
3 changed files with 9 additions and 5 deletions

View File

@@ -478,11 +478,7 @@ export class Pushy {
log(errorMessage);
}
} else if (__DEV__) {
log(
`当前是开发环境,无法执行增量式热更新,重启不会生效。
如果需要在开发环境中测试可生效的全量热更新(但也会在再次重启后重新连接 metro
请打开“忽略时间戳”开关再重试。`,
);
log(this.t('dev_incremental_update_disabled'));
succeeded = 'full';
}
}

View File

@@ -67,4 +67,8 @@ export default {
// More alert messages
alert_new_version_found:
'New version {{name}} found. Download now?\n{{description}}',
// Development environment messages
dev_incremental_update_disabled:
'Currently in development environment, incremental hot update cannot be executed and restart will not take effect. If you need to test effective full hot update in development environment (but will reconnect to metro after restart), please enable "ignore timestamp" switch and retry.',
};

View File

@@ -64,4 +64,8 @@ export default {
// More alert messages
alert_new_version_found:
'检查到新的版本{{name}},是否下载?\n{{description}}',
// Development environment messages
dev_incremental_update_disabled:
'当前是开发环境,无法执行增量式热更新,重启不会生效。如果需要在开发环境中测试可生效的全量热更新(但也会在再次重启后重新连接 metro请打开"忽略时间戳"开关再重试。',
};