Language settings¶
Summary
In this quick tutorial we will learn how to install, activate, and manage language packages for Panda.
Show active language¶
Command
Get the current default language.
wp language core list --status=active
Example
The output might look as follows.
Language | English name | Native name | Status | Update |
---|---|---|---|---|
en_US | English (United States) | English (United States) | active | none |
Install new languages¶
Command
Install the German core language packages.
wp language core install de_AT de_CH de_CH_informal de_DE de_DE_formal
Output
Success: Installed 5 of 5 languages.
List installed languages¶
Command
List installed core language packages.
wp language core list --status=installed
Example
The output might look as follows.
Language | English name | Native name | Status | Updated |
---|---|---|---|---|
de_AT | German (Austria) | Deutsch (Österreich) | installed | 2020-09-13 17:09:13 |
de_CH | German (Switzerland) | Deutsch (Schweiz) | installed | 2020-09-09 20:03:38 |
de_CH_informal | German (Switzerland, Informal) | Deutsch (Schweiz, Du) | installed | 2020-09-09 20:03:47 |
de_DE | German | Deutsch | installed | 2020-10-22 11:22:21 |
de_DE_formal | German (Formal) | Deutsch (Sie) | installed | 2020-10-22 11:23:04 |
Switch default language¶
Command
Set German as default language.
wp site switch-language de_DE
Output
Success: Language activated.
Install theme language¶
Command
Install the German language packages for the Twenty Twenty theme.
wp language theme install twentytwenty de_CH de_CH_informal de_DE de_DE_formal
Output
Success: Installed 4 of 4 languages.
Install plugin language¶
Command
Install the German language packages for WooCommerce.
wp language plugin install woocommerce de_CH de_CH_informal de_DE de_DE_formal
Output
Success: Installed 4 of 4 languages.
Update language packages¶
Command
Update all core language packages if needed.
wp language core update
Output
Success: Translations are up to date.
Command
Update all plugin language packages if needed.
wp language plugin --all update
Output
Success: Translations are up to date.
Command
Update all theme language packages if needed.
wp language theme --all update
Output
Success: Translations are up to date.
Getting help¶
Click here to see the full documentation…
See also
Reading the Panda installation notes and our WP Core docs is assumed.
See wp help language
or wp.org for more options, and wp-languages.github.io for further information.