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/cart/locales/de.json
Normal file
42
app/modules/cart/locales/de.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"title": "Warenkorb",
|
||||
"description": "Warenkorbverwaltung für Kunden",
|
||||
"cart": {
|
||||
"title": "Ihr Warenkorb",
|
||||
"empty": "Ihr Warenkorb ist leer",
|
||||
"empty_subtitle": "Fügen Sie Artikel hinzu, um einzukaufen",
|
||||
"continue_shopping": "Weiter einkaufen",
|
||||
"proceed_to_checkout": "Zur Kasse"
|
||||
},
|
||||
"item": {
|
||||
"product": "Produkt",
|
||||
"quantity": "Menge",
|
||||
"price": "Preis",
|
||||
"total": "Gesamt",
|
||||
"remove": "Entfernen",
|
||||
"update": "Aktualisieren"
|
||||
},
|
||||
"summary": {
|
||||
"title": "Bestellübersicht",
|
||||
"subtotal": "Zwischensumme",
|
||||
"shipping": "Versand",
|
||||
"estimated_shipping": "Wird an der Kasse berechnet",
|
||||
"tax": "MwSt.",
|
||||
"total": "Gesamtsumme"
|
||||
},
|
||||
"validation": {
|
||||
"invalid_quantity": "Ungültige Menge",
|
||||
"min_quantity": "Mindestmenge ist {min}",
|
||||
"max_quantity": "Höchstmenge ist {max}",
|
||||
"insufficient_inventory": "Nur {available} verfügbar"
|
||||
},
|
||||
"messages": {
|
||||
"item_added": "Artikel zum Warenkorb hinzugefügt",
|
||||
"item_updated": "Warenkorb aktualisiert",
|
||||
"item_removed": "Artikel aus dem Warenkorb entfernt",
|
||||
"cart_cleared": "Warenkorb geleert",
|
||||
"product_not_available": "Produkt nicht verfügbar",
|
||||
"error_adding": "Fehler beim Hinzufügen zum Warenkorb",
|
||||
"error_updating": "Fehler beim Aktualisieren des Warenkorbs"
|
||||
}
|
||||
}
|
||||
42
app/modules/cart/locales/en.json
Normal file
42
app/modules/cart/locales/en.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"title": "Shopping Cart",
|
||||
"description": "Shopping cart management for customers",
|
||||
"cart": {
|
||||
"title": "Your Cart",
|
||||
"empty": "Your cart is empty",
|
||||
"empty_subtitle": "Add items to start shopping",
|
||||
"continue_shopping": "Continue Shopping",
|
||||
"proceed_to_checkout": "Proceed to Checkout"
|
||||
},
|
||||
"item": {
|
||||
"product": "Product",
|
||||
"quantity": "Quantity",
|
||||
"price": "Price",
|
||||
"total": "Total",
|
||||
"remove": "Remove",
|
||||
"update": "Update"
|
||||
},
|
||||
"summary": {
|
||||
"title": "Order Summary",
|
||||
"subtotal": "Subtotal",
|
||||
"shipping": "Shipping",
|
||||
"estimated_shipping": "Calculated at checkout",
|
||||
"tax": "Tax",
|
||||
"total": "Total"
|
||||
},
|
||||
"validation": {
|
||||
"invalid_quantity": "Invalid quantity",
|
||||
"min_quantity": "Minimum quantity is {min}",
|
||||
"max_quantity": "Maximum quantity is {max}",
|
||||
"insufficient_inventory": "Only {available} available"
|
||||
},
|
||||
"messages": {
|
||||
"item_added": "Item added to cart",
|
||||
"item_updated": "Cart updated",
|
||||
"item_removed": "Item removed from cart",
|
||||
"cart_cleared": "Cart cleared",
|
||||
"product_not_available": "Product not available",
|
||||
"error_adding": "Error adding item to cart",
|
||||
"error_updating": "Error updating cart"
|
||||
}
|
||||
}
|
||||
42
app/modules/cart/locales/fr.json
Normal file
42
app/modules/cart/locales/fr.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"title": "Panier",
|
||||
"description": "Gestion du panier pour les clients",
|
||||
"cart": {
|
||||
"title": "Votre panier",
|
||||
"empty": "Votre panier est vide",
|
||||
"empty_subtitle": "Ajoutez des articles pour commencer vos achats",
|
||||
"continue_shopping": "Continuer mes achats",
|
||||
"proceed_to_checkout": "Passer à la caisse"
|
||||
},
|
||||
"item": {
|
||||
"product": "Produit",
|
||||
"quantity": "Quantité",
|
||||
"price": "Prix",
|
||||
"total": "Total",
|
||||
"remove": "Supprimer",
|
||||
"update": "Mettre à jour"
|
||||
},
|
||||
"summary": {
|
||||
"title": "Récapitulatif de commande",
|
||||
"subtotal": "Sous-total",
|
||||
"shipping": "Livraison",
|
||||
"estimated_shipping": "Calculé à la caisse",
|
||||
"tax": "TVA",
|
||||
"total": "Total"
|
||||
},
|
||||
"validation": {
|
||||
"invalid_quantity": "Quantité invalide",
|
||||
"min_quantity": "Quantité minimum: {min}",
|
||||
"max_quantity": "Quantité maximum: {max}",
|
||||
"insufficient_inventory": "Seulement {available} disponible(s)"
|
||||
},
|
||||
"messages": {
|
||||
"item_added": "Article ajouté au panier",
|
||||
"item_updated": "Panier mis à jour",
|
||||
"item_removed": "Article supprimé du panier",
|
||||
"cart_cleared": "Panier vidé",
|
||||
"product_not_available": "Produit non disponible",
|
||||
"error_adding": "Erreur lors de l'ajout au panier",
|
||||
"error_updating": "Erreur lors de la mise à jour du panier"
|
||||
}
|
||||
}
|
||||
42
app/modules/cart/locales/lb.json
Normal file
42
app/modules/cart/locales/lb.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"title": "Akafskuerf",
|
||||
"description": "Kuerfverwaltung fir Clienten",
|
||||
"cart": {
|
||||
"title": "Äre Kuerf",
|
||||
"empty": "Äre Kuerf ass eidel",
|
||||
"empty_subtitle": "Setzt Artikelen derbäi fir anzekafen",
|
||||
"continue_shopping": "Weider akafen",
|
||||
"proceed_to_checkout": "Zur Keess"
|
||||
},
|
||||
"item": {
|
||||
"product": "Produkt",
|
||||
"quantity": "Unzuel",
|
||||
"price": "Präis",
|
||||
"total": "Gesamt",
|
||||
"remove": "Ewechhuelen",
|
||||
"update": "Aktualiséieren"
|
||||
},
|
||||
"summary": {
|
||||
"title": "Bestelliwwersiicht",
|
||||
"subtotal": "Zwëschesumm",
|
||||
"shipping": "Liwwerung",
|
||||
"estimated_shipping": "Gëtt bei der Keess berechent",
|
||||
"tax": "MwSt.",
|
||||
"total": "Gesamtsumm"
|
||||
},
|
||||
"validation": {
|
||||
"invalid_quantity": "Ongëlteg Unzuel",
|
||||
"min_quantity": "Mindestunzuel ass {min}",
|
||||
"max_quantity": "Héichstunzuel ass {max}",
|
||||
"insufficient_inventory": "Nëmmen {available} verfügbar"
|
||||
},
|
||||
"messages": {
|
||||
"item_added": "Artikel an de Kuerf gesat",
|
||||
"item_updated": "Kuerf aktualiséiert",
|
||||
"item_removed": "Artikel aus dem Kuerf ewechgeholl",
|
||||
"cart_cleared": "Kuerf eidel gemaach",
|
||||
"product_not_available": "Produkt net verfügbar",
|
||||
"error_adding": "Feeler beim Derbäisetzen an de Kuerf",
|
||||
"error_updating": "Feeler beim Aktualiséiere vum Kuerf"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user