Commit 092c53f
committed
feat: add internationalization (i18n) support
Add multi-language support using rust-i18n with 6 locales:
- English (en) - source of truth
- Spanish (es)
- German (de)
- French (fr)
- Chinese (zh)
- Russian (ru)
Features:
- Automatic system locale detection via sys-locale
- Manual override via --lang flag or RUSTNET_LANG env var
- Translated CLI help text, UI labels, error messages
- CI check to ensure all translation keys are consistent
The locale is detected before CLI parsing so that --help output
is displayed in the user's language.1 parent a481214 commit 092c53f
19 files changed
Lines changed: 2025 additions & 242 deletions
File tree
- .github/workflows
- assets/locales
- scripts
- src
- network
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| 41 | + | |
| 42 | + | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
0 commit comments