Skip to content

Studio i18n: translate the browser tool steps and program download prompts in every locale - #16677

Merged
danielhanchen merged 1 commit into
mainfrom
dh/i18n-browser-download-keys
Nov 4, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
dh/i18n-browser-download-keys

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Frontend build + bundle sanity runs npm run i18n:check:strict, and that step fails on main for every PR. For example #16671, which only touches the glass wallpaper:

=== nl ===
Missing keys (will fall back to en): 9
  - browser.agent.step.tabs
  - browser.agent.step.readFile
  - browser.agent.step.editFile
  - browser.askBeforeProgramDownloadsSetting
  - browser.askBeforeProgramDownloadsSettingDescription
  - browser.downloadSiteAllowAll
  - browser.downloadPrompt.once
  - browser.downloadPrompt.site
  - browser.downloadPrompt.all
Missing keys above. Add them to every overlay, or run without --strict to accept the English fallback.

The same 9 keys are missing from all 24 overlays. Two PRs added them to en.ts only:

Both features are fine. They only skipped the overlay step the strict gate asks for, so non-English users currently see these strings in English.

Change

studio/frontend/src/i18n/locales/*.ts, every overlay except en.ts. Each one gets the 9 keys, placed where en.ts has them:

  • the three agent steps after drag in browser.agent.step;
  • the two program download settings after askBeforeDownloadingSettingDescription;
  • downloadSiteAllowAll after downloadSiteAllow;
  • once, site and all after remember in browser.downloadPrompt.

The wording follows each locale's existing neighbours. Agent steps use the same form as that locale's other steps, for example "Zieht" / "Liest die Datei" in German, "Arrastrando" / "Leyendo el archivo" in Spanish, and "正在拖动" / "正在读取文件" in Simplified Chinese. The download strings reuse that locale's terms for "download", "always allow" and "site". {host} is kept in every site string. es-419 uses the same text as es. No English string and no other key changes.

Testing

  • npm run i18n:check:strict: main fails with 9 missing keys in each of the 24 overlays. This branch passes, Missing keys (will fall back to en): 0 for every locale, "All locale overlays pass parity."
  • Removing browser.downloadPrompt.site from nl.ts again makes the strict check fail and name that key, so the gate still catches a missing key.
  • tests/lazy-locale-loading.test.ts and tests/locale-detection.test.ts: 35 passed.
  • tsc --noEmit -p tsconfig.app.json reports nothing in src/i18n.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T16:21:56.688469Z 35af5bb Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 35af5bb194

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant