Update Note:
In some non-EN language environments, Accept-Language may not be correctly detected.
If you need to change the default language, try modify the following code.
/Middleware/Localize.php
// Retrieve the user's locale preference, either from the user model if
// logged in, or from the session or browser preference otherwise.
if ($user) {
$locale = $user->preferredLocale();
} else {
$locale = session(static::SESSION_KEY, $request->getPreferredLanguage($locales));
}
remove: $request->getPreferredLanguage($locales)
// Retrieve the user's locale preference, either from the user model if
// logged in, or from the session or browser preference otherwise.
if ($user) {
$locale = $user->preferredLocale();
} else {
$locale = session(static::SESSION_KEY);
}
You don't have permission to do this.
You're going a bit too fast! Take a break and try again in a moment.
Something went wrong! Please reload the page and try again.
Update Note:
In some non-EN language environments, Accept-Language may not be correctly detected.
If you need to change the default language, try modify the following code.
/Middleware/Localize.php
remove: $request->getPreferredLanguage($locales)