Skip to content
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

Fix changing locale after app has booted #224

Merged
merged 2 commits into from
Oct 6, 2016

Conversation

garygreen
Copy link
Contributor

@garygreen garygreen commented Oct 6, 2016

It's pretty common to have your app change the locale in a middleware. When the app boots up, it's very rare to actually know what the locale will be until the session is booted and locale is set.

This fixes those cases where the locale can be changed at any time after the app has booted.

As a side note, I would recommend to have a proper facade for Date because then you can defer loading of the service provider and translator module every request. Anyway that's for another PR.

@jenssegers jenssegers merged commit ce421c3 into jenssegers:master Oct 6, 2016
@garygreen
Copy link
Contributor Author

@jenssegers thanks for merging. Are you taking part in the #hacktoberfest ? Would you mind labeling the PR? 😄

@garygreen
Copy link
Contributor Author

@jenssegers also would mind publishing a new version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants