Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(i18n): add more languages #139

Merged
merged 1 commit into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-app-learner-record
transifex_resource = frontend-app-learner-record
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
Expand Down
10 changes: 10 additions & 0 deletions src/i18n/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import { messages as paragonMessages } from '@edx/paragon';

import arMessages from './messages/ar.json';
import caMessages from './messages/ca.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';
// 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';
Expand Down Expand Up @@ -31,6 +36,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 [
Expand Down
49 changes: 49 additions & 0 deletions src/i18n/messages/de_DE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"PageTitle": "My Learner Records | {siteName}",
"earned.status.badge": "Earned",
"not.earned.status.badge": "Not Earned",
"partially.completed.status.badge": "Partially Completed",
"link.back.to.records": "Back to My Records",
"records.list.error": "An error occurred attempting to retrieve your program records. Please try again later.",
"page.notfound.message": "The page you're looking for is unavailable or there's an error in the URL. Please check the URL and try again.",
"download.button.default": "Download program record",
"download.button.pending": "Downloading program record",
"download.button.complete": "Download complete",
"send.program.record": "Send program record",
"copy.link.tooltip.message": "Link copied!",
"copy.program.record.link": "Copy program record link",
"create.program.record.link": "Create program record link",
"send.program.record.popover.heading": "Sending your Program Record",
"send.program.record.popover.content": "Pursue deeper learning. Send your record to universities that accept this program for credit. You can send your record to multiple universities at once. Once sent, the records cannot be unsent.",
"share.program.record.popover.heading": "Sharing your Program Record",
"share.program.record.popover.content": "Showcase your progress! Share this record publicly with universities and employers. Create a 'public program record link' to give people access to your record.",
"download.program.record": "Download program record",
"successful.record.download.toast.message": "Program record sucessfullly downloaded",
"program.record.type": "{program_type} Program Record",
"program.record.name": "{program_name} Record",
"platform.and.school.name": "{platform} | {school}",
"last.updated.date": "Last Updated {date}",
"learner.username": "{username}",
"learner.email": "{email}",
"help.section.header": "Questions about Learner Records?",
"help.section.content.with.link": "To learn more about records you can {link}",
"send.records.try.again.button": "Try Again",
"send.failure.alert.heading": "We were unable to send your program record",
"send.failure.alert.message": "You can try to send your record to the {pathway_name} pathway again. If this issue persists {link}",
"send.success.alert.heading": "You have successfully sent your program record",
"send.success.alert.message": "{pathway_name} has received your record. Check with the school to learn more about their application process.",
"send.record.modal.header": "Send Program Record to {platform} Credit Partner",
"send.record.modal.description": "You can directly share your program record with {platform} partners that accept credit for this {programType} Program. Once you send your record you cannot unsend it.",
"send.record.modal.form.header": "Select the organization(s) you wish to send this record to:",
"send.record.modal.cancel.button": "Cancel",
"send.record.modal.send.button": "Send program record",
"records.profile.link": "Back to My Profile",
"records.list.empty": "No records yet. Program records are created once you have earned at least one course\n certificate in a program.",
"records.subheader": "Program Records",
"records.description": "A program record is created once you have earned at least one course certificate\n in a program.",
"records.record.view.link": "View Program Record",
"records.help.header": "Questions about Learner Records?",
"records.help.description": "To learn more about records you can ",
"records.help.link": "read more in our records help area.",
"records.header": "My Learner Records"
}
49 changes: 49 additions & 0 deletions src/i18n/messages/fr_CA.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"PageTitle": "Mes dossiers d'apprenant | {siteName}",
"earned.status.badge": "Obtenu",
"not.earned.status.badge": "Non obtenu",
"partially.completed.status.badge": "Partiellement achevé",
"link.back.to.records": "Retour à mes dossiers",
"records.list.error": "Une erreur s'est produite lors de la tentative de récupération des dossiers de votre programme. Veuillez réessayer plus tard.",
"page.notfound.message": "La page que vous recherchez n'est pas disponible ou il y a une erreur dans l'URL. Veuillez vérifier l'URL et réessayer.",
"download.button.default": "Télécharger le dossier du programme",
"download.button.pending": "Téléchargement du dossier du programme",
"download.button.complete": "Téléchargement complété",
"send.program.record": "Envoyer le dossier du programme",
"copy.link.tooltip.message": "Lien copié!",
"copy.program.record.link": "Copier le lien du dossier du programme",
"create.program.record.link": "Créer un lien de dossier de programme",
"send.program.record.popover.heading": "Envoi de votre dossier de programme",
"send.program.record.popover.content": "Poursuivre un apprentissage plus approfondi. Envoyez votre dossier aux universités qui acceptent ce programme pour crédit. Vous pouvez envoyer votre dossier à plusieurs universités à la fois. Une fois envoyés, les dossiers ne peuvent pas être renvoyés.",
"share.program.record.popover.heading": "Partager votre dossier de programme",
"share.program.record.popover.content": "Présentez votre progression! Partagez ce dossier publiquement avec les universités et les employeurs. Créez un 'lien dossier de programme public' pour permettre aux personnes d'accéder à votre dossier.",
"download.program.record": "Télécharger le dossier du programme",
"successful.record.download.toast.message": "Le dossier du programme a été téléchargé avec succès",
"program.record.type": "{program_type} Dossier du programme",
"program.record.name": "Dossier {program_name}",
"platform.and.school.name": "{platform} | {school}",
"last.updated.date": "Dernière mise à jour {date}",
"learner.username": "{username}",
"learner.email": "{email}",
"help.section.header": "Des questions sur les dossiers d'apprenants?",
"help.section.content.with.link": "Pour en savoir plus sur les dossiers, vous pouvez {link}",
"send.records.try.again.button": "Essayer de nouveau",
"send.failure.alert.heading": "Nous n'avons pas pu envoyer votre dossier de programme",
"send.failure.alert.message": "Vous pouvez réessayer d'envoyer votre dossier au chemin {pathway_name}. Si ce problème persiste {link}",
"send.success.alert.heading": "Vous avez envoyé avec succès votre dossier de programme",
"send.success.alert.message": "{pathway_name} a reçu votre dossier. Vérifiez auprès de l'école pour en savoir plus sur leur processus de candidature.",
"send.record.modal.header": "Envoyer le dossier du programme au partenaire de crédit {platform}",
"send.record.modal.description": "Vous pouvez partager directement votre dossier de programme avec des partenaires {platform} qui acceptent le crédit pour ce programme {programType}. Une fois que vous avez envoyé votre dossier, vous ne pouvez pas l'annuler.",
"send.record.modal.form.header": "Sélectionnez l'organisation ou les organisations auxquelles vous souhaitez envoyer ce dossier :",
"send.record.modal.cancel.button": "Annuler",
"send.record.modal.send.button": "Envoyer le dossier du programme",
"records.profile.link": "Retour à mon profil",
"records.list.empty": "Aucun dossier pour le moment. Les dossiers de programme sont créés une fois que vous avez obtenu au moins une attestation de cours dans un programme.",
"records.subheader": "Dossiers du programme",
"records.description": "Un dossier de programme est créé une fois que vous avez obtenu au moins une attestation de cours dans un programme.",
"records.record.view.link": "Voir le dossier du programme",
"records.help.header": "Des questions sur les dossiers d'apprenants?",
"records.help.description": "Pour en savoir plus sur les dossiers, vous pouvez",
"records.help.link": "en savoir plus dans notre zone d'aide sur les dossiers.",
"records.header": "Mes dossiers d'apprenant"
}
49 changes: 49 additions & 0 deletions src/i18n/messages/hi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"PageTitle": "My Learner Records | {siteName}",
"earned.status.badge": "Earned",
"not.earned.status.badge": "Not Earned",
"partially.completed.status.badge": "Partially Completed",
"link.back.to.records": "Back to My Records",
"records.list.error": "An error occurred attempting to retrieve your program records. Please try again later.",
"page.notfound.message": "The page you're looking for is unavailable or there's an error in the URL. Please check the URL and try again.",
"download.button.default": "Download program record",
"download.button.pending": "Downloading program record",
"download.button.complete": "Download complete",
"send.program.record": "Send program record",
"copy.link.tooltip.message": "Link copied!",
"copy.program.record.link": "Copy program record link",
"create.program.record.link": "Create program record link",
"send.program.record.popover.heading": "Sending your Program Record",
"send.program.record.popover.content": "Pursue deeper learning. Send your record to universities that accept this program for credit. You can send your record to multiple universities at once. Once sent, the records cannot be unsent.",
"share.program.record.popover.heading": "Sharing your Program Record",
"share.program.record.popover.content": "Showcase your progress! Share this record publicly with universities and employers. Create a 'public program record link' to give people access to your record.",
"download.program.record": "Download program record",
"successful.record.download.toast.message": "Program record sucessfullly downloaded",
"program.record.type": "{program_type} Program Record",
"program.record.name": "{program_name} Record",
"platform.and.school.name": "{platform} | {school}",
"last.updated.date": "Last Updated {date}",
"learner.username": "{username}",
"learner.email": "{email}",
"help.section.header": "Questions about Learner Records?",
"help.section.content.with.link": "To learn more about records you can {link}",
"send.records.try.again.button": "Try Again",
"send.failure.alert.heading": "We were unable to send your program record",
"send.failure.alert.message": "You can try to send your record to the {pathway_name} pathway again. If this issue persists {link}",
"send.success.alert.heading": "You have successfully sent your program record",
"send.success.alert.message": "{pathway_name} has received your record. Check with the school to learn more about their application process.",
"send.record.modal.header": "Send Program Record to {platform} Credit Partner",
"send.record.modal.description": "You can directly share your program record with {platform} partners that accept credit for this {programType} Program. Once you send your record you cannot unsend it.",
"send.record.modal.form.header": "Select the organization(s) you wish to send this record to:",
"send.record.modal.cancel.button": "Cancel",
"send.record.modal.send.button": "Send program record",
"records.profile.link": "Back to My Profile",
"records.list.empty": "No records yet. Program records are created once you have earned at least one course\n certificate in a program.",
"records.subheader": "Program Records",
"records.description": "A program record is created once you have earned at least one course certificate\n in a program.",
"records.record.view.link": "View Program Record",
"records.help.header": "Questions about Learner Records?",
"records.help.description": "To learn more about records you can ",
"records.help.link": "read more in our records help area.",
"records.header": "My Learner Records"
}
49 changes: 49 additions & 0 deletions src/i18n/messages/it_IT.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"PageTitle": "My Learner Records | {siteName}",
"earned.status.badge": "Earned",
"not.earned.status.badge": "Not Earned",
"partially.completed.status.badge": "Partially Completed",
"link.back.to.records": "Back to My Records",
"records.list.error": "An error occurred attempting to retrieve your program records. Please try again later.",
"page.notfound.message": "The page you're looking for is unavailable or there's an error in the URL. Please check the URL and try again.",
"download.button.default": "Download program record",
"download.button.pending": "Downloading program record",
"download.button.complete": "Download complete",
"send.program.record": "Send program record",
"copy.link.tooltip.message": "Link copied!",
"copy.program.record.link": "Copy program record link",
"create.program.record.link": "Create program record link",
"send.program.record.popover.heading": "Sending your Program Record",
"send.program.record.popover.content": "Pursue deeper learning. Send your record to universities that accept this program for credit. You can send your record to multiple universities at once. Once sent, the records cannot be unsent.",
"share.program.record.popover.heading": "Sharing your Program Record",
"share.program.record.popover.content": "Showcase your progress! Share this record publicly with universities and employers. Create a 'public program record link' to give people access to your record.",
"download.program.record": "Download program record",
"successful.record.download.toast.message": "Program record sucessfullly downloaded",
"program.record.type": "{program_type} Program Record",
"program.record.name": "{program_name} Record",
"platform.and.school.name": "{platform} | {school}",
"last.updated.date": "Last Updated {date}",
"learner.username": "{username}",
"learner.email": "{email}",
"help.section.header": "Questions about Learner Records?",
"help.section.content.with.link": "To learn more about records you can {link}",
"send.records.try.again.button": "Try Again",
"send.failure.alert.heading": "We were unable to send your program record",
"send.failure.alert.message": "You can try to send your record to the {pathway_name} pathway again. If this issue persists {link}",
"send.success.alert.heading": "You have successfully sent your program record",
"send.success.alert.message": "{pathway_name} has received your record. Check with the school to learn more about their application process.",
"send.record.modal.header": "Send Program Record to {platform} Credit Partner",
"send.record.modal.description": "You can directly share your program record with {platform} partners that accept credit for this {programType} Program. Once you send your record you cannot unsend it.",
"send.record.modal.form.header": "Select the organization(s) you wish to send this record to:",
"send.record.modal.cancel.button": "Cancel",
"send.record.modal.send.button": "Send program record",
"records.profile.link": "Back to My Profile",
"records.list.empty": "No records yet. Program records are created once you have earned at least one course\n certificate in a program.",
"records.subheader": "Program Records",
"records.description": "A program record is created once you have earned at least one course certificate\n in a program.",
"records.record.view.link": "View Program Record",
"records.help.header": "Questions about Learner Records?",
"records.help.description": "To learn more about records you can ",
"records.help.link": "read more in our records help area.",
"records.header": "My Learner Records"
}
Loading