-
Notifications
You must be signed in to change notification settings - Fork 411
FEAT: ADD INTERNATIONALIZATION SUPPORT WITH 6 LANGUAGES (CONFLICTS RESOLVED) #108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add Windows electron-builder configuration (NSIS and portable targets) - Add Windows Node.js binary download support (x64 and ia32) - Create Windows icon (.ico) from PNG with PowerShell script - Update package scripts for Windows builds - Remove Windows platform exclusions from build files - Add AGENTS.md documentation for AI coding agents - Configure npmRebuild and buildDependenciesFromSource flags - Update .gitignore for Windows-specific files and temp directories
- Add react-i18next and i18next dependencies - Implement i18n configuration with automatic locale detection - Add translation files for 6 languages (en, zh-CN, ja, ko, fr, es) - Internationalize all user-facing components - Add language switcher in Settings dialog - Add IPC handlers for locale persistence - Fix translation loading in packaged app using extraResources - Add locale utilities for system language detection
- Add GitHub Actions workflow to build Windows installer with i18n support - Auto-create GitHub Release with NSIS installer - Add download section in README.md for Windows+i18n version - Support 6 languages: zh-CN, en, ja, ko, fr, es
chore(release): bump version to 0.2.4
…in (provider settings) Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
|
PR #108 - Conflicts with upstream/main have been resolved\n\nWe have successfully resolved the merge conflicts between PR #108 and the latest main branch. The key resolutions include:\n\n1. Integrated i18n functionality with new provider settings system from main branch\n2. Maintained all internationalization features (6 languages support)\n3. Preserved Windows build support and other main branch features\n\nThe PR now includes both the internationalization features and all updates from the main branch. Ready for review. |
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
|
Updated PR #108 - New conflicts with upstream/main have been resolved.\n\nWe have successfully resolved the new merge conflicts that appeared after recent changes to upstream/main. The key resolutions include:\n\n1. Updated package.json with latest build scripts and electron-builder configuration\n2. Maintained all internationalization features (6 languages support)\n3. Preserved Windows build support functionality\n4. Kept both i18n and provider settings systems integrated\n\nThe PR now includes all changes from upstream/main plus the complete i18n functionality. Ready for review. |
Summary
Changes
Dependencies
react-i18next@^15.2.1i18next@^24.2.1New Files
apps/desktop/src/renderer/i18n/config.ts- i18n initialization and language switchingapps/desktop/src/main/utils/locale.ts- Main process locale utilities with system language detectionapps/desktop/public/locales/{lang}/translation.json- 6 complete translation files (232 lines each)Modified Files
Home.tsx- Main page with example promptsExecution.tsx- Task execution pageHistory.tsx- Task history pageSettingsDialog.tsx- Settings with language selectorHeader.tsx- Navigation headerSidebar.tsx- Navigation sidebarTaskInputBar.tsx- Task input componentsrc/main/ipc/handlers.tsfor locale persistencesrc/preload/index.tsto expose locale APIsFeatures
Testing
pnpm lint(TypeScript checks pass)Technical Implementation
Translation Loading Strategy
/locales/{lang}/translation.jsonfile:///{resourcesPath}/locales/{lang}/translation.jsonwindow.accomplish?.getResourcesPathAPILocale Detection Flow
app.getLocale()LOCALE_MAPArchitecture
locale:get-initial,locale:set,app:resources-pathNotes
This addresses the issue from PR #32 (Revert internationalization support). The previous implementation was reverted due to translation loading failures in packaged apps. This PR includes comprehensive fixes:
extraResourcesin package.jsonapp:resources-pathhandler to exposeprocess.resourcesPathto rendererI18N_FIX_VERIFICATION.md)Supported Languages
All translations are complete with identical structure.
🤖 Generated with Claude Code