Files
orion/app/modules/messaging/locales/en.json
Samir Boulahtit dad02695f6 fix(i18n): add missing menu translations and fix admin language resolution
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>
2026-02-07 23:37:13 +01:00

74 lines
3.4 KiB
JSON

{
"notifications": {
"title": "Notifications",
"mark_read": "Mark as Read",
"mark_all_read": "Mark All as Read",
"no_notifications": "No notifications",
"new_order": "New Order",
"order_updated": "Order Updated",
"low_stock": "Low Stock Alert",
"import_complete": "Import Complete",
"import_failed": "Import Failed"
},
"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",
"no_template_for_language": "No template for {language} - create one by saving",
"failed_to_save_template": "Failed to save template",
"test_email_sent": "Test email sent to {email}"
},
"confirmations": {
"delete_notification": "Are you sure you want to delete this notification?",
"close_conversation": "Close this conversation?",
"close_conversation_admin": "Are you sure you want to close this conversation?",
"delete_customization": "Are you sure you want to delete your customization and revert to the platform default?"
},
"features": {
"messaging_basic": {
"name": "Basic Messaging",
"description": "Basic messaging functionality"
},
"email_templates": {
"name": "Email Templates",
"description": "Customizable email templates"
},
"bulk_messaging": {
"name": "Bulk Messaging",
"description": "Send bulk messages to customers"
}
},
"menu": {
"platform_admin": "Platform Admin",
"platform_monitoring": "Platform Monitoring",
"platform_settings": "Platform Settings",
"customers": "Customers",
"account_settings": "Account Settings",
"messages": "Messages",
"notifications": "Notifications",
"email_templates": "Email Templates"
}
}