feat(i18n): add Vietnamese translations for docs and WebUI#451
Open
thanhnn91qn-afk wants to merge 1 commit intoCJackHwang:mainfrom
Open
feat(i18n): add Vietnamese translations for docs and WebUI#451thanhnn91qn-afk wants to merge 1 commit intoCJackHwang:mainfrom
thanhnn91qn-afk wants to merge 1 commit intoCJackHwang:mainfrom
Conversation
- Add full Vietnamese README (README.vi.md) and link from README.MD / README.en.md - Add docs/README.vi.md and docs/DEPLOY.vi.md (concise local-first deployment guide) - Translate config.example.json and .env.example comments to Vietnamese - Add WebUI vi.json locale (489 keys, 1:1 with zh.json) and "vietnamese" label in en/zh - Set Vietnamese as default language in webui/src/i18n.jsx with safe en fallback - Update LanguageToggle.jsx to cycle VI -> EN -> ZH - Extend .gitignore to ignore *.exe, .env.*.production, run.bat and nested clones Co-authored-by: Cursor <cursoragent@cursor.com>
|
@thanhnn91qn-afk is attempting to deploy a commit to the cjack's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary / Tóm tắt
Add Vietnamese (
vi) language support across user-facing surfaces so DS2API is friendlier to Vietnamese developers.Bổ sung hỗ trợ tiếng Việt (
vi) cho các bề mặt hướng người dùng để DS2API thân thiện hơn với lập trình viên Việt Nam.What's new / Có gì mới
README.vi.md– full Vietnamese mirror ofREADME.MDdocs/README.vi.md– Vietnamese docs indexdocs/DEPLOY.vi.md– concise local-first deployment guide in VietnameseREADME.MD,README.en.md,docs/README.md,docs/DEPLOY.md,docs/DEPLOY.en.mdso users can switch languagesconfig.example.jsonand.env.exampleto Vietnamese (no key/value structure changes)webui/src/locales/vi.json– 1:1 withzh.json(489 keys)webui/src/i18n.jsxnow exposesviand falls back safely (vi → en→ original key)LanguageToggle.jsxcyclesVI → EN → ZHlanguage.vietnameselabel to existingen.jsonandzh.json.gitignoreextended to ignore*.exe,.env.*.production,run.batand accidental nested clones (no behavior change to authors' workflow)Notes for reviewer / Ghi chú cho người review
zhas a fallback for users who have explicitly chosen Chinese in theirlocalStorage. The default for new visitors whose browser is notvi/zh/enisvi; you can flip the constantDEFAULT_LANGinwebui/src/i18n.jsxif you'd rather keepzhas the global default.internal/,api/,cmd/) was touched – translations are limited to docs, config templates and the WebUI locale layer.npm run build --prefix webuisucceeds locally (1774 modules transformed); admin assets continue to ship fromstatic/admin/.How to test / Cách kiểm thử
Happy to adjust the default language behavior, copy or scope per maintainer preference.
Sẵn lòng điều chỉnh ngôn ngữ mặc định, văn phong hoặc phạm vi theo ý của tác giả.