We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to set a default fallback language?
My browser language is set to english, but my website only allows languages "de", "fr" and "it". Currently this will set "undefined" as language.
In the config have set 'auto' => true
The text was updated successfully, but these errors were encountered:
Also, for the scenario above, this code:
@foreach (language()->allowed() as $code => $name) <a href="{{ language()->back($code) }}">{{ $name }}</a> @endforeach
will return:
<a href="http://velodach.test/languages/de/back">Deutsch</a> <a href="http://velodach.test/languages/fr/back">Français</a> <a href="http://velodach.test/languages/it/back">Italiano</a> <a href="http://velodach.test/languages/en/back">Unknown</a>
Notice the last line:
<a href="http://velodach.test/languages/en/back">Unknown</a>
Sorry, something went wrong.
ping...
pong )))
No branches or pull requests
Is it possible to set a default fallback language?
My browser language is set to english, but my website only allows languages "de", "fr" and "it". Currently this will set "undefined" as language.
In the config have set 'auto' => true
The text was updated successfully, but these errors were encountered: