Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(mobile): clarify paired desktop version label (#816)
Kmnyab1d85eb9ccb
diff --git a/apps/mobile/app/settings.tsx b/apps/mobile/app/settings.tsxindex 6de07c7f49..6bbd9a5421 100644--- a/apps/mobile/app/settings.tsx+++ b/apps/mobile/app/settings.tsx@@ -743,9 +743,9 @@ export default function SettingsScreen() {<Text style={styles.rowLabel}>{t('settings.version.currentLabel')}</Text><Text style={styles.versionValue} numberOfLines={1}>{t('settings.version.bundleVersion', { version: appVersion })}</Text><Text style={styles.rowDetail} numberOfLines={1} testID="settings.otaVersion">{t('settings.version.otaVersion', { version: otaVersion })}</Text>- {/* 二级版本号:自建线打包所配对的桌面产品线版本(0.0.x);仅自建线且已注入时显示 */}+ {/* 二级版本号:自建线打包所配对的桌面产品线版本(0.0.x),不是在线电脑的实时版本;仅自建线且已注入时显示 */}{IS_OTA_SELFHOST && DESKTOP_PACKAGE_VERSION ? (- <Text style={styles.rowDetail} numberOfLines={1} testID="settings.desktopVersion">{t('settings.version.desktopVersion', { version: DESKTOP_PACKAGE_VERSION })}</Text>+ <Text style={styles.rowDetail} numberOfLines={1} testID="settings.desktopVersion">{t('settings.version.pairedDesktopVersion', { version: DESKTOP_PACKAGE_VERSION })}</Text>) : null}{IS_TESTFLIGHT_BUILD ? (<Text style={styles.rowDetail} numberOfLines={2} testID="settings.testFlightUpdateHint">diff --git a/apps/mobile/src/__tests__/mobileSettings.test.ts b/apps/mobile/src/__tests__/mobileSettings.test.tsindex 3c1240ec90..187eaa21fa 100644--- a/apps/mobile/src/__tests__/mobileSettings.test.ts+++ b/apps/mobile/src/__tests__/mobileSettings.test.ts@@ -224,5 +224,11 @@ describe('mobile settings overview', () => {expect(source).toContain("testID=\"settings.otaVersion\">{t('settings.version.otaVersion', { version: otaVersion })}",);+ expect(source).toContain(+ "testID=\"settings.desktopVersion\">{t('settings.version.pairedDesktopVersion', { version: DESKTOP_PACKAGE_VERSION })}",+ );+ expect(source).not.toContain("'settings.version.desktopVersion'");+ expect(i18n.t('settings.version.pairedDesktopVersion', { version: '0.1.18' }))+ .toBe('配套桌面版本 0.1.18');});});diff --git a/apps/mobile/src/i18n/locales/en/settings.json b/apps/mobile/src/i18n/locales/en/settings.jsonindex 3f4a4cdcec..050f372e39 100644--- a/apps/mobile/src/i18n/locales/en/settings.json+++ b/apps/mobile/src/i18n/locales/en/settings.json@@ -16,7 +16,7 @@"currentLabel": "Current Version","bundleVersion": "App package {{version}}","otaVersion": "OTA version {{version}}",- "desktopVersion": "Desktop {{version}}",+ "pairedDesktopVersion": "Matching desktop release {{version}}","devNoOta": "Development build; OTA updates unavailable","checkAction": "Check for Updates","testFlightCheckAction": "Check for Content Updates",diff --git a/apps/mobile/src/i18n/locales/ja/settings.json b/apps/mobile/src/i18n/locales/ja/settings.jsonindex 9399cebfbc..3e9534d7a9 100644--- a/apps/mobile/src/i18n/locales/ja/settings.json+++ b/apps/mobile/src/i18n/locales/ja/settings.json@@ -16,7 +16,7 @@"currentLabel": "現在のバージョン","bundleVersion": "アプリ本体 {{version}}","otaVersion": "OTA バージョン {{version}}",- "desktopVersion": "デスクトップ版 {{version}}",+ "pairedDesktopVersion": "対応デスクトップ版 {{version}}","devNoOta": "開発ビルドのため OTA 更新は利用できません","checkAction": "更新を確認","testFlightCheckAction": "コンテンツ更新を確認",diff --git a/apps/mobile/src/i18n/locales/ko/settings.json b/apps/mobile/src/i18n/locales/ko/settings.jsonindex 18041ad51a..7c920616d1 100644--- a/apps/mobile/src/i18n/locales/ko/settings.json+++ b/apps/mobile/src/i18n/locales/ko/settings.json@@ -16,7 +16,7 @@"currentLabel": "현재 버전","bundleVersion": "앱 패키지 {{version}}","otaVersion": "OTA 버전 {{version}}",- "desktopVersion": "데스크톱 버전 {{version}}",+ "pairedDesktopVersion": "연동 대상 데스크톱 버전 {{version}}","devNoOta": "개발 빌드에서는 OTA 업데이트를 사용할 수 없습니다","checkAction": "업데이트 확인","testFlightCheckAction": "콘텐츠 업데이트 확인",diff --git a/apps/mobile/src/i18n/locales/zh-CN/settings.json b/apps/mobile/src/i18n/locales/zh-CN/settings.jsonindex 7fff688aab..fe9e5de64a 100644--- a/apps/mobile/src/i18n/locales/zh-CN/settings.json+++ b/apps/mobile/src/i18n/locales/zh-CN/settings.json@@ -16,7 +16,7 @@"currentLabel": "当前版本","bundleVersion": "整包版本 {{version}}","otaVersion": "热更版本 {{version}}",- "desktopVersion": "桌面版 {{version}}",+ "pairedDesktopVersion": "配套桌面版本 {{version}}","devNoOta": "开发版,热更不可用","checkAction": "检查更新","testFlightCheckAction": "检查内容更新",