更新,换语言命令

This commit is contained in:
lsy 2024-07-27 15:38:41 +08:00
parent ea32cccd3b
commit 551816de35

View File

@ -31,6 +31,7 @@ case "$pick" in
echo "暂不支持该系统一键更换语言" echo "暂不支持该系统一键更换语言"
exit exit
fi fi
sudo sed -i '/^#/! s/^/# /' /etc/locale.gen
case $lang in case $lang in
'1') '1')
sudo sed -i 's/.*zh_CN.UTF-8.*/zh_CN.UTF-8 UTF-8/g' /etc/locale.gen sudo sed -i 's/.*zh_CN.UTF-8.*/zh_CN.UTF-8 UTF-8/g' /etc/locale.gen