Changed string values to use i18n

This commit is contained in:
Fernando Videira
2024-06-11 14:58:33 +01:00
parent 3cbf508664
commit 74769f78ce
17 changed files with 478 additions and 77 deletions
+5 -3
View File
@@ -2,9 +2,11 @@ import { useState } from "react";
import { FaTimes, FaBars } from "react-icons/fa";
import Logo from "../../assets/logo.svg";
import { useTranslation } from "react-i18next";
export default () => {
const [state, setState] = useState(false);
const { t } = useTranslation();
const [colorChange, setColorChange] = useState(false);
const changeColor = () => {
@@ -19,9 +21,9 @@ export default () => {
// Replace javascript:void(0) path with your path
const navigation = [
{ title: "Services", path: "#Services" },
{ title: "Results", path: "#Results" },
{ title: "Contact", path: "#Contact" },
{ title: t("navbar.services"), path: "Services" },
{ title: t("navbar.advantages"), path: "Advantages" },
{ title: t("navbar.contact"), path: "Contact" },
];
return (