Skip to content

Commit

Permalink
Added wp-languages example
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Jun 4, 2024
1 parent cfbeaab commit 0776fd7
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,37 @@ WP_DEFAULT_THEME=wordplate
<details>
<summary><strong>Can I install languages with Composer?</strong></summary>

If you want to install language packs using Composer, we recommend looking at the [WP Languages](https://wp-languages.github.io/) project.
If you want to install language packs using Composer, we recommend looking at the [WP Languages](https://wp-languages.github.io/) project. Below is an example of a `composer.json` file that installs the Swedish language pack for WordPress.

```json
{
"require": {
"koodimonni-language/core-sv_se": "*",
},
"repositories": [
{
"type": "composer",
"url": "https://wp-languages.github.io",
"only": [
"koodimonni-language/*"
]
}
],
"config": {
"allow-plugins": {
"koodimonni/composer-dropin-installer": true
},
},
"extra": {
"dropin-paths": {
"public/languages/": [
"vendor:koodimonni-language"
]
}
}
}
```

</details>
<details>
<summary><strong>Can I rename the public directory?</strong></summary>
Expand Down

0 comments on commit 0776fd7

Please sign in to comment.