mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-23 01:36:43 +08:00
Implement localized message for disabled incremental hot update in development environment
This commit is contained in:
@@ -478,11 +478,7 @@ export class Pushy {
|
||||
log(errorMessage);
|
||||
}
|
||||
} else if (__DEV__) {
|
||||
log(
|
||||
`当前是开发环境,无法执行增量式热更新,重启不会生效。
|
||||
如果需要在开发环境中测试可生效的全量热更新(但也会在再次重启后重新连接 metro),
|
||||
请打开“忽略时间戳”开关再重试。`,
|
||||
);
|
||||
log(this.t('dev_incremental_update_disabled'));
|
||||
succeeded = 'full';
|
||||
}
|
||||
}
|
||||
|
@@ -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.',
|
||||
};
|
||||
|
@@ -64,4 +64,8 @@ export default {
|
||||
// More alert messages
|
||||
alert_new_version_found:
|
||||
'检查到新的版本{{name}},是否下载?\n{{description}}',
|
||||
|
||||
// Development environment messages
|
||||
dev_incremental_update_disabled:
|
||||
'当前是开发环境,无法执行增量式热更新,重启不会生效。如果需要在开发环境中测试可生效的全量热更新(但也会在再次重启后重新连接 metro),请打开"忽略时间戳"开关再重试。',
|
||||
};
|
||||
|
Reference in New Issue
Block a user