This commit completes the migration to a fully module-driven architecture: ## Models Migration - Moved all domain models from models/database/ to their respective modules: - tenancy: User, Admin, Vendor, Company, Platform, VendorDomain, etc. - cms: MediaFile, VendorTheme - messaging: Email, VendorEmailSettings, VendorEmailTemplate - core: AdminMenuConfig - models/database/ now only contains Base and TimestampMixin (infrastructure) ## Schemas Migration - Moved all domain schemas from models/schema/ to their respective modules: - tenancy: company, vendor, admin, team, vendor_domain - cms: media, image, vendor_theme - messaging: email - models/schema/ now only contains base.py and auth.py (infrastructure) ## Routes Migration - Moved admin routes from app/api/v1/admin/ to modules: - menu_config.py -> core module - modules.py -> tenancy module - module_config.py -> tenancy module - app/api/v1/admin/ now only aggregates auto-discovered module routes ## Menu System - Implemented module-driven menu system with MenuDiscoveryService - Extended FrontendType enum: PLATFORM, ADMIN, VENDOR, STOREFRONT - Added MenuItemDefinition and MenuSectionDefinition dataclasses - Each module now defines its own menu items in definition.py - MenuService integrates with MenuDiscoveryService for template rendering ## Documentation - Updated docs/architecture/models-structure.md - Updated docs/architecture/menu-management.md - Updated architecture validation rules for new exceptions ## Architecture Validation - Updated MOD-019 rule to allow base.py in models/schema/ - Created core module exceptions.py and schemas/ directory - All validation errors resolved (only warnings remain) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
110 lines
3.8 KiB
JSON
110 lines
3.8 KiB
JSON
{
|
|
"title": "Facturation & Abonnements",
|
|
"description": "Gérer les niveaux d'abonnement, l'historique de facturation et les paiements",
|
|
"subscription": {
|
|
"title": "Abonnement",
|
|
"current_tier": "Niveau actuel",
|
|
"status": "Statut",
|
|
"statuses": {
|
|
"trial": "Essai",
|
|
"active": "Actif",
|
|
"past_due": "En retard",
|
|
"cancelled": "Annulé",
|
|
"expired": "Expiré"
|
|
},
|
|
"trial_ends": "Fin de l'essai",
|
|
"period_ends": "Fin de période",
|
|
"cancelled_at": "Annulé le",
|
|
"cancellation_reason": "Raison de l'annulation"
|
|
},
|
|
"tiers": {
|
|
"title": "Niveaux d'abonnement",
|
|
"subtitle": "Gérer les tarifs et fonctionnalités",
|
|
"essential": "Essentiel",
|
|
"professional": "Professionnel",
|
|
"business": "Business",
|
|
"enterprise": "Enterprise",
|
|
"create": "Créer un niveau",
|
|
"edit": "Modifier le niveau",
|
|
"features": "Fonctionnalités",
|
|
"limits": "Limites",
|
|
"pricing": "Tarification",
|
|
"monthly": "Mensuel",
|
|
"annual": "Annuel",
|
|
"per_month": "/mois",
|
|
"per_year": "/an",
|
|
"unlimited": "Illimité",
|
|
"orders_per_month": "Commandes/mois",
|
|
"products_limit": "Produits",
|
|
"team_members": "Membres d'équipe"
|
|
},
|
|
"usage": {
|
|
"title": "Utilisation",
|
|
"orders": "Commandes",
|
|
"products": "Produits",
|
|
"team": "Membres d'équipe",
|
|
"used": "utilisé",
|
|
"remaining": "restant",
|
|
"of": "sur"
|
|
},
|
|
"invoices": {
|
|
"title": "Factures",
|
|
"subtitle": "Historique de facturation et factures",
|
|
"invoice_number": "Facture N°",
|
|
"date": "Date",
|
|
"due_date": "Date d'échéance",
|
|
"amount": "Montant",
|
|
"status": "Statut",
|
|
"download": "Télécharger PDF",
|
|
"view_online": "Voir en ligne",
|
|
"statuses": {
|
|
"paid": "Payée",
|
|
"open": "Ouverte",
|
|
"void": "Annulée",
|
|
"uncollectible": "Irrécouvrable",
|
|
"draft": "Brouillon"
|
|
}
|
|
},
|
|
"payment": {
|
|
"title": "Paiement",
|
|
"method": "Moyen de paiement",
|
|
"add_card": "Ajouter une carte",
|
|
"update_card": "Modifier la carte",
|
|
"no_method": "Aucun moyen de paiement enregistré",
|
|
"card_ending": "Carte se terminant par",
|
|
"expires": "Expire"
|
|
},
|
|
"upgrade": {
|
|
"title": "Mettre à niveau",
|
|
"compare": "Comparer les plans",
|
|
"select": "Sélectionner le plan",
|
|
"current": "Plan actuel",
|
|
"recommended": "Recommandé"
|
|
},
|
|
"messages": {
|
|
"subscription_updated": "Abonnement mis à jour avec succès",
|
|
"tier_created": "Niveau créé avec succès",
|
|
"tier_updated": "Niveau mis à jour avec succès",
|
|
"tier_deactivated": "Niveau désactivé",
|
|
"payment_method_updated": "Moyen de paiement mis à jour",
|
|
"subscription_cancelled": "Abonnement annulé",
|
|
"error_loading": "Erreur lors du chargement des informations de facturation",
|
|
"error_updating": "Erreur lors de la mise à jour de l'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": "Limite mensuelle de commandes atteinte. Passez à un niveau supérieur.",
|
|
"products_exceeded": "Limite de produits atteinte. Passez à un niveau supérieur.",
|
|
"team_exceeded": "Limite de membres d'équipe atteinte. Passez à un niveau supérieur."
|
|
}
|
|
}
|