Skip to content

Studio: fill locale gaps and translate the sign-in, consent and Desktop startup screens - #16069

Merged
shimmyshimmer merged 10 commits into
mainfrom
studio-i18n-audit
Oct 30, 2026
Merged

shimmyshimmer merged 10 commits into
mainfrom
studio-i18n-audit

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

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:strict on main has 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 on main green again.
  • managedEngines (the More engines / vLLM / SGLang settings, about 45 strings) was managedEngines: en.managedEngines in 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.
  • Settings > Agents configuration notes were still English in 10 overlays.
  • pt-BR: the Settings > Resources llama.cpp backend block and the GPU rendering old-driver warning were still English.
  • Stale translations whose English was reworded later: decisions.description still 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").
  • Mistranslations found in review: he (setup code "expired" instead of "expires", "unloaded to the GPU" instead of "offloaded", message count), hi (Connections description, gender agreement, "unsaved changes"), it and pt-BR (account reset description), sv (engine "offload" instead of "unload"), fr ("full screen" for the in-app full view).
  • check-parity.ts now fails when an overlay reuses an English subtree, so a section: en.section alias 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:

  • Sign-in and first-run password setup (auth-form.tsx), and browser tab titles (route staticData now only takes a titleKey).
  • The remote code consent dialog. Model name, provider and the follow-up note are slots, so each language picks its own word order and sentence spacing.
  • Guided tour chrome (badge, Skip / Back / Next / Done, tip, Read more).
  • Release notes panels and the llama.cpp / whisper.cpp / audio.cpp runtime update card (runtime lists use Intl.ListFormat, backend names reuse the existing llamaBackend.backends.* keys).
  • Desktop startup, install, repair, update, diagnostics, install location and window titlebar labels. Startup phase messages are now message keys translated at render, and LogDetails takes 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:

  • English changed, translations did not: the LoftQ, RS-LoRA and DoRA option descriptions, the "Chat API" heading, the "Not set" Hugging Face token status (still "Add"), the loaded-models drag handle label, and the generation details description.
  • Dropped content: the invalid Hugging Face ID errors leave out the -- / .. and .git rules that hub-resource-id.ts enforces, and the chat import/export descriptions leave out Markdown although import accepts .md.
  • Wrong sense: the Japanese log notice had writing and reading reversed. In Arabic, "upload" and "transcribe" used the words for load and copy, "Unload" read as "cancel download", "offload" read as "unload", and "State" said "Input". In Hebrew, "Enable", "Resume training" and "Resuming" read as restart / new training. zh-CN used the "Projects" word for "Items". "Archives" read as "Files" in es and pt-BR. Also ru "Best loss", fr "Fork chat", de "Runtime", and the Hebrew and Swedish engine and HTML-card descriptions that still described older behaviour.
  • The Arabic "shell" term الصدفة is correct (it is the established computing term); it now carries "(Shell)" to avoid the reading as "chance".

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.

Language menu, scrolled

Verification

  • npm run i18n:check:strict: 0 missing keys, no errors, all 13 overlays (fails on main).
  • npm run typecheck, npm run build, npm run bundle:check pass.
  • npm test: 14456 pass; the 4 failures in tests/hub-gguf-card-unified-budget.test.ts also fail on main (missing @/lib/folder-icons stub) and are unrelated.
  • biome check on the changed files reports the same 13 existing formatter diagnostics as on main.
  • Screenshots: sign-in and first-run setup pages from a local Studio build in en / ja / ar; the consent dialog (custom-code and unsafe-files variants) and the Desktop startup screen rendered from the same components in a local harness, since this host has no non-GGUF model to load and does not run the Desktop shell.
  • A 180-string sample per locale (weighted toward delete, password and security strings) was reviewed for meaning; nothing misleading was found on those warnings.

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 from llama-job-lifecycle.ts and 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):

First-run setup in en, ja and ar

Sign-in page from the same build:

Sign-in in en, ja and ar

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 custom-code variant in en, ja and ar

Consent dialog, unsafe-files variant:

Consent dialog unsafe-files variant in en, ja and ar

Desktop startup screen (ja / ar):

Desktop startup screen in ja and ar

…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.
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 30, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 30, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 30, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 30, 2026
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 30, 2026
…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).
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-10-30T08:16:00.210613Z 260ffe6 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

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 2f71eee9d8

ℹ️ 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".

@shimmyshimmer

Copy link
Copy Markdown
Member Author

@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.
shimmyshimmer added a commit to shimmyshimmer/unsloth-staging-4 that referenced this pull request Oct 30, 2026
shimmyshimmer and others added 3 commits October 30, 2026 00:50
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.
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 260ffe6140

ℹ️ 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".

@shimmyshimmer
shimmyshimmer merged commit 8cb9120 into main Oct 30, 2026
4 of 45 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio-i18n-audit branch October 30, 2026 08:37
danielhanchen added a commit that referenced this pull request Oct 30, 2026
#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.
LeoBorcherding added a commit to LeoBorcherding/unsloth that referenced this pull request Oct 30, 2026
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.
danielhanchen added a commit that referenced this pull request Oct 30, 2026
#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>
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