From 2d1f880edd05cb90f346671b6ba6416e42555915 Mon Sep 17 00:00:00 2001 From: Yoiber Beitar Date: Tue, 14 Feb 2023 12:05:08 -0500 Subject: [PATCH 1/3] chore(i18n): add more languages --- Makefile | 2 +- src/i18n/index.js | 10 ++++++++++ src/i18n/messages/ar.json | 25 ++++++++++++++++++++++++- src/i18n/messages/de_DE.json | 24 ++++++++++++++++++++++++ src/i18n/messages/es_419.json | 25 ++++++++++++++++++++++++- src/i18n/messages/fr.json | 25 ++++++++++++++++++++++++- src/i18n/messages/fr_CA.json | 24 ++++++++++++++++++++++++ src/i18n/messages/hi.json | 24 ++++++++++++++++++++++++ src/i18n/messages/it_IT.json | 24 ++++++++++++++++++++++++ src/i18n/messages/pt_PT.json | 24 ++++++++++++++++++++++++ src/i18n/messages/ru.json | 25 ++++++++++++++++++++++++- src/i18n/messages/uk.json | 25 ++++++++++++++++++++++++- src/i18n/messages/zh_CN.json | 25 ++++++++++++++++++++++++- 13 files changed, 275 insertions(+), 7 deletions(-) create mode 100644 src/i18n/messages/de_DE.json create mode 100644 src/i18n/messages/fr_CA.json create mode 100644 src/i18n/messages/hi.json create mode 100644 src/i18n/messages/it_IT.json create mode 100644 src/i18n/messages/pt_PT.json diff --git a/Makefile b/Makefile index 09f25b701..664a1ad62 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ transifex_resource = frontend-app-support -transifex_langs = "ar,fr,es_419,zh_CN" +transifex_langs = "ar,fr,es_419,zh_CN,fr_CA,it_IT,pt_PT,de_DE,uk,ru,hi" intl_imports = ./node_modules/.bin/intl-imports.js transifex_utils = ./node_modules/.bin/transifex-utils.js diff --git a/src/i18n/index.js b/src/i18n/index.js index 5f4f4be7f..9159df872 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -14,6 +14,11 @@ import ptbrMessages from './messages/pt_br.json'; import ruMessages from './messages/ru.json'; import thMessages from './messages/th.json'; import ukMessages from './messages/uk.json'; +import dedeMessages from './messages/de_DE.json'; +import frcaMessages from './messages/fr_CA.json'; +import hiMessages from './messages/hi.json'; +import ititMessages from './messages/it_IT.json'; +import ptptMessages from './messages/pt_PT.json.json'; const appMessages = { ar: arMessages, @@ -29,6 +34,11 @@ const appMessages = { ru: ruMessages, th: thMessages, uk: ukMessages, + 'de-de': dedeMessages, + 'fr-ca': frcaMessages, + hi: hiMessages, + 'it-it': ititMessages, + 'pt-pt': ptptMessages }; export default [ diff --git a/src/i18n/messages/ar.json b/src/i18n/messages/ar.json index 0967ef424..7c5634166 100644 --- a/src/i18n/messages/ar.json +++ b/src/i18n/messages/ar.json @@ -1 +1,24 @@ -{} +{ + "pageTitle": "أدوات الدعم | {siteName}", + "supportTools.mainTab.description": "مجموعة من الأدوات التي يستخدمها فريق الدعم للمساعدة في فرز وحل مشكلات المتعلمين.", + "supportTools.accountActions.cancelRetirement": "سيؤدي هذا إلى إلغاء تقاعد المستخدم المطلوب. أترغب في المواصلة؟", + "supportTools.accountActions.resetPassword": "سنرسل إلى عنوان البريد الإلكتروني {email} رسالة تحتوي إرشادات استعادة كلمة المرور . أترغب في المواصلة؟", + "learner.record.tab.header": "سجلات المتعلمين", + "earned.status": "مكتسب", + "not.earned.status": "غير مكتسب", + "partially.completed.status": "مكتمل جزئيًا", + "record.table.last.updated": "آخر تحديث", + "copy.public.record.link": "نسخ رابط السجل العام", + "record.table.header.course.name": "اسم المساق", + "record.table.header.school": "المدرسة", + "record.table.header.course.id": "معرف المساق", + "record.table.header.highest.grade": "أعلى درجة متحصل عليها", + "record.table.header.letter.grade": "التقدير", + "record.table.header.verified.attempts": "المحاولات الموثقة", + "record.table.header.date.earned": "تاريخ التحصيل", + "record.table.header.status": "الحالة", + "no.public.record.link": "لا يوجد نسخة عامة عن هذا السجل. على المتعلمين إنشاء رابط عام بأنفسهم.", + "no.records.found": "لا توجد نتائج توافق اسم المستخدم", + "supportTools.learnerInformation.ssoHeader": "سجلات الدخول الموحد", + "supportTools.learnerInformation.verifiedNameHeader": "حالة التحقق من الاسم" +} \ No newline at end of file diff --git a/src/i18n/messages/de_DE.json b/src/i18n/messages/de_DE.json new file mode 100644 index 000000000..5c42452ec --- /dev/null +++ b/src/i18n/messages/de_DE.json @@ -0,0 +1,24 @@ +{ + "pageTitle": "Support Tools | {siteName}", + "supportTools.mainTab.description": "Suite of tools used by support team to help triage and resolve select learner issues.", + "supportTools.accountActions.cancelRetirement": "This will cancel retirement for the requested user. Do you wish to proceed?", + "supportTools.accountActions.resetPassword": "We will send a message with password recovery instructions to the email address {email}. Do you wish to proceed?", + "learner.record.tab.header": "Learner Records", + "earned.status": "Earned", + "not.earned.status": "Not Earned", + "partially.completed.status": "Partially Completed", + "record.table.last.updated": "Last updated", + "copy.public.record.link": "Copy public record link", + "record.table.header.course.name": "Course Name", + "record.table.header.school": "School", + "record.table.header.course.id": "Course ID", + "record.table.header.highest.grade": "Highest grade earned", + "record.table.header.letter.grade": "Letter Grade", + "record.table.header.verified.attempts": "Verified Attempts", + "record.table.header.date.earned": "Date Earned", + "record.table.header.status": "Status", + "no.public.record.link": "There is no public instance for this record. Learners must create a public link on their own.", + "no.records.found": "No results found for username", + "supportTools.learnerInformation.ssoHeader": "Single Sign-on Records", + "supportTools.learnerInformation.verifiedNameHeader": "Verified Name Status" +} \ No newline at end of file diff --git a/src/i18n/messages/es_419.json b/src/i18n/messages/es_419.json index 0967ef424..ea499f929 100644 --- a/src/i18n/messages/es_419.json +++ b/src/i18n/messages/es_419.json @@ -1 +1,24 @@ -{} +{ + "pageTitle": "Herramientas de soporte | {siteName}", + "supportTools.mainTab.description": "Conjunto de herramientas utilizadas por el equipo de asistencia para ayudar a clasificar y resolver determinados problemas de los alumnos.", + "supportTools.accountActions.cancelRetirement": "Esto cancelará el retiro del usuario solicitado. ¿Desea continuar?", + "supportTools.accountActions.resetPassword": "Enviaremos un mensaje con instrucciones para recuperar la contraseña a la dirección de correo electrónico {email}. ¿Desea continuar?", + "learner.record.tab.header": "Registros de alumnos", + "earned.status": "Realizado", + "not.earned.status": "no ganado", + "partially.completed.status": "Parcialmente Completado", + "record.table.last.updated": "Última actualización", + "copy.public.record.link": "Copiar enlace de registro público", + "record.table.header.course.name": "Nombre del curso", + "record.table.header.school": "Institución Educativa", + "record.table.header.course.id": "ID del curso", + "record.table.header.highest.grade": "Calificación más alta obtenida", + "record.table.header.letter.grade": "Calificación con Letra", + "record.table.header.verified.attempts": "Intentos Verificados", + "record.table.header.date.earned": " Fecha Realizada", + "record.table.header.status": "Estado", + "no.public.record.link": "No hay ninguna instancia pública para este registro. Los alumnos deben crear un enlace público por su cuenta.", + "no.records.found": "No se encontraron resultados para el nombre de usuario", + "supportTools.learnerInformation.ssoHeader": "Registros de inicio de sesión única", + "supportTools.learnerInformation.verifiedNameHeader": "Estado de nombre verificado" +} \ No newline at end of file diff --git a/src/i18n/messages/fr.json b/src/i18n/messages/fr.json index 0967ef424..530b809ba 100644 --- a/src/i18n/messages/fr.json +++ b/src/i18n/messages/fr.json @@ -1 +1,24 @@ -{} +{ + "pageTitle": "Support Tools | {siteName}", + "supportTools.mainTab.description": "Suite d'outils utilisée par l'équipe de support pour aider à trier et à résoudre certains problèmes des apprenants.", + "supportTools.accountActions.cancelRetirement": "This will cancel retirement for the requested user. Do you wish to proceed?", + "supportTools.accountActions.resetPassword": "Nous enverrons un message avec des instructions de récupération de mot de passe à l'adresse e-mail {email}.\n Voulez-vous continuer ?", + "learner.record.tab.header": "Learner Records", + "earned.status": "Earned", + "not.earned.status": "Not Earned", + "partially.completed.status": "Partially Completed", + "record.table.last.updated": "Last updated", + "copy.public.record.link": "Copy public record link", + "record.table.header.course.name": "Course Name", + "record.table.header.school": "School", + "record.table.header.course.id": "Course ID", + "record.table.header.highest.grade": "Highest grade earned", + "record.table.header.letter.grade": "Letter Grade", + "record.table.header.verified.attempts": "Verified Attempts", + "record.table.header.date.earned": "Date Earned", + "record.table.header.status": "Status", + "no.public.record.link": "There is no public instance for this record. Learners must create a public link on their own.", + "no.records.found": "No results found for username", + "supportTools.learnerInformation.ssoHeader": "Enregistrements d'authentification unique", + "supportTools.learnerInformation.verifiedNameHeader": "Statut du nom vérifié" +} \ 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 000000000..a32fda3c6 --- /dev/null +++ b/src/i18n/messages/fr_CA.json @@ -0,0 +1,24 @@ +{ + "pageTitle": "Outils d'assistance | {siteName}", + "supportTools.mainTab.description": "Suite d'outils utilisée par l'équipe de support pour aider à trier et à résoudre certains problèmes des apprenants.", + "supportTools.accountActions.cancelRetirement": "Cela annulera le retrait de l'utilisateur demandé. Voulez-vous continuer?", + "supportTools.accountActions.resetPassword": "Nous enverrons un message avec les instructions de récupération du mot de passe à l'adresse courriel {email}. Voulez-vous continuer?", + "learner.record.tab.header": "Dossiers de l'apprenant", + "earned.status": "Obtenu", + "not.earned.status": "Non obtenu", + "partially.completed.status": "Partiellement achevé", + "record.table.last.updated": "Dernière mise à jour", + "copy.public.record.link": "Copier le lien du dossier public", + "record.table.header.course.name": "Nom du cours", + "record.table.header.school": "École", + "record.table.header.course.id": "ID de Cours", + "record.table.header.highest.grade": "Meilleure note obtenue", + "record.table.header.letter.grade": "Classement par lettre", + "record.table.header.verified.attempts": "Tentatives vérifiées", + "record.table.header.date.earned": "Date obtenu", + "record.table.header.status": "Statut", + "no.public.record.link": "Il n'y a pas d'instance publique pour cet enregistrement. Les apprenants doivent créer eux-mêmes un lien public.", + "no.records.found": "Aucun résultat trouvé pour le nom d'utilisateur", + "supportTools.learnerInformation.ssoHeader": "Registres d'authentification unique", + "supportTools.learnerInformation.verifiedNameHeader": "Statut du nom vérifié" +} \ 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 000000000..5c42452ec --- /dev/null +++ b/src/i18n/messages/hi.json @@ -0,0 +1,24 @@ +{ + "pageTitle": "Support Tools | {siteName}", + "supportTools.mainTab.description": "Suite of tools used by support team to help triage and resolve select learner issues.", + "supportTools.accountActions.cancelRetirement": "This will cancel retirement for the requested user. Do you wish to proceed?", + "supportTools.accountActions.resetPassword": "We will send a message with password recovery instructions to the email address {email}. Do you wish to proceed?", + "learner.record.tab.header": "Learner Records", + "earned.status": "Earned", + "not.earned.status": "Not Earned", + "partially.completed.status": "Partially Completed", + "record.table.last.updated": "Last updated", + "copy.public.record.link": "Copy public record link", + "record.table.header.course.name": "Course Name", + "record.table.header.school": "School", + "record.table.header.course.id": "Course ID", + "record.table.header.highest.grade": "Highest grade earned", + "record.table.header.letter.grade": "Letter Grade", + "record.table.header.verified.attempts": "Verified Attempts", + "record.table.header.date.earned": "Date Earned", + "record.table.header.status": "Status", + "no.public.record.link": "There is no public instance for this record. Learners must create a public link on their own.", + "no.records.found": "No results found for username", + "supportTools.learnerInformation.ssoHeader": "Single Sign-on Records", + "supportTools.learnerInformation.verifiedNameHeader": "Verified Name Status" +} \ No newline at end of file diff --git a/src/i18n/messages/it_IT.json b/src/i18n/messages/it_IT.json new file mode 100644 index 000000000..31ff9e0f9 --- /dev/null +++ b/src/i18n/messages/it_IT.json @@ -0,0 +1,24 @@ +{ + "pageTitle": "Support Tools | {siteName}", + "supportTools.mainTab.description": "Suite di strumenti utilizzati dal team di supporto per aiutare a valutare e risolvere i problemi degli studenti selezionati.", + "supportTools.accountActions.cancelRetirement": "This will cancel retirement for the requested user. Do you wish to proceed?", + "supportTools.accountActions.resetPassword": "Invieremo un messaggio con le istruzioni per il recupero della password all'indirizzo email {email}. Vuoi procedere?", + "learner.record.tab.header": "Learner Records", + "earned.status": "Earned", + "not.earned.status": "Not Earned", + "partially.completed.status": "Partially Completed", + "record.table.last.updated": "Last updated", + "copy.public.record.link": "Copy public record link", + "record.table.header.course.name": "Course Name", + "record.table.header.school": "School", + "record.table.header.course.id": "Course ID", + "record.table.header.highest.grade": "Highest grade earned", + "record.table.header.letter.grade": "Letter Grade", + "record.table.header.verified.attempts": "Verified Attempts", + "record.table.header.date.earned": "Date Earned", + "record.table.header.status": "Status", + "no.public.record.link": "There is no public instance for this record. Learners must create a public link on their own.", + "no.records.found": "No results found for username", + "supportTools.learnerInformation.ssoHeader": "Record di accesso singolo", + "supportTools.learnerInformation.verifiedNameHeader": "Stato del nome verificato" +} \ No newline at end of file diff --git a/src/i18n/messages/pt_PT.json b/src/i18n/messages/pt_PT.json new file mode 100644 index 000000000..5c42452ec --- /dev/null +++ b/src/i18n/messages/pt_PT.json @@ -0,0 +1,24 @@ +{ + "pageTitle": "Support Tools | {siteName}", + "supportTools.mainTab.description": "Suite of tools used by support team to help triage and resolve select learner issues.", + "supportTools.accountActions.cancelRetirement": "This will cancel retirement for the requested user. Do you wish to proceed?", + "supportTools.accountActions.resetPassword": "We will send a message with password recovery instructions to the email address {email}. Do you wish to proceed?", + "learner.record.tab.header": "Learner Records", + "earned.status": "Earned", + "not.earned.status": "Not Earned", + "partially.completed.status": "Partially Completed", + "record.table.last.updated": "Last updated", + "copy.public.record.link": "Copy public record link", + "record.table.header.course.name": "Course Name", + "record.table.header.school": "School", + "record.table.header.course.id": "Course ID", + "record.table.header.highest.grade": "Highest grade earned", + "record.table.header.letter.grade": "Letter Grade", + "record.table.header.verified.attempts": "Verified Attempts", + "record.table.header.date.earned": "Date Earned", + "record.table.header.status": "Status", + "no.public.record.link": "There is no public instance for this record. Learners must create a public link on their own.", + "no.records.found": "No results found for username", + "supportTools.learnerInformation.ssoHeader": "Single Sign-on Records", + "supportTools.learnerInformation.verifiedNameHeader": "Verified Name Status" +} \ No newline at end of file diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json index 9e26dfeeb..5c42452ec 100644 --- a/src/i18n/messages/ru.json +++ b/src/i18n/messages/ru.json @@ -1 +1,24 @@ -{} \ No newline at end of file +{ + "pageTitle": "Support Tools | {siteName}", + "supportTools.mainTab.description": "Suite of tools used by support team to help triage and resolve select learner issues.", + "supportTools.accountActions.cancelRetirement": "This will cancel retirement for the requested user. Do you wish to proceed?", + "supportTools.accountActions.resetPassword": "We will send a message with password recovery instructions to the email address {email}. Do you wish to proceed?", + "learner.record.tab.header": "Learner Records", + "earned.status": "Earned", + "not.earned.status": "Not Earned", + "partially.completed.status": "Partially Completed", + "record.table.last.updated": "Last updated", + "copy.public.record.link": "Copy public record link", + "record.table.header.course.name": "Course Name", + "record.table.header.school": "School", + "record.table.header.course.id": "Course ID", + "record.table.header.highest.grade": "Highest grade earned", + "record.table.header.letter.grade": "Letter Grade", + "record.table.header.verified.attempts": "Verified Attempts", + "record.table.header.date.earned": "Date Earned", + "record.table.header.status": "Status", + "no.public.record.link": "There is no public instance for this record. Learners must create a public link on their own.", + "no.records.found": "No results found for username", + "supportTools.learnerInformation.ssoHeader": "Single Sign-on Records", + "supportTools.learnerInformation.verifiedNameHeader": "Verified Name Status" +} \ No newline at end of file diff --git a/src/i18n/messages/uk.json b/src/i18n/messages/uk.json index 9e26dfeeb..5c42452ec 100644 --- a/src/i18n/messages/uk.json +++ b/src/i18n/messages/uk.json @@ -1 +1,24 @@ -{} \ No newline at end of file +{ + "pageTitle": "Support Tools | {siteName}", + "supportTools.mainTab.description": "Suite of tools used by support team to help triage and resolve select learner issues.", + "supportTools.accountActions.cancelRetirement": "This will cancel retirement for the requested user. Do you wish to proceed?", + "supportTools.accountActions.resetPassword": "We will send a message with password recovery instructions to the email address {email}. Do you wish to proceed?", + "learner.record.tab.header": "Learner Records", + "earned.status": "Earned", + "not.earned.status": "Not Earned", + "partially.completed.status": "Partially Completed", + "record.table.last.updated": "Last updated", + "copy.public.record.link": "Copy public record link", + "record.table.header.course.name": "Course Name", + "record.table.header.school": "School", + "record.table.header.course.id": "Course ID", + "record.table.header.highest.grade": "Highest grade earned", + "record.table.header.letter.grade": "Letter Grade", + "record.table.header.verified.attempts": "Verified Attempts", + "record.table.header.date.earned": "Date Earned", + "record.table.header.status": "Status", + "no.public.record.link": "There is no public instance for this record. Learners must create a public link on their own.", + "no.records.found": "No results found for username", + "supportTools.learnerInformation.ssoHeader": "Single Sign-on Records", + "supportTools.learnerInformation.verifiedNameHeader": "Verified Name Status" +} \ No newline at end of file diff --git a/src/i18n/messages/zh_CN.json b/src/i18n/messages/zh_CN.json index 0967ef424..5c42452ec 100644 --- a/src/i18n/messages/zh_CN.json +++ b/src/i18n/messages/zh_CN.json @@ -1 +1,24 @@ -{} +{ + "pageTitle": "Support Tools | {siteName}", + "supportTools.mainTab.description": "Suite of tools used by support team to help triage and resolve select learner issues.", + "supportTools.accountActions.cancelRetirement": "This will cancel retirement for the requested user. Do you wish to proceed?", + "supportTools.accountActions.resetPassword": "We will send a message with password recovery instructions to the email address {email}. Do you wish to proceed?", + "learner.record.tab.header": "Learner Records", + "earned.status": "Earned", + "not.earned.status": "Not Earned", + "partially.completed.status": "Partially Completed", + "record.table.last.updated": "Last updated", + "copy.public.record.link": "Copy public record link", + "record.table.header.course.name": "Course Name", + "record.table.header.school": "School", + "record.table.header.course.id": "Course ID", + "record.table.header.highest.grade": "Highest grade earned", + "record.table.header.letter.grade": "Letter Grade", + "record.table.header.verified.attempts": "Verified Attempts", + "record.table.header.date.earned": "Date Earned", + "record.table.header.status": "Status", + "no.public.record.link": "There is no public instance for this record. Learners must create a public link on their own.", + "no.records.found": "No results found for username", + "supportTools.learnerInformation.ssoHeader": "Single Sign-on Records", + "supportTools.learnerInformation.verifiedNameHeader": "Verified Name Status" +} \ No newline at end of file From a61ab4610fd51552f0177cd666b7f05a62712137 Mon Sep 17 00:00:00 2001 From: Yoiber Beitar Date: Tue, 14 Feb 2023 12:10:38 -0500 Subject: [PATCH 2/3] chore(i18n): fix importing modules --- src/i18n/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/index.js b/src/i18n/index.js index 9159df872..332129f8d 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -18,7 +18,7 @@ import dedeMessages from './messages/de_DE.json'; import frcaMessages from './messages/fr_CA.json'; import hiMessages from './messages/hi.json'; import ititMessages from './messages/it_IT.json'; -import ptptMessages from './messages/pt_PT.json.json'; +import ptptMessages from './messages/pt_PT.json'; const appMessages = { ar: arMessages, From 4c669975cb0ab97e670d449b9d8393994264d893 Mon Sep 17 00:00:00 2001 From: Yoiber Beitar Date: Thu, 2 Mar 2023 10:53:43 -0500 Subject: [PATCH 3/3] chore(i18n): Pylint fixed --- src/i18n/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n/index.js b/src/i18n/index.js index 332129f8d..a3b487de3 100644 --- a/src/i18n/index.js +++ b/src/i18n/index.js @@ -38,7 +38,7 @@ const appMessages = { 'fr-ca': frcaMessages, hi: hiMessages, 'it-it': ititMessages, - 'pt-pt': ptptMessages + 'pt-pt': ptptMessages, }; export default [