From ebabe4cd40de172737c18cd5a8d2365ccaddbe9d Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 10 Nov 2025 13:06:04 +0000 Subject: [PATCH] feat: Complete InventoryWizard i18n translation with extended field support Add comprehensive translation keys for all inventory wizard fields and complete the InventoryWizard component translation from English/Spanish/Basque. Translation additions (en/es/eu): - Extended inventory.fields with 48 new field labels and placeholders: * Pricing fields (averageCost, standardCost, sellingPrice, minimumPrice) * Inventory management fields (lowStockThreshold, reorderPoint, etc.) * Product info fields (packageSize, shelfLifeDays, displayLifeHours, etc.) * Storage fields (storageInstructions, handlingInstructions, isPerishable) * Supplier fields (preferredSupplierId, supplierProductCode) * Quality fields (allergenInfo, nutritionalInfo, certifications) * Physical properties (weight, volume, dimensions, color) * Status tracking (isActive, trackByLot, trackByExpiry, allowNegativeStock) * Additional fields (notes, tags, customFields) - Added ingredientCategories with 10 options (flour, dairy, eggs, fats, etc.) - Added productCategories with 5 options (bread, pastry, cake, cookies, specialty) InventoryWizard implementation: - Translated all section headers (11 sections) - Translated all field labels (58 fields) - Translated all placeholder texts (35 placeholders) - Translated all tooltips using tooltips namespace (11 tooltips) - Translated ingredient and product category options (15 total) - Translated wizard step title Result: Fully internationalized InventoryWizard with complete en/es/eu support covering all required fields, advanced options, and dynamic category selection. --- .../wizards/InventoryWizard.tsx | 209 +++++++++--------- frontend/src/locales/en/wizards.json | 71 +++++- frontend/src/locales/es/wizards.json | 71 +++++- frontend/src/locales/eu/wizards.json | 71 +++++- 4 files changed, 317 insertions(+), 105 deletions(-) diff --git a/frontend/src/components/domain/unified-wizard/wizards/InventoryWizard.tsx b/frontend/src/components/domain/unified-wizard/wizards/InventoryWizard.tsx index 24cedb07..3aea15cc 100644 --- a/frontend/src/components/domain/unified-wizard/wizards/InventoryWizard.tsx +++ b/frontend/src/components/domain/unified-wizard/wizards/InventoryWizard.tsx @@ -179,14 +179,14 @@ const InventoryDetailsStep: React.FC = ({ data, onDataChange }) type="text" value={inventoryData.barcode} onChange={(e) => handleDataChange({ ...inventoryData, barcode: e.target.value })} - placeholder="Barcode/UPC/EAN" + placeholder={t('inventory.fields.barcodePlaceholder')} className="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)] bg-[var(--bg-primary)] text-[var(--text-primary)]" />
@@ -224,25 +225,25 @@ const InventoryDetailsStep: React.FC = ({ data, onDataChange })
handleDataChange({ ...inventoryData, brand: e.target.value })} - placeholder="Brand name" + placeholder={t('inventory.fields.brandPlaceholder')} className="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-lg focus:outline-none focus:ring-2 focus:ring-[var(--color-primary)] bg-[var(--bg-primary)] text-[var(--text-primary)]" />