Fixed inconsistent key references throughout the codebase where getMessage()
calls were using legacy keys without "Label", "Button", "Status" suffixes
while messages.json files contained the correct keys with these suffixes.
Changes:
- App.vue: Fixed 50+ getMessage() calls to use correct keys
- ConfirmDialog.vue: Fixed button text keys
- ModelCacheManagement.vue: Fixed cache management UI keys
- bookmark.ts: Fixed bookmarksBarLabel key reference
- Replaced hardcoded Chinese strings with proper i18n calls
This ensures the i18n system works correctly with both Chrome's i18n API
and the fallback system, displaying proper localized text in all languages.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add comprehensive English and Chinese (zh_CN) locale files
- Create safe i18n utility with fallback messages
- Replace all hardcoded text with getMessage() calls
- Set Chinese as default locale to preserve existing user experience
- Fix Chrome manifest validation by removing underscore-prefixed keys
- Support 180+ localized strings with proper categorization
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Translated all Chinese comments in app/chrome-extension/utils/ to English
- Removed redundant comments that were obvious from the code
- Preserved valuable technical explanations and complex logic comments
- Improved code internationalization and readability
Files modified:
- content-indexer.ts: Translated database cleanup and initialization comments
- semantic-similarity-engine.ts: Translated model comparison, memory pool, and SIMD comments
- simd-math-engine.ts: Translated SIMD optimization and browser detection comments
- vector-database.ts: Translated vector operations, database management, and cleanup comments
- image-utils.ts: Removed redundant whitespace and obvious comments