Repository navigation
Studio: fill locale gaps and translate the sign-in, consent and Desktop startup screens - #16069
Conversation
…glish subtrees in the parity check Adds settings.apiKeys.trainingApi to every overlay (i18n:check:strict on main fails since #15996), translates managedEngines in the 11 overlays that aliased en.managedEngines, the Agents config notes, the pt-BR llama.cpp backend block, and retranslates strings whose English changed (decisions.description still named Laya, pasted text, quantization list, upload label). Fixes reviewed mistranslations in he, hi, it, pt-BR, sv and fr. check-parity now fails when an overlay reuses an English subtree, which is how managedEngines slipped through.
…p screens
Routes the remaining English on the sign-in and first-run password pages, the
remote code consent dialog, guided tour chrome, release notes panels, the
runtime (llama.cpp) update card, and the Desktop startup, update, titlebar and
diagnostics screens through t(), with translations in all 13 overlays.
Route titles now take only a titleKey. Startup phase messages are message keys
translated at render, and LogDetails takes full show/hide labels instead of
gluing a noun onto English. The consent dialog fills {model}, {provider} and
{note} slots so word order and sentence spacing follow each language.
…tion review Retranslates labels whose English changed (LoftQ, RS-LoRA and DoRA option descriptions, Chat API heading, Not set token status, loaded-models drag handle, generation details), restores the Hub ID rules and Markdown format lists the translations dropped, and fixes wrong-sense wording: reversed log notice (ja), upload/unload/offload/transcribe verbs and State (ar), Enable and Resume training (he), Items vs Projects (zh-CN), Archives (es, pt-BR), Best loss (ru), Fork chat (fr), Runtime (de) and the old engines and HTML-card descriptions (he, sv).
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
@codex security review |
…ttings tabs Adds settings.appearance.language.search and noResults in every locale for the searchable language menu. sandboxSetup.keepsRunning still sent people to Settings > Sandbox and logOutNeedsPassword to Settings > Remote access; both tabs were renamed, so each locale now names its own Security and Remote & LAN tab.
Replaces the Radix select (and its scroll arrows) with the popover and search used by the font picker: wider panel, languages sorted by English name with the native name first, Auto detect fixed above the scrolling list, search across native and English names, and modal so the wheel scrolls inside the Settings dialog. Opens on the language in effect.
Adds Traditional Chinese (Taiwan), Spanish (Latin America), Portuguese (Portugal), Indonesian, Vietnamese, Turkish, Polish, Ukrainian, Thai, Persian, Czech and Dutch, each a full catalog. Traditional Chinese tags now pick zh-TW instead of falling back to English, Latin American and US Spanish pick es-419, and non-Brazilian Portuguese regions pick pt-PT.
Latin American Spanish and European Portuguese move to a follow-up PR, so Spanish is labelled plainly again and only Traditional Chinese tags get regional routing.
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
#16069 moved the Go back / Go forward aria-labels onto t(desktopShell.goBack / goForward), so test_collapsed_tauri_keeps_history_arrows_and_adds_new_chat_by_model_picker found none.
Brings in unslothai#16069, which fills the locale keys Locale parity fails on at 69117f1. One conflict: check-bundle-budget.ts takes main's budget plus the Flows delta.
#16069 (fill locale gaps and translate the sign-in, consent and Desktop startup screens) moved the update banners onto `t()`. Two checks that pinned the old English literals went red on main. They fail on unrelated PRs, for example #16085: ``` Repo tests (CPU, studio) test_update_release_notes.py::test_banners_toggle_inline_release_notes[banner1] test_update_release_notes.py::test_notes_toggle_shares_the_action_row[banner1-tauri-update-release-notes-toggle-Remind me later] test_desktop_reliability_frontend_contract.py::test_collapsed_tauri_keeps_history_arrows_and_adds_new_chat_by_model_picker Chat UI Tests [banner] FAIL 1440x900: three pending runtimes share the one card summary='llama.cpp, whisper.cpp, and audio.cpp · No restart needed' (same at all 6 viewports) ``` In both cases the product is right and the tests read the old text. ## Release notes toggle contract The Tauri banner now renders `t("desktopUpdate.banner.showNotes")`, `hideNotes` and `remindLater`. Their English, "Show release notes", "Hide release notes" and "Remind me later", is unchanged. A new `_shown_at(src, label)` helper finds a label either as literal text, which is how the web banner still renders it, or as a `t("key")` call whose `en.ts` value is that label. It uses the shared `tests/studio/_en_catalog.py` reader. The ordering check (toggle before the action, in the same row) uses the position of whichever form is present. A unit test pins the helper: literal, through the catalog, and a key whose English differs. ## Titlebar history arrows The titlebar's back and forward buttons now carry `aria-label={t("desktopShell.goBack")}` and `goForward`, and their English is still "Go back" and "Go forward". `_aria_label_count` counts a label written literally or through a `t()` key whose English matches, and a unit test pins it. ## Runtime card summary The card now joins runtime names with `Intl.ListFormat(locale, { type: "conjunction" })`, which is correct for every locale and gives English a serial comma. `playwright_update_banner_layout.py` now matches `llama\.cpp, whisper\.cpp,? and audio\.cpp`. The names must still appear in that order and joined as one list. ## Verification - `tests/studio/test_update_release_notes.py`: 2 failed on main, 203 passed here. - `tests/studio/test_desktop_reliability_frontend_contract.py`: 1 failed on main, 45 passed here. Pointing the back button at `goForward` fails it. - Sabotage: rendering nothing for the Tauri notes toggle fails `test_banners_toggle_inline_release_notes`. Switching the dismiss button from `remindLater` to `later` fails `test_notes_toggle_shares_the_action_row`. - The new matcher accepts the formatted summary and the old form. It rejects a missing or reordered runtime. - The tests that import the layout driver pass (218 passed with the release notes file). --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
What changed
Studio in a non-English language showed English in several places that the parity check could not see, and
npm run i18n:check:strictonmainhas failed since #15996 (Studio frontend CI, "Locale parity" step).settings.apiKeys.trainingApi(8 keys) added to all 13 overlays. This turns the Locale parity step onmaingreen again.managedEngines(the More engines / vLLM / SGLang settings, about 45 strings) wasmanagedEngines: en.managedEnginesin 11 overlays, so the keys existed but shipped English. Now translated in ar, de, es, fr, hi, it, ja, ko, pt-BR, ru and zh-CN.decisions.descriptionstill named "Laya" in every overlay; pasted-text description, GGUF quantization list description (also named the "On Device" tab in English), upload label ("Or upload a local file").check-parity.tsnow fails when an overlay reuses an English subtree, so asection: en.sectionalias cannot pass the key check again.Shared screens moved into the catalog
The first screens every user sees were hardcoded English. They now go through
t(), with translations in all 13 languages:auth-form.tsx), and browser tab titles (routestaticDatanow only takes atitleKey).Intl.ListFormat, backend names reuse the existingllamaBackend.backends.*keys).LogDetailstakes full show/hide labels instead of prefixing an English verb to a noun.Second review pass
A second, independent review (a back-translation of every overlay string plus a read of its flagged rows) found more strings whose English changed after they were translated, or that use the wrong sense of a word:
--/..and.gitrules thathub-resource-id.tsenforces, and the chat import/export descriptions leave out Markdown although import accepts.md.155 strings across the 13 overlays. A key-by-key diff against the previous commit confirms only the listed entries changed.
Language menu
Settings > General > Language is now searchable: a pill search field (the same control as the font picker), languages sorted by English name with the native name first, Auto detect fixed above the scrolling list, a wider panel, and no scroll arrows. It opens on the language in effect, and scrolls with the mouse wheel inside the Settings dialog (the popover is modal, as the font picker's is). Two notes that still pointed at the old Sandbox and Remote access tab names now name Security and Remote & LAN.
Verification
npm run i18n:check:strict: 0 missing keys, no errors, all 13 overlays (fails onmain).npm run typecheck,npm run build,npm run bundle:checkpass.npm test: 14456 pass; the 4 failures intests/hub-gguf-card-unified-budget.test.tsalso fail onmain(missing@/lib/folder-iconsstub) and are unrelated.biome checkon the changed files reports the same 13 existing formatter diagnostics as onmain.Not covered
About 4,200 user-visible strings in Studio are still hardcoded English and never go through
t()(Data Recipes, Images, Audio, Video, Hub, Export, API monitor, the per-feature tour step text, and parts of Chat). The image drop zone and crop editor are left for the Images / Video migration, since their labels are built from subject names those pages pass in English. The runtime update toast text comes fromllama-job-lifecycle.tsand backend job messages and stays English. Desktop native dialogs and menus are English only. Those need their own per-area migrations and are not part of this change.Screenshots
First-run password setup from a local Studio build (en / ja / ar):
Sign-in page from the same build:
Remote code consent dialog, custom-code variant. Japanese puts the provider first through the
{model}/{provider}slots, and the follow-up note joins without an English space:Consent dialog, unsafe-files variant:
Desktop startup screen (ja / ar):