jesseduffield / jesseduffield/lazygit
Localize the command-log random tips
- Dominant language
- Go
- Stars
- 82.4k
- Forks
- 3k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 19
Description
## Summary
The command-log random tips are still effectively English-only, even when the UI language is set to zh-CN / zh-TW. The command log header itself is localized, but the tip content shown underneath is not.
## Why this matters
This makes the localized UI feel inconsistent: the surrounding labels are translated, while the random tip text remains in English.
## Proposed direction
I think the tips should be wired into the existing i18n flow so they can follow the selected language, with English as the fallback.
From reading the codebase, the likely fit is to keep English as the source of truth in `pkg/i18n/english.go` and let the generated translation files / Crowdin workflow handle the other locales, rather than hard-coding locale checks in the GUI layer.
## Notes
I can prepare a follow-up patch if you think this is the right direction. I also tested the affected packages locally after making a proof-of-concept change.
Contributor guide
Research direction
Start in pkg/i18n/english.go and trace how command-log random tips are selected and passed to the UI. Review the generated translation files and Crowdin workflow, then run the affected packages; done means the tips follow zh-CN and zh-TW settings while English remains the fallback.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, internationalization
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100