Translate English Tutorial to Chinese

Translate the English tutorial to Chinese (Simplified): $ARGUMENTS

Phase 1: Read the English Tutorial

  1. Read the English tutorial at docs/$ARGUMENTS

If the file doesn’t exist, report the error and stop.

Phase 2: Check for Existing Chinese Translation

Check if a Chinese translation already exists at docs/zh/$ARGUMENTS

Phase 3: Translate to Chinese

Create the Chinese translation following these guidelines:

Translation Rules

Keep in English (do not translate):

Translate to Chinese:

Language Guidelines

Tone and Style:

Common Technical Translations:

Formatting Requirements

  1. Home Link - Change to [首页](./zh/) at the top
  2. Preserve structure - Keep the same sections and order as English
  3. Code blocks - Copy exactly, do not translate
  4. Bold/backtick formatting - Preserve all formatting
  5. Links - Keep URLs unchanged, translate link text if appropriate
  6. Punctuation - Use Chinese punctuation marks (。,!?:;””’‘)

Phase 4: Create the Chinese File

  1. Create the docs/zh/ directory if it doesn’t exist
  2. Save the translation to docs/zh/$ARGUMENTS
  3. Update the creation credit at the bottom (keep author name, translate surrounding text):

Phase 5: Quality Review

Review the translation for:

Phase 6: Report

Present to the user:

  1. Translation completed - Confirm file location
  2. Key decisions made - Any translation choices worth noting
  3. Recommendations - Suggestions for improvement if any

Notes