Skip to content

feat: add internationalization (i18n) support for Chinese and English#1

Merged
94mashiro merged 5 commits into
94mashiro:mainfrom
zybzzc:main
Aug 15, 2025
Merged

feat: add internationalization (i18n) support for Chinese and English#1
94mashiro merged 5 commits into
94mashiro:mainfrom
zybzzc:main

Conversation

@zybzzc

@zybzzc zybzzc commented Jul 22, 2025

Copy link
Copy Markdown
Contributor
  • Set up VS Code l10n infrastructure with @vscode/l10n-dev
  • Create translation files for English (en-US) and Simplified Chinese (zh-CN)
  • Update package.json with l10n configuration and nls keys
  • Replace all hardcoded strings with vscode.l10n.t() calls across 9 source files
  • Support parameterized translations with {0}, {1} placeholders
  • Maintain VS Code status bar icons in translated strings
  • Auto-detect user language based on VS Code settings
  • Total 87 translatable strings covering UI, errors, tooltips, and status messages

@94mashiro

Copy link
Copy Markdown
Owner

Please resolve conflicts~

zybzzc and others added 3 commits August 15, 2025 13:55
- Set up VS Code l10n infrastructure with @vscode/l10n-dev
- Create translation files for English (en-US) and Simplified Chinese (zh-CN)
- Update package.json with l10n configuration and nls keys
- Replace all hardcoded strings with vscode.l10n.t() calls across 9 source files
- Support parameterized translations with {0}, {1} placeholders
- Maintain VS Code status bar icons in translated strings
- Auto-detect user language based on VS Code settings
- Total 87 translatable strings covering UI, errors, tooltips, and status messages
zybzzc added 2 commits August 15, 2025 14:03
- Add missing translation entries for dual token support
- Complete English and Chinese translations for new features
- Fix code formatting issues from lint
- Regenerate package-lock.json for npm compatibility

This commit completes the integration of upstream features
while maintaining full internationalization support.
- Add missing proxy configuration description translation
- Fix hardcoded error messages in secret service
- Ensure all user-facing text uses i18n system
- Maintain code comments in original language (Chinese)

This commit ensures complete multilingual support for all user-visible content.
@zybzzc

zybzzc commented Aug 15, 2025

Copy link
Copy Markdown
Contributor Author

🎉 Conflicts Resolved Successfully!

I have successfully resolved all conflicts with the main repository and completed the feature integration:

Completed Work

  • Successfully synced upstream - Fetched and integrated 6 new commits from main repo
  • Resolved all conflicts - Used rebase to maintain clean commit history
  • Preserved full functionality - Internationalization support perfectly merged with new features
  • Code quality checks - Passed compilation and lint checks

🆕 Integrated New Features

  • Dual Token Support - API Token (sk- prefix) + JWT Token
  • HTTP Proxy Support - Configurable proxy settings
  • Dependency Updates - undici upgraded to 6.21.3
  • CI/CD Improvements - Node.js version updated to 20
  • Package Management - Migrated from pnpm to npm

🌐 Preserved Internationalization Features

  • Complete English/Chinese Support - All user interface text
  • Configuration Descriptions - Including new proxy configuration
  • Runtime Messages - Error messages, help documentation, etc.
  • New Feature Translations - Complete Chinese support for dual token functionality

📊 Current Status

  • Branch: Fully synced with upstream/main
  • Commit History: Clean linear history (rebase completed)
  • Functionality: Compilation successful, VSIX packaging successful
  • Testing: Successfully installed and tested in Cursor

This PR now contains all upstream new features while fully preserving internationalization capabilities. Ready for merge! 🚀

@94mashiro 94mashiro merged commit 02e0602 into 94mashiro:main Aug 15, 2025
1 check passed
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.

2 participants