chore: add module exceptions, locales, and fix architecture warnings
- Create module-specific exceptions for cart, catalog, checkout - Add locales (en, de, fr, lb) for cart, catalog, checkout modules - Add missing lb.json for existing module locales - Add noqa comments for legitimate MOD-004 violations (core services) - Fix validator to use correct lb.json locale code (was lu.json) - Add noqa support for MOD-004 rule in validator Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
49
app/modules/catalog/locales/en.json
Normal file
49
app/modules/catalog/locales/en.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"title": "Product Catalog",
|
||||
"description": "Product catalog management for vendors",
|
||||
"products": {
|
||||
"title": "Products",
|
||||
"subtitle": "Manage your product catalog",
|
||||
"create": "Create Product",
|
||||
"edit": "Edit Product",
|
||||
"delete": "Delete Product",
|
||||
"empty": "No products found",
|
||||
"empty_search": "No products match your search"
|
||||
},
|
||||
"product": {
|
||||
"name": "Product Name",
|
||||
"description": "Description",
|
||||
"sku": "SKU",
|
||||
"price": "Price",
|
||||
"stock": "Stock",
|
||||
"status": "Status",
|
||||
"active": "Active",
|
||||
"inactive": "Inactive"
|
||||
},
|
||||
"media": {
|
||||
"title": "Product Media",
|
||||
"upload": "Upload Image",
|
||||
"delete": "Delete Image",
|
||||
"primary": "Set as Primary",
|
||||
"error": "Media upload failed"
|
||||
},
|
||||
"validation": {
|
||||
"name_required": "Product name is required",
|
||||
"price_required": "Price is required",
|
||||
"invalid_sku": "Invalid SKU format",
|
||||
"duplicate_sku": "SKU already exists"
|
||||
},
|
||||
"messages": {
|
||||
"created": "Product created successfully",
|
||||
"updated": "Product updated successfully",
|
||||
"deleted": "Product deleted successfully",
|
||||
"not_found": "Product not found",
|
||||
"cannot_delete": "Cannot delete product",
|
||||
"error_loading": "Error loading products"
|
||||
},
|
||||
"filters": {
|
||||
"all_products": "All Products",
|
||||
"active_only": "Active Only",
|
||||
"search_placeholder": "Search products..."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user