Louis Charette
Louis Charette
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. See : https://github.com/userfrosting/UserFrosting/blob/master/app/sprinkles/account/src/Controller/AccountController.php#L361 Maybe `addMessageTranslated`...
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.
Actually, forcing a locale when using `translate` would be more useful... but the way the translator is made, it needs to load all of the translation key... which isn't optimal...
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...
Since loggers are created as a service providers, these are reset for each test since we (usually) want each test to run a fresh env. So it's probably part of...
Note you have more files to translate in the admin and account sprinkle ;)
> Were there some changes made in [`4.2`](https://learn.userfrosting.com/upgrading/41-to-42#foreign-key-constraint-errors-in-migrations) that would impact this? Not that I know of. **Seeds** where added, which probably helped in some cases. I think the real...
Events are now used in 5.0 to customize the bake command. Same will be done for `setup` and `debug` command. See https://github.com/userfrosting/sprinkle-core/commit/b1d57e68c1564a8944defe2205aab20054eac7c5
If we are talking about permission impersonating, to debug a specific user permission, I don't see the issue since the master user has permission to do (and see) everything already....
Actually, we could also generate the appropriate js file dynamically : https://stackoverflow.com/a/2457053/445757