feat: Update translations for indoor season to outdoor season across multiple locales and adjust MainPageLayout component accordingly
This commit is contained in:
@@ -14,7 +14,7 @@ import { useTranslation } from 'react-i18next';
|
||||
|
||||
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' }}>
|
||||
{index === 0 && pageType === "filiale" && (
|
||||
{index === 0 && pageType === "home" && (
|
||||
<Box
|
||||
sx={{
|
||||
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" />
|
||||
</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 }}>
|
||||
{translatedContent.showUsPhoto}
|
||||
{translatedContent.outdoorSeason}
|
||||
</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' }}>
|
||||
{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" />
|
||||
</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' }}>
|
||||
{translatedContent.indoorSeason}
|
||||
{translatedContent.showUsPhoto}
|
||||
</div>
|
||||
</Box>
|
||||
)}
|
||||
@@ -116,7 +116,7 @@ const MainPageLayout = () => {
|
||||
const translatedContent = {
|
||||
showUsPhoto: t('sections.showUsPhoto'),
|
||||
selectSeedRate: t('sections.selectSeedRate'),
|
||||
indoorSeason: t('sections.indoorSeason')
|
||||
outdoorSeason: t('sections.outdoorSeason')
|
||||
};
|
||||
|
||||
const isHome = currentPath === "/";
|
||||
|
||||
@@ -6,7 +6,7 @@ export default {
|
||||
"thcTest": "اختبار THC",
|
||||
"address1": "شارع تراشينبرجر 14",
|
||||
"address2": "01129 دريسدن",
|
||||
"showUsPhoto": "اعرض لنا أجمل صورة لديك",
|
||||
"selectSeedRate": "اختر البذرة، واضغط للتقييم",
|
||||
"indoorSeason": "بدأ موسم الزراعة الداخلية"
|
||||
"showUsPhoto": "ورّينا أجمل صورة عندك",
|
||||
"selectSeedRate": "اختار البذرة، واضغط تقييم",
|
||||
"outdoorSeason": "موسم الزراعة في الهواء الطلق بدأ"
|
||||
};
|
||||
|
||||
@@ -2,11 +2,11 @@ export default {
|
||||
"seeds": "Семена",
|
||||
"stecklinge": "Резници",
|
||||
"konfigurator": "Конфигуратор",
|
||||
"oilPress": "Наеми преса за олио",
|
||||
"oilPress": "Наеми преса за масло",
|
||||
"thcTest": "THC тест",
|
||||
"address1": "Trachenberger Straße 14",
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Покажи ни най-красивата си снимка",
|
||||
"selectSeedRate": "Избери семе, кликни за оценка",
|
||||
"indoorSeason": "Вътрешният сезон започва"
|
||||
"outdoorSeason": "Започва откритият сезон"
|
||||
};
|
||||
|
||||
@@ -8,5 +8,5 @@ export default {
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Ukaž nám svou nejkrásnější fotku",
|
||||
"selectSeedRate": "Vyber semeno, klikni na hodnocení",
|
||||
"indoorSeason": "Začíná indoor sezóna"
|
||||
"outdoorSeason": "Venkovní sezóna začíná"
|
||||
};
|
||||
|
||||
@@ -8,5 +8,5 @@ export default {
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Zeig uns dein schönstes Foto",
|
||||
"selectSeedRate": "Wähle Seed aus, klicke Bewerten",
|
||||
"indoorSeason": "Die Indoorsaison beginnt"
|
||||
"outdoorSeason": "Die Outdoorsaison beginnt"
|
||||
};
|
||||
@@ -8,5 +8,5 @@ export default {
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Δείξε μας την πιο όμορφη φωτογραφία σου",
|
||||
"selectSeedRate": "Επίλεξε σπόρο, κάνε κλικ για αξιολόγηση",
|
||||
"indoorSeason": "Η εσωτερική σεζόν ξεκινά"
|
||||
"outdoorSeason": "Η εξωτερική σεζόν ξεκινά"
|
||||
};
|
||||
|
||||
@@ -8,5 +8,5 @@ export default {
|
||||
"address2": "01129 Dresden", // 01129 Dresden
|
||||
"showUsPhoto": "Show us your most beautiful photo", // Zeig uns dein schönstes Foto
|
||||
"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
|
||||
};
|
||||
|
||||
@@ -7,6 +7,6 @@ export default {
|
||||
"address1": "Trachenberger Straße 14",
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Muéstranos tu foto más hermosa",
|
||||
"selectSeedRate": "Selecciona semilla, haz clic en valorar",
|
||||
"indoorSeason": "Comienza la temporada de interior"
|
||||
"selectSeedRate": "Selecciona semilla, haz clic para valorar",
|
||||
"outdoorSeason": "Comienza la temporada al aire libre"
|
||||
};
|
||||
|
||||
@@ -8,5 +8,5 @@ export default {
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Montre-nous ta plus belle photo",
|
||||
"selectSeedRate": "Sélectionne une graine, clique pour noter",
|
||||
"indoorSeason": "La saison indoor commence"
|
||||
"outdoorSeason": "La saison en extérieur commence"
|
||||
};
|
||||
|
||||
@@ -8,5 +8,5 @@ export default {
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Pokaži nam svoju najljepšu fotografiju",
|
||||
"selectSeedRate": "Odaberi sjeme, klikni ocijeni",
|
||||
"indoorSeason": "Počinje sezona uzgoja u zatvorenom"
|
||||
"outdoorSeason": "Sezona na otvorenom počinje"
|
||||
};
|
||||
|
||||
@@ -8,5 +8,5 @@ export default {
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Mutasd meg nekünk a legszebb fotódat",
|
||||
"selectSeedRate": "Válassz magot, kattints az értékelésre",
|
||||
"indoorSeason": "Kezdődik a beltéri szezon"
|
||||
"outdoorSeason": "Kezdődik a szabadtéri szezon"
|
||||
};
|
||||
|
||||
@@ -7,6 +7,6 @@ export default {
|
||||
"address1": "Trachenberger Straße 14",
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Mostraci la tua foto più bella",
|
||||
"selectSeedRate": "Seleziona il seme, clicca per valutare",
|
||||
"indoorSeason": "La stagione indoor inizia"
|
||||
"selectSeedRate": "Seleziona il seme, clicca valuta",
|
||||
"outdoorSeason": "La stagione all'aperto inizia"
|
||||
};
|
||||
|
||||
@@ -8,6 +8,6 @@ export default {
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Pokaż nam swoje najpiękniejsze zdjęcie",
|
||||
"selectSeedRate": "Wybierz nasiono, kliknij ocenę",
|
||||
"indoorSeason": "Sezon indoorowy się zaczyna",
|
||||
"outdoorSeason": "Sezon na uprawę na zewnątrz się zaczyna",
|
||||
"locale": "pl"
|
||||
};
|
||||
|
||||
@@ -8,5 +8,5 @@ export default {
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Arată-ne cea mai frumoasă fotografie a ta",
|
||||
"selectSeedRate": "Selectează sămânța, apasă evaluează",
|
||||
"indoorSeason": "Sezonul indoor începe"
|
||||
"outdoorSeason": "Sezonul în aer liber începe"
|
||||
};
|
||||
|
||||
@@ -8,5 +8,5 @@ export default {
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Покажи нам свою самую красивую фотографию",
|
||||
"selectSeedRate": "Выберите семена, нажмите оценить",
|
||||
"indoorSeason": "Начинается сезон для выращивания в помещении"
|
||||
"outdoorSeason": "Начинается сезон для выращивания на улице"
|
||||
};
|
||||
|
||||
@@ -2,11 +2,11 @@ export default {
|
||||
"seeds": "Semienka",
|
||||
"stecklinge": "Rezky",
|
||||
"konfigurator": "Konfigurátor",
|
||||
"oilPress": "Požičajte si lis na olej",
|
||||
"oilPress": "Požičať lis na olej",
|
||||
"thcTest": "THC test",
|
||||
"address1": "Trachenberger Straße 14",
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Ukážte nám svoju najkrajšiu fotku",
|
||||
"selectSeedRate": "Vyberte semienko, kliknite na hodnotenie",
|
||||
"indoorSeason": "Začína sezóna pestovania v interiéri"
|
||||
"showUsPhoto": "Ukáž nám svoju najkrajšiu fotku",
|
||||
"selectSeedRate": "Vyber semienko, klikni na hodnotenie",
|
||||
"outdoorSeason": "Začína vonkajšia sezóna"
|
||||
};
|
||||
|
||||
@@ -2,11 +2,11 @@ export default {
|
||||
"seeds": "Semena",
|
||||
"stecklinge": "Rezalci",
|
||||
"konfigurator": "Konfigurator",
|
||||
"oilPress": "Izposodi si stiskalnico olja",
|
||||
"oilPress": "Izposodi si stiskalnico za olje",
|
||||
"thcTest": "THC test",
|
||||
"address1": "Trachenberger Straße 14",
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Pokaži nam svojo najlepšo fotografijo",
|
||||
"selectSeedRate": "Izberi seme, klikni oceni",
|
||||
"indoorSeason": "Začne se sezona gojenja v zaprtih prostorih"
|
||||
"outdoorSeason": "Sezona na prostem se začenja"
|
||||
};
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
export default {
|
||||
"seeds": "Farëra",
|
||||
"stecklinge": "Përkëmbëza",
|
||||
"konfigurator": "Konfiguruesi",
|
||||
"konfigurator": "Konfigurues",
|
||||
"oilPress": "Huazo shtypësin e vajit",
|
||||
"thcTest": "Testi THC",
|
||||
"address1": "Trachenberger Straße 14",
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Na trego foton tënde më të bukur",
|
||||
"selectSeedRate": "Zgjidh farën, kliko vlerësimin",
|
||||
"indoorSeason": "Sezona e brendshme fillon"
|
||||
"outdoorSeason": "Sezona në natyrë fillon"
|
||||
};
|
||||
|
||||
@@ -8,5 +8,5 @@ export default {
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Pokaži nam svoju najlepšu fotografiju",
|
||||
"selectSeedRate": "Izaberi seme, klikni oceni",
|
||||
"indoorSeason": "Počinje sezona za uzgoj u zatvorenom"
|
||||
"outdoorSeason": "Počinje sezona na otvorenom"
|
||||
};
|
||||
|
||||
@@ -8,5 +8,5 @@ export default {
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Visa oss din vackraste bild",
|
||||
"selectSeedRate": "Välj frö, klicka betyg",
|
||||
"indoorSeason": "Inomhussäsongen börjar"
|
||||
"outdoorSeason": "Utomhussäsongen börjar"
|
||||
};
|
||||
|
||||
@@ -2,11 +2,11 @@ export default {
|
||||
"seeds": "Tohumlar",
|
||||
"stecklinge": "Çelikler",
|
||||
"konfigurator": "Konfigüratör",
|
||||
"oilPress": "Yağ presini ödünç al",
|
||||
"oilPress": "Yağ presi ödünç al",
|
||||
"thcTest": "THC testi",
|
||||
"address1": "Trachenberger Straße 14",
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "En güzel fotoğrafını göster",
|
||||
"selectSeedRate": "Tohumu seç, oy ver",
|
||||
"indoorSeason": "Kapalı sezon başlıyor"
|
||||
"outdoorSeason": "Açık hava sezonu başlıyor"
|
||||
};
|
||||
|
||||
@@ -8,5 +8,5 @@ export default {
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "Покажи нам своє найкрасивіше фото",
|
||||
"selectSeedRate": "Виберіть насіння, натисніть оцінити",
|
||||
"indoorSeason": "Починається сезон для вирощування в приміщенні"
|
||||
"outdoorSeason": "Починається сезон на відкритому повітрі"
|
||||
};
|
||||
|
||||
@@ -8,5 +8,5 @@ export default {
|
||||
"address2": "01129 Dresden",
|
||||
"showUsPhoto": "展示你最美的照片",
|
||||
"selectSeedRate": "选择种子,点击评分",
|
||||
"indoorSeason": "室内季节开始了"
|
||||
"outdoorSeason": "户外季节开始了"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user