Fix/i18n chinese translations#83
Open
BingqingLyu wants to merge 2 commits into
Open
Conversation
- Add Chinese translations for arena, compress, copy, export, hooks, restore, summary commands - Fix missing translation keys: 'Value:', 'No server selected' - Use t() function for internationalization in command files - Update en.js and zh.js with corresponding translation keys
- Add missing t() call for 'Configuration not available' in arena start action
Owner
Author
Conflict Group 1This PR shares modified functions with 1 other PR(s): #96. These PRs should be reviewed as a batch — merging one may affect the others.
graph LR
PR83["PR #83"]
FrestoreAction_9777["restoreAction<br>restoreCommand.ts"]
PR83 -->|modifies| FrestoreAction_9777
PR96["PR #96"]
PR96 -->|modifies| FrestoreAction_9777
Posted by codegraph-ai conflict detection. |
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.
Summary
Fix commands that still show English text after switching to Chinese with
/language ui.Problem
After running
/language ui zhto switch to Chinese UI, several commands still display English text:/arena- Arena session commands/compress- Context compression command/copy- Copy output command/export- Session export command/hooks- Hook management command/restore- Tool call restore command/summary- Project summary commandChanges
1. Added missing translation keys
'Value:'→'Value:'(Chinese:'值:')'No server selected'→'No server selected'(Chinese:'未选择服务器')2. Fixed hardcoded strings
t()function calls in command files3. Added Arena command translations
Test Plan
/language ui zhto switch to Chinese UI/arena startand verify Arena commands show Chinese/compressand verify compression command shows Chinese/copyand verify copy command shows Chinese/export mdand verify export command shows Chinese/hooks listand verify Hooks command shows Chinese/restoreand verify restore command shows Chinese/summaryand verify summary command shows Chinese