Skip to content

feat(i18n): Add multi-language support to realize Chinese and English switching function #1722

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

frontend-winter
Copy link

@frontend-winter frontend-winter commented Jul 21, 2025

Description

This pull request adds multi-language (i18n) support to the frontend, enabling users to switch between Chinese and English.

Changes

  • Integrated i18n support using [i18next/vue-i18n/...]
  • Added language switcher to the header
  • Extracted all static texts in the frontend to translation files
  • Default language is English; user can toggle to Chinese
  • Language preference stored in localStorage (or cookies/session)

Motivation

As the project aims to be internationally usable, adding multilingual support improves user experience and accessibility for non-English speakers.

Related Issues

N/A

Screenshots

image image

Checklist

  • All strings externalized into translation files
  • Tested language switch works properly
  • Fallback to English if translation missing

Hi maintainers 👋

This PR adds i18n support to enable Chinese/English language switching in the frontend.

Could you please help add one of the required labels (e.g. feature or lang-all) so that the label-checker CI can pass? 🙏 Thank you!


该 PR 实现了前端中英文语言切换功能。

CI 校验失败是因为没有打标签(例如 featurelang-all),麻烦协助加一个标签使其通过,非常感谢 🙏

… switching function

(cherry picked from commit b79a3cd6b9dca751bb7189e71f3ad11f167cce5c)
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