Feature: Add comprehensive i18n internationalization support for 12 languages #424
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 adds complete internationalization (i18n) support to opcode, enabling users worldwide to use the application in their native language.
Background & Motivation
I noticed that PR #405 introduced Chinese (zh-CN) i18n support, which was a great initiative. However, as opcode grows into a globally-used developer tool (currently 19,600+ stars!), I believe it deserves broader language coverage to serve the international developer community.
I've extended the i18n implementation to support 12 languages with complete translations for all UI components, making opcode truly accessible to developers worldwide.
Relationship to PR #405
This PR builds upon the same i18n architecture concept from #405 but provides significantly expanded coverage:
Recommendation: This PR can either:
Languages Supported
Technical Implementation
Architecture
src/i18n/locales/*.jsonapp_language)Files Changed
src/i18n/index.ts- i18n configuration and initializationsrc/i18n/locales/*.json- 12 language translation filessrc/components/LanguageSelector.tsx- Language switching UI componentuseTranslation()hookComponents Updated
Features
Testing
bun run buildDependencies Added
These are well-maintained, widely-used packages with minimal bundle size impact.
Why This Matters
opcode has become a popular tool for Claude Code users worldwide. By providing comprehensive i18n support, we can:
Checklist
Feature:prefix)🙏 Thank you for considering this contribution. I'm happy to make any adjustments based on feedback from the maintainers.
🤖 This internationalization effort was created to make opcode accessible to developers worldwide.
Pull Request opened by Augment Code with guidance from the PR author