Added translation
This commit is contained in:
@ -1,13 +1,19 @@
|
||||
import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
const Footer = () => (
|
||||
<footer className="bg-gray-800 dark:bg-gray-900 text-white py-8 border-t border-gray-700 dark:border-gray-800">
|
||||
<div className="container mx-auto px-4 text-center">
|
||||
<p className="text-sm opacity-90">
|
||||
© {new Date().getFullYear()} REXNT - جميع الحقوق محفوظة
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
const Footer = () => {
|
||||
const { t } = useTranslation();
|
||||
const currentYear = new Date().getFullYear();
|
||||
|
||||
return (
|
||||
<footer className="bg-gray-800 dark:bg-gray-900 text-white py-8 border-t border-gray-700 dark:border-gray-800">
|
||||
<div className="container mx-auto px-4 text-center">
|
||||
<p className="text-sm opacity-90">
|
||||
{t("footer.copyright", { year: currentYear })}
|
||||
</p>
|
||||
</div>
|
||||
</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",
|
||||
phone: "Phone Numbers",
|
||||
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",
|
||||
namePlaceholder: "Enter your name",
|
||||
emailPlaceholder: "example@example.com",
|
||||
@ -129,6 +129,10 @@ const resources = {
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
footer: {
|
||||
copyright: "© {{year}} REXNT - All rights reserved"
|
||||
}
|
||||
}
|
||||
},
|
||||
ar: {
|
||||
@ -213,7 +217,7 @@ const resources = {
|
||||
addressText: "المقر الرئيسي: سوريا - دمشق - البرامكة\nالمكاتب المرنة: حمص - فيروزة، حلب - المنطقة الصناعية، طرطوس - شارع دبي\nمناطق العمل: جاهزين لتنفيذ الأعمال في جميع المحافظات السورية",
|
||||
phone: "أرقام الاتصال",
|
||||
email: "البريد الإلكتروني",
|
||||
formTitle: "تواصل معنا وابدأ رحلتك في التجارة الدولية بثقة",
|
||||
formTitle: "من الرؤية إلى التنفيذ... شراكة تصنع مشاريع ناجحة رسلة واحدة قد تكون نقطة التحول في تنفيذ مشروعك بنجاح",
|
||||
name: "الاسم",
|
||||
namePlaceholder: "أدخل اسمك",
|
||||
emailPlaceholder: "example@example.com",
|
||||
@ -257,6 +261,9 @@ const resources = {
|
||||
}
|
||||
}
|
||||
},
|
||||
footer: {
|
||||
copyright: "© {{year}} REXNT - جميع الحقوق محفوظة"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user