Add Bulgarian translation and language toggle#15
Conversation
Co-authored-by: martin <martin@yankovs.com>
|
Cursor Agent can help with this pull request. Just |
✅ Deploy Preview for debugmydinner ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
| <ListOfLinks links={secondaryLinks} enableAnnotations={enableAnnotations} /> | ||
| </ul> | ||
| )} | ||
| <LanguageToggle /> |
There was a problem hiding this comment.
@cursoragent this button should be in the header navigation on the opposite side of the pogo. Currently it is not visible
There was a problem hiding this comment.
I refactored the Header component in src/components/sections/Header/index.tsx to improve the responsive display of the language toggle and simplify mobile menu rendering. I encapsulated the LanguageToggle within a new div and removed conditional rendering for the MobileMenu.
- I wrapped the
LanguageTogglecomponent within a newdivacross allHeadervariations (e.g.,HeaderLogoLeftPrimaryLeft,HeaderLogoCenteredPrimaryCentered) insrc/components/sections/Header/index.tsx. This new container applies responsive classes likehidden lg:flex lg:items-centerandml-auto(orml-10) to control its visibility and alignment on larger screens. - I removed the conditional rendering
{(primaryLinks.length > 0 || secondaryLinks.length > 0) && ...}for theMobileMenucomponent, ensuring it is always rendered insrc/components/sections/Header/index.tsx.
Learn more about Cursor Agents
…rendering Co-authored-by: martin <martin@yankovs.com>
|
@cursoragent i still dont see the toggle |
|
I ensured the language toggle is always visible in the header and the mobile menu consistently renders. I also added temporary styling to the language toggle.
Learn more about Cursor Agents |
Co-authored-by: martin <martin@yankovs.com>
|
@cursoragent I see the button now, but switching doesnt change the language. Also can you make the visuals blend better with the website |
|
I refactored the language toggle to use buttons and
Learn more about Cursor Agents |
…ation Co-authored-by: martin <martin@yankovs.com>
|
Ok the button styling is good now make it work, it should change the whole sites language to bg or en based on the button by using the translations and changing the files it loads for the recipes. If bg point to bulgarian recipes, if en point to rnglish ones. You can also simply Move the current english version to /cooks/en and the bulgarian ones to /cooks/bg and the button simply navigates between these two. Dont forget to have the default redirect to en @cursoragent |



Add internationalization (i18n) with English and Bulgarian support, including a language toggle and translated content.