forked from Mintplex-Labs/anything-llm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Init support of i18n and English, Mandarin, Spanish, French (Mintplex…
…-Labs#1317) * Init support of i18n and English and mandarin * Update common.js (Mintplex-Labs#1320) * add General Appearance and Chat setting zh translate (Mintplex-Labs#1414) * add config zh translate (Mintplex-Labs#1461) * patch some translation pages * Update locality fixes * update: complete login page Mandarin translation. (Mintplex-Labs#1709) update: complete Mandarin translation. * complete translation * update github to run validator * bump to test workflow failure * bump to fix tests * update workflow * refactor lang selector support * add Spanish and French * add dictionaries --------- Co-authored-by: GetOffer.help <[email protected]> Co-authored-by: AIR <[email protected]> Co-authored-by: Ezio T <[email protected]>
- Loading branch information
1 parent
ac97cd8
commit 8465aae
Showing
60 changed files
with
2,786 additions
and
412 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# This Github action is for validation of all languages which translations are offered for | ||
# in the locales folder in `frontend/src`. All languages are compared to the EN translation | ||
# schema since that is the fallback language setting. This workflow will run on all PRs that | ||
# modify any files in the translation directory | ||
name: Verify translations files | ||
|
||
concurrency: | ||
group: build-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- "frontend/src/locales/**.js" | ||
|
||
jobs: | ||
run-script: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Run verifyTranslations.mjs script | ||
run: | | ||
cd frontend/src/locales | ||
node verifyTranslations.mjs | ||
- name: Fail job on error | ||
if: failure() | ||
run: exit 1 |
This file contains 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
This file contains 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
This file contains 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
6 changes: 4 additions & 2 deletions
6
frontend/src/components/EmbeddingSelection/NativeEmbeddingOptions/index.jsx
This file contains 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
This file contains 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
Oops, something went wrong.