无法在 zsh macOS 中将 lang 设置为 CN,但语言环境良好。单词“total”仍然显示为英文

无法在 zsh macOS 中将 lang 设置为 CN,但语言环境良好。单词“total”仍然显示为英文

~/.zshrc

export LANG="zh_CN.UTF-8"
export LANGUAGE="zh_CN.UTF-8"
export LC_COLLATE="zh_CN.UTF-8"
export LC_CTYPE="zh_CN.UTF-8"
export LC_MESSAGES="zh_CN.UTF-8"
export LC_MONETARY="zh_CN.UTF-8"
export LC_NUMERIC="zh_CN.UTF-8"
export LC_TIME="zh_CN.UTF-8"
export LC_ALL="zh_CN.UTF-8"

终端

$ locale  
LANG="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_CTYPE="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_ALL="zh_CN.UTF-8"

$ locale -a                                                         
en_NZ
nl_NL.UTF-8
pt_BR.UTF-8
fr_CH.ISO8859-15
eu_ES.ISO8859-15
en_US.US-ASCII
af_ZA
bg_BG
cs_CZ.UTF-8
fi_FI
**zh_CN.UTF-8**
eu_ES
sk_SK.ISO8859-2
...

外观

$ ll                                                                     
total 69760
drwx------@   9 groovewjh  staff             288B  2 24 13:25 Applications
drwxr-xr-x@   4 groovewjh  _analyticsusers   128B  2  9 13:08 Applications (Parallels)
...

但“全部的”应为中文单词,将没有任何功能的提示符改为中文。

我不太了解这背后的机制,在中文社区里也没有找到这个问题的答案,希望在这里能找到答案。

我试图将这些代码设置为〜/ .zprofile,但仍然不起作用。

export LANG="zh_CN.UTF-8"
export LANGUAGE="zh_CN.UTF-8"
export LC_COLLATE="zh_CN.UTF-8"
export LC_CTYPE="zh_CN.UTF-8"
export LC_MESSAGES="zh_CN.UTF-8"
export LC_MONETARY="zh_CN.UTF-8"
export LC_NUMERIC="zh_CN.UTF-8"
export LC_TIME="zh_CN.UTF-8"
export LC_ALL="zh_CN.UTF-8"

相关内容