feat: add internationalization (i18n) support for Chinese and English#1
Merged
Conversation
zybzzc
commented
Jul 22, 2025
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
approved these changes
Jul 22, 2025
Owner
|
Please resolve conflicts~ |
- 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
- 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.
Contributor
Author
🎉 Conflicts Resolved Successfully!I have successfully resolved all conflicts with the main repository and completed the feature integration: ✅ Completed Work
🆕 Integrated New Features
🌐 Preserved Internationalization Features
📊 Current Status
This PR now contains all upstream new features while fully preserving internationalization capabilities. Ready for merge! 🚀 |
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.