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>
65 lines
2.4 KiB
JSON
65 lines
2.4 KiB
JSON
{
|
|
"products": {
|
|
"title": "Produkter",
|
|
"product": "Produkt",
|
|
"add_product": "Produkt derbäisetzen",
|
|
"edit_product": "Produkt änneren",
|
|
"delete_product": "Produkt läschen",
|
|
"product_name": "Produktnumm",
|
|
"product_code": "Produktcode",
|
|
"sku": "SKU",
|
|
"price": "Präis",
|
|
"sale_price": "Verkafspräis",
|
|
"cost": "Käschten",
|
|
"stock": "Lager",
|
|
"in_stock": "Op Lager",
|
|
"out_of_stock": "Net op Lager",
|
|
"low_stock": "Niddregen Stock",
|
|
"availability": "Disponibilitéit",
|
|
"available": "Disponibel",
|
|
"unavailable": "Net disponibel",
|
|
"brand": "Mark",
|
|
"category": "Kategorie",
|
|
"categories": "Kategorien",
|
|
"image": "Bild",
|
|
"images": "Biller",
|
|
"main_image": "Haaptbild",
|
|
"gallery": "Galerie",
|
|
"weight": "Gewiicht",
|
|
"dimensions": "Dimensiounen",
|
|
"color": "Faarf",
|
|
"size": "Gréisst",
|
|
"material": "Material",
|
|
"condition": "Zoustand",
|
|
"new": "Nei",
|
|
"used": "Gebraucht",
|
|
"refurbished": "Iwwerholl",
|
|
"no_products": "Keng Produkter fonnt",
|
|
"search_products": "Produkter sichen...",
|
|
"filter_by_category": "No Kategorie filteren",
|
|
"filter_by_status": "No Status filteren",
|
|
"sort_by": "Sortéieren no",
|
|
"sort_newest": "Neisten",
|
|
"sort_oldest": "Eelsten",
|
|
"sort_price_low": "Präis: Niddreg op Héich",
|
|
"sort_price_high": "Präis: Héich op Niddreg",
|
|
"sort_name_az": "Numm: A-Z",
|
|
"sort_name_za": "Numm: Z-A"
|
|
},
|
|
"messages": {
|
|
"product_deleted_successfully": "Product deleted successfully",
|
|
"please_fill_in_all_required_fields": "Please fill in all required fields",
|
|
"product_updated_successfully": "Product updated successfully",
|
|
"failed_to_load_media_library": "Failed to load media library",
|
|
"no_vendor_associated_with_this_product": "No vendor associated with this product",
|
|
"please_select_an_image_file": "Please select an image file",
|
|
"image_must_be_less_than_10mb": "Image must be less than 10MB",
|
|
"image_uploaded_successfully": "Image uploaded successfully",
|
|
"product_removed_from_vendor_catalog": "Product removed from vendor catalog.",
|
|
"please_select_a_vendor": "Please select a vendor",
|
|
"please_enter_a_product_title_english": "Please enter a product title (English)",
|
|
"product_created_successfully": "Product created successfully",
|
|
"please_select_a_vendor_first": "Please select a vendor first"
|
|
}
|
|
}
|