[PR #1317] [MERGED] Init support of i18n and English, Mandarin, Spanish, French #3650

Closed
opened 2026-02-22 18:34:13 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/1317
Author: @timothycarambat
Created: 5/8/2024
Status: Merged
Merged: 6/19/2024
Merged by: @timothycarambat

Base: masterHead: i18n-en-zh-support


📝 Commits (10+)

  • 2eea98d Init support of i18n and English and mandarin
  • 47875e7 Update common.js (#1320)
  • 0b94108 add General Appearance and Chat setting zh translate (#1414)
  • 0cd1592 add config zh translate (#1461)
  • 5f33a15 rebase with master
  • 50fc3d8 patch some translation pages
  • f4ced58 Update locality fixes
  • 2551743 Merge branch 'master' into i18n-en-zh-support
  • 2e9875c merge with master
  • 0e88611 Merge branch 'master' into i18n-en-zh-support

📊 Changes

60 files changed (+2786 additions, -412 deletions)

View changed files

.github/workflows/check-translations.yaml (+37 -0)
📝 frontend/package.json (+4 -1)
📝 frontend/src/App.jsx (+108 -102)
📝 frontend/src/components/EditingChatBubble/index.jsx (+3 -1)
📝 frontend/src/components/EmbeddingSelection/NativeEmbeddingOptions/index.jsx (+4 -2)
📝 frontend/src/components/Modals/Password/MultiUserAuth.jsx (+12 -6)
📝 frontend/src/components/Modals/Password/SingleUserAuth.jsx (+5 -2)
📝 frontend/src/components/SettingsSidebar/index.jsx (+23 -21)
📝 frontend/src/components/TranscriptionSelection/NativeTranscriptionOptions/index.jsx (+14 -15)
📝 frontend/src/components/UserMenu/AccountModal/index.jsx (+36 -0)
📝 frontend/src/components/VectorDBSelection/LanceDBOptions/index.jsx (+3 -1)
frontend/src/hooks/useLanguageOptions.js (+20 -0)
frontend/src/i18n.js (+21 -0)
frontend/src/locales/en/common.js (+448 -0)
frontend/src/locales/es/common.js (+440 -0)
frontend/src/locales/fr/common.js (+456 -0)
frontend/src/locales/resources.js (+32 -0)
frontend/src/locales/verifyTranslations.mjs (+96 -0)
frontend/src/locales/zh/common.js (+424 -0)
📝 frontend/src/pages/Admin/Logging/index.jsx (+11 -9)

...and 40 more files

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #1304

What is in this change?

implements a framework for i18n translation support
Added support for English
Partial support for simplified Mandarin.
Partial support for simplified Spanish.
Partial support for simplified French.
Github Workflow validation to validate lang schemas
yarn verify:translations to validate translation files automatically via test.

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/1317 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 5/8/2024 **Status:** ✅ Merged **Merged:** 6/19/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `i18n-en-zh-support` --- ### 📝 Commits (10+) - [`2eea98d`](https://github.com/Mintplex-Labs/anything-llm/commit/2eea98de5cee1edc346787f01972456c778755af) Init support of i18n and English and mandarin - [`47875e7`](https://github.com/Mintplex-Labs/anything-llm/commit/47875e731d8186035ed6adac1b5e42fe3db66374) Update common.js (#1320) - [`0b94108`](https://github.com/Mintplex-Labs/anything-llm/commit/0b94108ca4afaaf5752d273acb7517b76098aa7f) add General Appearance and Chat setting zh translate (#1414) - [`0cd1592`](https://github.com/Mintplex-Labs/anything-llm/commit/0cd1592cd9989ed3a031ac40310f6b4baa695667) add config zh translate (#1461) - [`5f33a15`](https://github.com/Mintplex-Labs/anything-llm/commit/5f33a15b1120ef7eb6d89f09021f277c02c9e851) rebase with master - [`50fc3d8`](https://github.com/Mintplex-Labs/anything-llm/commit/50fc3d85f6946ce2bb1af575b44bfa6a6ad7c0a9) patch some translation pages - [`f4ced58`](https://github.com/Mintplex-Labs/anything-llm/commit/f4ced58af3b1f36a92a9c1cf754571129d0d4193) Update locality fixes - [`2551743`](https://github.com/Mintplex-Labs/anything-llm/commit/2551743c1da635277b883c9eab7bed75b9977af4) Merge branch 'master' into i18n-en-zh-support - [`2e9875c`](https://github.com/Mintplex-Labs/anything-llm/commit/2e9875c50104415dbbc47bdb55de21ead82ee691) merge with master - [`0e88611`](https://github.com/Mintplex-Labs/anything-llm/commit/0e88611ab1a05d818e6a70070f6e8b4f807ed244) Merge branch 'master' into i18n-en-zh-support ### 📊 Changes **60 files changed** (+2786 additions, -412 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/check-translations.yaml` (+37 -0) 📝 `frontend/package.json` (+4 -1) 📝 `frontend/src/App.jsx` (+108 -102) 📝 `frontend/src/components/EditingChatBubble/index.jsx` (+3 -1) 📝 `frontend/src/components/EmbeddingSelection/NativeEmbeddingOptions/index.jsx` (+4 -2) 📝 `frontend/src/components/Modals/Password/MultiUserAuth.jsx` (+12 -6) 📝 `frontend/src/components/Modals/Password/SingleUserAuth.jsx` (+5 -2) 📝 `frontend/src/components/SettingsSidebar/index.jsx` (+23 -21) 📝 `frontend/src/components/TranscriptionSelection/NativeTranscriptionOptions/index.jsx` (+14 -15) 📝 `frontend/src/components/UserMenu/AccountModal/index.jsx` (+36 -0) 📝 `frontend/src/components/VectorDBSelection/LanceDBOptions/index.jsx` (+3 -1) ➕ `frontend/src/hooks/useLanguageOptions.js` (+20 -0) ➕ `frontend/src/i18n.js` (+21 -0) ➕ `frontend/src/locales/en/common.js` (+448 -0) ➕ `frontend/src/locales/es/common.js` (+440 -0) ➕ `frontend/src/locales/fr/common.js` (+456 -0) ➕ `frontend/src/locales/resources.js` (+32 -0) ➕ `frontend/src/locales/verifyTranslations.mjs` (+96 -0) ➕ `frontend/src/locales/zh/common.js` (+424 -0) 📝 `frontend/src/pages/Admin/Logging/index.jsx` (+11 -9) _...and 40 more files_ </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #1304 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> implements a framework for `i18n` translation support Added support for English Partial support for simplified Mandarin. Partial support for simplified Spanish. Partial support for simplified French. Github Workflow validation to validate lang schemas `yarn verify:translations` to validate translation files automatically via test. ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:34:13 -05:00
yindo closed this issue 2026-02-22 18:34:13 -05:00
yindo changed title from [PR #1317] Init support of i18n and English, Mandarin, Spanish, French to [PR #1317] [MERGED] Init support of i18n and English, Mandarin, Spanish, French 2026-06-05 15:14:31 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3650