Implement multilingual support for shop interface and add total calculation to cart drawer: - Add FR/EN translations for all shop-related texts (cart, checkout, stock status) - Update templates and JavaScript to use translation system - Add cart total calculation with formatted currency display - Refactor cart drawer styles to SASS with improved button styling (black borders on +/-) - Fix English product content (replace JSON with proper HTML) - Extract cart drawer to separate snippet for better organization Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
52 lines
1.7 KiB
PHP
52 lines
1.7 KiB
PHP
<?php
|
|
|
|
return [
|
|
'code' => 'en',
|
|
'default' => false,
|
|
'direction' => 'ltr',
|
|
'locale' => 'en_US',
|
|
'name' => 'English',
|
|
'url' => '/en',
|
|
'translations' => [
|
|
// General
|
|
'backToHome' => 'Back to home',
|
|
'backToShop' => 'Back to shop',
|
|
'supportText' => 'To support us, you can also',
|
|
'makeDonation' => 'make a donation',
|
|
|
|
// Shop / Cart
|
|
'addToCart' => 'Add to cart',
|
|
'cart' => 'Cart',
|
|
'cartEmpty' => 'Your cart is empty',
|
|
'total' => 'Total',
|
|
'checkout' => 'Checkout',
|
|
'remove' => 'Remove',
|
|
'inStock' => 'In stock',
|
|
'outOfStock' => 'Out of stock',
|
|
'addingToCart' => 'Adding...',
|
|
'addedToCart' => 'Added! ✓',
|
|
'errorAddToCart' => 'Error - Try again',
|
|
'closeCart' => 'Close cart',
|
|
|
|
// Blueprints - Home
|
|
'home.title' => 'Home',
|
|
'home.baseline.label' => 'Baseline',
|
|
'home.products.headline' => 'Products',
|
|
'home.settings.headline' => 'Settings',
|
|
|
|
// Blueprints - Product
|
|
'product.title' => 'Product',
|
|
'product.description.label' => 'Description',
|
|
'product.details.label' => 'Details',
|
|
'product.details.item.label' => 'Detail',
|
|
'product.price.label' => 'Price (€)',
|
|
'product.backgroundColor.label' => 'Background Color',
|
|
'product.stock.label' => 'Stock',
|
|
'product.stock.help' => 'Shared between FR and EN versions',
|
|
'product.snipcartId.label' => 'Snipcart ID',
|
|
'product.sizes.label' => 'Available Sizes',
|
|
'product.images.headline' => 'Product Images',
|
|
'product.meta.headline' => 'Metadata',
|
|
'product.tab.content' => 'Content',
|
|
]
|
|
];
|