Skip to content

feat(frontend): add zh-CN / en-US i18n with locale switcher#314

Open
ivanproskuryakov wants to merge 1 commit into666ghj:mainfrom
ivanproskuryakov:feat/i18n-translations
Open

feat(frontend): add zh-CN / en-US i18n with locale switcher#314
ivanproskuryakov wants to merge 1 commit into666ghj:mainfrom
ivanproskuryakov:feat/i18n-translations

Conversation

@ivanproskuryakov
Copy link
Copy Markdown

@ivanproskuryakov ivanproskuryakov commented Mar 23, 2026

PR summary

Screenshot 2026-03-23 at 13 39 04

Add internationalization (i18n) to the Vue frontend

  • Integrated vue-i18n (Composition API) with Chinese (zh-CN) and English (en-US) message bundles under src/locales/, merged via per-locale index.js.
  • Registered i18n in main.js, persisted locale in localStorage (mirofish-locale), and synced document.documentElement.lang from App.vue.
  • Added a fixed language switcher (中文 / English) in App.vue via LocaleSwitcher.vue.
  • Replaced user-facing strings with $t() / useI18n() across the main flow: Home, workflow views (process/simulation/report/interaction), GraphPanel, Step1–Step5 components (coverage varies; Step4’s large h() tool UI and some Step3 console logs may still be partly untranslated), and HistoryDatabase.

@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. enhancement New feature or request labels Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant