Feature request: i18n support for the top 10 most-spoken languages
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
## Summary
Add internationalization (i18n) support to GitHub Copilot CLI so the UI (menus, prompts, status messages, errors, help text) can be displayed in the user''s preferred language. As a first milestone, ship localizations for the **top 10 most-spoken languages in the world**.
## Motivation
Today the Copilot CLI interface is English-only. Developers whose first language is not English have to mentally translate every prompt, status line, and error message, which adds friction and lowers adoption in large developer communities outside the English-speaking world.
Localizing the UI would:
- Lower the barrier to entry for millions of developers globally.
- Improve readability and reduce cognitive load when scanning status output, prompts, and errors.
- Align Copilot CLI with other GitHub products that already offer localized experiences.
## Proposed Solution
1. Introduce an i18n layer (message catalogs / JSON or `.po` locale files) for all user-facing strings.
2. Detect the user''s locale from environment variables (`LANG`, `LC_ALL`) and/or an explicit config option:
- CLI flag: `copilot --lang zh-CN`
- Config: `language: zh-CN` in the user config file
3. Ship the **top 10 most-spoken languages** (by total number of speakers) as the initial set of locales, with English as the fallback:
1. English (`en`)
2. Mandarin Chinese (`zh-CN`)
3. Hindi (`hi`)
4. Spanish (`es`)
5. Modern Standard Arabic (`ar`)
6. French (`fr`)
7. Bengali (`bn`)
8. Portuguese (`pt`)
9. Russian (`ru`)
10. Urdu (`ur`)
4. Open the translation files to community contributions so additional languages (zh-TW, ja, ko, de, id, vi, …) can be added over time.
## Scope
- **In scope:** static UI strings — prompts, menus, buttons, status indicators, spinners, error messages, `--help` text, onboarding flows.
- **Out of scope:** LLM-generated content (model responses). That is already controlled by the user''s prompt language.
## Alternatives Considered
- Asking the assistant to reply in another language works for chat responses, but the surrounding CLI chrome (menus, prompts, errors, help) stays English — an inconsistent and confusing experience.
## Additional Context
Happy to help contribute the initial zh-CN translation once the i18n infrastructure is in place, and to help coordinate community translators for the other 9 languages.
Hướng dẫn đóng góp
Hướng nghiên cứu
Không có tệp repository, bài kiểm thử hoặc điểm vào nào được nêu. Hãy bắt đầu bằng cách xác định các chuỗi hướng tới người dùng của CLI, phần xử lý cấu hình và đầu ra trợ giúp, sau đó đánh giá cách LANG, LC_ALL, --lang và tùy chọn cấu hình ngôn ngữ có thể kết nối với các tệp locale. Được xem là hoàn tất khi văn bản UI tĩnh hỗ trợ mười locale được liệt kê với cơ chế fallback sang tiếng Anh, còn các phản hồi do mô hình tạo ra nằm ngoài phạm vi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- shell
- Lĩnh vực
- cli, internationalization
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100