diff --git a/src/components/Burger.tsx b/src/components/Burger.tsx index 99b9e67..269379c 100755 --- a/src/components/Burger.tsx +++ b/src/components/Burger.tsx @@ -21,10 +21,12 @@ import { ReactComponent as SVGFile } from "assets/svg/file.svg"; import { ReactComponent as SVGEye } from "assets/svg/eye.svg"; import { ReactComponent as SVGArrowUp } from "assets/svg/arrow-up.svg"; import { ReactComponent as SVGCaretDown } from "assets/svg/caret-down.svg"; +import { useTranslation } from "react-i18next"; type Props = React.ComponentPropsWithoutRef<"div">; const Burger = (props: Props) => { + const { t, i18n } = useTranslation(); return (
@@ -46,13 +48,15 @@ const Burger = (props: Props) => { leaveTo="transform opacity-0 scale-95" >
- create new + + {t("navbar.createNew")} +
@@ -66,7 +70,7 @@ const Burger = (props: Props) => { text-base " > - my library + {t("navbar.library.navTitle")} { " > - My Publications + {t("navbar.library.publications")} @@ -96,7 +100,7 @@ const Burger = (props: Props) => { " > - My Favorites + {t("navbar.library.favorites")} @@ -109,7 +113,7 @@ const Burger = (props: Props) => { " > - My Collections + {t("navbar.library.collections")} @@ -122,7 +126,7 @@ const Burger = (props: Props) => { " > - Recent Viewed + {t("navbar.library.recentViewed")} @@ -140,7 +144,7 @@ const Burger = (props: Props) => { text-base " > - About + {t("navbar.about.navTitle")} { text-base " > - About Freeland + {t("navbar.about.aboutProject")} @@ -168,7 +172,7 @@ const Burger = (props: Props) => { text-base " > - Contact Us + {t("navbar.about.contacts")} @@ -180,7 +184,7 @@ const Burger = (props: Props) => { text-base " > - Help + {t("navbar.about.help")}