Skip to content

Commit

Permalink
fix: ar translations added (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
arbirali authored Dec 11, 2023
1 parent 0907cad commit e701572
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 21 deletions.
4 changes: 1 addition & 3 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ class SiteFooter extends React.Component {
<div className="flex-grow-1" />
<div>
<p className="copyright m-0">
{intl.formatMessage(messages['footer.copyright'])}
{` ${config.SITE_NAME} © `}
{intl.formatMessage(messages['footer.copyright.date'])}
{intl.formatMessage(messages['footer.copyright.text'], { platformName: config.SITE_NAME })}
</p>
</div>
</div>
Expand Down
11 changes: 3 additions & 8 deletions src/components/Footer.messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,11 @@ const messages = defineMessages({
defaultMessage: 'Page Footer',
description: 'aria-label for the footer component',
},
'footer.copyright': {
id: 'footer.copyright',
defaultMessage: 'All rights reserved.',
'footer.copyright.text': {
id: 'footer.copyright.text',
defaultMessage: 'All rights reserved. {platformName} © 2023',
description: 'copyright text for the footer component',
},
'footer.copyright.date': {
id: 'footer.copyright.date',
defaultMessage: '2023',
description: 'copyright date for the footer component',
},
});

export default messages;
12 changes: 3 additions & 9 deletions src/components/__snapshots__/Footer.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ exports[`<Footer /> renders correctly renders with a language selector 1`] = `
<p
className="copyright m-0"
>
All rights reserved.
undefined ©
2023
All rights reserved. © 2023
</p>
</div>
</div>
Expand Down Expand Up @@ -114,9 +112,7 @@ exports[`<Footer /> renders correctly renders without a language selector 1`] =
<p
className="copyright m-0"
>
All rights reserved.
undefined ©
2023
All rights reserved. © 2023
</p>
</div>
</div>
Expand Down Expand Up @@ -160,9 +156,7 @@ exports[`<Footer /> renders correctly renders without a language selector in es
<p
className="copyright m-0"
>
All rights reserved.
undefined ©
2023
All rights reserved. © 2023
</p>
</div>
</div>
Expand Down
34 changes: 33 additions & 1 deletion src/i18n/messages/ar.json
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
{}
{
"footer.socialLinks.srText.facebook": "مثل إيدكس على الفيسبوك",
"footer.socialLinks.srText.twitter": "اتبع إيدكس على تويتر",
"footer.socialLinks.srText.youtube": "اشترك في قناة edX على اليوتيوب",
"footer.socialLinks.srText.linkedin": "اتبع إيدكس على لينكد إن",
"footer.socialLinks.srText.reddit": "اشترك في موقع edX الفرعي",
"footer.languageForm.select.label": "اختر اللغة",
"footer.languageForm.submit.label": "يتقدم",
"footer.edxLinks.about": "عن",
"footer.edxLinks.business": "إدكس للأعمال",
"footer.edxLinks.affiliates": "الشركات التابعة",
"footer.edxLinks.openEdx": "Open edX",
"footer.edxLinks.careers": "وظائف",
"footer.edxLinks.news": "أخبار",
"footer.legalLinks.heading": "قانوني",
"footer.legalLinks.termsOfService": "شروط الخدمة ومدونة الشرف",
"footer.legalLinks.privacyPolicy": "سياسة الخصوصية",
"footer.legalLinks.a11yPolicy": "سياسة إمكانية الوصول",
"footer.legalLinks.trademarkPolicy": "سياسة العلامات التجارية",
"footer.legalLinks.sitemap": "خريطة الموقع",
"footer.connectLinks.heading": "يتصل",
"footer.connectLinks.blog": "مدونة",
"footer.connectLinks.contact": "اتصل بنا",
"footer.connectLinks.help": "يساعد",
"footer.connectLinks.mediaKit": "طقم الوسائط",
"footer.connectLinks.donate": "يتبرع",
"footer.mobileApp.apple": "قم بتنزيل تطبيق edX للجوال من متجر تطبيقات Apple",
"footer.mobileApp.google": "قم بتنزيل تطبيق edX للجوال من Google Play",
"footer.logo.altText": "مدعوم من Open edX",
"footer.logo.ariaLabel": "إيدكس الرئيسية",
"footer.ariaLabel": "تذييل الصفحة",
"footer.copyright.text": "2023 © {platformName} جميع الحقوق محفوظة لأ"
}

0 comments on commit e701572

Please sign in to comment.