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>
138 lines
5.1 KiB
JSON
138 lines
5.1 KiB
JSON
{
|
|
"title": "Rechnung & Abonnementer",
|
|
"description": "Abonnementstufe, Rechnungshistorik an Zuelungen verwalten",
|
|
"subscription": {
|
|
"title": "Abonnement",
|
|
"current_tier": "Aktuell Stuf",
|
|
"status": "Status",
|
|
"statuses": {
|
|
"trial": "Testphas",
|
|
"active": "Aktiv",
|
|
"past_due": "Iwwerfälleg",
|
|
"cancelled": "Gekënnegt",
|
|
"expired": "Ofgelaf"
|
|
},
|
|
"trial_ends": "Testphas endet",
|
|
"period_ends": "Period endet",
|
|
"cancelled_at": "Gekënnegt den",
|
|
"cancellation_reason": "Kënnegungsgrond"
|
|
},
|
|
"tiers": {
|
|
"title": "Abonnementstufen",
|
|
"subtitle": "Präisstufen a Funktiounen verwalten",
|
|
"essential": "Essential",
|
|
"professional": "Professional",
|
|
"business": "Business",
|
|
"enterprise": "Enterprise",
|
|
"create": "Stuf erstellen",
|
|
"edit": "Stuf beaarbechten",
|
|
"features": "Funktiounen",
|
|
"limits": "Limiten",
|
|
"pricing": "Präisgestaltung",
|
|
"monthly": "Monatlech",
|
|
"annual": "Jäerlech",
|
|
"per_month": "/Mount",
|
|
"per_year": "/Joer",
|
|
"unlimited": "Onbegrenzt",
|
|
"orders_per_month": "Bestellungen/Mount",
|
|
"products_limit": "Produkter",
|
|
"team_members": "Teammemberen"
|
|
},
|
|
"usage": {
|
|
"title": "Notzung",
|
|
"orders": "Bestellungen",
|
|
"products": "Produkter",
|
|
"team": "Teammemberen",
|
|
"used": "benotzt",
|
|
"remaining": "iwwreg",
|
|
"of": "vun"
|
|
},
|
|
"invoices": {
|
|
"title": "Rechnungen",
|
|
"subtitle": "Rechnungshistorik a Rechnungen",
|
|
"invoice_number": "Rechnung Nr.",
|
|
"date": "Datum",
|
|
"due_date": "Fällegkeetsdatum",
|
|
"amount": "Betrag",
|
|
"status": "Status",
|
|
"download": "PDF eroflueden",
|
|
"view_online": "Online kucken",
|
|
"statuses": {
|
|
"paid": "Bezuelt",
|
|
"open": "Oppen",
|
|
"void": "Stornéiert",
|
|
"uncollectible": "Onabtreidbar",
|
|
"draft": "Entworf"
|
|
}
|
|
},
|
|
"payment": {
|
|
"title": "Zuelung",
|
|
"method": "Zuelungsmethod",
|
|
"add_card": "Kaart dobäisetzen",
|
|
"update_card": "Kaart aktualiséieren",
|
|
"no_method": "Keng Zuelungsmethod hannerlued",
|
|
"card_ending": "Kaart endet op",
|
|
"expires": "Gëlteg bis"
|
|
},
|
|
"upgrade": {
|
|
"title": "Upgrade",
|
|
"compare": "Pläng vergläichen",
|
|
"select": "Plang auswielen",
|
|
"current": "Aktuellen Plang",
|
|
"recommended": "Recommandéiert"
|
|
},
|
|
"messages": {
|
|
"subscription_updated": "Abonnement erfollegräich aktualiséiert",
|
|
"tier_created": "Stuf erfollegräich erstallt",
|
|
"tier_updated": "Stuf erfollegräich aktualiséiert",
|
|
"tier_deactivated": "Stuf deaktivéiert",
|
|
"payment_method_updated": "Zuelungsmethod aktualiséiert",
|
|
"subscription_cancelled": "Abonnement gekënnegt",
|
|
"error_loading": "Feeler beim Lueden vun de Rechnungsinformatiounen",
|
|
"error_updating": "Feeler beim Aktualiséieren vum Abonnement",
|
|
"failed_to_load_billing_data": "Failed to load billing data",
|
|
"failed_to_create_checkout_session": "Failed to create checkout session",
|
|
"failed_to_open_payment_portal": "Failed to open payment portal",
|
|
"subscription_cancelled_you_have_access_u": "Subscription cancelled. You have access until the end of your billing period.",
|
|
"failed_to_cancel_subscription": "Failed to cancel subscription",
|
|
"subscription_reactivated": "Subscription reactivated!",
|
|
"failed_to_reactivate_subscription": "Failed to reactivate subscription",
|
|
"failed_to_purchase_addon": "Failed to purchase add-on",
|
|
"addon_cancelled_successfully": "Add-on cancelled successfully",
|
|
"failed_to_cancel_addon": "Failed to cancel add-on"
|
|
},
|
|
"limits": {
|
|
"orders_exceeded": "Monatlech Bestellungslimit erreecht. Upgrade fir méi.",
|
|
"products_exceeded": "Produktlimit erreecht. Upgrade fir méi.",
|
|
"team_exceeded": "Teammemberlimit erreecht. Upgrade fir méi."
|
|
},
|
|
"features": {
|
|
"subscription_management": {
|
|
"name": "Abonnementverwaltung",
|
|
"description": "Abonnementstufen an Ofrechnung verwalten"
|
|
},
|
|
"payment_processing": {
|
|
"name": "Zuelungsofwécklung",
|
|
"description": "Zuelungen iwwer Stripe ofwéckelen"
|
|
},
|
|
"invoicing": {
|
|
"name": "Rechnungsstellung",
|
|
"description": "Rechnungen erstellen an verwalten"
|
|
},
|
|
"usage_tracking": {
|
|
"name": "Notzungsverfolgung",
|
|
"description": "Funktiounsnotzung géint Stuflimiten verfolgen"
|
|
}
|
|
},
|
|
"menu": {
|
|
"billing_subscriptions": "Ofrechnung & Abonnementer",
|
|
"subscription_tiers": "Abo-Stufen",
|
|
"store_subscriptions": "Buttek-Abonnementer",
|
|
"billing_history": "Ofrechnungsverlaf",
|
|
"sales_orders": "Verkaf & Bestellungen",
|
|
"invoices": "Rechnungen",
|
|
"account_settings": "Kont-Astellungen",
|
|
"billing": "Ofrechnung"
|
|
}
|
|
}
|