Skip to content

feat(frontend): add Vue I18n 9, locale files for home page#241

Closed
ChinmayShringi wants to merge 1 commit intomainfrom
feat/i18n-setup-home
Closed

feat(frontend): add Vue I18n 9, locale files for home page#241
ChinmayShringi wants to merge 1 commit intomainfrom
feat/i18n-setup-home

Conversation

@ChinmayShringi
Copy link
Copy Markdown
Owner

feat(frontend): Add Vue I18n 9 and internationalize the Home page

This PR is part 1 of the page internationalization series:

  • Introduce vue-i18n@9; add zh-CN.json and en.json under src/locales (containing home., common. namespaces)
  • Create src/i18n.js: use createI18n, read locale from localStorage, fallback to en, and implement applyLocaleToDocument()
  • In main.js: app.use(i18n), apply current language to document on initialization
  • Home.vue: replace UI text with $t('home.xxx'); add language toggle (Chinese / English) to navbar; on switch, update localStorage, document.documentElement.lang, and <title>
  • Add docs/I18N-BRANCHES.md explaining branch planning for subsequent Process, History, Steps, Report, Interaction modules

See /MiroFish/docs/I18N-BRANCHES.md for more details.
A language option has been added to the top-right corner of the navbar.


Original PR: 666ghj/MiroFish#215
Original Author: @isabelccc

@ChinmayShringi ChinmayShringi added the enhancement New feature or request label Mar 17, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant