diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index b5d0799..8ce5727 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -268,7 +268,7 @@ const App: React.FC = () => { setCatOpen(!catOpen)}> - + {catOpen ? : } @@ -281,7 +281,7 @@ const App: React.FC = () => { onClick={() => setDrawerOpen(false)} sx={{ pl: 4 }} > - + ))} @@ -380,7 +380,7 @@ const App: React.FC = () => { onClick={(e) => setCatAnchorEl(e.currentTarget)} sx={{ fontWeight: 'bold', textTransform: 'none', fontSize: '1rem' }} > - Categories + {t('nav.categories')} { to={`/category/${cat.slug}`} onClick={() => setCatAnchorEl(null)} > - {cat.name} + {t(`categories.${cat.slug}`, { defaultValue: cat.name })} ))} diff --git a/frontend/src/i18n.ts b/frontend/src/i18n.ts index fff8407..dc3ac7d 100644 --- a/frontend/src/i18n.ts +++ b/frontend/src/i18n.ts @@ -13,7 +13,15 @@ const resources = { "settings": "Settings", "logout": "Logout", "login": "Login / Signup", - "following": "Following" + "following": "Following", + "categories": "Categories" + }, + "categories": { + "energy": "Energy", + "hydration": "Hydration", + "iced-tea": "Iced Tea", + "milkshake": "Milkshake", + "packs-and-other": "Packs & Other" }, "dashboard": { "welcome": "Welcome back, {{username}}!", @@ -114,7 +122,15 @@ const resources = { "settings": "Einstellungen", "logout": "Abmelden", "login": "Anmelden / Registrieren", - "following": "Folge ich" + "following": "Folge ich", + "categories": "Kategorien" + }, + "categories": { + "energy": "Energy", + "hydration": "Hydration", + "iced-tea": "Eistee", + "milkshake": "Milkshake", + "packs-and-other": "Bundles & Mehr" }, "dashboard": { "welcome": "Willkommen zurück, {{username}}!", diff --git a/frontend/src/pages/MainPage.tsx b/frontend/src/pages/MainPage.tsx index e39158c..8d194f7 100644 --- a/frontend/src/pages/MainPage.tsx +++ b/frontend/src/pages/MainPage.tsx @@ -217,7 +217,7 @@ const MainPage: React.FC = () => { borderColor: 'divider', mb: 4 }}> - + {t('home.activity')}