WSL也需要安装语言包,不然像nano这样的还是没中文

This commit is contained in:
TheWhiteDog9487
2025-12-03 21:52:17 +08:00
parent 3f8daf2607
commit 85b148f463
+1
View File
@@ -102,6 +102,7 @@ auto check() {
auto WSL(){
cout << "开始更新语言配置" << endl;
system("apt install -y language-pack-zh-hans");
system("update-locale LANG=zh_CN.UTF-8");
cout << "语言配置更新完成" << endl;
cout << "更新语言配置需要重启WSL,要现在重启吗?" << endl;