Release v0.8.0
Internationalization - Full i18n Support
This release adds comprehensive internationalization (i18n) support with Chinese and English languages, covering all UI elements, error messages, CLI help text, and command outputs.
Added
Multi-language Support
- Integrated
rust-i18nandsys-localecrates for runtime language detection and translation - Added complete translation files (
locales/en.yml,locales/zh-CN.yml) with 399 translation keys - New
ui.languageconfiguration option to set preferred language - Environment variable
GCOP_UI_LANGUAGEfor language override (highest priority) - Automatic system locale detection as fallback
Localized CLI Help Text
- All CLI help text (commands, arguments, descriptions) now supports runtime localization
- Uses clap derive + runtime override pattern for type-safe i18n help
gcop-rs --helpdisplays in the configured language
Localized Error Messages
- All error messages and suggestions now support localization via
localized_message()andlocalized_suggestion()methods - Covers Git errors, API errors, configuration errors, and more
Changed
UI and Command Modules Refactored
- All hardcoded strings in command modules (alias, commit, config, init, review, stats) replaced with translation keys
- UI components (colors, prompt, spinner, streaming) updated to use localized text
- LLM provider messages and Git repository messages localized
OutputFormat Now Implements FromStr Trait
- Replaced custom
from_strmethod with standardstd::str::FromStrimplementation - Cleaner API: supports
"json".parse::<OutputFormat>()pattern
Upgrade
bash
# Homebrew
brew upgrade gcop-rs
# Cargo
cargo install gcop-rs
# pip
pip install --upgrade gcop-rs