feat(app): sync product translations#35856
Merged
Merged
Conversation
This reverts commit 2e7255c.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR synchronizes product translation dictionaries across the app, shared UI, and desktop surfaces, and introduces tooling/tests to keep locale keys + placeholder tokens aligned with English going forward.
Changes:
- Adds a locale-scoped translation runner workflow (config + tests) with concurrency/model/variant controls and strict edit scoping.
- Updates UI and app copy across all supported locales to match English keys/placeholders (including full-phrase “changed files” summaries).
- Tightens patch-application permission metadata to include move destinations (edit confinement) and expands i18n parity tests across app/ui/desktop.
Reviewed changes
Copilot reviewed 44 out of 44 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| script/translate-app.test.ts | Adds test coverage for translate-app argument parsing, drift detection, pooling, and config scoping. |
| .opencode/command/translate-app.md | Adds an OpenCode command template describing strict translation/edit constraints. |
| package.json | Adds translate:app script entrypoint. |
| packages/app/src/i18n/parity.test.ts | Expands parity tests to enforce key + placeholder parity across app/ui/desktop locale dictionaries. |
| packages/app/src/pages/session/timeline/message-timeline.tsx | Switches changed-file summary to a localized full phrase with {{count}}. |
| packages/session-ui/src/components/session-turn.tsx | Switches changed-file summary to a localized full phrase with {{count}}. |
| packages/opencode/src/tool/apply_patch.ts | Includes both source + destination paths in permission patterns for move hunks. |
| packages/opencode/test/tool/apply_patch.test.ts | Asserts permission patterns include move destinations for apply_patch moves. |
| packages/ui/src/i18n/en.ts | Updates changed-file summary key to include {{count}} phrase. |
| packages/ui/src/i18n/ar.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/bs.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/br.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/da.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/de.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/es.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/fr.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/ja.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/ko.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/no.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/pl.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/ru.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/th.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/tr.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/uk.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/zh.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/ui/src/i18n/zht.ts | Syncs UI locale keys/phrases with English (session review v2 + diffs + cancel). |
| packages/app/src/i18n/ar.ts | Syncs app locale dictionary with English (new navigation, WSL, settings, errors, etc.). |
| packages/app/src/i18n/bs.ts | Syncs app locale dictionary with English (new navigation, WSL, settings, errors, etc.). |
| packages/app/src/i18n/br.ts | Syncs app locale dictionary with English (new navigation, WSL, settings, errors, etc.). |
| packages/app/src/i18n/da.ts | Syncs app locale dictionary with English (new navigation, WSL, settings, errors, etc.). |
| packages/app/src/i18n/de.ts | Syncs app locale dictionary with English (new navigation, WSL, settings, errors, etc.). |
| packages/app/src/i18n/es.ts | Syncs app locale dictionary with English (new navigation, WSL, settings, errors, etc.). |
| packages/app/src/i18n/fr.ts | Syncs app locale dictionary with English (new navigation, WSL, settings, errors, etc.). |
| packages/app/src/i18n/ja.ts | Syncs app locale dictionary with English (new navigation, WSL, settings, errors, etc.). |
| packages/app/src/i18n/ko.ts | Syncs app locale dictionary with English (new navigation, WSL, settings, errors, etc.). |
| packages/app/src/i18n/no.ts | Syncs app locale dictionary with English (new navigation, WSL, settings, errors, etc.). |
| packages/app/src/i18n/ru.ts | Syncs app locale dictionary with English (new navigation, WSL, settings, errors, etc.). |
| packages/app/src/i18n/uk.ts | Syncs app locale dictionary with English (new navigation, WSL, settings, errors, etc.). |
| packages/app/src/i18n/zh.ts | Syncs app locale dictionary with English (new navigation, WSL, settings, errors, etc.). |
| packages/app/src/i18n/zht.ts | Syncs app locale dictionary with English (new navigation, WSL, settings, errors, etc.). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
avion23
pushed a commit
to avion23/opencode
that referenced
this pull request
Jul 9, 2026
anduimagui
pushed a commit
to anduimagui/opencode
that referenced
this pull request
Jul 9, 2026
avion23
pushed a commit
to avion23/opencode
that referenced
this pull request
Jul 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing