macOS 上的英雄联盟客户端有时默认是英文或繁体中文,可以直接改配置文件,把 locale 切到简体中文。
一、修改配置
先打开配置文件:
1 | vim /Applications/League\ of\ Legends.app/Contents/LoL/Config/LeagueClientSettings.yaml |
找到 locale 这一行,把原来的 en_US 或
zh_TW 改成:
1 | locale: zh_CN |
保存退出后重新打开客户端即可。
二、防止被覆盖
如果客户端启动后又把配置改回去了,可以把这个文件设为当前用户不可写:
1 | chmod u-w /Applications/League\ of\ Legends.app/Contents/LoL/Config/LeagueClientSettings.yaml |
这样客户端就不容易自动把 locale 覆盖回去。
三、恢复修改
之后如果需要重新编辑这个文件,先把写权限加回来:
1 | chmod u+w /Applications/League\ of\ Legends.app/Contents/LoL/Config/LeagueClientSettings.yaml |
再重新执行第一步即可。