feat(i18n): add English/Chinese language toggle with full UI translation#400
Closed
koyouko wants to merge 2 commits into666ghj:mainfrom
Closed
feat(i18n): add English/Chinese language toggle with full UI translation#400koyouko wants to merge 2 commits into666ghj:mainfrom
koyouko wants to merge 2 commits into666ghj:mainfrom
Conversation
Implements a lightweight reactive i18n system without external libraries. English is now the default language; users can switch to Chinese via the EN/中 toggle button in the navbar, with preference persisted to localStorage. Co-Authored-By: koyouko <koyouko@users.noreply.github.com> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… Copilot) Replaces the single-provider LLM client with a unified 5-provider client. Adds thread-safety improvements to simulation_runner from upstream PR 666ghj#389, GitHub Copilot OAuth token support from upstream PR 666ghj#383, and translates all backend Python modules to English. Providers supported: Anthropic (Claude), OpenAI, GitHub Copilot (OAuth), Ollama (local), and the original MiniMax/GLM default. Co-Authored-By: koyouko <koyouko@users.noreply.github.com> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Owner
|
The project already has i18n support in place — please refer to [PR #428] for reference. |
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
This PR combines two major improvements:
1. Multi-Provider LLM Backend
New Files
backend/app/utils/copilot_auth.pyModified Files
backend/app/utils/llm_client.pyestimate_tokens()andchat_with_tools()backend/app/config.pybackend/app/services/simulation_runner.pybackend/app/services/oasis_profile_generator.pybackend/app/services/simulation_config_generator.pybackend/app/__init__.pybackend/app/api/__init__.py.env.examplebackend/requirements.txt/pyproject.tomlSupported Providers
2. Frontend i18n (English/Chinese Toggle)
New Files
frontend/src/store/locale.jsfrontend/src/i18n/index.jsfrontend/src/i18n/useT.jsAll 15 Vue files translated
Views:
Home.vue,MainView.vue,SimulationView.vue,SimulationRunView.vue,ReportView.vue,InteractionView.vue,Process.vueStep components:
Step1GraphBuild.vue,Step2EnvSetup.vue,Step3Simulation.vue,Step4Report.vue,Step5Interaction.vueOther:
GraphPanel.vue,HistoryDatabase.vueTest Plan
LLM_PROVIDER=anthropicroutes to Claude API correctly