Skip to content

How do I change git's display language? #4368

Answered by dscho
User670 asked this question in Q&A
Discussion options

You must be logged in to vote

edit: git version 2.33.1.windows.1

You definitely want to update.

Is it possible to change Git for Windows's display language in the console?

This is not supported by Git for Windows out of the box. The translations are built, but they are simply not included in the Git for Windows installer. I zipped them up here: git-2.40.0-l18n.zip (watch out, it's ~3MB)

If you unpack them into your installation (you need to do that in an elevated session, e.g. by pressing 🪟, typing "Git Bash", then pressing Ctrl+Shift+Enter, then invoking cd / && unzip ~/Downloads/git-2.40.0-l18n.zip), you can use them by setting the environment variable LANG:

$ LANG=zh_CN git log -h
用法:git log [<选项>] [<版本范围>] [[-…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@sixwaaaay
Comment options

@dscho
Comment options

Answer selected by User670
Comment options

You must be logged in to vote
3 replies
@dscho
Comment options

@PhilipOakley
Comment options

@goyalyashpal
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants