-
-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
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
WELCOME message not in user's locale #811
Comments
As stated on the forum, it's because the alert is generated before the user locale is loaded. The user locale is loaded after the redirect. Maybe |
Duplicate of #718. (well, a consequence of at least) |
Yes and no... #718 would partly solve this. But if the browser is in French and the account in Spanish, it's still an issue. |
Ah. I see. Hmm... Updating the language service to use the new language (if its different) would be a more useful change wouldn't it? That way any messages generated afterward (either from UF code, or user customisations) would be covered. |
Actually, forcing a locale when using |
Note this can be experienced when changing the locale in the user setting page. A more powerful fix would be to register the alert using the translation key/slug + placeholder array, and let the actual translation be done only when displaying the alert. |
This is fixed (6 yrs later 😅) in dd98b7f for the 5.1 release. |
The first page (dashboard) is rendered in the user's locale but the alert sent along with it is rendered in the default locale.
Forum discussion:
https://forums.userfrosting.com/t/welcome-message-not-in-users-locale/93/4
The text was updated successfully, but these errors were encountered: