vedoj's avatar
Level 1

Why don't the error views respect the locale set in config/app.php ?

In config/app.php I have set locale and fallback_locale set to 'de' and the views in my app respect that and the lang used is de.

However, for some reason if you import error pages from vendor folder in your resources/views/errors, both layout.blade.php and minimal.blade.php files have html lang hardcoded to "en" instead of app()->getLocale() etc.

Is this intentional? If so, what is the reasoning because I would much rather prefer for error views to have:

<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">

instead of:

<html lang="en">

I work on many international pages and this is pain in the ass to manually changing all the time.

0 likes
4 replies
Nakov's avatar

Sounds like a PR that you can make towards the framework. Laravel is open-source you know, so you will get better feedback there over the decision to hard-code en.

vedoj's avatar
Level 1

@Nakov Is there any protocol I can read what to do next?

vedoj's avatar
Level 1

Do Laravel maintainers visit the feedback section from time to time? Or they barely do that ever?

Please or to participate in this conversation.