Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Commite7fcd9a
committed
bug#45171 [Translation] Allow usage of Provider domains if possible (welcoMattic)
This PR was merged into the 5.4 branch.Discussion----------[Translation] Allow usage of Provider domains if possible| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | yes| New feature? | no| Deprecations? | no| Tickets || License | MIT| Doc PR |This PR adds possibility for `translation:push` command to use the configured domains value for a provider, if there is no `--domains` option provided.Before that, the command tries to get the domains from the `MessageCatalog` of all local translations (including `validators` and `security` even if the user doesn't override these files).Now, we can configure `domains` in `translation.yaml`:```yamlframework: default_locale: en translator: default_path: '%kernel.project_dir%/translations' fallbacks: - en providers: lokalise: dsn: '%env(LOKALISE_DSN)%' locales: ['de', 'en', 'es', 'fr', 'it', 'pl'] domains: ['messages']```And `bin/console translation:push lokalise` will take `['messages']` as domains value, instead of `['messages', 'validators', 'security']`.Commits-------b752653 Allow usage of Provider domains if possibleFile tree
2 files changed
+72
-1
lines changed- src/Symfony/Component/Translation
- Command
- Tests/Command
2 files changed
+72
-1
lines changedLines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
137 | 144 | | |
138 | 145 | | |
139 | 146 | | |
| |||
Lines changed: 64 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
262 | 326 | | |
263 | 327 | | |
264 | 328 | | |
| |||
0 commit comments
Comments
(0)