You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-37Lines changed: 12 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,59 +118,33 @@ The `post-cmd.sh` script automatically syncs WordPress core files from `private/
118
118
119
119
## Optional: Installing Language Packs
120
120
121
-
WordPress core and plugins can be installed in different languages using Composer.
121
+
WP Boot includes [WP Translation Downloader](https://github.com/inpsyde/wp-translation-downloader), a Composer plugin that automatically downloads translations from the WordPress.org API for all installed WordPress packages (core, plugins, and themes).
122
122
123
-
**1. Add the language repository to `composer.json`:**
124
-
```json
125
-
{
126
-
"repositories": [
127
-
{
128
-
"type": "composer",
129
-
"url": "https://wp-languages.github.io",
130
-
"only": [
131
-
"koodimonni-language/*",
132
-
"koodimonni-plugin-language/*",
133
-
"koodimonni-theme-language/*"
134
-
]
135
-
}
136
-
]
137
-
}
138
-
```
123
+
**1. Add your desired languages to `composer.json`:**
124
+
125
+
In the `extra.wp-translation-downloader.languages` array, add the locale codes you need:
139
126
140
-
**2. Add dropin paths to `extra` in `composer.json`:**
141
127
```json
142
128
{
143
129
"extra": {
144
-
"dropin-paths": {
145
-
"../../public/wp-content/languages/": [
146
-
"vendor:koodimonni-language"
147
-
],
148
-
"../../public/wp-content/languages/plugins/": [
149
-
"vendor:koodimonni-plugin-language"
150
-
],
151
-
"../../public/wp-content/languages/themes/": [
152
-
"vendor:koodimonni-theme-language"
130
+
"wp-translation-downloader": {
131
+
"languages": [
132
+
"it_IT"
153
133
]
154
134
}
155
135
}
156
136
}
157
137
```
158
138
159
-
**3. Install language packs:**
160
-
```bash
161
-
# WordPress core in Italian
162
-
composer require koodimonni-language/core-it_it
139
+
Then run `composer update` — translations will be automatically downloaded to `public/wp-content/languages/`.
163
140
164
-
# All translations for Italian
165
-
composer require koodimonni-language/it_it
166
-
```
141
+
**2. Configure WordPress to use the language in `.env`:**
167
142
168
-
**4. Configure WordPress to use the language in `.env`:**
169
143
```env
170
144
WPLANG=it_IT
171
145
```
172
146
173
-
For more information: https://wp-languages.github.io
147
+
For more information: https://github.com/inpsyde/wp-translation-downloader
174
148
175
149
## Optional: Disallow Search Engine Indexing in Non-Production
176
150
@@ -201,6 +175,7 @@ For new projects or when you have full control over the infrastructure, consider
201
175
-**[WP Starter](https://github.com/wecodemore/wpstarter)** - Composer-based WordPress setup with flexible configuration
202
176
-**[Wordplate](https://github.com/vinkla/wordplate)** - Modern WordPress stack with Laravel-inspired structure
0 commit comments