Skip to content

feat: add zh/en UI localization with language settings dialog - #57

Open
wuhaodesq-star wants to merge 1 commit into
qucat:mainfrom
wuhaodesq-star:feat/i18n-language-switch
Open

feat: add zh/en UI localization with language settings dialog#57
wuhaodesq-star wants to merge 1 commit into
qucat:mainfrom
wuhaodesq-star:feat/i18n-language-switch

Conversation

@wuhaodesq-star

Copy link
Copy Markdown

Summary

  • Add lightweight i18n module with English (default) and Simplified Chinese
  • Localize menus, property panel, command messages, and paste-netlist dialog
  • Add View > Language settings dialog with radio list and Save/Cancel

Details

  • Locale persisted in localStorage (jscircuit.locale); auto-detects browser language on first visit
  • Menu re-renders on locale:change without page reload
  • Junction menu label translated as 约瑟夫森结 in Chinese

Test plan

  • npm run menu:build && npm test
  • Manual: View > Language → switch to 中文 → menus and dialogs show Chinese
  • Manual: Save persists choice after refresh; Cancel discards changes
  • Manual: English mode unchanged from current behavior

Add lightweight i18n module, Simplified Chinese translations for menus, property panel, and command messages, and a View > Language dialog to switch locale with save/cancel.

Co-authored-by: Cursor <cursoragent@cursor.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.

2 participants