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.
Dec 1, 2022
4
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.
Please or to participate in this conversation.