Fabric
Fabric copied to clipboard
[Feature request]: [i18n] Add multilingual support for CLI tool
What do you need?
Problem Statement
Non-English users face friction due to:
- Inability to understand command help/errors without translation tools
- Misaligned text rendering in CJK terminals
- No adherence to
LC_ALLenvironment variables
Proposed Solution
-
Core Features
--langflag with auto-detection (fallback to English)- Translated content for:
- Command help texts
- Interactive prompts
- Error messages with solution links
-
Priority Languages
Phase 1: Simplified Chinese (zh_CN) Phase 2: Spanish (es_ES), Japanese (ja_JP) Phase 3: Community-driven translations -
Requirements
- [ ] All terminal output goes through i18n layer
- [ ] Support width-aware text formatting for CJK
- [ ] Add
localeconfiguration to user profiles - [ ] Document translation contribution process
Acceptance Criteria
Scenario: Non-English command execution
Given the system language is zh_CN
When user runs `mycli deploy --help`
Then output shows Chinese help text
And text columns maintain terminal alignment
Measurement
- 90% reduction in
--help > translatesearches (via user analytics) - 40% decrease in misconfigured command errors