Skip to content

[fix] canvas: one interface language switch, not three - #498

Open
Zhangbo-cn wants to merge 1 commit into
ThinkFlowLab:mainfrom
Zhangbo-cn:fix/model-setup-language
Open

Zhangbo-cn wants to merge 1 commit into
ThinkFlowLab:mainfrom
Zhangbo-cn:fix/model-setup-language

Conversation

@Zhangbo-cn

@Zhangbo-cn Zhangbo-cn commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

What

The same interface language switch lived in three places: Settings → General, the welcome screen, and the top-right corner of the model setup panel. Two visible entries for one setting, with nothing on screen saying they were the same value — pick a language in the setup panel and watch Settings → General change under you.

The model setup panel drops its copy. Settings → General stays the settings entry, and the welcome screen keeps its switch because it is what a first-time user sees before any project exists. The modelSetup.language key stays: the welcome screen labels its <select> with it, and the ID it labelled (#model-setup-language) appeared nowhere else, in tests or source.

Verification

  • tsc --noEmit clean; npm test 978 pass / 0 fail.
  • check:i18n 3351 keys, 0 problems — no key went unused, which is the check that would have caught deleting modelSetup.language with the panel.
  • #settings-language (Settings → General) and #welcome-language (welcome screen) are untouched and are the two remaining entries.

@github-actions github-actions Bot added area:canvas Canvas, nodes and direct manipulation area:i18n Localisation and bilingual UI type:bug Something is broken labels Nov 25, 2026
Settings -> General already has the interface language, and the welcome screen offers it before a project exists. The model setup panel repeated the same control in its top-right corner, so the same setting appeared in two places depending on which panel happened to be open, with nothing indicating they were the same value.

The setup panel now opens on the thing it is for: which models are missing. The key it used stays, because the welcome screen still labels its switch with it.
@Zhangbo-cn
Zhangbo-cn force-pushed the fix/model-setup-language branch from 7c013e8 to 55ffecc Compare November 25, 2026 03:56

This branch has not been deployed

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

Labels

area:canvas Canvas, nodes and direct manipulation area:i18n Localisation and bilingual UI type:bug Something is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant