Manage language packs.
Quick links: Using | Installing | Contributing | Support
This package implements the following commands:
Activate a given language.
wp language core activate <language>
<language>
Language code to activate.
EXAMPLES
$ wp language core activate ja
Success: Language activated.
Install a given language.
wp language core install <language>... [--activate]
Downloads the language pack from WordPress.org.
<language>...
Language code to install.
[--activate]
If set, the language will be activated immediately after install.
EXAMPLES
# Install the Japanese language.
$ wp language core install ja
Success: Language installed.
List all available languages.
wp language core list [--field=<field>] [--<field>=<value>] [--fields=<fields>] [--format=<format>]
[--field=<field>]
Display the value of a single field
[--<field>=<value>]
Filter results by key=value pairs.
[--fields=<fields>]
Limit the output to specific fields.
[--format=<format>]
Render output in a particular format.
---
default: table
options:
- table
- csv
- json
---
AVAILABLE FIELDS
These fields will be displayed by default for each translation:
- language
- english_name
- native_name
- status
- update
- updated
These fields are optionally available:
- version
- package
EXAMPLES
# List language,english_name,status fields of available languages.
$ wp language core list --fields=language,english_name,status
+----------------+-------------------------+-------------+
| language | english_name | status |
+----------------+-------------------------+-------------+
| ar | Arabic | uninstalled |
| ary | Moroccan Arabic | uninstalled |
| az | Azerbaijani | uninstalled |
Uninstall a given language.
wp language core uninstall <language>...
<language>...
Language code to uninstall.
EXAMPLES
$ wp language core uninstall ja
Success: Language uninstalled.
Update installed languages.
wp language core update [--dry-run]
Updates installed languages for core, plugins and themes.
[--dry-run]
Preview which translations would be updated.
EXAMPLES
$ wp language core update
Updating 'Japanese' translation for Akismet 3.1.11...
Downloading translation from https://downloads.wordpress.org/translation/plugin/akismet/3.1.11/ja.zip...
Translation updated successfully.
Updating 'Japanese' translation for Twenty Fifteen 1.5...
Downloading translation from https://downloads.wordpress.org/translation/theme/twentyfifteen/1.5/ja.zip...
Translation updated successfully.
Success: Updated 2/2 translations.
This package is included with WP-CLI itself, no additional installation necessary.
To install the latest version of this package over what's included in WP-CLI, run:
wp package install [email protected]:wp-cli/language-command.git
We appreciate you taking the initiative to contribute to this project.
Contributing isn’t limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.
For a more thorough introduction, check out WP-CLI's guide to contributing. This package follows those policy and guidelines.
Think you’ve found a bug? We’d love for you to help us get it fixed.
Before you create a new issue, you should search existing issues to see if there’s an existing resolution to it, or if it’s already been fixed in a newer version.
Once you’ve done a bit of searching and discovered there isn’t an open or fixed issue for your bug, please create a new issue. Include as much detail as you can, and clear steps to reproduce if possible. For more guidance, review our bug report documentation.
Want to contribute a new feature? Please first open a new issue to discuss whether the feature is a good fit for the project.
Once you've decided to commit the time to seeing your pull request through, please follow our guidelines for creating a pull request to make sure it's a pleasant experience. See "Setting up" for details specific to working on this package locally.
Github issues aren't for general support questions, but there are other venues you can try: http://wp-cli.org/#support
This README.md is generated dynamically from the project's codebase using wp scaffold package-readme (doc). To suggest changes, please submit a pull request against the corresponding part of the codebase.