Add multi-language (i18n) support and fix UTF-8 base64 decoding bug in claude-trace#14
Open
yician0629 wants to merge 9 commits intobadlogic:mainfrom
Open
Add multi-language (i18n) support and fix UTF-8 base64 decoding bug in claude-trace#14yician0629 wants to merge 9 commits intobadlogic:mainfrom
yician0629 wants to merge 9 commits intobadlogic:mainfrom
Conversation
Co-authored-by: yician0629 <212482781+yician0629@users.noreply.github.com>
Co-authored-by: yician0629 <212482781+yician0629@users.noreply.github.com>
Co-authored-by: yician0629 <212482781+yician0629@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Added full CLI and error translations for Traditional Chinese (zh-TW) and Simplified Chinese (zh-CN) - Updated i18n system to detect and support zh-TW and zh-CN via environment variable or system locale - Updated documentation and usage examples to include both Chinese variants - Extended test suite to verify correct switching and translation for zh-TW and zh-CN - Ensured 100% translation coverage and type safety for all supported languages
The atob() function returns a binary string that wasn't being properly decoded as UTF-8, causing non-ASCII characters (Chinese, Japanese, etc.) to display incorrectly. Added a base64ToUtf8 function that uses TextDecoder to properly handle UTF-8 encoded text.
Implement multilingual support (i18n) for claude-trace CLI with quality validation. The UTF-8 character encoding fix for the HTML log viewer.
|
For now, I think it would be enough to just add this part. :-) |
Owner
|
lgtm, could you resolve the conflicts? happy to 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.
This pull request includes the following major updates:
1. Internationalization (i18n) Support
2. Bug Fix: UTF-8 Base64 Decoding in Frontend
3. Additional Improvements
These changes improve internationalization, code quality, and robustness for all users.
#7