mirror of
https://oauth2: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@github.com/m1ngsama/robot_arm.git
synced 2026-05-10 19:11:04 +08:00
feat(i18n): English-first codebase — translate all non-i18n strings in voice_main.py
All code comments, docstrings, and log messages translated to English.
Chinese strings are preserved ONLY where they are legitimate i18n data:
Kept (user-facing language data):
- self.system_prompt: LLM fine-tuning system prompt (must match training data)
- initial_prompt: Whisper domain hint vocabulary
- _fix_recognition.replacements: homophone correction table
- All regex patterns in _try_simple_parse / _fallback_parse (they match
actual spoken Chinese commands — this IS the i18n layer)
Translated to English:
- All print() log messages
- All inline comments and docstrings
- Class/section header comments
Part of #5. No functional changes.
This commit is contained in:
parent
a7209c4f78
commit
bc48f564f9
1 changed files with 324 additions and 435 deletions
509
voice_main.py
509
voice_main.py
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue