From a08c90a521987c9328c03146d2c0bd957bd4e553 Mon Sep 17 00:00:00 2001 From: sebseb7 Date: Sat, 22 Nov 2025 10:12:41 +0100 Subject: [PATCH] fix --- .../configurator/TentShapeSelector.js | 17 +++++++--- src/data/configuratorData.js | 9 ++--- src/i18n/locales/ar/kitConfig.js | 20 +++++++---- src/i18n/locales/bg/kitConfig.js | 24 +++++++++----- src/i18n/locales/cs/kitConfig.js | 16 ++++++--- src/i18n/locales/de/kitConfig.js | 10 +++++- src/i18n/locales/el/kitConfig.js | 14 ++++++-- src/i18n/locales/en/index.js | 2 ++ src/i18n/locales/en/kitConfig.js | 20 +++++++---- src/i18n/locales/es/kitConfig.js | 20 +++++++---- src/i18n/locales/fr/kitConfig.js | 22 +++++++++---- src/i18n/locales/hr/kitConfig.js | 24 +++++++++----- src/i18n/locales/hu/kitConfig.js | 28 ++++++++++------ src/i18n/locales/it/kitConfig.js | 18 +++++++--- src/i18n/locales/pl/kitConfig.js | 26 ++++++++++----- src/i18n/locales/ro/kitConfig.js | 20 +++++++---- src/i18n/locales/ru/kitConfig.js | 18 +++++++--- src/i18n/locales/sk/kitConfig.js | 20 +++++++---- src/i18n/locales/sl/kitConfig.js | 16 ++++++--- src/i18n/locales/sq/kitConfig.js | 14 ++++++-- src/i18n/locales/sr/kitConfig.js | 16 ++++++--- src/i18n/locales/sv/kitConfig.js | 18 +++++++--- src/i18n/locales/tr/kitConfig.js | 20 +++++++---- src/i18n/locales/uk/kitConfig.js | 30 ++++++++++------- src/i18n/locales/zh/kitConfig.js | 24 +++++++++----- src/pages/GrowTentKonfigurator.js | 33 ++++++++++++++++--- 26 files changed, 356 insertions(+), 143 deletions(-) diff --git a/src/components/configurator/TentShapeSelector.js b/src/components/configurator/TentShapeSelector.js index 3655613..de39deb 100644 --- a/src/components/configurator/TentShapeSelector.js +++ b/src/components/configurator/TentShapeSelector.js @@ -5,6 +5,7 @@ import CardContent from '@mui/material/CardContent'; import Typography from '@mui/material/Typography'; import Box from '@mui/material/Box'; import Chip from '@mui/material/Chip'; +import { withI18n } from '../../i18n/withTranslation.js'; class TentShapeSelector extends Component { // Generate plant layout based on tent shape @@ -180,12 +181,20 @@ class TentShapeSelector extends Component { - {shape.description} + {this.props.t && shape.descriptionKey ? this.props.t(shape.descriptionKey) : shape.description} - ✓ Ausgewählt + {this.props.t ? this.props.t("kitConfig.selected") : "✓ Ausgewählt"} @@ -238,4 +247,4 @@ class TentShapeSelector extends Component { } } -export default TentShapeSelector; \ No newline at end of file +export default withI18n()(TentShapeSelector); \ No newline at end of file diff --git a/src/data/configuratorData.js b/src/data/configuratorData.js index 8a79f4b..11e969f 100644 --- a/src/data/configuratorData.js +++ b/src/data/configuratorData.js @@ -1,9 +1,10 @@ // @note Dummy data for grow tent configurator - no backend calls +// descriptions now keys for translation export const tentShapes = [ { id: '60x60', name: '60x60cm', - description: 'Kompakt - ideal für kleine Räume', + descriptionKey: 'kitConfig.description60x60', footprint: '60x60', minPlants: 1, maxPlants: 2, @@ -13,7 +14,7 @@ export const tentShapes = [ { id: '80x80', name: '80x80cm', - description: 'Mittel - perfekte Balance', + descriptionKey: 'kitConfig.description80x80', footprint: '80x80', minPlants: 2, maxPlants: 4, @@ -23,7 +24,7 @@ export const tentShapes = [ { id: '100x100', name: '100x100cm', - description: 'Groß - für erfahrene Grower', + descriptionKey: 'kitConfig.description100x100', footprint: '100x100', minPlants: 4, maxPlants: 6, @@ -33,7 +34,7 @@ export const tentShapes = [ { id: '120x60', name: '120x60cm', - description: 'Rechteckig - maximale Raumnutzung', + descriptionKey: 'kitConfig.description120x60', footprint: '120x60', minPlants: 3, maxPlants: 6, diff --git a/src/i18n/locales/ar/kitConfig.js b/src/i18n/locales/ar/kitConfig.js index 2a48923..cac5b4b 100644 --- a/src/i18n/locales/ar/kitConfig.js +++ b/src/i18n/locales/ar/kitConfig.js @@ -11,15 +11,15 @@ export default { "noVentilationAvailable": "لا توجد تهوية مناسبة لحجم الخيمة {{shape}}.", "noExtrasAvailable": "لا توجد إضافات متاحة", "selectShapeTitle": "1. اختر شكل الجروبوكس", - "selectShapeSubtitle": "أولاً اختر مساحة قاعدة الجروبوكس بتاعك", + "selectShapeSubtitle": "اختار أولاً مساحة قاعدة الجروبوكس بتاعتك", "selectProductTitle": "2. اختر منتج الجروبوكس", - "selectProductSubtitle": "اختر المنتج المناسب لجروبوكس {{shape}} بتاعك", + "selectProductSubtitle": "اختار المنتج المناسب لجروبوكس {{shape}} بتاعك", "selectLightingTitle": "3. اختر الإضاءة", "selectLightingTitleShape": "3. اختر الإضاءة - {{shape}}", - "selectLightingSubtitle": "من فضلك اختر حجم الخيمة أولاً.", + "selectLightingSubtitle": "من فضلك اختار حجم الخيمة الأول.", "selectVentilationTitle": "4. اختر التهوية", "selectVentilationTitleShape": "4. اختر التهوية - {{shape}}", - "selectVentilationSubtitle": "من فضلك اختر حجم الخيمة أولاً.", + "selectVentilationSubtitle": "من فضلك اختار حجم الخيمة الأول.", "selectExtrasTitle": "5. أضف إضافات (اختياري)", "yourConfiguration": "🎯 التكوين بتاعك", "growboxLabel": "جروبوكس: {{name}}", @@ -27,9 +27,17 @@ export default { "ventilationLabel": "التهوية: {{name}}", "extraLabel": "إضافة: {{name}}", "totalPrice": "السعر الكلي:", - "addToCart": "أضف إلى العربة", + "addToCart": "أضف إلى السلة", "selected": "✓ تم الاختيار", "notDeliverable": "غير متوفر للتوصيل", "noPrice": "لا يوجد سعر", - "setName": "طقم جروبوكس - {{shape}}" + "setName": "طقم جروبوكس - {{shape}}", + "description60x60": "مُدمج - مثالي للمساحات الصغيرة", + "description80x80": "متوسط - توازن مثالي", + "description100x100": "كبير - للمزارعين المتمرسين", + "description120x60": "مستطيل - استخدام أقصى للمساحة", + "plants1to2": "1-2 نباتات", + "plants2to4": "2-4 نباتات", + "plants4to6": "4-6 نباتات", + "plants3to6": "3-6 نباتات" }; diff --git a/src/i18n/locales/bg/kitConfig.js b/src/i18n/locales/bg/kitConfig.js index 642d92b..a48c5f4 100644 --- a/src/i18n/locales/bg/kitConfig.js +++ b/src/i18n/locales/bg/kitConfig.js @@ -2,14 +2,14 @@ export default { "pageTitle": "🌱 Конфигуратор за Growbox", "pageSubtitle": "Създайте перфектната си вътрешна система за отглеждане", "bundleDiscountTitle": "🎯 Вземете отстъпка за комплект!", - "loadingProducts": "Зареждат се продукти за growbox...", - "loadingLighting": "Зареждат се продукти за осветление...", - "loadingVentilation": "Зареждат се продукти за вентилация...", - "loadingExtras": "Зареждат се допълнителни продукти...", + "loadingProducts": "Зареждане на продукти за growbox...", + "loadingLighting": "Зареждане на осветителни продукти...", + "loadingVentilation": "Зареждане на вентилационни продукти...", + "loadingExtras": "Зареждане на допълнителни продукти...", "noProductsAvailable": "Няма налични продукти за този размер", "noLightingAvailable": "Няма подходящи лампи за размер на палатка {{shape}}.", "noVentilationAvailable": "Няма подходяща вентилация за размер на палатка {{shape}}.", - "noExtrasAvailable": "Няма налични допълнителни продукти", + "noExtrasAvailable": "Няма налични допълнения", "selectShapeTitle": "1. Изберете форма на growbox", "selectShapeSubtitle": "Първо изберете основната площ на вашия growbox", "selectProductTitle": "2. Изберете продукт за growbox", @@ -20,16 +20,24 @@ export default { "selectVentilationTitle": "4. Изберете вентилация", "selectVentilationTitleShape": "4. Изберете вентилация - {{shape}}", "selectVentilationSubtitle": "Моля, първо изберете размер на палатка.", - "selectExtrasTitle": "5. Добавете допълнителни продукти (по избор)", + "selectExtrasTitle": "5. Добавете допълнения (по избор)", "yourConfiguration": "🎯 Вашата конфигурация", "growboxLabel": "Growbox: {{name}}", "lightingLabel": "Осветление: {{name}}", "ventilationLabel": "Вентилация: {{name}}", - "extraLabel": "Допълнително: {{name}}", + "extraLabel": "Допълнение: {{name}}", "totalPrice": "Обща цена:", "addToCart": "Добави в количката", "selected": "✓ Избрано", "notDeliverable": "Не е налично за доставка", "noPrice": "Няма цена", - "setName": "Комплект Growbox - {{shape}}" + "setName": "Комплект Growbox - {{shape}}", + "description60x60": "Компактен - идеален за малки пространства", + "description80x80": "Среден - перфектен баланс", + "description100x100": "Голям - за опитни отглеждачи", + "description120x60": "Правоъгълен - максимално използване на пространството", + "plants1to2": "1-2 растения", + "plants2to4": "2-4 растения", + "plants4to6": "4-6 растения", + "plants3to6": "3-6 растения" }; diff --git a/src/i18n/locales/cs/kitConfig.js b/src/i18n/locales/cs/kitConfig.js index 93c7c58..9cba6df 100644 --- a/src/i18n/locales/cs/kitConfig.js +++ b/src/i18n/locales/cs/kitConfig.js @@ -1,14 +1,14 @@ export default { - "pageTitle": "🌱 Konfigurátor growboxu", + "pageTitle": "🌱 Konfigurátor Growboxu", "pageSubtitle": "Sestavte si svůj dokonalý indoor grow setup", - "bundleDiscountTitle": "🎯 Získejte slevu na balíček!", + "bundleDiscountTitle": "🎯 Zajistěte si slevu na balíček!", "loadingProducts": "Načítání produktů growboxu...", "loadingLighting": "Načítání osvětlení...", "loadingVentilation": "Načítání ventilace...", "loadingExtras": "Načítání doplňků...", "noProductsAvailable": "Pro tuto velikost nejsou k dispozici žádné produkty", "noLightingAvailable": "Pro velikost stanu {{shape}} nejsou k dispozici žádná vhodná světla.", - "noVentilationAvailable": "Pro velikost stanu {{shape}} není k dispozici žádná vhodná ventilace.", + "noVentilationAvailable": "Pro velikost stanu {{shape}} není k dispozici vhodná ventilace.", "noExtrasAvailable": "Žádné doplňky nejsou k dispozici", "selectShapeTitle": "1. Vyberte tvar growboxu", "selectShapeSubtitle": "Nejprve vyberte základní plochu vašeho growboxu", @@ -31,5 +31,13 @@ export default { "selected": "✓ Vybráno", "notDeliverable": "Nedodává se", "noPrice": "Bez ceny", - "setName": "Sada growboxu - {{shape}}" + "setName": "Sada growboxu - {{shape}}", + "description60x60": "Kompaktní - ideální pro malé prostory", + "description80x80": "Střední - perfektní rovnováha", + "description100x100": "Velký - pro zkušené pěstitele", + "description120x60": "Obdélníkový - maximální využití prostoru", + "plants1to2": "1-2 rostliny", + "plants2to4": "2-4 rostliny", + "plants4to6": "4-6 rostlin", + "plants3to6": "3-6 rostlin" }; diff --git a/src/i18n/locales/de/kitConfig.js b/src/i18n/locales/de/kitConfig.js index d3cf345..2f7e1d3 100644 --- a/src/i18n/locales/de/kitConfig.js +++ b/src/i18n/locales/de/kitConfig.js @@ -31,6 +31,14 @@ export default { "selected": "✓ Ausgewählt", "notDeliverable": "Nicht lieferbar", "noPrice": "Kein Preis", - "setName": "Growbox Set - {{shape}}" + "setName": "Growbox Set - {{shape}}", + "description60x60": "Kompakt - ideal für kleine Räume", + "description80x80": "Mittel - perfekte Balance", + "description100x100": "Groß - für erfahrene Grower", + "description120x60": "Rechteckig - maximale Raumnutzung", + "plants1to2": "1-2 Pflanzen", + "plants2to4": "2-4 Pflanzen", + "plants4to6": "4-6 Pflanzen", + "plants3to6": "3-6 Pflanzen" }; diff --git a/src/i18n/locales/el/kitConfig.js b/src/i18n/locales/el/kitConfig.js index 2272063..1cf262c 100644 --- a/src/i18n/locales/el/kitConfig.js +++ b/src/i18n/locales/el/kitConfig.js @@ -1,7 +1,7 @@ export default { "pageTitle": "🌱 Διαμορφωτής Growbox", "pageSubtitle": "Συνθέστε το τέλειο εσωτερικό σύστημα καλλιέργειας", - "bundleDiscountTitle": "🎯 Αποκτήστε έκπτωση πακέτου!", + "bundleDiscountTitle": "🎯 Εξασφαλίστε έκπτωση πακέτου!", "loadingProducts": "Φόρτωση προϊόντων growbox...", "loadingLighting": "Φόρτωση προϊόντων φωτισμού...", "loadingVentilation": "Φόρτωση προϊόντων αερισμού...", @@ -11,7 +11,7 @@ export default { "noVentilationAvailable": "Δεν υπάρχει κατάλληλος αερισμός για το μέγεθος σκηνής {{shape}}.", "noExtrasAvailable": "Δεν υπάρχουν επιπλέον διαθέσιμα", "selectShapeTitle": "1. Επιλέξτε το σχήμα του growbox", - "selectShapeSubtitle": "Επιλέξτε πρώτα την βασική επιφάνεια του growbox σας", + "selectShapeSubtitle": "Επιλέξτε πρώτα την επιφάνεια βάσης του growbox σας", "selectProductTitle": "2. Επιλέξτε προϊόν growbox", "selectProductSubtitle": "Επιλέξτε το κατάλληλο προϊόν για το growbox {{shape}} σας", "selectLightingTitle": "3. Επιλέξτε φωτισμό", @@ -31,5 +31,13 @@ export default { "selected": "✓ Επιλεγμένο", "notDeliverable": "Μη διαθέσιμο για παράδοση", "noPrice": "Χωρίς τιμή", - "setName": "Σετ Growbox - {{shape}}" + "setName": "Σετ Growbox - {{shape}}", + "description60x60": "Συμπαγές - ιδανικό για μικρούς χώρους", + "description80x80": "Μεσαίο - τέλεια ισορροπία", + "description100x100": "Μεγάλο - για έμπειρους καλλιεργητές", + "description120x60": "Ορθογώνιο - μέγιστη χρήση χώρου", + "plants1to2": "1-2 φυτά", + "plants2to4": "2-4 φυτά", + "plants4to6": "4-6 φυτά", + "plants3to6": "3-6 φυτά" }; diff --git a/src/i18n/locales/en/index.js b/src/i18n/locales/en/index.js index 1d9aa79..7b9abd5 100644 --- a/src/i18n/locales/en/index.js +++ b/src/i18n/locales/en/index.js @@ -19,6 +19,7 @@ import pages from './pages.js'; import orders from './orders.js'; import settings from './settings.js'; import common from './common.js'; +import kitConfig from './kitConfig.js'; import legalDatenschutzBasic from './legal-datenschutz-basic.js'; import legalDatenschutzCustomer from './legal-datenschutz-customer.js'; import legalDatenschutzGoogleOrders from './legal-datenschutz-google-orders.js'; @@ -52,6 +53,7 @@ export default { "orders": orders, "settings": settings, "common": common, + "kitConfig": kitConfig, "legalDatenschutzBasic": legalDatenschutzBasic, "legalDatenschutzCustomer": legalDatenschutzCustomer, "legalDatenschutzGoogleOrders": legalDatenschutzGoogleOrders, diff --git a/src/i18n/locales/en/kitConfig.js b/src/i18n/locales/en/kitConfig.js index 9b2fcaa..51458f6 100644 --- a/src/i18n/locales/en/kitConfig.js +++ b/src/i18n/locales/en/kitConfig.js @@ -1,7 +1,7 @@ export default { - "pageTitle": "🌱 Growbox configurator", // 🌱 Growbox Konfigurator + "pageTitle": "🌱 Growbox Configurator", // 🌱 Growbox Konfigurator "pageSubtitle": "Put together your perfect indoor grow setup", // Stelle dein perfektes Indoor Grow Setup zusammen - "bundleDiscountTitle": "🎯 Get bundle discount!", // 🎯 Bundle-Rabatt sichern! + "bundleDiscountTitle": "🎯 Secure bundle discount!", // 🎯 Bundle-Rabatt sichern! "loadingProducts": "Loading growbox products...", // Lade Growbox-Produkte... "loadingLighting": "Loading lighting products...", // Lade Beleuchtungs-Produkte... "loadingVentilation": "Loading ventilation products...", // Lade Belüftungs-Produkte... @@ -13,9 +13,9 @@ export default { "selectShapeTitle": "1. Select growbox shape", // 1. Growbox-Form auswählen "selectShapeSubtitle": "First select the base area of your growbox", // Wähle zuerst die Grundfläche deiner Growbox aus "selectProductTitle": "2. Select growbox product", // 2. Growbox Produkt auswählen - "selectProductSubtitle": "Select the right product for your {{shape}} growbox", // Wähle das passende Produkt für deine {{shape}} Growbox - "selectLightingTitle": "3. Select lighting", // 3. Beleuchtung wählen - "selectLightingTitleShape": "3. Select lighting - {{shape}}", // 3. Beleuchtung wählen - {{shape}} + "selectProductSubtitle": "Choose the right product for your {{shape}} growbox", // Wähle das passende Produkt für deine {{shape}} Growbox + "selectLightingTitle": "3. Choose lighting", // 3. Beleuchtung wählen + "selectLightingTitleShape": "3. Choose lighting - {{shape}}", // 3. Beleuchtung wählen - {{shape}} "selectLightingSubtitle": "Please select a tent size first.", // Bitte wählen Sie zuerst eine Zeltgröße aus. "selectVentilationTitle": "4. Select ventilation", // 4. Belüftung auswählen "selectVentilationTitleShape": "4. Select ventilation - {{shape}}", // 4. Belüftung auswählen - {{shape}} @@ -31,5 +31,13 @@ export default { "selected": "✓ Selected", // ✓ Ausgewählt "notDeliverable": "Not deliverable", // Nicht lieferbar "noPrice": "No price", // Kein Preis - "setName": "Growbox set - {{shape}}" // Growbox Set - {{shape}} + "setName": "Growbox set - {{shape}}", // Growbox Set - {{shape}} + "description60x60": "Compact - ideal for small spaces", // Kompakt - ideal für kleine Räume + "description80x80": "Medium - perfect balance", // Mittel - perfekte Balance + "description100x100": "Large - for experienced growers", // Groß - für erfahrene Grower + "description120x60": "Rectangular - maximum space usage", // Rechteckig - maximale Raumnutzung + "plants1to2": "1-2 plants", // 1-2 Pflanzen + "plants2to4": "2-4 plants", // 2-4 Pflanzen + "plants4to6": "4-6 plants", // 4-6 Pflanzen + "plants3to6": "3-6 plants" // 3-6 Pflanzen }; diff --git a/src/i18n/locales/es/kitConfig.js b/src/i18n/locales/es/kitConfig.js index df5fb6e..de90380 100644 --- a/src/i18n/locales/es/kitConfig.js +++ b/src/i18n/locales/es/kitConfig.js @@ -1,7 +1,7 @@ export default { "pageTitle": "🌱 Configurador de Growbox", - "pageSubtitle": "Arma tu setup perfecto de cultivo interior", - "bundleDiscountTitle": "🎯 ¡Obtén descuento por paquete!", + "pageSubtitle": "Arma tu configuración perfecta para cultivo en interior", + "bundleDiscountTitle": "🎯 ¡Asegura el descuento por paquete!", "loadingProducts": "Cargando productos de growbox...", "loadingLighting": "Cargando productos de iluminación...", "loadingVentilation": "Cargando productos de ventilación...", @@ -13,9 +13,9 @@ export default { "selectShapeTitle": "1. Selecciona la forma de la growbox", "selectShapeSubtitle": "Primero selecciona el área base de tu growbox", "selectProductTitle": "2. Selecciona el producto de growbox", - "selectProductSubtitle": "Selecciona el producto adecuado para tu growbox {{shape}}", - "selectLightingTitle": "3. Selecciona la iluminación", - "selectLightingTitleShape": "3. Selecciona la iluminación - {{shape}}", + "selectProductSubtitle": "Elige el producto adecuado para tu growbox {{shape}}", + "selectLightingTitle": "3. Elige la iluminación", + "selectLightingTitleShape": "3. Elige la iluminación - {{shape}}", "selectLightingSubtitle": "Por favor selecciona primero un tamaño de tienda.", "selectVentilationTitle": "4. Selecciona la ventilación", "selectVentilationTitleShape": "4. Selecciona la ventilación - {{shape}}", @@ -31,5 +31,13 @@ export default { "selected": "✓ Seleccionado", "notDeliverable": "No entregable", "noPrice": "Sin precio", - "setName": "Set de growbox - {{shape}}" + "setName": "Set de growbox - {{shape}}", + "description60x60": "Compacto - ideal para espacios pequeños", + "description80x80": "Mediano - equilibrio perfecto", + "description100x100": "Grande - para cultivadores experimentados", + "description120x60": "Rectangular - uso máximo del espacio", + "plants1to2": "1-2 plantas", + "plants2to4": "2-4 plantas", + "plants4to6": "4-6 plantas", + "plants3to6": "3-6 plantas" }; diff --git a/src/i18n/locales/fr/kitConfig.js b/src/i18n/locales/fr/kitConfig.js index 8082a34..3ec8786 100644 --- a/src/i18n/locales/fr/kitConfig.js +++ b/src/i18n/locales/fr/kitConfig.js @@ -1,7 +1,7 @@ export default { - "pageTitle": "🌱 Configurateur de growbox", - "pageSubtitle": "Composez votre installation de culture d'intérieur parfaite", - "bundleDiscountTitle": "🎯 Bénéficiez d'une remise sur le pack !", + "pageTitle": "🌱 Configurateur Growbox", + "pageSubtitle": "Assemblez votre installation de culture d'intérieur parfaite", + "bundleDiscountTitle": "🎯 Profitez d'une remise sur le pack !", "loadingProducts": "Chargement des produits growbox...", "loadingLighting": "Chargement des produits d'éclairage...", "loadingVentilation": "Chargement des produits de ventilation...", @@ -13,9 +13,9 @@ export default { "selectShapeTitle": "1. Sélectionnez la forme de la growbox", "selectShapeSubtitle": "Sélectionnez d'abord la surface de base de votre growbox", "selectProductTitle": "2. Sélectionnez le produit growbox", - "selectProductSubtitle": "Choisissez le produit adapté à votre growbox {{shape}}", - "selectLightingTitle": "3. Sélectionnez l'éclairage", - "selectLightingTitleShape": "3. Sélectionnez l'éclairage - {{shape}}", + "selectProductSubtitle": "Choisissez le produit adapté pour votre growbox {{shape}}", + "selectLightingTitle": "3. Choisissez l'éclairage", + "selectLightingTitleShape": "3. Choisissez l'éclairage - {{shape}}", "selectLightingSubtitle": "Veuillez d'abord sélectionner une taille de tente.", "selectVentilationTitle": "4. Sélectionnez la ventilation", "selectVentilationTitleShape": "4. Sélectionnez la ventilation - {{shape}}", @@ -31,5 +31,13 @@ export default { "selected": "✓ Sélectionné", "notDeliverable": "Non livrable", "noPrice": "Pas de prix", - "setName": "Pack growbox - {{shape}}" + "setName": "Set Growbox - {{shape}}", + "description60x60": "Compact - idéal pour les petits espaces", + "description80x80": "Moyen - équilibre parfait", + "description100x100": "Grand - pour cultivateurs expérimentés", + "description120x60": "Rectangulaire - utilisation maximale de l'espace", + "plants1to2": "1-2 plantes", + "plants2to4": "2-4 plantes", + "plants4to6": "4-6 plantes", + "plants3to6": "3-6 plantes" }; diff --git a/src/i18n/locales/hr/kitConfig.js b/src/i18n/locales/hr/kitConfig.js index 410a54e..0c30a59 100644 --- a/src/i18n/locales/hr/kitConfig.js +++ b/src/i18n/locales/hr/kitConfig.js @@ -1,15 +1,15 @@ export default { - "pageTitle": "🌱 Konfigurator growboxa", + "pageTitle": "🌱 Konfigurator Growboxa", "pageSubtitle": "Sastavite svoju savršenu unutarnju grow postavu", - "bundleDiscountTitle": "🎯 Ostvarite popust na paket!", + "bundleDiscountTitle": "🎯 Osigurajte popust na paket!", "loadingProducts": "Učitavanje growbox proizvoda...", "loadingLighting": "Učitavanje proizvoda za osvjetljenje...", "loadingVentilation": "Učitavanje proizvoda za ventilaciju...", "loadingExtras": "Učitavanje dodataka...", - "noProductsAvailable": "Nema proizvoda dostupnih za ovu veličinu", - "noLightingAvailable": "Nema odgovarajućih svjetala za veličinu šatora {{shape}}.", - "noVentilationAvailable": "Nema odgovarajuće ventilacije za veličinu šatora {{shape}}.", - "noExtrasAvailable": "Nema dodataka dostupnih", + "noProductsAvailable": "Nema dostupnih proizvoda za ovu veličinu", + "noLightingAvailable": "Nema prikladnih svjetala za veličinu šatora {{shape}}.", + "noVentilationAvailable": "Nema prikladne ventilacije za veličinu šatora {{shape}}.", + "noExtrasAvailable": "Nema dodataka", "selectShapeTitle": "1. Odaberite oblik growboxa", "selectShapeSubtitle": "Prvo odaberite osnovnu površinu vašeg growboxa", "selectProductTitle": "2. Odaberite growbox proizvod", @@ -29,7 +29,15 @@ export default { "totalPrice": "Ukupna cijena:", "addToCart": "Dodaj u košaricu", "selected": "✓ Odabrano", - "notDeliverable": "Nije dostavljivo", + "notDeliverable": "Nije dostupno za dostavu", "noPrice": "Nema cijene", - "setName": "Growbox set - {{shape}}" + "setName": "Growbox set - {{shape}}", + "description60x60": "Kompaktan - idealan za male prostore", + "description80x80": "Srednji - savršen balans", + "description100x100": "Veliki - za iskusne uzgajivače", + "description120x60": "Pravokutni - maksimalno iskorištavanje prostora", + "plants1to2": "1-2 biljke", + "plants2to4": "2-4 biljke", + "plants4to6": "4-6 biljaka", + "plants3to6": "3-6 biljaka" }; diff --git a/src/i18n/locales/hu/kitConfig.js b/src/i18n/locales/hu/kitConfig.js index d782667..b7942d2 100644 --- a/src/i18n/locales/hu/kitConfig.js +++ b/src/i18n/locales/hu/kitConfig.js @@ -1,35 +1,43 @@ export default { - "pageTitle": "🌱 Growbox konfigurátor", - "pageSubtitle": "Állítsd össze a tökéletes beltéri termesztő rendszeredet", + "pageTitle": "🌱 Growbox Konfigurátor", + "pageSubtitle": "Állítsd össze a tökéletes beltéri növénytermesztő rendszeredet", "bundleDiscountTitle": "🎯 Szerezd meg a csomagkedvezményt!", "loadingProducts": "Growbox termékek betöltése...", "loadingLighting": "Világítási termékek betöltése...", "loadingVentilation": "Szellőztető termékek betöltése...", - "loadingExtras": "Extrák betöltése...", + "loadingExtras": "Kiegészítők betöltése...", "noProductsAvailable": "Nincs elérhető termék ehhez a mérethez", - "noLightingAvailable": "Nincs megfelelő lámpa a(z) {{shape}} sátormérethez.", + "noLightingAvailable": "Nincs megfelelő világítás a(z) {{shape}} sátormérethez.", "noVentilationAvailable": "Nincs megfelelő szellőztetés a(z) {{shape}} sátormérethez.", - "noExtrasAvailable": "Nincsenek extrák", + "noExtrasAvailable": "Nincsenek elérhető kiegészítők", "selectShapeTitle": "1. Válaszd ki a growbox formáját", "selectShapeSubtitle": "Először válaszd ki a growbox alapterületét", "selectProductTitle": "2. Válaszd ki a growbox terméket", "selectProductSubtitle": "Válaszd ki a megfelelő terméket a(z) {{shape}} growboxodhoz", - "selectLightingTitle": "3. Válaszd ki a világítást", - "selectLightingTitleShape": "3. Válaszd ki a világítást - {{shape}}", + "selectLightingTitle": "3. Válassz világítást", + "selectLightingTitleShape": "3. Válassz világítást - {{shape}}", "selectLightingSubtitle": "Kérjük, először válassz sátorméretet.", "selectVentilationTitle": "4. Válaszd ki a szellőztetést", "selectVentilationTitleShape": "4. Válaszd ki a szellőztetést - {{shape}}", "selectVentilationSubtitle": "Kérjük, először válassz sátorméretet.", - "selectExtrasTitle": "5. Adj hozzá extrákat (opcionális)", + "selectExtrasTitle": "5. Adj hozzá kiegészítőket (opcionális)", "yourConfiguration": "🎯 A te konfigurációd", "growboxLabel": "Growbox: {{name}}", "lightingLabel": "Világítás: {{name}}", "ventilationLabel": "Szellőztetés: {{name}}", - "extraLabel": "Extra: {{name}}", + "extraLabel": "Kiegészítő: {{name}}", "totalPrice": "Teljes ár:", "addToCart": "Kosárba tesz", "selected": "✓ Kiválasztva", "notDeliverable": "Nem szállítható", "noPrice": "Nincs ár", - "setName": "Growbox szett - {{shape}}" + "setName": "Growbox szett - {{shape}}", + "description60x60": "Kompakt - ideális kis helyekre", + "description80x80": "Közepes - tökéletes egyensúly", + "description100x100": "Nagy - tapasztalt termesztőknek", + "description120x60": "Téglalap alakú - maximális helykihasználás", + "plants1to2": "1-2 növény", + "plants2to4": "2-4 növény", + "plants4to6": "4-6 növény", + "plants3to6": "3-6 növény" }; diff --git a/src/i18n/locales/it/kitConfig.js b/src/i18n/locales/it/kitConfig.js index 4e19f13..388ef8b 100644 --- a/src/i18n/locales/it/kitConfig.js +++ b/src/i18n/locales/it/kitConfig.js @@ -1,7 +1,7 @@ export default { "pageTitle": "🌱 Configuratore Growbox", "pageSubtitle": "Metti insieme il tuo setup indoor perfetto", - "bundleDiscountTitle": "🎯 Ottieni lo sconto bundle!", + "bundleDiscountTitle": "🎯 Sfrutta lo sconto bundle!", "loadingProducts": "Caricamento prodotti growbox...", "loadingLighting": "Caricamento prodotti illuminazione...", "loadingVentilation": "Caricamento prodotti ventilazione...", @@ -13,9 +13,9 @@ export default { "selectShapeTitle": "1. Seleziona la forma della growbox", "selectShapeSubtitle": "Seleziona prima l'area di base della tua growbox", "selectProductTitle": "2. Seleziona il prodotto growbox", - "selectProductSubtitle": "Seleziona il prodotto giusto per la tua growbox {{shape}}", - "selectLightingTitle": "3. Seleziona l'illuminazione", - "selectLightingTitleShape": "3. Seleziona l'illuminazione - {{shape}}", + "selectProductSubtitle": "Scegli il prodotto giusto per la tua growbox {{shape}}", + "selectLightingTitle": "3. Scegli l'illuminazione", + "selectLightingTitleShape": "3. Scegli l'illuminazione - {{shape}}", "selectLightingSubtitle": "Per favore seleziona prima una dimensione della tenda.", "selectVentilationTitle": "4. Seleziona la ventilazione", "selectVentilationTitleShape": "4. Seleziona la ventilazione - {{shape}}", @@ -31,5 +31,13 @@ export default { "selected": "✓ Selezionato", "notDeliverable": "Non disponibile", "noPrice": "Nessun prezzo", - "setName": "Set Growbox - {{shape}}" + "setName": "Set Growbox - {{shape}}", + "description60x60": "Compatto - ideale per spazi piccoli", + "description80x80": "Medio - equilibrio perfetto", + "description100x100": "Grande - per coltivatori esperti", + "description120x60": "Rettangolare - massimo utilizzo dello spazio", + "plants1to2": "1-2 piante", + "plants2to4": "2-4 piante", + "plants4to6": "4-6 piante", + "plants3to6": "3-6 piante" }; diff --git a/src/i18n/locales/pl/kitConfig.js b/src/i18n/locales/pl/kitConfig.js index a0598d3..8d609db 100644 --- a/src/i18n/locales/pl/kitConfig.js +++ b/src/i18n/locales/pl/kitConfig.js @@ -1,19 +1,19 @@ export default { - "pageTitle": "🌱 Konfigurator growboxa", - "pageSubtitle": "Skonfiguruj idealny zestaw do uprawy w pomieszczeniu", - "bundleDiscountTitle": "🎯 Skorzystaj z rabatu na zestaw!", + "pageTitle": "🌱 Konfigurator Growbox", + "pageSubtitle": "Złóż idealny zestaw do uprawy w pomieszczeniu", + "bundleDiscountTitle": "🎯 Zabezpiecz rabat na zestaw!", "loadingProducts": "Ładowanie produktów growbox...", "loadingLighting": "Ładowanie produktów oświetleniowych...", "loadingVentilation": "Ładowanie produktów wentylacyjnych...", "loadingExtras": "Ładowanie dodatków...", "noProductsAvailable": "Brak produktów dostępnych dla tego rozmiaru", - "noLightingAvailable": "Brak odpowiednich lamp dla rozmiaru namiotu {{shape}}.", + "noLightingAvailable": "Brak odpowiednich świateł dla rozmiaru namiotu {{shape}}.", "noVentilationAvailable": "Brak odpowiedniej wentylacji dla rozmiaru namiotu {{shape}}.", "noExtrasAvailable": "Brak dodatków", - "selectShapeTitle": "1. Wybierz kształt growboxa", - "selectShapeSubtitle": "Najpierw wybierz powierzchnię podstawy swojego growboxa", - "selectProductTitle": "2. Wybierz produkt growboxa", - "selectProductSubtitle": "Wybierz odpowiedni produkt dla swojego growboxa {{shape}}", + "selectShapeTitle": "1. Wybierz kształt growbox", + "selectShapeSubtitle": "Najpierw wybierz powierzchnię podstawy swojego growbox", + "selectProductTitle": "2. Wybierz produkt growbox", + "selectProductSubtitle": "Wybierz odpowiedni produkt dla swojego growbox {{shape}}", "selectLightingTitle": "3. Wybierz oświetlenie", "selectLightingTitleShape": "3. Wybierz oświetlenie - {{shape}}", "selectLightingSubtitle": "Proszę najpierw wybrać rozmiar namiotu.", @@ -31,5 +31,13 @@ export default { "selected": "✓ Wybrane", "notDeliverable": "Niedostępne", "noPrice": "Brak ceny", - "setName": "Zestaw growbox - {{shape}}" + "setName": "Zestaw growbox - {{shape}}", + "description60x60": "Kompaktowy - idealny do małych przestrzeni", + "description80x80": "Średni - idealna równowaga", + "description100x100": "Duży - dla doświadczonych hodowców", + "description120x60": "Prostokątny - maksymalne wykorzystanie przestrzeni", + "plants1to2": "1-2 rośliny", + "plants2to4": "2-4 rośliny", + "plants4to6": "4-6 roślin", + "plants3to6": "3-6 roślin" }; diff --git a/src/i18n/locales/ro/kitConfig.js b/src/i18n/locales/ro/kitConfig.js index 41af8b4..2922aff 100644 --- a/src/i18n/locales/ro/kitConfig.js +++ b/src/i18n/locales/ro/kitConfig.js @@ -1,7 +1,7 @@ export default { "pageTitle": "🌱 Configurator Growbox", "pageSubtitle": "Asamblează-ți setup-ul perfect pentru cultivare indoor", - "bundleDiscountTitle": "🎯 Obține reducere la pachet!", + "bundleDiscountTitle": "🎯 Asigură-ți reducerea pentru pachet!", "loadingProducts": "Se încarcă produse growbox...", "loadingLighting": "Se încarcă produse de iluminat...", "loadingVentilation": "Se încarcă produse de ventilație...", @@ -13,9 +13,9 @@ export default { "selectShapeTitle": "1. Selectează forma growbox-ului", "selectShapeSubtitle": "Mai întâi selectează suprafața de bază a growbox-ului tău", "selectProductTitle": "2. Selectează produsul growbox", - "selectProductSubtitle": "Selectează produsul potrivit pentru growbox-ul tău {{shape}}", - "selectLightingTitle": "3. Selectează iluminatul", - "selectLightingTitleShape": "3. Selectează iluminatul - {{shape}}", + "selectProductSubtitle": "Alege produsul potrivit pentru growbox-ul tău {{shape}}", + "selectLightingTitle": "3. Alege iluminatul", + "selectLightingTitleShape": "3. Alege iluminatul - {{shape}}", "selectLightingSubtitle": "Te rugăm să selectezi mai întâi dimensiunea cortului.", "selectVentilationTitle": "4. Selectează ventilația", "selectVentilationTitleShape": "4. Selectează ventilația - {{shape}}", @@ -29,7 +29,15 @@ export default { "totalPrice": "Preț total:", "addToCart": "Adaugă în coș", "selected": "✓ Selectat", - "notDeliverable": "Nu se poate livra", + "notDeliverable": "Nedisponibil pentru livrare", "noPrice": "Fără preț", - "setName": "Set Growbox - {{shape}}" + "setName": "Set Growbox - {{shape}}", + "description60x60": "Compact - ideal pentru spații mici", + "description80x80": "Mediu - echilibru perfect", + "description100x100": "Mare - pentru cultivatori experimentați", + "description120x60": "Dreptunghiular - utilizare maximă a spațiului", + "plants1to2": "1-2 plante", + "plants2to4": "2-4 plante", + "plants4to6": "4-6 plante", + "plants3to6": "3-6 plante" }; diff --git a/src/i18n/locales/ru/kitConfig.js b/src/i18n/locales/ru/kitConfig.js index 1e73f3e..d115787 100644 --- a/src/i18n/locales/ru/kitConfig.js +++ b/src/i18n/locales/ru/kitConfig.js @@ -2,16 +2,16 @@ export default { "pageTitle": "🌱 Конфигуратор Growbox", "pageSubtitle": "Соберите идеальную установку для выращивания в помещении", "bundleDiscountTitle": "🎯 Получите скидку на комплект!", - "loadingProducts": "Загрузка продуктов для growbox...", + "loadingProducts": "Загрузка продуктов growbox...", "loadingLighting": "Загрузка продуктов освещения...", "loadingVentilation": "Загрузка продуктов вентиляции...", - "loadingExtras": "Загрузка дополнительных товаров...", - "noProductsAvailable": "Нет доступных продуктов для этого размера", + "loadingExtras": "Загрузка дополнительных опций...", + "noProductsAvailable": "Нет продуктов для этого размера", "noLightingAvailable": "Нет подходящих ламп для размера палатки {{shape}}.", "noVentilationAvailable": "Нет подходящей вентиляции для размера палатки {{shape}}.", "noExtrasAvailable": "Дополнения отсутствуют", "selectShapeTitle": "1. Выберите форму growbox", - "selectShapeSubtitle": "Сначала выберите базовую площадь вашей growbox", + "selectShapeSubtitle": "Сначала выберите площадь основания вашей growbox", "selectProductTitle": "2. Выберите продукт growbox", "selectProductSubtitle": "Выберите подходящий продукт для вашей growbox {{shape}}", "selectLightingTitle": "3. Выберите освещение", @@ -31,5 +31,13 @@ export default { "selected": "✓ Выбрано", "notDeliverable": "Не подлежит доставке", "noPrice": "Нет цены", - "setName": "Набор Growbox - {{shape}}" + "setName": "Набор Growbox - {{shape}}", + "description60x60": "Компактный - идеально для небольших помещений", + "description80x80": "Средний - идеальный баланс", + "description100x100": "Большой - для опытных выращивателей", + "description120x60": "Прямоугольный - максимальное использование пространства", + "plants1to2": "1-2 растения", + "plants2to4": "2-4 растения", + "plants4to6": "4-6 растений", + "plants3to6": "3-6 растений" }; diff --git a/src/i18n/locales/sk/kitConfig.js b/src/i18n/locales/sk/kitConfig.js index 9c87c62..589ce75 100644 --- a/src/i18n/locales/sk/kitConfig.js +++ b/src/i18n/locales/sk/kitConfig.js @@ -1,14 +1,14 @@ export default { - "pageTitle": "🌱 Konfigurátor growboxu", - "pageSubtitle": "Zostavte si svoj dokonalý vnútorný grow setup", - "bundleDiscountTitle": "🎯 Získajte zľavu na balík!", + "pageTitle": "🌱 Konfigurátor Growboxu", + "pageSubtitle": "Zostavte si svoj dokonalý vnútorný pestovateľský setup", + "bundleDiscountTitle": "🎯 Zabezpečte si zľavu na balík!", "loadingProducts": "Načítavam produkty growboxu...", "loadingLighting": "Načítavam osvetľovacie produkty...", "loadingVentilation": "Načítavam ventilačné produkty...", "loadingExtras": "Načítavam doplnky...", "noProductsAvailable": "Pre túto veľkosť nie sú dostupné žiadne produkty", - "noLightingAvailable": "Pre veľkosť stanu {{shape}} nie sú dostupné žiadne vhodné svetlá.", - "noVentilationAvailable": "Pre veľkosť stanu {{shape}} nie je dostupná žiadna vhodná ventilácia.", + "noLightingAvailable": "Pre veľkosť stanu {{shape}} nie sú dostupné vhodné svetlá.", + "noVentilationAvailable": "Pre veľkosť stanu {{shape}} nie je dostupná vhodná ventilácia.", "noExtrasAvailable": "Žiadne doplnky nie sú dostupné", "selectShapeTitle": "1. Vyberte tvar growboxu", "selectShapeSubtitle": "Najskôr vyberte základnú plochu vášho growboxu", @@ -31,5 +31,13 @@ export default { "selected": "✓ Vybrané", "notDeliverable": "Nedodávateľné", "noPrice": "Bez ceny", - "setName": "Sada growboxu - {{shape}}" + "setName": "Sada growboxu - {{shape}}", + "description60x60": "Kompaktný - ideálny pre malé priestory", + "description80x80": "Stredný - dokonalá rovnováha", + "description100x100": "Veľký - pre skúsených pestovateľov", + "description120x60": "Obdĺžnikový - maximálne využitie priestoru", + "plants1to2": "1-2 rastliny", + "plants2to4": "2-4 rastliny", + "plants4to6": "4-6 rastlín", + "plants3to6": "3-6 rastlín" }; diff --git a/src/i18n/locales/sl/kitConfig.js b/src/i18n/locales/sl/kitConfig.js index 56acec7..768f720 100644 --- a/src/i18n/locales/sl/kitConfig.js +++ b/src/i18n/locales/sl/kitConfig.js @@ -1,8 +1,8 @@ export default { "pageTitle": "🌱 Konfigurator Growboxa", "pageSubtitle": "Sestavite svojo popolno notranjo growbox postavitev", - "bundleDiscountTitle": "🎯 Pridobite popust za paket!", - "loadingProducts": "Nalaganje growbox izdelkov...", + "bundleDiscountTitle": "🎯 Zagotovite si popust za paket!", + "loadingProducts": "Nalaganje izdelkov growboxa...", "loadingLighting": "Nalaganje svetlobnih izdelkov...", "loadingVentilation": "Nalaganje prezračevalnih izdelkov...", "loadingExtras": "Nalaganje dodatkov...", @@ -12,7 +12,7 @@ export default { "noExtrasAvailable": "Ni na voljo dodatkov", "selectShapeTitle": "1. Izberite obliko growboxa", "selectShapeSubtitle": "Najprej izberite osnovno površino vašega growboxa", - "selectProductTitle": "2. Izberite growbox izdelek", + "selectProductTitle": "2. Izberite izdelek growboxa", "selectProductSubtitle": "Izberite pravi izdelek za vaš {{shape}} growbox", "selectLightingTitle": "3. Izberite osvetlitev", "selectLightingTitleShape": "3. Izberite osvetlitev - {{shape}}", @@ -31,5 +31,13 @@ export default { "selected": "✓ Izbrano", "notDeliverable": "Ni dobavljivo", "noPrice": "Brez cene", - "setName": "Growbox komplet - {{shape}}" + "setName": "Growbox komplet - {{shape}}", + "description60x60": "Kompaktno - idealno za majhne prostore", + "description80x80": "Srednje - popolno ravnovesje", + "description100x100": "Veliko - za izkušene gojitelje", + "description120x60": "Pravokotno - maksimalna izraba prostora", + "plants1to2": "1-2 rastlini", + "plants2to4": "2-4 rastline", + "plants4to6": "4-6 rastlin", + "plants3to6": "3-6 rastlin" }; diff --git a/src/i18n/locales/sq/kitConfig.js b/src/i18n/locales/sq/kitConfig.js index 65996b0..f4dba5b 100644 --- a/src/i18n/locales/sq/kitConfig.js +++ b/src/i18n/locales/sq/kitConfig.js @@ -1,7 +1,7 @@ export default { "pageTitle": "🌱 Konfiguruesi i Growbox", - "pageSubtitle": "Bëje së bashku konfigurimin perfekt të rritjes së brendshme", - "bundleDiscountTitle": "🎯 Merr zbritje për paketën!", + "pageSubtitle": "Bëj konfigurimin perfekt të rritjes së brendshme", + "bundleDiscountTitle": "🎯 Siguro zbritjen për paketën!", "loadingProducts": "Duke ngarkuar produktet e growbox...", "loadingLighting": "Duke ngarkuar produktet e ndriçimit...", "loadingVentilation": "Duke ngarkuar produktet e ventilimit...", @@ -31,5 +31,13 @@ export default { "selected": "✓ E zgjedhur", "notDeliverable": "Nuk dërgohet", "noPrice": "Pa çmim", - "setName": "Seti i Growbox - {{shape}}" + "setName": "Seti i Growbox - {{shape}}", + "description60x60": "Kompakt - ideal për hapësira të vogla", + "description80x80": "Mesatar - balancë perfekte", + "description100x100": "I madh - për kultivues me përvojë", + "description120x60": "Drejtëzues - përdorim maksimal i hapësirës", + "plants1to2": "1-2 bimë", + "plants2to4": "2-4 bimë", + "plants4to6": "4-6 bimë", + "plants3to6": "3-6 bimë" }; diff --git a/src/i18n/locales/sr/kitConfig.js b/src/i18n/locales/sr/kitConfig.js index 02a2036..89866fc 100644 --- a/src/i18n/locales/sr/kitConfig.js +++ b/src/i18n/locales/sr/kitConfig.js @@ -1,7 +1,7 @@ export default { - "pageTitle": "🌱 Konfigurator Growbox-a", - "pageSubtitle": "Sastavite svoju savršenu unutrašnju grow postavku", - "bundleDiscountTitle": "🎯 Iskoristite popust na paket!", + "pageTitle": "🌱 Growbox Konfigurator", + "pageSubtitle": "Sastavite svoju savršenu unutrašnju growbox postavku", + "bundleDiscountTitle": "🎯 Osigurajte popust na paket!", "loadingProducts": "Učitavanje growbox proizvoda...", "loadingLighting": "Učitavanje proizvoda za osvetljenje...", "loadingVentilation": "Učitavanje proizvoda za ventilaciju...", @@ -31,5 +31,13 @@ export default { "selected": "✓ Izabrano", "notDeliverable": "Nije dostupno za isporuku", "noPrice": "Nema cene", - "setName": "Growbox set - {{shape}}" + "setName": "Growbox set - {{shape}}", + "description60x60": "Kompaktan - idealan za male prostore", + "description80x80": "Srednji - savršen balans", + "description100x100": "Veliki - za iskusne uzgajivače", + "description120x60": "Pravougaoni - maksimalno iskorišćenje prostora", + "plants1to2": "1-2 biljke", + "plants2to4": "2-4 biljke", + "plants4to6": "4-6 biljaka", + "plants3to6": "3-6 biljaka" }; diff --git a/src/i18n/locales/sv/kitConfig.js b/src/i18n/locales/sv/kitConfig.js index b87bdc2..7987600 100644 --- a/src/i18n/locales/sv/kitConfig.js +++ b/src/i18n/locales/sv/kitConfig.js @@ -1,7 +1,7 @@ export default { - "pageTitle": "🌱 Growbox-konfigurator", + "pageTitle": "🌱 Growbox Konfigurator", "pageSubtitle": "Sätt ihop din perfekta inomhusodlingslösning", - "bundleDiscountTitle": "🎯 Få paketprisrabatt!", + "bundleDiscountTitle": "🎯 Säkra paketrabatten!", "loadingProducts": "Laddar growbox-produkter...", "loadingLighting": "Laddar belysningsprodukter...", "loadingVentilation": "Laddar ventilationsprodukter...", @@ -27,9 +27,17 @@ export default { "ventilationLabel": "Ventilation: {{name}}", "extraLabel": "Tillbehör: {{name}}", "totalPrice": "Totalt pris:", - "addToCart": "Lägg i kundvagn", + "addToCart": "Lägg till i kundvagn", "selected": "✓ Vald", - "notDeliverable": "Kan ej levereras", + "notDeliverable": "Kan inte levereras", "noPrice": "Inget pris", - "setName": "Growbox-set - {{shape}}" + "setName": "Growbox-set - {{shape}}", + "description60x60": "Kompakt - idealisk för små utrymmen", + "description80x80": "Medium - perfekt balans", + "description100x100": "Stor - för erfarna odlare", + "description120x60": "Rektangulär - maximal utrymmesanvändning", + "plants1to2": "1-2 växter", + "plants2to4": "2-4 växter", + "plants4to6": "4-6 växter", + "plants3to6": "3-6 växter" }; diff --git a/src/i18n/locales/tr/kitConfig.js b/src/i18n/locales/tr/kitConfig.js index c552859..3ee2af1 100644 --- a/src/i18n/locales/tr/kitConfig.js +++ b/src/i18n/locales/tr/kitConfig.js @@ -1,7 +1,7 @@ export default { - "pageTitle": "🌱 Growbox yapılandırıcı", + "pageTitle": "🌱 Growbox Konfigüratörü", "pageSubtitle": "Mükemmel iç mekan yetiştirme kurulumunuzu oluşturun", - "bundleDiscountTitle": "🎯 Paket indirimi kazanın!", + "bundleDiscountTitle": "🎯 Paket indirimini kapın!", "loadingProducts": "Growbox ürünleri yükleniyor...", "loadingLighting": "Aydınlatma ürünleri yükleniyor...", "loadingVentilation": "Havalandırma ürünleri yükleniyor...", @@ -10,9 +10,9 @@ export default { "noLightingAvailable": "{{shape}} çadır boyutu için uygun ışık yok.", "noVentilationAvailable": "{{shape}} çadır boyutu için uygun havalandırma yok.", "noExtrasAvailable": "Ekstra yok", - "selectShapeTitle": "1. Growbox şeklini seçin", + "selectShapeTitle": "1. Growbox şekli seçin", "selectShapeSubtitle": "Öncelikle growbox taban alanını seçin", - "selectProductTitle": "2. Growbox ürününü seçin", + "selectProductTitle": "2. Growbox ürünü seçin", "selectProductSubtitle": "{{shape}} growbox için doğru ürünü seçin", "selectLightingTitle": "3. Aydınlatmayı seçin", "selectLightingTitleShape": "3. Aydınlatmayı seçin - {{shape}}", @@ -29,7 +29,15 @@ export default { "totalPrice": "Toplam fiyat:", "addToCart": "Sepete ekle", "selected": "✓ Seçildi", - "notDeliverable": "Teslim edilemiyor", + "notDeliverable": "Teslim edilemez", "noPrice": "Fiyat yok", - "setName": "Growbox seti - {{shape}}" + "setName": "Growbox seti - {{shape}}", + "description60x60": "Kompakt - küçük alanlar için ideal", + "description80x80": "Orta - mükemmel denge", + "description100x100": "Büyük - deneyimli yetiştiriciler için", + "description120x60": "Dikdörtgen - maksimum alan kullanımı", + "plants1to2": "1-2 bitki", + "plants2to4": "2-4 bitki", + "plants4to6": "4-6 bitki", + "plants3to6": "3-6 bitki" }; diff --git a/src/i18n/locales/uk/kitConfig.js b/src/i18n/locales/uk/kitConfig.js index 7daec30..42f6ea0 100644 --- a/src/i18n/locales/uk/kitConfig.js +++ b/src/i18n/locales/uk/kitConfig.js @@ -1,19 +1,19 @@ export default { "pageTitle": "🌱 Конфігуратор Growbox", - "pageSubtitle": "Складіть ідеальну систему для вирощування в приміщенні", + "pageSubtitle": "Складіть ідеальну установку для вирощування в приміщенні", "bundleDiscountTitle": "🎯 Отримайте знижку на комплект!", "loadingProducts": "Завантаження продуктів growbox...", - "loadingLighting": "Завантаження освітлювальних продуктів...", - "loadingVentilation": "Завантаження вентиляційних продуктів...", + "loadingLighting": "Завантаження продуктів освітлення...", + "loadingVentilation": "Завантаження продуктів вентиляції...", "loadingExtras": "Завантаження додаткових опцій...", - "noProductsAvailable": "Немає продуктів для цього розміру", - "noLightingAvailable": "Немає підходящих ламп для розміру намету {{shape}}.", - "noVentilationAvailable": "Немає підходящої вентиляції для розміру намету {{shape}}.", + "noProductsAvailable": "Для цього розміру немає доступних продуктів", + "noLightingAvailable": "Для розміру намету {{shape}} немає підходящих ламп.", + "noVentilationAvailable": "Для розміру намету {{shape}} немає підходящої вентиляції.", "noExtrasAvailable": "Додаткові опції відсутні", "selectShapeTitle": "1. Виберіть форму growbox", - "selectShapeSubtitle": "Спочатку виберіть базову площу вашого growbox", + "selectShapeSubtitle": "Спочатку виберіть площу основи вашого growbox", "selectProductTitle": "2. Виберіть продукт growbox", - "selectProductSubtitle": "Виберіть відповідний продукт для вашого growbox {{shape}}", + "selectProductSubtitle": "Виберіть відповідний продукт для вашого {{shape}} growbox", "selectLightingTitle": "3. Виберіть освітлення", "selectLightingTitleShape": "3. Виберіть освітлення - {{shape}}", "selectLightingSubtitle": "Будь ласка, спочатку виберіть розмір намету.", @@ -28,8 +28,16 @@ export default { "extraLabel": "Додатково: {{name}}", "totalPrice": "Загальна ціна:", "addToCart": "Додати до кошика", - "selected": "✓ Вибрано", - "notDeliverable": "Недоступно для доставки", + "selected": "✓ Обрано", + "notDeliverable": "Не доставляється", "noPrice": "Ціна відсутня", - "setName": "Набір Growbox - {{shape}}" + "setName": "Набір Growbox - {{shape}}", + "description60x60": "Компактний - ідеально для невеликих приміщень", + "description80x80": "Середній - ідеальний баланс", + "description100x100": "Великий - для досвідчених вирощувачів", + "description120x60": "Прямокутний - максимальне використання простору", + "plants1to2": "1-2 рослини", + "plants2to4": "2-4 рослини", + "plants4to6": "4-6 рослин", + "plants3to6": "3-6 рослин" }; diff --git a/src/i18n/locales/zh/kitConfig.js b/src/i18n/locales/zh/kitConfig.js index 45510d5..4b4166e 100644 --- a/src/i18n/locales/zh/kitConfig.js +++ b/src/i18n/locales/zh/kitConfig.js @@ -1,17 +1,17 @@ export default { "pageTitle": "🌱 种植箱配置器", "pageSubtitle": "组装你的完美室内种植方案", - "bundleDiscountTitle": "🎯 获取套餐折扣!", + "bundleDiscountTitle": "🎯 获取捆绑优惠!", "loadingProducts": "正在加载种植箱产品...", "loadingLighting": "正在加载照明产品...", "loadingVentilation": "正在加载通风产品...", "loadingExtras": "正在加载附加产品...", - "noProductsAvailable": "此尺寸无可用产品", - "noLightingAvailable": "没有适合 {{shape}} 帐篷尺寸的灯具。", - "noVentilationAvailable": "没有适合 {{shape}} 帐篷尺寸的通风设备。", - "noExtrasAvailable": "无附加产品", + "noProductsAvailable": "此尺寸暂无可用产品", + "noLightingAvailable": "没有适合帐篷尺寸 {{shape}} 的灯具。", + "noVentilationAvailable": "没有适合帐篷尺寸 {{shape}} 的通风设备。", + "noExtrasAvailable": "暂无附加产品", "selectShapeTitle": "1. 选择种植箱形状", - "selectShapeSubtitle": "首先选择你的种植箱基底面积", + "selectShapeSubtitle": "首先选择你的种植箱底面积", "selectProductTitle": "2. 选择种植箱产品", "selectProductSubtitle": "为你的 {{shape}} 种植箱选择合适的产品", "selectLightingTitle": "3. 选择照明", @@ -29,7 +29,15 @@ export default { "totalPrice": "总价:", "addToCart": "加入购物车", "selected": "✓ 已选择", - "notDeliverable": "不可配送", + "notDeliverable": "无法配送", "noPrice": "无价格", - "setName": "种植箱套装 - {{shape}}" + "setName": "种植箱套装 - {{shape}}", + "description60x60": "紧凑型 - 适合小空间", + "description80x80": "中等型 - 完美平衡", + "description100x100": "大型 - 适合有经验的种植者", + "description120x60": "长方形 - 最大空间利用", + "plants1to2": "1-2 株植物", + "plants2to4": "2-4 株植物", + "plants4to6": "4-6 株植物", + "plants3to6": "3-6 株植物" }; diff --git a/src/pages/GrowTentKonfigurator.js b/src/pages/GrowTentKonfigurator.js index 62abf7e..39c023c 100644 --- a/src/pages/GrowTentKonfigurator.js +++ b/src/pages/GrowTentKonfigurator.js @@ -162,6 +162,30 @@ class GrowTentKonfigurator extends Component { ) { this.saveStateToWindow(); } + + // Check if language changed and reload category data + const currentLanguage = this.props.languageContext?.currentLanguage || this.props.i18n?.language; + const prevLanguage = prevProps.languageContext?.currentLanguage || prevProps.i18n?.language; + + if (currentLanguage && prevLanguage && currentLanguage !== prevLanguage) { + console.log(`Language changed from ${prevLanguage} to ${currentLanguage} - reloading configurator data`); + + // Reset category load status to trigger loading state UI + this.setState({ + categoryLoadStatus: { + "Zelte": false, + "Lampen": false, + "Abluft-sets": false, + "Set-zubehoer": false + } + }, () => { + // Fetch data for all categories with new language + this.fetchCategoryData("Zelte"); + this.fetchCategoryData("Lampen"); + this.fetchCategoryData("Abluft-sets"); + this.fetchCategoryData("Set-zubehoer"); + }); + } } componentWillUnmount() { @@ -462,11 +486,12 @@ class GrowTentKonfigurator extends Component { // Helper function to generate coverage descriptions getCoverageDescription(width, depth) { + const { t } = this.props; const area = width * depth; - if (area <= 3600) return '1-2 Pflanzen'; // 60x60 - if (area <= 6400) return '2-4 Pflanzen'; // 80x80 - if (area <= 10000) return '4-6 Pflanzen'; // 100x100 - return '3-6 Pflanzen'; // 120x60 and larger + if (area <= 3600) return t ? t('kitConfig.plants1to2') : '1-2 Pflanzen'; // 60x60 + if (area <= 6400) return t ? t('kitConfig.plants2to4') : '2-4 Pflanzen'; // 80x80 + if (area <= 10000) return t ? t('kitConfig.plants4to6') : '4-6 Pflanzen'; // 100x100 + return t ? t('kitConfig.plants3to6') : '3-6 Pflanzen'; // 120x60 and larger } // Render tent image using working code from Product component