File tree Expand file tree Collapse file tree 4 files changed +45
-3
lines changed
local-overrides/frontend-plugin-learner-dashboard Expand file tree Collapse file tree 4 files changed +45
-3
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,21 @@ pull_translations:
4444 rm -rf src/i18n/messages
4545 mkdir src/i18n/messages
4646 cd src/i18n/messages \
47- && atlas pull $(ATLAS_OPTIONS) \
47+ && /Users/ejaz.ahmad1/Desktop/edX/frontend-app-learner-dashboard/node_modules/@edx/openedx- atlas/atlas pull \
4848 translations/frontend-platform/src/i18n/messages :frontend-platform \
4949 translations/paragon/src/i18n/messages :paragon \
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.
5664validate-no-uncommitted-package-lock-changes :
Original file line number Diff line number Diff line change 1- export default [ ] ;
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+
7+ import messagesFromFrontendPlatform from './messages/frontend-platform' ;
8+ import messagesFromParagon from './messages/paragon' ;
9+ import messagesFromFrontendComponentFooter from './messages/frontend-component-footer' ;
10+ import messagesFromFrontendAppLearnerDashboard from './messages/frontend-app-learner-dashboard' ;
11+ import messagesFromFrontendPluginLearnerDashboard from './messages/frontend-plugin-learner-dashboard' ;
12+
13+ export default [
14+ messagesFromFrontendPlatform ,
15+ messagesFromParagon ,
16+ messagesFromFrontendComponentFooter ,
17+ messagesFromFrontendAppLearnerDashboard ,
18+ messagesFromFrontendPluginLearnerDashboard ,
19+ ] ;
Original file line number Diff line number Diff line change 1+ {
2+ "leanerDashboard.enterpriseDialogHeader" : " Comienza a explorar los cursos gratuitos disponibles para ti a través del panel de {label}." ,
3+ "leanerDashboard.enterpriseDialogBody" : " Tienes acceso a una variedad de cursos gratuitos. Para explorar y comenzar a aprender, simplemente haz clic en \" Ir al panel\" ahora." ,
4+ "leanerDashboard.enterpriseDialogDismissButton" : " Descartar" ,
5+ "leanerDashboard.enterpriseDialogConfirmButton" : " Ir al panel" ,
6+ "learner-dash.courseCard.actions.upgrade" : " Actualizar" ,
7+ "leanerDashboard.menu.career.label" : " Carrera" ,
8+ "header.menu.new.label" : " Nuevo"
9+ }
Original file line number Diff line number Diff line change 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+ } ;
You can’t perform that action at this time.
0 commit comments