Skip to content

Fix/i18n chinese translations#83

Open
BingqingLyu wants to merge 2 commits into
mainfrom
fork-pr-2993-fix-i18n-chinese-translations
Open

Fix/i18n chinese translations#83
BingqingLyu wants to merge 2 commits into
mainfrom
fork-pr-2993-fix-i18n-chinese-translations

Conversation

@BingqingLyu

@BingqingLyu BingqingLyu commented Apr 27, 2026

Copy link
Copy Markdown
Owner

Summary

Fix commands that still show English text after switching to Chinese with /language ui.

Problem

After running /language ui zh to 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 command

Changes

1. Added missing translation keys

  • 'Value:''Value:' (Chinese: '值:')
  • 'No server selected''No server selected' (Chinese: '未选择服务器')

2. Fixed hardcoded strings

  • Replaced hardcoded English strings with t() function calls in command files
  • Ensured all user-visible strings go through internationalization

3. Added Arena command translations

  • Arena usage, options, and examples
  • Error messages (session not found, non-interactive mode not supported, etc.)
  • Confirmation prompts (discard results, cleanup worktrees)

Test Plan

  • Run /language ui zh to switch to Chinese UI
  • Run /arena start and verify Arena commands show Chinese
  • Run /compress and verify compression command shows Chinese
  • Run /copy and verify copy command shows Chinese
  • Run /export md and verify export command shows Chinese
  • Run /hooks list and verify Hooks command shows Chinese
  • Run /restore and verify restore command shows Chinese
  • Run /summary and verify summary command shows Chinese

- 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
@BingqingLyu BingqingLyu added conflicting-group-1 conflicting-group-1 Conflicting PR group 1 — review as a batch conflicting-pr Shares at least one cross-PR dependency with other PRs and removed conflicting-group-1 labels May 7, 2026
@BingqingLyu

BingqingLyu commented May 7, 2026

Copy link
Copy Markdown
Owner Author

Conflict Group 1

This PR shares modified functions with 1 other PR(s): #96.

These PRs should be reviewed as a batch — merging one may affect the others.

Function File Also modified by
restoreAction restoreCommand.ts #96
graph LR
    PR83["PR #83"]
    FrestoreAction_9777["restoreAction<br>restoreCommand.ts"]
    PR83 -->|modifies| FrestoreAction_9777
    PR96["PR #96"]
    PR96 -->|modifies| FrestoreAction_9777
Loading

Posted by codegraph-ai conflict detection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicting-group-1 Conflicting PR group 1 — review as a batch conflicting-pr Shares at least one cross-PR dependency with other PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants