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]>
56 lines
1.7 KiB
PHP
56 lines
1.7 KiB
PHP
<?php
|
|
|
|
return [
|
|
'skip_to_content' => 'Skip to main content',
|
|
'main_menu' => 'Main menu',
|
|
'home' => 'Home',
|
|
'jobs' => 'Customer jobs',
|
|
'quick_intake' => 'Quick intake',
|
|
'board' => 'Board',
|
|
'calendar' => 'Calendar',
|
|
'time' => 'Time entry',
|
|
'approvals' => 'Hour approval',
|
|
'expenses' => 'Expenses',
|
|
'quick_sale' => 'Quick sale',
|
|
'billing' => 'Billing',
|
|
'customers' => 'Customers',
|
|
'users' => 'Users',
|
|
'company' => 'Company details',
|
|
'holidays' => 'Public holidays',
|
|
'catalog' => 'Basic data',
|
|
'prices' => 'Price list',
|
|
'logout' => 'Sign out',
|
|
'theme_toggle' => 'Dark theme',
|
|
'cancel' => 'Cancel',
|
|
'group_work' => 'Work',
|
|
'group_own' => 'My entries',
|
|
'group_sales' => 'Customers and sales',
|
|
'group_admin' => 'Administration',
|
|
'group_maintenance' => 'Maintenance',
|
|
'new_job' => 'New job',
|
|
'sales_list' => 'Quick sales and cash days',
|
|
'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',
|
|
'theme' => 'Theme',
|
|
'theme_light' => 'Light',
|
|
'theme_dark' => 'Dark',
|
|
'theme_system' => 'System default',
|
|
'selected' => '(selected)',
|
|
],
|
|
'demo' => [
|
|
'title' => 'Toiminnanohjaus',
|
|
'intro' => 'Livewire and TallStackUI are working. This is a temporary test page.',
|
|
'add_click' => 'Add click',
|
|
'clicked' => 'Clicked :count times',
|
|
],
|
|
];
|