feat(app): add version check system and enhance internationalization support
Add comprehensive app update checking functionality with: - New VersionCheckContext for managing update detection and notifications - VersionUpdateModal UI component for presenting update information - Version service API integration with platform-specific update URLs - Version check menu item in personal settings with manual/automatic checking Enhance internationalization across workout features: - Complete workout type translations for English and Chinese - Localized workout detail modal with proper date/time formatting - Locale-aware date formatting in fitness rings detail - Workout notification improvements with deep linking to specific workout details Improve UI/UX with better chart rendering, sizing fixes, and enhanced navigation flow. Update app version to 1.1.3 and include app version in API headers for better tracking.
This commit is contained in:
@@ -37,6 +37,25 @@ export const personal = {
|
||||
medicalSources: '医学建议来源',
|
||||
customization: '个性化',
|
||||
},
|
||||
versionCheck: {
|
||||
sectionTitle: '版本与更新',
|
||||
menuTitle: '检查更新',
|
||||
checking: '正在检查更新...',
|
||||
upToDate: '当前已是最新版本',
|
||||
updateBadge: 'v{{version}} 可更新',
|
||||
failed: '检查更新失败,请稍后再试',
|
||||
updateFound: '发现新版本 v{{version}}',
|
||||
modalTitle: '发现新版本',
|
||||
modalTag: 'New',
|
||||
currentVersion: '当前',
|
||||
latestVersion: '最新',
|
||||
releaseNotesTitle: '本次更新',
|
||||
fallbackNotes: '体验优化与问题修复,保持更新获得更好体验。',
|
||||
later: '稍后提醒',
|
||||
updateNow: '立即更新',
|
||||
missingUrl: '暂未获取到商店地址',
|
||||
openStoreFailed: '跳转应用商店失败,请稍后再试',
|
||||
},
|
||||
menu: {
|
||||
notificationSettings: '通知设置',
|
||||
developerOptions: '开发者选项',
|
||||
@@ -405,4 +424,4 @@ export const notificationSettings = {
|
||||
body: '您将在晚间收到心情记录提醒',
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user