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

Dynamic changing locale #19405

Merged
merged 1 commit into from
May 30, 2017
Merged

Dynamic changing locale #19405

merged 1 commit into from
May 30, 2017

Conversation

m1guelpf
Copy link
Contributor

@m1guelpf m1guelpf commented May 30, 2017

This will fix a bug that shows the default locale specified in config in the HTML attribute, even if you manually change it in your application.

Steps to reproduce bug:

  1. Create a new laravel app & scaffoldd the authentication
  2. Change the locale in the home controller by using App::setLocale('custom');
  3. The locale in the html tag is still the old one, as it's grabbed from the config.

@taylorotwell taylorotwell merged commit b09243c into laravel:5.4 May 30, 2017
@m1guelpf m1guelpf deleted the patch-2 branch May 30, 2017 12:51
brandon14 added a commit to brandon14/brandonclothier.me that referenced this pull request Jun 17, 2017
base.blade: Use app()->getLocale for a bugfix for this issue: laravel/framework#19405
Also check the environment and only add site verification meta if in production.
footer-error.blade: If running in production use HTTPS on the image URL, otherwise don't.
Also intval the year when comparing it to 2017.
Format the Carbon instance,
footer.blade: Only render social media widget buttons if in production mode.
Also intval year before comparing and format the Carbon instance.
index.blade: Bring OpenGraph title in line iwth website title.
Intval the year when comparing it to 2017.
Add sameAs meta for my social media pages.
Add a WebSite schema.
Only include the social media JavaScript if in production.
about.blade: Remove extra closing p tag.
resume.blade: Only use HTTPS if in production mode on profile image.
evalesoftware pushed a commit to evalesoftware/eVALE that referenced this pull request Nov 23, 2017
lhsazevedo pushed a commit to lhsazevedo/laravel-realworld-example-app that referenced this pull request Oct 27, 2020
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.

2 participants