Keep the chosen language across sign-in and forced sign-out
A language picked on a signed-out page is now stored on the account when the user signs in (StoreLocaleChosenBeforeLogin), so the app does not switch back to the account default. EnsureAccountIsUsable keeps the user's language for the login page when it ends a disabled account's session. ChangePreferredLocale runs in a transaction like the other use cases, the language names come from layout.languages instead of the Locale enum, and the translation test also compares fi.json with en.json and rejects English files without a Finnish counterpart. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -32,6 +32,11 @@ return [
|
||||
'workflow_templates' => 'Workflow templates',
|
||||
'price_list_admin' => 'Price list maintenance',
|
||||
'current_section' => '(current section)',
|
||||
// Each language by its own name, the same in every language.
|
||||
'languages' => [
|
||||
'fi' => 'Suomi',
|
||||
'en' => 'English',
|
||||
],
|
||||
'profile' => [
|
||||
'menu' => 'Profile: :name',
|
||||
'language' => 'Language',
|
||||
|
||||
Reference in New Issue
Block a user