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:
42
app/modules/checkout/locales/en.json
Normal file
42
app/modules/checkout/locales/en.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"title": "Checkout",
|
||||
"description": "Order checkout and payment processing",
|
||||
"session": {
|
||||
"title": "Checkout Session",
|
||||
"expired": "Session expired",
|
||||
"invalid": "Invalid session"
|
||||
},
|
||||
"shipping": {
|
||||
"title": "Shipping Address",
|
||||
"select_address": "Select Address",
|
||||
"add_new": "Add New Address",
|
||||
"method": "Shipping Method",
|
||||
"select_method": "Select Shipping Method",
|
||||
"not_available": "Not available for this address"
|
||||
},
|
||||
"payment": {
|
||||
"title": "Payment",
|
||||
"method": "Payment Method",
|
||||
"required": "Payment required",
|
||||
"failed": "Payment failed"
|
||||
},
|
||||
"order": {
|
||||
"summary": "Order Summary",
|
||||
"subtotal": "Subtotal",
|
||||
"shipping": "Shipping",
|
||||
"tax": "Tax",
|
||||
"total": "Total",
|
||||
"place_order": "Place Order"
|
||||
},
|
||||
"validation": {
|
||||
"empty_cart": "Cart is empty",
|
||||
"invalid_address": "Invalid shipping address",
|
||||
"insufficient_inventory": "Insufficient inventory"
|
||||
},
|
||||
"messages": {
|
||||
"order_placed": "Order placed successfully",
|
||||
"checkout_failed": "Checkout failed",
|
||||
"session_expired": "Your session has expired",
|
||||
"inventory_error": "Some items are no longer available"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user