wordpress 主题语言包的安装

新建一个wordpress网站,语言设置成了英文。想修改成中文,后台用户,语言修改后为中文后,发现网站的前台还是英文。因为缺少主题的中文语言包。通过 wpcli 安装了一个中文语言包,就可以解决。

wp language   theme  install donovan zh_CN
Downloading translation from https://downloads.wordpress.org/translation/theme/donovan/1.8.4/zh_CN.zip...
Unpacking the update...
Installing the latest version...
Removing the old version of the translation...
Translation updated successfully.
Language 'zh_CN' installed.