Skip to content

Implement i18n Support (ZH/EN)#1

Merged
CadanHu merged 3 commits intomasterfrom
feature/i18n-support-9779802794899359870
Apr 9, 2026
Merged

Implement i18n Support (ZH/EN)#1
CadanHu merged 3 commits intomasterfrom
feature/i18n-support-9779802794899359870

Conversation

@CadanHu
Copy link
Copy Markdown
Owner

@CadanHu CadanHu commented Apr 9, 2026

I have implemented a comprehensive internationalization (i18n) system for OpenAutoGrowth, allowing users to switch between Chinese and English.

Key changes include:

  1. New i18n Core: Created src/i18n/index.js which manages language state, provides translation functions, and handles UI updates.
  2. Locale Definitions: Added src/i18n/locales/en.js and src/i18n/locales/zh.js containing all UI strings.
  3. UI Integration:
    • Updated index.html with data-i18n attributes for all static text.
    • Added a premium-styled language switcher in the navigation bar.
    • Modified main.js to initialize i18n and handle language-specific dynamic updates (logs, status badges, button states).
  4. Style Enhancements: Added CSS for the language switcher with active state highlighting.
  5. Robust Dynamic Handling: Implemented logic to ensure campaign status badges and other dynamic elements remain correctly translated even when the language is switched mid-cycle.

This feature enhances accessibility for a global audience while maintaining the system's high-performance, multi-agent feel.


PR created automatically by Jules for task 9779802794899359870 started by @CadanHu

…hinese

- Added i18n infrastructure in src/i18n/
- Created English and Chinese locale files
- Integrated i18n into index.html, main.js, and style.css
- Added a language switcher in the navbar
- Ensured dynamic UI elements like logs and status badges are translatable
- Fixed placeholder translation logic
- Persisted language preference in localStorage

Co-authored-by: CadanHu <39733381+CadanHu@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules bot and others added 2 commits April 9, 2026 09:41
Frontend:
- Implemented i18n infrastructure for Chinese and English.
- Added premium language switcher to navbar.
- Updated DashboardController to handle language changes and dynamic log translation.

Backend:
- Added configuration for Gemini, Qwen, DeepSeek, and Zhipu AI providers.
- Implemented a generic LLMClient in backend/app/core/llm.py.
- Updated ContentGen and Planner agents to use the new LLMClient.
- Ensured Gemini support via specialized OpenAI-compatible routing.

Co-authored-by: CadanHu <39733381+CadanHu@users.noreply.github.com>
- Added a custom internationalization (i18n) system with English and Chinese support.
- Refactored frontend into a modular, component-based architecture (Navbar, ActivityLog, AgentCard, AgentPanorama).
- Integrated language switcher in the navbar with localStorage persistence.
- Updated backend to support multiple LLM providers (Anthropic, Gemini, DeepSeek, Qwen, Zhipu AI).
- Implemented robust JSON cleaning for agent outputs.
- Fixed Gemini API URL construction.
- Verified changes with Playwright automated tests.

Co-authored-by: CadanHu <39733381+CadanHu@users.noreply.github.com>
@CadanHu CadanHu merged commit 2824b48 into master Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant