@@ -112,7 +120,7 @@ const MobileExpandedMenu = ({
{t(item.description)}
)}
-
+
))}
diff --git a/frontend/src/components/navigation/Navbar.tsx b/frontend/src/components/navigation/Navbar.tsx
index b271afc..e946423 100644
--- a/frontend/src/components/navigation/Navbar.tsx
+++ b/frontend/src/components/navigation/Navbar.tsx
@@ -3,6 +3,7 @@ import { RxHamburgerMenu } from "react-icons/rx";
import logo from "../../assets/logo.png";
import { useState, useRef, useEffect } from "react";
+import { Link, useLocation } from "react-router-dom";
import { useTranslation } from "react-i18next";
import LangToggler from "../i18n/LangToggler";
@@ -11,10 +12,13 @@ import { useAuth } from "../../context/AuthContext";
import { NavCenterItems, type MenuType } from "./menu";
import NavMegamenu from "./NavMegamenu";
+import { getLocaleFromPathname, localizePath } from "../../utils/localeRouting";
const ProfileDropdown = () => {
const { profile, logout } = useAuth();
const { t } = useTranslation();
+ const location = useLocation();
+ const locale = getLocaleFromPathname(location.pathname);
const [open, setOpen] = useState(false);
const ref = useRef
(null);
@@ -56,20 +60,20 @@ const ProfileDropdown = () => {
{profile.username}
-