From a963d89a88e0f4e30a0592135911fbbc8b5a1eaf Mon Sep 17 00:00:00 2001 From: Abdullah Waheed Date: Tue, 6 Sep 2022 20:10:54 +0500 Subject: [PATCH] feat: added new translations in Makefile and updated all the translations --- Makefile | 2 +- src/i18n/index.js | 30 +++++++++++++----------------- src/i18n/messages/ca.json | 1 - src/i18n/messages/de.json | 34 ++++++++++++++++++++++++++++++++++ src/i18n/messages/fr_CA.json | 34 ++++++++++++++++++++++++++++++++++ src/i18n/messages/he.json | 1 - src/i18n/messages/hi.json | 34 ++++++++++++++++++++++++++++++++++ src/i18n/messages/id.json | 1 - src/i18n/messages/it.json | 34 ++++++++++++++++++++++++++++++++++ src/i18n/messages/ko_kr.json | 1 - src/i18n/messages/pl.json | 1 - src/i18n/messages/pt.json | 34 ++++++++++++++++++++++++++++++++++ src/i18n/messages/pt_br.json | 1 - src/i18n/messages/ru.json | 35 ++++++++++++++++++++++++++++++++++- src/i18n/messages/th.json | 1 - src/i18n/messages/uk.json | 35 ++++++++++++++++++++++++++++++++++- 16 files changed, 252 insertions(+), 27 deletions(-) delete mode 100644 src/i18n/messages/ca.json create mode 100644 src/i18n/messages/de.json create mode 100644 src/i18n/messages/fr_CA.json delete mode 100644 src/i18n/messages/he.json create mode 100644 src/i18n/messages/hi.json delete mode 100644 src/i18n/messages/id.json create mode 100644 src/i18n/messages/it.json delete mode 100644 src/i18n/messages/ko_kr.json delete mode 100644 src/i18n/messages/pl.json create mode 100644 src/i18n/messages/pt.json delete mode 100644 src/i18n/messages/pt_br.json delete mode 100644 src/i18n/messages/th.json diff --git a/Makefile b/Makefile index da3011bb..9a679701 100755 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/src/i18n/index.js b/src/i18n/index.js index 8a014289..0336b3a2 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -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, }; diff --git a/src/i18n/messages/ca.json b/src/i18n/messages/ca.json deleted file mode 100644 index 9e26dfee..00000000 --- a/src/i18n/messages/ca.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/de.json b/src/i18n/messages/de.json new file mode 100644 index 00000000..c2cd2f3b --- /dev/null +++ b/src/i18n/messages/de.json @@ -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" +} \ No newline at end of file diff --git a/src/i18n/messages/fr_CA.json b/src/i18n/messages/fr_CA.json new file mode 100644 index 00000000..509e3aeb --- /dev/null +++ b/src/i18n/messages/fr_CA.json @@ -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" +} \ No newline at end of file diff --git a/src/i18n/messages/he.json b/src/i18n/messages/he.json deleted file mode 100644 index 9e26dfee..00000000 --- a/src/i18n/messages/he.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/hi.json b/src/i18n/messages/hi.json new file mode 100644 index 00000000..c2cd2f3b --- /dev/null +++ b/src/i18n/messages/hi.json @@ -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" +} \ No newline at end of file diff --git a/src/i18n/messages/id.json b/src/i18n/messages/id.json deleted file mode 100644 index 9e26dfee..00000000 --- a/src/i18n/messages/id.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/it.json b/src/i18n/messages/it.json new file mode 100644 index 00000000..c2cd2f3b --- /dev/null +++ b/src/i18n/messages/it.json @@ -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" +} \ No newline at end of file diff --git a/src/i18n/messages/ko_kr.json b/src/i18n/messages/ko_kr.json deleted file mode 100644 index 9e26dfee..00000000 --- a/src/i18n/messages/ko_kr.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/pl.json b/src/i18n/messages/pl.json deleted file mode 100644 index 9e26dfee..00000000 --- a/src/i18n/messages/pl.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/pt.json b/src/i18n/messages/pt.json new file mode 100644 index 00000000..c2cd2f3b --- /dev/null +++ b/src/i18n/messages/pt.json @@ -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" +} \ No newline at end of file diff --git a/src/i18n/messages/pt_br.json b/src/i18n/messages/pt_br.json deleted file mode 100644 index 9e26dfee..00000000 --- a/src/i18n/messages/pt_br.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json index 9e26dfee..c2cd2f3b 100644 --- a/src/i18n/messages/ru.json +++ b/src/i18n/messages/ru.json @@ -1 +1,34 @@ -{} \ No newline at end of file +{ + "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" +} \ No newline at end of file diff --git a/src/i18n/messages/th.json b/src/i18n/messages/th.json deleted file mode 100644 index 9e26dfee..00000000 --- a/src/i18n/messages/th.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/src/i18n/messages/uk.json b/src/i18n/messages/uk.json index 9e26dfee..c2cd2f3b 100644 --- a/src/i18n/messages/uk.json +++ b/src/i18n/messages/uk.json @@ -1 +1,34 @@ -{} \ No newline at end of file +{ + "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" +} \ No newline at end of file