Comment #⁨5⁩

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);
        }