Two issues caused the admin sidebar to show a mix of French and English:
1. Only 3 of 14 modules had "menu" translations in their locale files.
When a key was missing, _translate_label() fell back to English Title
Case from the key name — mixing with French from modules that had
translations. Added menu sections to all 4 languages (en, fr, de, lb)
across 13 modules.
2. The language middleware hardcoded admin to "en" ignoring user preference,
while the menu API fell back to DEFAULT_LANGUAGE ("fr") when
preferred_language was NULL. Fixed middleware to respect user's
preferred_language and menu API to use middleware-resolved language
as fallback.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
65 lines
2.9 KiB
JSON
65 lines
2.9 KiB
JSON
{
|
|
"notifications": {
|
|
"title": "Notifikatiounen",
|
|
"mark_read": "Als gelies markéieren",
|
|
"mark_all_read": "Alles als gelies markéieren",
|
|
"no_notifications": "Keng Notifikatiounen",
|
|
"new_order": "Nei Bestellung",
|
|
"order_updated": "Bestellung aktualiséiert",
|
|
"low_stock": "Niddreg Lager Alarm",
|
|
"import_complete": "Import fäerdeg",
|
|
"import_failed": "Import feelgeschloen"
|
|
},
|
|
"messages": {
|
|
"failed_to_load_template": "Failed to load template",
|
|
"template_saved_successfully": "Template saved successfully",
|
|
"reverted_to_platform_default": "Reverted to platform default",
|
|
"failed_to_load_preview": "Failed to load preview",
|
|
"failed_to_send_test_email": "Failed to send test email",
|
|
"failed_to_load_conversations": "Failed to load conversations",
|
|
"failed_to_load_conversation": "Failed to load conversation",
|
|
"conversation_closed": "Conversation closed",
|
|
"failed_to_close_conversation": "Failed to close conversation",
|
|
"conversation_reopened": "Conversation reopened",
|
|
"failed_to_reopen_conversation": "Failed to reopen conversation",
|
|
"conversation_created": "Conversation created",
|
|
"notification_marked_as_read": "Notification marked as read",
|
|
"all_notifications_marked_as_read": "All notifications marked as read",
|
|
"notification_deleted": "Notification deleted",
|
|
"notification_settings_saved": "Notification settings saved",
|
|
"failed_to_load_templates": "Failed to load templates",
|
|
"failed_to_load_recipients": "Failed to load recipients",
|
|
"failed_to_load_notifications": "Failed to load notifications",
|
|
"failed_to_mark_notification_as_read": "Failed to mark notification as read",
|
|
"failed_to_mark_all_as_read": "Failed to mark all as read",
|
|
"failed_to_delete_notification": "Failed to delete notification",
|
|
"failed_to_load_alerts": "Failed to load alerts",
|
|
"alert_resolved_successfully": "Alert resolved successfully",
|
|
"failed_to_resolve_alert": "Failed to resolve alert"
|
|
},
|
|
"features": {
|
|
"messaging_basic": {
|
|
"name": "Basis-Noriichten",
|
|
"description": "Grondleeënd Noriichtenfunktiounalitéit"
|
|
},
|
|
"email_templates": {
|
|
"name": "E-Mail-Virlagen",
|
|
"description": "Upassbar E-Mail-Virlagen"
|
|
},
|
|
"bulk_messaging": {
|
|
"name": "Massennoriichten",
|
|
"description": "Massennoriichten u Clienten schécken"
|
|
}
|
|
},
|
|
"menu": {
|
|
"platform_admin": "Plattform-Administratioun",
|
|
"platform_monitoring": "Plattform-Iwwerwaachung",
|
|
"platform_settings": "Plattform-Astellungen",
|
|
"customers": "Clienten",
|
|
"account_settings": "Kont-Astellungen",
|
|
"messages": "Messagen",
|
|
"notifications": "Notifikatiounen",
|
|
"email_templates": "E-Mail-Virlagen"
|
|
}
|
|
}
|