Skip to content

Commit

Permalink
feat: added new translations in Makefile and updated all the translat…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
abdullahwaheed committed Nov 7, 2022
1 parent cc48eae commit a963d89
Show file tree
Hide file tree
Showing 16 changed files with 252 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export TRANSIFEX_RESOURCE = frontend-component-footer-edx
transifex_resource = frontend-component-footer-edx
transifex_langs = "ar,fr,es_419,zh_CN"
transifex_langs = "ar,fr,es_419,zh_CN,pt,it,de,uk,ru,hi,fr_CA"

transifex_utils = ./node_modules/.bin/transifex-utils.js
i18n = ./src/i18n
Expand Down
30 changes: 13 additions & 17 deletions src/i18n/index.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
import arMessages from './messages/ar.json';
import caMessages from './messages/ca.json';
// no need to import en messages-- they are in the defaultMessage field
import es419Messages from './messages/es_419.json';
import frMessages from './messages/fr.json';
import es419Messages from './messages/es_419.json';
import zhcnMessages from './messages/zh_CN.json';
import heMessages from './messages/he.json';
import idMessages from './messages/id.json';
import kokrMessages from './messages/ko_kr.json';
import plMessages from './messages/pl.json';
import ptbrMessages from './messages/pt_br.json';
import ruMessages from './messages/ru.json';
import thMessages from './messages/th.json';
import ptMessages from './messages/pt.json';
import itMessages from './messages/it.json';
import ukMessages from './messages/uk.json';
import deMessages from './messages/de.json';
import ruMessages from './messages/ru.json';
import hiMessages from './messages/hi.json';
import frCAMessages from './messages/fr_CA.json';
// no need to import en messages-- they are in the defaultMessage field

const messages = {
ar: arMessages,
'es-419': es419Messages,
fr: frMessages,
'zh-cn': zhcnMessages,
ca: caMessages,
he: heMessages,
id: idMessages,
'ko-kr': kokrMessages,
pl: plMessages,
'pt-br': ptbrMessages,
pt: ptMessages,
it: itMessages,
de: deMessages,
hi: hiMessages,
'fr-ca': frCAMessages,
ru: ruMessages,
th: thMessages,
uk: ukMessages,
};

Expand Down
1 change: 0 additions & 1 deletion src/i18n/messages/ca.json

This file was deleted.

34 changes: 34 additions & 0 deletions src/i18n/messages/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"footer.trademarks": "{icpMessage}",
"footer.socialLinks.srText.facebook": "Like edX on Facebook",
"footer.socialLinks.srText.twitter": "Follow edX on Twitter",
"footer.socialLinks.srText.youtube": "Subscribe to the edX YouTube channel",
"footer.socialLinks.srText.linkedin": "Follow edX on LinkedIn",
"footer.socialLinks.srText.instagram": "Follow edX on Instagram",
"footer.socialLinks.srText.reddit": "Subscribe to the edX subreddit",
"footer.languageForm.select.label": "Choose Language",
"footer.languageForm.submit.label": "Apply",
"footer.edxLinks.about": "About",
"footer.edxLinks.business": "edX for Business",
"footer.edxLinks.affiliates": "Affiliates",
"footer.edxLinks.openEdx": "Open edX",
"footer.edxLinks.careers": "Careers",
"footer.edxLinks.news": "News",
"footer.legalLinks.heading": "Legal",
"footer.legalLinks.termsOfService": "Terms of Service & Honor Code",
"footer.legalLinks.privacyPolicy": "Privacy Policy",
"footer.legalLinks.a11yPolicy": "Accessibility Policy",
"footer.legalLinks.trademarkPolicy": "Trademark Policy",
"footer.legalLinks.sitemap": "Sitemap",
"footer.connectLinks.heading": "Connect",
"footer.connectLinks.blog": "Blog",
"footer.connectLinks.contact": "Contact Us",
"footer.connectLinks.help": "Help Center",
"footer.connectLinks.security": "Security",
"footer.connectLinks.mediaKit": "Media Kit",
"footer.mobileApp.apple": "Download the edX mobile app from the Apple App Store",
"footer.mobileApp.google": "Download the edX mobile app from Google Play",
"footer.logo.altText": "edX Logo",
"footer.logo.ariaLabel": "edX Home",
"footer.ariaLabel": "Page Footer"
}
34 changes: 34 additions & 0 deletions src/i18n/messages/fr_CA.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"footer.trademarks": "{icpMessage}",
"footer.socialLinks.srText.facebook": "Like EDUlib sur Facebook",
"footer.socialLinks.srText.twitter": "Suivre EDUlib sur Twitter",
"footer.socialLinks.srText.youtube": "Abonnez-vous à la chaîne YouTube EDUlib",
"footer.socialLinks.srText.linkedin": "Suivre EDUlib sur LinkedIn",
"footer.socialLinks.srText.instagram": "Suivre EDUlib sur Instagram",
"footer.socialLinks.srText.reddit": "Abonnez-vous au subreddit EDUlib",
"footer.languageForm.select.label": "Choisir la langue",
"footer.languageForm.submit.label": "Appliquer",
"footer.edxLinks.about": "À propos",
"footer.edxLinks.business": "EDUlib pour Affaires",
"footer.edxLinks.affiliates": "Partenaires",
"footer.edxLinks.openEdx": "Open edX",
"footer.edxLinks.careers": "Carrière",
"footer.edxLinks.news": "Nouvelles",
"footer.legalLinks.heading": "Légal",
"footer.legalLinks.termsOfService": "Conditions d'utilisation & code d'honneur",
"footer.legalLinks.privacyPolicy": "Politique de confidentialité",
"footer.legalLinks.a11yPolicy": "Politique d'accessibilité",
"footer.legalLinks.trademarkPolicy": "Politique de marque déposée",
"footer.legalLinks.sitemap": "Plan du site",
"footer.connectLinks.heading": "Relier",
"footer.connectLinks.blog": "Blog",
"footer.connectLinks.contact": "Nous contacter",
"footer.connectLinks.help": "Centre d'aide",
"footer.connectLinks.security": "Security",
"footer.connectLinks.mediaKit": "Kit média",
"footer.mobileApp.apple": "Téléchargez l'application mobile EDUlib à partir de l'Apple App Store",
"footer.mobileApp.google": "Téléchargez l'application mobile edX à partir de Google Play",
"footer.logo.altText": "Logo edX",
"footer.logo.ariaLabel": "Page d'accueil EDUlib",
"footer.ariaLabel": "Bas de page"
}
1 change: 0 additions & 1 deletion src/i18n/messages/he.json

This file was deleted.

34 changes: 34 additions & 0 deletions src/i18n/messages/hi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"footer.trademarks": "{icpMessage}",
"footer.socialLinks.srText.facebook": "Like edX on Facebook",
"footer.socialLinks.srText.twitter": "Follow edX on Twitter",
"footer.socialLinks.srText.youtube": "Subscribe to the edX YouTube channel",
"footer.socialLinks.srText.linkedin": "Follow edX on LinkedIn",
"footer.socialLinks.srText.instagram": "Follow edX on Instagram",
"footer.socialLinks.srText.reddit": "Subscribe to the edX subreddit",
"footer.languageForm.select.label": "Choose Language",
"footer.languageForm.submit.label": "Apply",
"footer.edxLinks.about": "About",
"footer.edxLinks.business": "edX for Business",
"footer.edxLinks.affiliates": "Affiliates",
"footer.edxLinks.openEdx": "Open edX",
"footer.edxLinks.careers": "Careers",
"footer.edxLinks.news": "News",
"footer.legalLinks.heading": "Legal",
"footer.legalLinks.termsOfService": "Terms of Service & Honor Code",
"footer.legalLinks.privacyPolicy": "Privacy Policy",
"footer.legalLinks.a11yPolicy": "Accessibility Policy",
"footer.legalLinks.trademarkPolicy": "Trademark Policy",
"footer.legalLinks.sitemap": "Sitemap",
"footer.connectLinks.heading": "Connect",
"footer.connectLinks.blog": "Blog",
"footer.connectLinks.contact": "Contact Us",
"footer.connectLinks.help": "Help Center",
"footer.connectLinks.security": "Security",
"footer.connectLinks.mediaKit": "Media Kit",
"footer.mobileApp.apple": "Download the edX mobile app from the Apple App Store",
"footer.mobileApp.google": "Download the edX mobile app from Google Play",
"footer.logo.altText": "edX Logo",
"footer.logo.ariaLabel": "edX Home",
"footer.ariaLabel": "Page Footer"
}
1 change: 0 additions & 1 deletion src/i18n/messages/id.json

This file was deleted.

34 changes: 34 additions & 0 deletions src/i18n/messages/it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"footer.trademarks": "{icpMessage}",
"footer.socialLinks.srText.facebook": "Like edX on Facebook",
"footer.socialLinks.srText.twitter": "Follow edX on Twitter",
"footer.socialLinks.srText.youtube": "Subscribe to the edX YouTube channel",
"footer.socialLinks.srText.linkedin": "Follow edX on LinkedIn",
"footer.socialLinks.srText.instagram": "Follow edX on Instagram",
"footer.socialLinks.srText.reddit": "Subscribe to the edX subreddit",
"footer.languageForm.select.label": "Choose Language",
"footer.languageForm.submit.label": "Apply",
"footer.edxLinks.about": "About",
"footer.edxLinks.business": "edX for Business",
"footer.edxLinks.affiliates": "Affiliates",
"footer.edxLinks.openEdx": "Open edX",
"footer.edxLinks.careers": "Careers",
"footer.edxLinks.news": "News",
"footer.legalLinks.heading": "Legal",
"footer.legalLinks.termsOfService": "Terms of Service & Honor Code",
"footer.legalLinks.privacyPolicy": "Privacy Policy",
"footer.legalLinks.a11yPolicy": "Accessibility Policy",
"footer.legalLinks.trademarkPolicy": "Trademark Policy",
"footer.legalLinks.sitemap": "Sitemap",
"footer.connectLinks.heading": "Connect",
"footer.connectLinks.blog": "Blog",
"footer.connectLinks.contact": "Contact Us",
"footer.connectLinks.help": "Help Center",
"footer.connectLinks.security": "Security",
"footer.connectLinks.mediaKit": "Media Kit",
"footer.mobileApp.apple": "Download the edX mobile app from the Apple App Store",
"footer.mobileApp.google": "Download the edX mobile app from Google Play",
"footer.logo.altText": "edX Logo",
"footer.logo.ariaLabel": "edX Home",
"footer.ariaLabel": "Page Footer"
}
1 change: 0 additions & 1 deletion src/i18n/messages/ko_kr.json

This file was deleted.

1 change: 0 additions & 1 deletion src/i18n/messages/pl.json

This file was deleted.

34 changes: 34 additions & 0 deletions src/i18n/messages/pt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"footer.trademarks": "{icpMessage}",
"footer.socialLinks.srText.facebook": "Like edX on Facebook",
"footer.socialLinks.srText.twitter": "Follow edX on Twitter",
"footer.socialLinks.srText.youtube": "Subscribe to the edX YouTube channel",
"footer.socialLinks.srText.linkedin": "Follow edX on LinkedIn",
"footer.socialLinks.srText.instagram": "Follow edX on Instagram",
"footer.socialLinks.srText.reddit": "Subscribe to the edX subreddit",
"footer.languageForm.select.label": "Choose Language",
"footer.languageForm.submit.label": "Apply",
"footer.edxLinks.about": "About",
"footer.edxLinks.business": "edX for Business",
"footer.edxLinks.affiliates": "Affiliates",
"footer.edxLinks.openEdx": "Open edX",
"footer.edxLinks.careers": "Careers",
"footer.edxLinks.news": "News",
"footer.legalLinks.heading": "Legal",
"footer.legalLinks.termsOfService": "Terms of Service & Honor Code",
"footer.legalLinks.privacyPolicy": "Privacy Policy",
"footer.legalLinks.a11yPolicy": "Accessibility Policy",
"footer.legalLinks.trademarkPolicy": "Trademark Policy",
"footer.legalLinks.sitemap": "Sitemap",
"footer.connectLinks.heading": "Connect",
"footer.connectLinks.blog": "Blog",
"footer.connectLinks.contact": "Contact Us",
"footer.connectLinks.help": "Help Center",
"footer.connectLinks.security": "Security",
"footer.connectLinks.mediaKit": "Media Kit",
"footer.mobileApp.apple": "Download the edX mobile app from the Apple App Store",
"footer.mobileApp.google": "Download the edX mobile app from Google Play",
"footer.logo.altText": "edX Logo",
"footer.logo.ariaLabel": "edX Home",
"footer.ariaLabel": "Page Footer"
}
1 change: 0 additions & 1 deletion src/i18n/messages/pt_br.json

This file was deleted.

35 changes: 34 additions & 1 deletion src/i18n/messages/ru.json
Original file line number Diff line number Diff line change
@@ -1 +1,34 @@
{}
{
"footer.trademarks": "{icpMessage}",
"footer.socialLinks.srText.facebook": "Like edX on Facebook",
"footer.socialLinks.srText.twitter": "Follow edX on Twitter",
"footer.socialLinks.srText.youtube": "Subscribe to the edX YouTube channel",
"footer.socialLinks.srText.linkedin": "Follow edX on LinkedIn",
"footer.socialLinks.srText.instagram": "Follow edX on Instagram",
"footer.socialLinks.srText.reddit": "Subscribe to the edX subreddit",
"footer.languageForm.select.label": "Choose Language",
"footer.languageForm.submit.label": "Apply",
"footer.edxLinks.about": "About",
"footer.edxLinks.business": "edX for Business",
"footer.edxLinks.affiliates": "Affiliates",
"footer.edxLinks.openEdx": "Open edX",
"footer.edxLinks.careers": "Careers",
"footer.edxLinks.news": "News",
"footer.legalLinks.heading": "Legal",
"footer.legalLinks.termsOfService": "Terms of Service & Honor Code",
"footer.legalLinks.privacyPolicy": "Privacy Policy",
"footer.legalLinks.a11yPolicy": "Accessibility Policy",
"footer.legalLinks.trademarkPolicy": "Trademark Policy",
"footer.legalLinks.sitemap": "Sitemap",
"footer.connectLinks.heading": "Connect",
"footer.connectLinks.blog": "Blog",
"footer.connectLinks.contact": "Contact Us",
"footer.connectLinks.help": "Help Center",
"footer.connectLinks.security": "Security",
"footer.connectLinks.mediaKit": "Media Kit",
"footer.mobileApp.apple": "Download the edX mobile app from the Apple App Store",
"footer.mobileApp.google": "Download the edX mobile app from Google Play",
"footer.logo.altText": "edX Logo",
"footer.logo.ariaLabel": "edX Home",
"footer.ariaLabel": "Page Footer"
}
1 change: 0 additions & 1 deletion src/i18n/messages/th.json

This file was deleted.

35 changes: 34 additions & 1 deletion src/i18n/messages/uk.json
Original file line number Diff line number Diff line change
@@ -1 +1,34 @@
{}
{
"footer.trademarks": "{icpMessage}",
"footer.socialLinks.srText.facebook": "Like edX on Facebook",
"footer.socialLinks.srText.twitter": "Follow edX on Twitter",
"footer.socialLinks.srText.youtube": "Subscribe to the edX YouTube channel",
"footer.socialLinks.srText.linkedin": "Follow edX on LinkedIn",
"footer.socialLinks.srText.instagram": "Follow edX on Instagram",
"footer.socialLinks.srText.reddit": "Subscribe to the edX subreddit",
"footer.languageForm.select.label": "Choose Language",
"footer.languageForm.submit.label": "Apply",
"footer.edxLinks.about": "About",
"footer.edxLinks.business": "edX for Business",
"footer.edxLinks.affiliates": "Affiliates",
"footer.edxLinks.openEdx": "Open edX",
"footer.edxLinks.careers": "Careers",
"footer.edxLinks.news": "News",
"footer.legalLinks.heading": "Legal",
"footer.legalLinks.termsOfService": "Terms of Service & Honor Code",
"footer.legalLinks.privacyPolicy": "Privacy Policy",
"footer.legalLinks.a11yPolicy": "Accessibility Policy",
"footer.legalLinks.trademarkPolicy": "Trademark Policy",
"footer.legalLinks.sitemap": "Sitemap",
"footer.connectLinks.heading": "Connect",
"footer.connectLinks.blog": "Blog",
"footer.connectLinks.contact": "Contact Us",
"footer.connectLinks.help": "Help Center",
"footer.connectLinks.security": "Security",
"footer.connectLinks.mediaKit": "Media Kit",
"footer.mobileApp.apple": "Download the edX mobile app from the Apple App Store",
"footer.mobileApp.google": "Download the edX mobile app from Google Play",
"footer.logo.altText": "edX Logo",
"footer.logo.ariaLabel": "edX Home",
"footer.ariaLabel": "Page Footer"
}

0 comments on commit a963d89

Please sign in to comment.