Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(mobile): localize worktree short label
kafeifeid17e17ec55b1
diff --git a/apps/mobile/app/sessions/new.tsx b/apps/mobile/app/sessions/new.tsxindex 7b48089ac4..8144c9a4af 100644--- a/apps/mobile/app/sessions/new.tsx+++ b/apps/mobile/app/sessions/new.tsx@@ -3566,7 +3566,9 @@ export default function NewRemoteSessionScreen() {<Check color={colors.ctaText} size={iconSize.xs} strokeWidth={iconStroke.bold} />) : null}</View>- <Text style={styles.worktreeToggleLabel} numberOfLines={1}>worktree</Text>+ <Text style={styles.worktreeToggleLabel} numberOfLines={1}>+ {t('session.new.worktreeShortLabel')}+ </Text></Pressable></View></View>diff --git a/apps/mobile/src/__tests__/newSession.test.ts b/apps/mobile/src/__tests__/newSession.test.tsindex 0c40137d70..aac376d1b8 100644--- a/apps/mobile/src/__tests__/newSession.test.ts+++ b/apps/mobile/src/__tests__/newSession.test.ts@@ -1268,6 +1268,8 @@ describe('new session worktree wiring (source locks)', () => {expect(newSource).toContain('useRemoteNewMakerWorktreeBranchPreference(');expect(newSource).toContain('testID="newSession.worktreeBranchPicker"');expect(newSource).toContain('testID="newSession.worktreeToggle"');+ expect(newSource).toContain("t('session.new.worktreeShortLabel')");+ expect(newSource).not.toContain('>worktree</Text>');});it('applies the protocol timeout override map to mobile invokes (worktree:create needs 60s)', () => {diff --git a/apps/mobile/src/i18n/locales/en/session.json b/apps/mobile/src/i18n/locales/en/session.jsonindex a6eef2367b..a563505be5 100644--- a/apps/mobile/src/i18n/locales/en/session.json+++ b/apps/mobile/src/i18n/locales/en/session.json@@ -162,6 +162,7 @@"previewNotReadyTitle": "Not ready to create yet","previewReadySubtitle": "Confirming creates the session on the controlled device and queues the first message.","useWorktree": "Use worktree",+ "worktreeShortLabel": "worktree","worktreeSourceBranch": "Source branch","selectWorktreeBranchA11y": "Select the worktree source branch. Current: {{branch}}","worktreeBranchesLoading": "Loading branches…",diff --git a/apps/mobile/src/i18n/locales/ja/session.json b/apps/mobile/src/i18n/locales/ja/session.jsonindex 1df9cd82e3..02e88428be 100644--- a/apps/mobile/src/i18n/locales/ja/session.json+++ b/apps/mobile/src/i18n/locales/ja/session.json@@ -162,6 +162,7 @@"previewNotReadyTitle": "まだ作成できません","previewReadySubtitle": "確認すると、操作対象のデバイスにセッションを作成し、最初のメッセージをキューに追加します。","useWorktree": "worktree を使用",+ "worktreeShortLabel": "worktree","worktreeSourceBranch": "ソースブランチ","selectWorktreeBranchA11y": "worktree のソースブランチを選択。現在は {{branch}}","worktreeBranchesLoading": "ブランチを読み込み中…",diff --git a/apps/mobile/src/i18n/locales/ko/session.json b/apps/mobile/src/i18n/locales/ko/session.jsonindex 3401c7d8c5..4fc2bb0e35 100644--- a/apps/mobile/src/i18n/locales/ko/session.json+++ b/apps/mobile/src/i18n/locales/ko/session.json@@ -162,6 +162,7 @@"previewNotReadyTitle": "아직 만들 수 없습니다","previewReadySubtitle": "확인하면 제어 기기에 세션을 만들고 첫 메시지를 대기열에 추가합니다.","useWorktree": "worktree 사용",+ "worktreeShortLabel": "worktree","worktreeSourceBranch": "소스 브랜치","selectWorktreeBranchA11y": "worktree 소스 브랜치 선택. 현재 {{branch}}","worktreeBranchesLoading": "브랜치 불러오는 중…",diff --git a/apps/mobile/src/i18n/locales/zh-CN/session.json b/apps/mobile/src/i18n/locales/zh-CN/session.jsonindex 733e0001eb..d25867c3ac 100644--- a/apps/mobile/src/i18n/locales/zh-CN/session.json+++ b/apps/mobile/src/i18n/locales/zh-CN/session.json@@ -162,6 +162,7 @@"previewNotReadyTitle": "还不能创建","previewReadySubtitle": "确认后会在被控设备创建任务,并把首条消息加入队列。","useWorktree": "使用 worktree",+ "worktreeShortLabel": "worktree","worktreeSourceBranch": "源分支","selectWorktreeBranchA11y": "选择 worktree 源分支,当前 {{branch}}","worktreeBranchesLoading": "正在读取分支…",