Skip to content

feat: add internationalization (i18n) support#109

Open
domcyrus wants to merge 2 commits intomainfrom
feat/i18n
Open

feat: add internationalization (i18n) support#109
domcyrus wants to merge 2 commits intomainfrom
feat/i18n

Conversation

@domcyrus
Copy link
Owner

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant