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
bug #43364 [Translation] Use symfony default locale when pulling translations from providers (Yoann MOROCUTTI)
This PR was squashed before being merged into the 5.3 branch.
Discussion
----------
[Translation] Use symfony default locale when pulling translations from providers
| Q | A
| ------------- | ---
| Branch? | 5.3 <!-- see below -->
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets | Fix#43363 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
| Doc PR | <!-- required for new features -->
When pulling translations from provider, locale source inside the Xll file is replaced with the \Locale::getDefault() instead of using the one configured in Symfony.
Inject the default_locale option from the translation pull command to the xlf writer.
Commits
-------
7f89d93 [Translation] Use symfony default locale when pulling translations from providers
$this->assertStringContainsString('[OK] New translations from "null" has been written locally (for "en, fr" locale(s), and "messages" domain(s)).', trim($tester->getDisplay()));
0 commit comments