Skip to content

Commit

Permalink
Merge pull request #159 from wp-cli/fix/switch-language-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Aug 8, 2024
2 parents c22c458 + 3210ee9 commit c032c5c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,26 @@ wp language theme update [<theme>...] [--all] [--dry-run]
Translation updated successfully.
Success: Updated 1/1 translation.



### wp site switch-language

Activates a given language.

~~~
wp site switch-language <language>
~~~

**OPTIONS**

<language>
Language code to activate.

**EXAMPLES**

$ wp site switch-language ja
Success: Language activated.

## Installing

This package is included with WP-CLI itself, no additional installation necessary.
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"language theme install",
"language theme list",
"language theme uninstall",
"language theme update"
"language theme update",
"site switch-language"
]
},
"autoload": {
Expand Down

0 comments on commit c032c5c

Please sign in to comment.