Skip to content

Commit f7900ed

Browse files
committed
feat: added local translations for frotnend-plugin-learner-dashboard
1 parent 2a0ed57 commit f7900ed

File tree

4 files changed

+42
-1
lines changed

4 files changed

+42
-1
lines changed

Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,15 @@ pull_translations:
5050
translations/frontend-component-footer/src/i18n/messages:frontend-component-footer \
5151
translations/frontend-app-learner-dashboard/src/i18n/messages:frontend-app-learner-dashboard
5252

53-
$(intl_imports) frontend-platform paragon frontend-component-footer frontend-app-learner-dashboard
53+
# Copy local plugin translations since they don't exist in remote translations repo
54+
@echo "Copying local frontend-plugin-learner-dashboard translations..."
55+
@if [ -d "src/i18n/local-overrides/frontend-plugin-learner-dashboard" ]; then \
56+
mkdir -p src/i18n/messages/frontend-plugin-learner-dashboard; \
57+
cp -r src/i18n/local-overrides/frontend-plugin-learner-dashboard/* src/i18n/messages/frontend-plugin-learner-dashboard/; \
58+
echo "Local plugin translations copied to messages folder!"; \
59+
fi
60+
61+
$(intl_imports) frontend-platform paragon frontend-component-footer frontend-app-learner-dashboard frontend-plugin-learner-dashboard
5462

5563
# This target is used by CI.
5664
validate-no-uncommitted-package-lock-changes:

src/i18n/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
// This file is generated by the openedx/frontend-platform's "intl-import.js" script.
2+
//
3+
// Refer to the i18n documents in https://docs.openedx.org/en/latest/developers/references/i18n.html to update
4+
// the file and use the Micro-frontend i18n pattern in new repositories.
5+
//
6+
17
export default [];
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"leanerDashboard.menu.career.label": "Carrera",
3+
"header.menu.new.label": "Nuevo",
4+
"learner-dash.courseCard.banners.auditAccessExpired": "Tu acceso de auditoría a este curso ha caducado.",
5+
"learner-dash.courseCard.banners.upgradeToAccess": "Actualiza ahora para volver a acceder al curso.",
6+
"learner-dash.courseCard.banners.findAnotherCourse": "Busca otro curso",
7+
"learner-dash.courseCard.banners.upgradeDeadlinePassed": "La fecha límite para actualizar este curso ha pasado. Para actualizar, inscríbete en una sesión que sea más adelante en el futuro.",
8+
"learner-dash.courseCard.banners.exploreCourseDetails": "Explora los detalles del curso.",
9+
"learner-dash.courseCard.banners.prerequisitesNotMet": "Aún no puede acceder a este curso porque no cumple los requisitos previos.",
10+
"learner-dash.courseCard.banners.courseHasNotStarted": "Aún no puede acceder a este curso porque aún no ha comenzado. El curso comenzará el {startDate}.",
11+
"learnerVariantDashboard.menu.dashboard.label": "Panel de control",
12+
"learnerVariantDashboard.menu.dashboardPersonal.label": "Personal",
13+
"learnerVariantDashboard.menu.dashboardSwitch.label": "CAMBIAR PANEL DE CONTROL",
14+
"leanerDashboard.enterpriseDialogHeader": "Comience a explorar los cursos gratuitos disponibles a través del panel de control {label}.",
15+
"leanerDashboard.enterpriseDialogBody": "Tienes acceso a una amplia gama de cursos gratuitos. Para explorar y empezar a aprender, solo tienes que hacer clic en «Ir al panel de control» ahora.",
16+
"leanerDashboard.enterpriseDialogDismissButton": "Descartar",
17+
"leanerDashboard.enterpriseDialogConfirmButton": "Ir al panel de control",
18+
"learner-dash.notices.error404Message": "Probablemente esto haya ocurrido porque el complemento de avisos no está instalado en la plataforma.",
19+
"learner-dash.courseCard.actions.upgrade": "Actualizar"
20+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Local translation overrides for frontend-plugin-learner-dashboard
2+
// These will not be overwritten by pull_translations
3+
import messagesOfEs419Language from './es_419.json';
4+
5+
export default {
6+
'es-419': messagesOfEs419Language,
7+
};

0 commit comments

Comments
 (0)