feat: add Spanish localization and language-aware prompts - #728
Conversation
2680bc8 to
34dec71
Compare
|
Rebased this PR onto the current Validation after the rebase: 369 Web Node tests passed, TypeScript passed, 3,560 Python tests passed (7 skipped), Ruff passed, and all project pre-commit hooks passed on the changed files. |
50a812e to
a7cfea4
Compare
|
I am waiting for your changes to be integrated into main. I have done a German language translation with every text on an older version of DeepTutor. I I'll wait until #728 lands and then move my translation over to the architecture and code that is prepared here. |
|
Hi @Dragost — I noticed that GitHub currently marks this PR as conflicting with the latest dev branch. I’m working on zh-TW support that would build on the language registries introduced here, so I’d be happy to help with the rebase conflicts if that would be useful. I can reproduce the rebase against the current HKUDS/dev, run the relevant Web and backend i18n tests, and provide either a cherry-pickable commit or a PR to your fork—whichever you prefer. I won’t make changes until you confirm, to avoid duplicating work if you’re already handling it. |
5cdf88e to
e29d74f
Compare
|
Thanks, @Christian-B-Koller, and thank you as well, @ting-hong-shieh, for offering to help. I’ve now rebased #728 onto the latest We’re currently waiting for a maintainer to review it and authorize the fork workflow. Once merged, the language registries and the separation between interface and model-response languages should provide a clean base for both the German and zh-TW translations. Thanks again to both of you for your work and willingness to contribute! |
e29d74f to
5311f06
Compare
|
Update: this PR has now been rebased onto current The Current validation: 62 targeted backend tests passed, 455 Web Node tests passed, all pre-commit hooks pass on the 45 PR files, ESLint reports 0 errors, the Next.js production build and TypeScript pass, and i18n key/placeholder parity is clean. The history remains split into the original three focused commits. Ready for maintainer review. Thanks again to everyone coordinating downstream locale work around this foundation. |
|
Thank you very much @Dragost for your work, I am looking forward to the approval of the maintainer. |
Description
Adds Spanish (Spain) as a first-class DeepTutor locale across the backend, web interface, and model-facing prompts.
es/es-ESto the language selector and a complete Spanish UI catalog.Related work
Includes the UI/model language separation proposed in #758, adapted to this Spanish-localization branch. The corresponding commit retains its author as co-author.
Module(s) Affected
Checklist
Validation
pre-commit run --all-fileswas also checked: every hook except Prettier passed; Prettier only attempted to reformat 41 files already present on the base branch and not touched by this PR. No unrelated formatting changes were included.git diff --checkpassed.Additional Notes
The branch is rebased onto current
devcommit96d6df9e(v1.5.13), is conflict-free, and GitHub reports it as mergeable. The Spanish catalog now covers the latest upstream starter suggestions, Tencent IMA, GraphRAG compatibility, and book generation/reading flows.The three commits intentionally separate backend locale infrastructure, the web locale/catalog, and response-language propagation through model prompts. The rebase preserves the expanded upstream book-language selector while keeping interface language and model response language independently configurable. The Spanish catalog uses Spain-specific terminology and a consistent informal tú voice.