Skip to content

[Translation] Use symfony default locale when pulling translations from providers #43364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 10, 2021

Conversation

ymorocutti
Copy link

Q A
Branch? 5.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #43363
License MIT
Doc PR

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.

@welcoMattic
Copy link
Member

Thanks @ymorocutti, can you add a test for this bugfix please?

Copy link
Member

@welcoMattic welcoMattic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me! Thanks!
ping @nicolas-grekas

@fabpot
Copy link
Member

fabpot commented Oct 10, 2021

Thank you @ymorocutti.

@fabpot fabpot merged commit e5be65f into symfony:5.3 Oct 10, 2021
@fabpot fabpot mentioned this pull request Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants