feat: Update translations for indoor season to outdoor season across multiple locales and adjust MainPageLayout component accordingly

This commit is contained in:
sebseb7
2026-03-16 08:13:01 +01:00
parent 80b066842d
commit 1e1a0c7320
23 changed files with 37 additions and 37 deletions

View File

@@ -14,7 +14,7 @@ import { useTranslation } from 'react-i18next';
const ContentBox = ({ box, index, pageType, starHovered, setStarHovered, opacity, translatedContent }) => ( const ContentBox = ({ box, index, pageType, starHovered, setStarHovered, opacity, translatedContent }) => (
<Grid key={`${pageType}-${index}`} item xs={12} sm={6} sx={{ p: 2, width: "50%", position: 'relative' }}> <Grid key={`${pageType}-${index}`} item xs={12} sm={6} sx={{ p: 2, width: "50%", position: 'relative' }}>
{index === 0 && pageType === "filiale" && ( {index === 0 && pageType === "home" && (
<Box <Box
sx={{ sx={{
position: 'absolute', position: 'absolute',
@@ -39,7 +39,7 @@ const ContentBox = ({ box, index, pageType, starHovered, setStarHovered, opacity
<polygon points="30,0 38,20 60,22 43,37 48,60 30,48 12,60 17,37 0,22 22,20" fill="#FFD700" /> <polygon points="30,0 38,20 60,22 43,37 48,60 30,48 12,60 17,37 0,22 22,20" fill="#FFD700" />
</svg> </svg>
<div style={{ position: 'absolute', top: '45%', left: '43%', transform: 'translate(-50%, -50%) rotate(-10deg)', color: 'white', fontWeight: '900', fontSize: '20px', textShadow: '0px 3px 6px rgba(0,0,0,0.5)', zIndex: 1000, textAlign: 'center', lineHeight: '1.1', width: '135px', transition: 'opacity 0.3s ease', opacity: starHovered ? 0 : 1 }}> <div style={{ position: 'absolute', top: '45%', left: '43%', transform: 'translate(-50%, -50%) rotate(-10deg)', color: 'white', fontWeight: '900', fontSize: '20px', textShadow: '0px 3px 6px rgba(0,0,0,0.5)', zIndex: 1000, textAlign: 'center', lineHeight: '1.1', width: '135px', transition: 'opacity 0.3s ease', opacity: starHovered ? 0 : 1 }}>
{translatedContent.showUsPhoto} {translatedContent.outdoorSeason}
</div> </div>
<div style={{ position: 'absolute', top: '45%', left: '43%', transform: 'translate(-50%, -50%) rotate(-10deg)', color: 'white', fontWeight: '900', fontSize: '20px', textShadow: '0px 3px 6px rgba(0,0,0,0.5)', zIndex: 1000, textAlign: 'center', lineHeight: '1.1', width: '135px', opacity: starHovered ? 1 : 0, transition: 'opacity 0.3s ease' }}> <div style={{ position: 'absolute', top: '45%', left: '43%', transform: 'translate(-50%, -50%) rotate(-10deg)', color: 'white', fontWeight: '900', fontSize: '20px', textShadow: '0px 3px 6px rgba(0,0,0,0.5)', zIndex: 1000, textAlign: 'center', lineHeight: '1.1', width: '135px', opacity: starHovered ? 1 : 0, transition: 'opacity 0.3s ease' }}>
{translatedContent.selectSeedRate} {translatedContent.selectSeedRate}
@@ -71,7 +71,7 @@ const ContentBox = ({ box, index, pageType, starHovered, setStarHovered, opacity
<polygon points="30,0 38,20 60,22 43,37 48,60 30,48 12,60 17,37 0,22 22,20" fill="#AFEEEE" /> <polygon points="30,0 38,20 60,22 43,37 48,60 30,48 12,60 17,37 0,22 22,20" fill="#AFEEEE" />
</svg> </svg>
<div style={{ position: 'absolute', top: '42%', left: '45%', transform: 'translate(-50%, -50%) rotate(10deg)', color: 'white', fontWeight: '900', fontSize: '20px', textShadow: '0px 3px 6px rgba(0,0,0,0.5)', zIndex: 1000, textAlign: 'center', lineHeight: '1.1', width: '135px' }}> <div style={{ position: 'absolute', top: '42%', left: '45%', transform: 'translate(-50%, -50%) rotate(10deg)', color: 'white', fontWeight: '900', fontSize: '20px', textShadow: '0px 3px 6px rgba(0,0,0,0.5)', zIndex: 1000, textAlign: 'center', lineHeight: '1.1', width: '135px' }}>
{translatedContent.indoorSeason} {translatedContent.showUsPhoto}
</div> </div>
</Box> </Box>
)} )}
@@ -116,7 +116,7 @@ const MainPageLayout = () => {
const translatedContent = { const translatedContent = {
showUsPhoto: t('sections.showUsPhoto'), showUsPhoto: t('sections.showUsPhoto'),
selectSeedRate: t('sections.selectSeedRate'), selectSeedRate: t('sections.selectSeedRate'),
indoorSeason: t('sections.indoorSeason') outdoorSeason: t('sections.outdoorSeason')
}; };
const isHome = currentPath === "/"; const isHome = currentPath === "/";

View File

@@ -6,7 +6,7 @@ export default {
"thcTest": "اختبار THC", "thcTest": "اختبار THC",
"address1": "شارع تراشينبرجر 14", "address1": "شارع تراشينبرجر 14",
"address2": "01129 دريسدن", "address2": "01129 دريسدن",
"showUsPhoto": "اعرض لنا أجمل صورة لديك", "showUsPhoto": "ورّينا أجمل صورة عندك",
"selectSeedRate": "اختر البذرة، واضغط للتقييم", "selectSeedRate": "اختار البذرة، واضغط تقييم",
"indoorSeason": "بدأ موسم الزراعة الداخلية" "outdoorSeason": "موسم الزراعة في الهواء الطلق بدأ"
}; };

View File

@@ -2,11 +2,11 @@ export default {
"seeds": "Семена", "seeds": "Семена",
"stecklinge": "Резници", "stecklinge": "Резници",
"konfigurator": "Конфигуратор", "konfigurator": "Конфигуратор",
"oilPress": "Наеми преса за олио", "oilPress": "Наеми преса за масло",
"thcTest": "THC тест", "thcTest": "THC тест",
"address1": "Trachenberger Straße 14", "address1": "Trachenberger Straße 14",
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Покажи ни най-красивата си снимка", "showUsPhoto": "Покажи ни най-красивата си снимка",
"selectSeedRate": "Избери семе, кликни за оценка", "selectSeedRate": "Избери семе, кликни за оценка",
"indoorSeason": "Вътрешният сезон започва" "outdoorSeason": "Започва откритият сезон"
}; };

View File

@@ -8,5 +8,5 @@ export default {
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Ukaž nám svou nejkrásnější fotku", "showUsPhoto": "Ukaž nám svou nejkrásnější fotku",
"selectSeedRate": "Vyber semeno, klikni na hodnocení", "selectSeedRate": "Vyber semeno, klikni na hodnocení",
"indoorSeason": "Začíná indoor sezóna" "outdoorSeason": "Venkovní sezóna začíná"
}; };

View File

@@ -8,5 +8,5 @@ export default {
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Zeig uns dein schönstes Foto", "showUsPhoto": "Zeig uns dein schönstes Foto",
"selectSeedRate": "Wähle Seed aus, klicke Bewerten", "selectSeedRate": "Wähle Seed aus, klicke Bewerten",
"indoorSeason": "Die Indoorsaison beginnt" "outdoorSeason": "Die Outdoorsaison beginnt"
}; };

View File

@@ -8,5 +8,5 @@ export default {
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Δείξε μας την πιο όμορφη φωτογραφία σου", "showUsPhoto": "Δείξε μας την πιο όμορφη φωτογραφία σου",
"selectSeedRate": "Επίλεξε σπόρο, κάνε κλικ για αξιολόγηση", "selectSeedRate": "Επίλεξε σπόρο, κάνε κλικ για αξιολόγηση",
"indoorSeason": "Η εσωτερική σεζόν ξεκινά" "outdoorSeason": "Η εξωτερική σεζόν ξεκινά"
}; };

View File

@@ -8,5 +8,5 @@ export default {
"address2": "01129 Dresden", // 01129 Dresden "address2": "01129 Dresden", // 01129 Dresden
"showUsPhoto": "Show us your most beautiful photo", // Zeig uns dein schönstes Foto "showUsPhoto": "Show us your most beautiful photo", // Zeig uns dein schönstes Foto
"selectSeedRate": "Select seed, click rate", // Wähle Seed aus, klicke Bewerten "selectSeedRate": "Select seed, click rate", // Wähle Seed aus, klicke Bewerten
"indoorSeason": "The indoor season begins" // Die Indoorsaison beginnt "outdoorSeason": "The outdoor season begins" // Die Outdoorsaison beginnt
}; };

View File

@@ -7,6 +7,6 @@ export default {
"address1": "Trachenberger Straße 14", "address1": "Trachenberger Straße 14",
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Muéstranos tu foto más hermosa", "showUsPhoto": "Muéstranos tu foto más hermosa",
"selectSeedRate": "Selecciona semilla, haz clic en valorar", "selectSeedRate": "Selecciona semilla, haz clic para valorar",
"indoorSeason": "Comienza la temporada de interior" "outdoorSeason": "Comienza la temporada al aire libre"
}; };

View File

@@ -8,5 +8,5 @@ export default {
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Montre-nous ta plus belle photo", "showUsPhoto": "Montre-nous ta plus belle photo",
"selectSeedRate": "Sélectionne une graine, clique pour noter", "selectSeedRate": "Sélectionne une graine, clique pour noter",
"indoorSeason": "La saison indoor commence" "outdoorSeason": "La saison en extérieur commence"
}; };

View File

@@ -8,5 +8,5 @@ export default {
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Pokaži nam svoju najljepšu fotografiju", "showUsPhoto": "Pokaži nam svoju najljepšu fotografiju",
"selectSeedRate": "Odaberi sjeme, klikni ocijeni", "selectSeedRate": "Odaberi sjeme, klikni ocijeni",
"indoorSeason": "Počinje sezona uzgoja u zatvorenom" "outdoorSeason": "Sezona na otvorenom počinje"
}; };

View File

@@ -8,5 +8,5 @@ export default {
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Mutasd meg nekünk a legszebb fotódat", "showUsPhoto": "Mutasd meg nekünk a legszebb fotódat",
"selectSeedRate": "Válassz magot, kattints az értékelésre", "selectSeedRate": "Válassz magot, kattints az értékelésre",
"indoorSeason": "Kezdődik a beltéri szezon" "outdoorSeason": "Kezdődik a szabadtéri szezon"
}; };

View File

@@ -7,6 +7,6 @@ export default {
"address1": "Trachenberger Straße 14", "address1": "Trachenberger Straße 14",
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Mostraci la tua foto più bella", "showUsPhoto": "Mostraci la tua foto più bella",
"selectSeedRate": "Seleziona il seme, clicca per valutare", "selectSeedRate": "Seleziona il seme, clicca valuta",
"indoorSeason": "La stagione indoor inizia" "outdoorSeason": "La stagione all'aperto inizia"
}; };

View File

@@ -8,6 +8,6 @@ export default {
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Pokaż nam swoje najpiękniejsze zdjęcie", "showUsPhoto": "Pokaż nam swoje najpiękniejsze zdjęcie",
"selectSeedRate": "Wybierz nasiono, kliknij ocenę", "selectSeedRate": "Wybierz nasiono, kliknij ocenę",
"indoorSeason": "Sezon indoorowy się zaczyna", "outdoorSeason": "Sezon na uprawę na zewnątrz się zaczyna",
"locale": "pl" "locale": "pl"
}; };

View File

@@ -8,5 +8,5 @@ export default {
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Arată-ne cea mai frumoasă fotografie a ta", "showUsPhoto": "Arată-ne cea mai frumoasă fotografie a ta",
"selectSeedRate": "Selectează sămânța, apasă evaluează", "selectSeedRate": "Selectează sămânța, apasă evaluează",
"indoorSeason": "Sezonul indoor începe" "outdoorSeason": "Sezonul în aer liber începe"
}; };

View File

@@ -8,5 +8,5 @@ export default {
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Покажи нам свою самую красивую фотографию", "showUsPhoto": "Покажи нам свою самую красивую фотографию",
"selectSeedRate": "Выберите семена, нажмите оценить", "selectSeedRate": "Выберите семена, нажмите оценить",
"indoorSeason": "Начинается сезон для выращивания в помещении" "outdoorSeason": "Начинается сезон для выращивания на улице"
}; };

View File

@@ -2,11 +2,11 @@ export default {
"seeds": "Semienka", "seeds": "Semienka",
"stecklinge": "Rezky", "stecklinge": "Rezky",
"konfigurator": "Konfigurátor", "konfigurator": "Konfigurátor",
"oilPress": "Požičajte si lis na olej", "oilPress": "Požičať lis na olej",
"thcTest": "THC test", "thcTest": "THC test",
"address1": "Trachenberger Straße 14", "address1": "Trachenberger Straße 14",
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Ukážte nám svoju najkrajšiu fotku", "showUsPhoto": "Ukáž nám svoju najkrajšiu fotku",
"selectSeedRate": "Vyberte semienko, kliknite na hodnotenie", "selectSeedRate": "Vyber semienko, klikni na hodnotenie",
"indoorSeason": "Začína sezóna pestovania v interiéri" "outdoorSeason": "Začína vonkajšia sezóna"
}; };

View File

@@ -2,11 +2,11 @@ export default {
"seeds": "Semena", "seeds": "Semena",
"stecklinge": "Rezalci", "stecklinge": "Rezalci",
"konfigurator": "Konfigurator", "konfigurator": "Konfigurator",
"oilPress": "Izposodi si stiskalnico olja", "oilPress": "Izposodi si stiskalnico za olje",
"thcTest": "THC test", "thcTest": "THC test",
"address1": "Trachenberger Straße 14", "address1": "Trachenberger Straße 14",
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Pokaži nam svojo najlepšo fotografijo", "showUsPhoto": "Pokaži nam svojo najlepšo fotografijo",
"selectSeedRate": "Izberi seme, klikni oceni", "selectSeedRate": "Izberi seme, klikni oceni",
"indoorSeason": "Začne se sezona gojenja v zaprtih prostorih" "outdoorSeason": "Sezona na prostem se začenja"
}; };

View File

@@ -1,12 +1,12 @@
export default { export default {
"seeds": "Farëra", "seeds": "Farëra",
"stecklinge": "Përkëmbëza", "stecklinge": "Përkëmbëza",
"konfigurator": "Konfiguruesi", "konfigurator": "Konfigurues",
"oilPress": "Huazo shtypësin e vajit", "oilPress": "Huazo shtypësin e vajit",
"thcTest": "Testi THC", "thcTest": "Testi THC",
"address1": "Trachenberger Straße 14", "address1": "Trachenberger Straße 14",
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Na trego foton tënde më të bukur", "showUsPhoto": "Na trego foton tënde më të bukur",
"selectSeedRate": "Zgjidh farën, kliko vlerësimin", "selectSeedRate": "Zgjidh farën, kliko vlerësimin",
"indoorSeason": "Sezona e brendshme fillon" "outdoorSeason": "Sezona në natyrë fillon"
}; };

View File

@@ -8,5 +8,5 @@ export default {
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Pokaži nam svoju najlepšu fotografiju", "showUsPhoto": "Pokaži nam svoju najlepšu fotografiju",
"selectSeedRate": "Izaberi seme, klikni oceni", "selectSeedRate": "Izaberi seme, klikni oceni",
"indoorSeason": "Počinje sezona za uzgoj u zatvorenom" "outdoorSeason": "Počinje sezona na otvorenom"
}; };

View File

@@ -8,5 +8,5 @@ export default {
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Visa oss din vackraste bild", "showUsPhoto": "Visa oss din vackraste bild",
"selectSeedRate": "Välj frö, klicka betyg", "selectSeedRate": "Välj frö, klicka betyg",
"indoorSeason": "Inomhussäsongen börjar" "outdoorSeason": "Utomhussäsongen börjar"
}; };

View File

@@ -2,11 +2,11 @@ export default {
"seeds": "Tohumlar", "seeds": "Tohumlar",
"stecklinge": "Çelikler", "stecklinge": "Çelikler",
"konfigurator": "Konfigüratör", "konfigurator": "Konfigüratör",
"oilPress": "Yağ presini ödünç al", "oilPress": "Yağ presi ödünç al",
"thcTest": "THC testi", "thcTest": "THC testi",
"address1": "Trachenberger Straße 14", "address1": "Trachenberger Straße 14",
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "En güzel fotoğrafını göster", "showUsPhoto": "En güzel fotoğrafını göster",
"selectSeedRate": "Tohumu seç, oy ver", "selectSeedRate": "Tohumu seç, oy ver",
"indoorSeason": "Kapalı sezon başlıyor" "outdoorSeason": "ık hava sezonu başlıyor"
}; };

View File

@@ -8,5 +8,5 @@ export default {
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "Покажи нам своє найкрасивіше фото", "showUsPhoto": "Покажи нам своє найкрасивіше фото",
"selectSeedRate": "Виберіть насіння, натисніть оцінити", "selectSeedRate": "Виберіть насіння, натисніть оцінити",
"indoorSeason": "Починається сезон для вирощування в приміщенні" "outdoorSeason": "Починається сезон на відкритому повітрі"
}; };

View File

@@ -8,5 +8,5 @@ export default {
"address2": "01129 Dresden", "address2": "01129 Dresden",
"showUsPhoto": "展示你最美的照片", "showUsPhoto": "展示你最美的照片",
"selectSeedRate": "选择种子,点击评分", "selectSeedRate": "选择种子,点击评分",
"indoorSeason": "室内季节开始了" "outdoorSeason": "户外季节开始了"
}; };