woocommerce 的语言设置成中文
今天安装了 woocommerce 插件,安装后后台是英文。因为网站是中文,所有需要使用woocommerce的中文语言包。
使用 wpcli 进行操作 (一行命令搞定)
wp language plugin install woocommerce zh_CN
Downloading translation from https://downloads.wordpress.org/translation/plugin/woocommerce/5.9.0/zh_CN.zip...
Unpacking the update...
Installing the latest version...
Removing the old version of the translation...
Translation updated successfully.
Language 'zh_CN' installed.
Success: Installed 1 of 1 languages.