-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Translation] Wrap call to \Locale::setDefault from LocaleSwitcher in a class_exists call #49609
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds reasonable to me.
What about wrapping the call to |
You mean Let's do that instead. |
No worries, will update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed @derrabus comment
Thank you @larowlan. |
Oh right I missed it was assigning too 🙂 Thanks! |
In #45793 a new LocaleSwitcher was added which uses the \Locale class from ext-intl.
On upgrading an English only project from 5.4 to 6.2, I received the following error as we don't have the ext-intl extension
I searched for previous PRs to add a dependency on
ext-intl
and came across one for the string component directing the user to install a polyfill.Should symfony/translation therefore depend on the polyfill - otherwise updating is broken without manually installing the polyfill?
If so, here's a PR for that.
Keep up the good work folks ❤️