Added translation
This commit is contained in:
@ -1,13 +1,19 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
const Footer = () => (
|
const Footer = () => {
|
||||||
<footer className="bg-gray-800 dark:bg-gray-900 text-white py-8 border-t border-gray-700 dark:border-gray-800">
|
const { t } = useTranslation();
|
||||||
<div className="container mx-auto px-4 text-center">
|
const currentYear = new Date().getFullYear();
|
||||||
<p className="text-sm opacity-90">
|
|
||||||
© {new Date().getFullYear()} REXNT - جميع الحقوق محفوظة
|
return (
|
||||||
</p>
|
<footer className="bg-gray-800 dark:bg-gray-900 text-white py-8 border-t border-gray-700 dark:border-gray-800">
|
||||||
</div>
|
<div className="container mx-auto px-4 text-center">
|
||||||
</footer>
|
<p className="text-sm opacity-90">
|
||||||
);
|
{t("footer.copyright", { year: currentYear })}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
export default Footer;
|
export default Footer;
|
||||||
11
src/i18n.js
11
src/i18n.js
@ -85,7 +85,7 @@ const resources = {
|
|||||||
addressText: "Headquarters: Syria - Damascus - Baramkeh\nFlexible Offices: Homs - Fairouzeh, Aleppo - Industrial Zone, Tartous - Dubai Street\nWork Areas: Ready to implement works in all Syrian governorates",
|
addressText: "Headquarters: Syria - Damascus - Baramkeh\nFlexible Offices: Homs - Fairouzeh, Aleppo - Industrial Zone, Tartous - Dubai Street\nWork Areas: Ready to implement works in all Syrian governorates",
|
||||||
phone: "Phone Numbers",
|
phone: "Phone Numbers",
|
||||||
email: "Email",
|
email: "Email",
|
||||||
formTitle: "Contact us and start your international trade journey with confidence",
|
formTitle: "From vision to execution... a partnership that creates successful projects. One message could be the turning point in executing your project successfully.",
|
||||||
name: "Name",
|
name: "Name",
|
||||||
namePlaceholder: "Enter your name",
|
namePlaceholder: "Enter your name",
|
||||||
emailPlaceholder: "example@example.com",
|
emailPlaceholder: "example@example.com",
|
||||||
@ -129,6 +129,10 @@ const resources = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
footer: {
|
||||||
|
copyright: "© {{year}} REXNT - All rights reserved"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ar: {
|
ar: {
|
||||||
@ -213,7 +217,7 @@ const resources = {
|
|||||||
addressText: "المقر الرئيسي: سوريا - دمشق - البرامكة\nالمكاتب المرنة: حمص - فيروزة، حلب - المنطقة الصناعية، طرطوس - شارع دبي\nمناطق العمل: جاهزين لتنفيذ الأعمال في جميع المحافظات السورية",
|
addressText: "المقر الرئيسي: سوريا - دمشق - البرامكة\nالمكاتب المرنة: حمص - فيروزة، حلب - المنطقة الصناعية، طرطوس - شارع دبي\nمناطق العمل: جاهزين لتنفيذ الأعمال في جميع المحافظات السورية",
|
||||||
phone: "أرقام الاتصال",
|
phone: "أرقام الاتصال",
|
||||||
email: "البريد الإلكتروني",
|
email: "البريد الإلكتروني",
|
||||||
formTitle: "تواصل معنا وابدأ رحلتك في التجارة الدولية بثقة",
|
formTitle: "من الرؤية إلى التنفيذ... شراكة تصنع مشاريع ناجحة رسلة واحدة قد تكون نقطة التحول في تنفيذ مشروعك بنجاح",
|
||||||
name: "الاسم",
|
name: "الاسم",
|
||||||
namePlaceholder: "أدخل اسمك",
|
namePlaceholder: "أدخل اسمك",
|
||||||
emailPlaceholder: "example@example.com",
|
emailPlaceholder: "example@example.com",
|
||||||
@ -257,6 +261,9 @@ const resources = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
footer: {
|
||||||
|
copyright: "© {{year}} REXNT - جميع الحقوق محفوظة"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user