richie-education 2.19.0 → 2.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/i18n/locales/ar-SA.json +46 -6
- package/i18n/locales/es-ES.json +46 -6
- package/i18n/locales/fa-IR.json +46 -6
- package/i18n/locales/fr-CA.json +46 -6
- package/i18n/locales/fr-FR.json +44 -4
- package/i18n/locales/ko-KR.json +46 -6
- package/i18n/locales/pt-PT.json +47 -7
- package/i18n/locales/ru-RU.json +46 -6
- package/js/components/Button/index.tsx +1 -1
- package/js/components/CourseProductCourseRuns/EnrolledCourseRun.tsx +52 -18
- package/js/components/CourseProductCourseRuns/_styles.scss +5 -0
- package/js/components/CourseProductCourseRuns/index.spec.tsx +39 -9
- package/js/components/CourseProductItem/CourseRunItem.tsx +5 -8
- package/js/components/CourseRunEnrollment/_styles.scss +9 -0
- package/js/components/CourseRunEnrollment/index.joanie.spec.tsx +275 -0
- package/js/components/CourseRunEnrollment/{index.spec.tsx → index.openedx.spec.tsx} +18 -2
- package/js/components/CourseRunEnrollment/index.tsx +61 -12
- package/js/components/CourseRunUnenrollmentButton/_styles.scss +3 -0
- package/js/components/CourseRunUnenrollmentButton/index.spec.tsx +21 -0
- package/js/components/CourseRunUnenrollmentButton/index.tsx +25 -0
- package/js/components/Dashboard/index.spec.tsx +1 -1
- package/js/components/DashboardCourses/_styles.scss +5 -0
- package/js/components/DashboardCourses/index.spec.tsx +110 -0
- package/js/components/DashboardCourses/index.tsx +33 -0
- package/js/components/DashboardItem/DashboardItemCourseEnrolling.spec.tsx +64 -0
- package/js/components/DashboardItem/DashboardItemCourseEnrolling.stories.tsx +75 -0
- package/js/components/DashboardItem/DashboardItemCourseEnrolling.tsx +294 -0
- package/js/components/DashboardItem/DashboardSubItem.tsx +2 -1
- package/js/components/DashboardItem/{DashboardItemEnrollment.spec.tsx → Enrollment/DashboardItemEnrollment.spec.tsx} +24 -16
- package/js/components/DashboardItem/{DashboardItemEnrollment.stories.tsx → Enrollment/DashboardItemEnrollment.stories.tsx} +1 -1
- package/js/components/DashboardItem/{DashboardItemEnrollment.tsx → Enrollment/DashboardItemEnrollment.tsx} +5 -3
- package/js/components/DashboardItem/Order/DashboardItemOrder.spec.tsx +806 -0
- package/js/components/DashboardItem/{DashboardItemOrder.tsx → Order/DashboardItemOrder.tsx} +50 -36
- package/js/components/DashboardItem/Order/DashboardItemOrderReadonly.stories.tsx +73 -0
- package/js/components/DashboardItem/Order/DashboardItemOrderWritable.stories.tsx +76 -0
- package/js/components/DashboardItem/_styles.scss +76 -29
- package/js/components/DashboardItem/index.tsx +4 -3
- package/js/components/DashboardItem/mock.stories.ts +8 -6
- package/js/components/DashboardOrderLoader/index.tsx +45 -0
- package/js/data/useCourseEnrollment/index.ts +29 -13
- package/js/hooks/useEnroll/index.spec.tsx +88 -0
- package/js/hooks/useEnroll/index.ts +93 -0
- package/js/translations/ar-SA.json +1 -1
- package/js/translations/es-ES.json +1 -1
- package/js/translations/fa-IR.json +1 -1
- package/js/translations/fr-CA.json +1 -1
- package/js/translations/fr-FR.json +1 -1
- package/js/translations/ko-KR.json +1 -1
- package/js/translations/pt-PT.json +1 -1
- package/js/translations/ru-RU.json +1 -1
- package/js/types/Joanie.ts +5 -6
- package/js/types/api.ts +9 -1
- package/js/utils/CoursesHelper/index.spec.ts +110 -0
- package/js/utils/CoursesHelper/index.ts +20 -0
- package/js/utils/StorybookHelper/index.tsx +4 -9
- package/js/utils/api/configuration.ts +9 -0
- package/js/utils/api/enrollment.ts +11 -16
- package/js/utils/api/joanie.ts +1 -0
- package/js/utils/api/lms/index.ts +3 -9
- package/js/utils/api/lms/joanie.ts +88 -0
- package/js/utils/api/lms/openedx-hawthorn.ts +0 -1
- package/js/utils/relativeDate.ts +42 -0
- package/js/utils/routers/dashboard/index.tsx +11 -0
- package/js/utils/routers/dashboard/useDashboardRouter/index.tsx +16 -1
- package/js/utils/sleep.ts +3 -0
- package/js/utils/test/createTestQueryClient.ts +5 -2
- package/js/utils/test/expectBannerError.ts +2 -2
- package/js/utils/test/expectSpinner.ts +7 -0
- package/js/utils/test/factories.ts +2 -2
- package/js/utils/useDateFormat.tsx +5 -0
- package/js/utils/useDateRelative.tsx +9 -0
- package/package.json +1 -1
- package/scss/colors/_theme.scss +5 -0
- package/scss/components/_index.scss +2 -0
- package/scss/objects/_course_glimpses.scss +1 -0
- package/js/components/DashboardItem/DashboardItemEnrollmentFooter.tsx +0 -75
- package/js/components/DashboardItem/DashboardItemOrder.spec.tsx +0 -99
- package/js/components/DashboardItem/DashboardItemOrder.stories.tsx +0 -46
package/i18n/locales/ar-SA.json
CHANGED
|
@@ -211,6 +211,10 @@
|
|
|
211
211
|
"description": "Help text below the \"Enroll now\" CTA when an enrollment attempt has already failed.",
|
|
212
212
|
"message": "فشل طلب التسجيل الخاص بك."
|
|
213
213
|
},
|
|
214
|
+
"components.CourseRunEnrollment.getEnrollmentFailed": {
|
|
215
|
+
"description": "Help text replacing the CTA on a course run when when enrollment fetching failed.",
|
|
216
|
+
"message": "Enrollment fetching failed"
|
|
217
|
+
},
|
|
214
218
|
"components.CourseRunEnrollment.goToCourse": {
|
|
215
219
|
"description": "CTA for users who are already enrolled in a course run.",
|
|
216
220
|
"message": "الذهاب إلى الدورة"
|
|
@@ -223,6 +227,14 @@
|
|
|
223
227
|
"description": "Helper text in the enroll button for non logged in users",
|
|
224
228
|
"message": "تسجيل الدخول للتسجيل"
|
|
225
229
|
},
|
|
230
|
+
"components.CourseRunEnrollment.unenroll": {
|
|
231
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
232
|
+
"message": "Unenroll from this course"
|
|
233
|
+
},
|
|
234
|
+
"components.CourseRunEnrollment.unenrollmentFailed": {
|
|
235
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
236
|
+
"message": "Your unenrollment request failed."
|
|
237
|
+
},
|
|
226
238
|
"components.CourseRunList.enrollFromTo": {
|
|
227
239
|
"description": "Text label for the enrollment dates",
|
|
228
240
|
"message": "Enrollment from {start} to {end}"
|
|
@@ -231,6 +243,10 @@
|
|
|
231
243
|
"description": "Text displayed when no course run are opened for the course",
|
|
232
244
|
"message": "No session available for this course."
|
|
233
245
|
},
|
|
246
|
+
"components.CourseRunUnenrollmentButton.unenroll": {
|
|
247
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
248
|
+
"message": "Unenroll from this course"
|
|
249
|
+
},
|
|
234
250
|
"components.Dashboard.DashboardRoutes.course.path": {
|
|
235
251
|
"description": "The path to display a course detail view.",
|
|
236
252
|
"message": "/courses/{code}"
|
|
@@ -247,6 +263,14 @@
|
|
|
247
263
|
"description": "The path to display the courses view.",
|
|
248
264
|
"message": "/courses"
|
|
249
265
|
},
|
|
266
|
+
"components.Dashboard.DashboardRoutes.order.label": {
|
|
267
|
+
"description": "Label of the order view used in navigation components.",
|
|
268
|
+
"message": "{orderTitle}"
|
|
269
|
+
},
|
|
270
|
+
"components.Dashboard.DashboardRoutes.order.path": {
|
|
271
|
+
"description": "The path to display an order detail view.",
|
|
272
|
+
"message": "/courses/orders/{orderId}"
|
|
273
|
+
},
|
|
250
274
|
"components.Dashboard.DashboardRoutes.preferences.addresses.creation.label": {
|
|
251
275
|
"description": "Label of the addresses creation view.",
|
|
252
276
|
"message": "Create address"
|
|
@@ -315,6 +339,10 @@
|
|
|
315
339
|
"description": "The dashboard's breadcrumb back button's label",
|
|
316
340
|
"message": "Back"
|
|
317
341
|
},
|
|
342
|
+
"components.DashboardCourses.loading": {
|
|
343
|
+
"description": "Message displayed while loading orders and enrollments",
|
|
344
|
+
"message": "Loading ..."
|
|
345
|
+
},
|
|
318
346
|
"components.DashboardCreateAddressForm.header": {
|
|
319
347
|
"description": "Title of the dashboard address creation form",
|
|
320
348
|
"message": "Create an address"
|
|
@@ -403,6 +431,10 @@
|
|
|
403
431
|
"description": "Label of the title input on the credit card edit page",
|
|
404
432
|
"message": "Name of the credit card"
|
|
405
433
|
},
|
|
434
|
+
"components.DashboardOrderLoader.loading": {
|
|
435
|
+
"description": "Message displayed while loading an order",
|
|
436
|
+
"message": "Loading order ..."
|
|
437
|
+
},
|
|
406
438
|
"components.DashboardSidebar.header": {
|
|
407
439
|
"description": "Title of the dashboard sidebar",
|
|
408
440
|
"message": "Welcome {name}"
|
|
@@ -447,17 +479,25 @@
|
|
|
447
479
|
"description": "Label displayed when user do not have select a course run.",
|
|
448
480
|
"message": "Select a course run"
|
|
449
481
|
},
|
|
482
|
+
"components.EnrolledCourseRun.courseRunStartIn": {
|
|
483
|
+
"description": "Error displayed when user is enrolled but the course run is not started",
|
|
484
|
+
"message": "The course starts {relativeStartDate}"
|
|
485
|
+
},
|
|
450
486
|
"components.EnrolledCourseRun.goToCourse": {
|
|
451
487
|
"description": "CTA displayed when user is enrolled to the course run.",
|
|
452
488
|
"message": "الذهاب إلى الدورة"
|
|
453
489
|
},
|
|
454
|
-
"components.EnrolledCourseRun.
|
|
455
|
-
"description": "
|
|
456
|
-
"message": "
|
|
490
|
+
"components.EnrolledCourseRun.isEnroll": {
|
|
491
|
+
"description": "Message displayed when user is enrolled but the course run is not started",
|
|
492
|
+
"message": "You are enrolled"
|
|
493
|
+
},
|
|
494
|
+
"components.EnrolledCourseRun.unenroll": {
|
|
495
|
+
"description": "Button label to unenroll.",
|
|
496
|
+
"message": "Unenroll"
|
|
457
497
|
},
|
|
458
|
-
"components.EnrolledCourseRun.
|
|
459
|
-
"description": "Accessible label displayed when user is being
|
|
460
|
-
"message": "
|
|
498
|
+
"components.EnrolledCourseRun.unenrolling": {
|
|
499
|
+
"description": "Accessible label displayed when user is being unenrolled.",
|
|
500
|
+
"message": "Unenrolling..."
|
|
461
501
|
},
|
|
462
502
|
"components.LanguageSelector.currentlySelected": {
|
|
463
503
|
"description": "Accessible hint to mark the currently selected language in the language selector",
|
package/i18n/locales/es-ES.json
CHANGED
|
@@ -211,6 +211,10 @@
|
|
|
211
211
|
"description": "Help text below the \"Enroll now\" CTA when an enrollment attempt has already failed.",
|
|
212
212
|
"message": "Su solicitud de inscripción ha fallado."
|
|
213
213
|
},
|
|
214
|
+
"components.CourseRunEnrollment.getEnrollmentFailed": {
|
|
215
|
+
"description": "Help text replacing the CTA on a course run when when enrollment fetching failed.",
|
|
216
|
+
"message": "Enrollment fetching failed"
|
|
217
|
+
},
|
|
214
218
|
"components.CourseRunEnrollment.goToCourse": {
|
|
215
219
|
"description": "CTA for users who are already enrolled in a course run.",
|
|
216
220
|
"message": "Ir al curso"
|
|
@@ -223,6 +227,14 @@
|
|
|
223
227
|
"description": "Helper text in the enroll button for non logged in users",
|
|
224
228
|
"message": "Inicia sesión para inscribirse"
|
|
225
229
|
},
|
|
230
|
+
"components.CourseRunEnrollment.unenroll": {
|
|
231
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
232
|
+
"message": "Unenroll from this course"
|
|
233
|
+
},
|
|
234
|
+
"components.CourseRunEnrollment.unenrollmentFailed": {
|
|
235
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
236
|
+
"message": "Your unenrollment request failed."
|
|
237
|
+
},
|
|
226
238
|
"components.CourseRunList.enrollFromTo": {
|
|
227
239
|
"description": "Text label for the enrollment dates",
|
|
228
240
|
"message": "Inscripción de {start} a {end}"
|
|
@@ -231,6 +243,10 @@
|
|
|
231
243
|
"description": "Text displayed when no course run are opened for the course",
|
|
232
244
|
"message": "No session available for this course."
|
|
233
245
|
},
|
|
246
|
+
"components.CourseRunUnenrollmentButton.unenroll": {
|
|
247
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
248
|
+
"message": "Unenroll from this course"
|
|
249
|
+
},
|
|
234
250
|
"components.Dashboard.DashboardRoutes.course.path": {
|
|
235
251
|
"description": "The path to display a course detail view.",
|
|
236
252
|
"message": "/courses/{code}"
|
|
@@ -247,6 +263,14 @@
|
|
|
247
263
|
"description": "The path to display the courses view.",
|
|
248
264
|
"message": "/courses"
|
|
249
265
|
},
|
|
266
|
+
"components.Dashboard.DashboardRoutes.order.label": {
|
|
267
|
+
"description": "Label of the order view used in navigation components.",
|
|
268
|
+
"message": "{orderTitle}"
|
|
269
|
+
},
|
|
270
|
+
"components.Dashboard.DashboardRoutes.order.path": {
|
|
271
|
+
"description": "The path to display an order detail view.",
|
|
272
|
+
"message": "/courses/orders/{orderId}"
|
|
273
|
+
},
|
|
250
274
|
"components.Dashboard.DashboardRoutes.preferences.addresses.creation.label": {
|
|
251
275
|
"description": "Label of the addresses creation view.",
|
|
252
276
|
"message": "Create address"
|
|
@@ -315,6 +339,10 @@
|
|
|
315
339
|
"description": "The dashboard's breadcrumb back button's label",
|
|
316
340
|
"message": "Back"
|
|
317
341
|
},
|
|
342
|
+
"components.DashboardCourses.loading": {
|
|
343
|
+
"description": "Message displayed while loading orders and enrollments",
|
|
344
|
+
"message": "Loading ..."
|
|
345
|
+
},
|
|
318
346
|
"components.DashboardCreateAddressForm.header": {
|
|
319
347
|
"description": "Title of the dashboard address creation form",
|
|
320
348
|
"message": "Create an address"
|
|
@@ -403,6 +431,10 @@
|
|
|
403
431
|
"description": "Label of the title input on the credit card edit page",
|
|
404
432
|
"message": "Name of the credit card"
|
|
405
433
|
},
|
|
434
|
+
"components.DashboardOrderLoader.loading": {
|
|
435
|
+
"description": "Message displayed while loading an order",
|
|
436
|
+
"message": "Loading order ..."
|
|
437
|
+
},
|
|
406
438
|
"components.DashboardSidebar.header": {
|
|
407
439
|
"description": "Title of the dashboard sidebar",
|
|
408
440
|
"message": "Welcome {name}"
|
|
@@ -447,17 +479,25 @@
|
|
|
447
479
|
"description": "Label displayed when user do not have select a course run.",
|
|
448
480
|
"message": "Seleccione una sesión de curso"
|
|
449
481
|
},
|
|
482
|
+
"components.EnrolledCourseRun.courseRunStartIn": {
|
|
483
|
+
"description": "Error displayed when user is enrolled but the course run is not started",
|
|
484
|
+
"message": "The course starts {relativeStartDate}"
|
|
485
|
+
},
|
|
450
486
|
"components.EnrolledCourseRun.goToCourse": {
|
|
451
487
|
"description": "CTA displayed when user is enrolled to the course run.",
|
|
452
488
|
"message": "Ir al curso"
|
|
453
489
|
},
|
|
454
|
-
"components.EnrolledCourseRun.
|
|
455
|
-
"description": "
|
|
456
|
-
"message": "
|
|
490
|
+
"components.EnrolledCourseRun.isEnroll": {
|
|
491
|
+
"description": "Message displayed when user is enrolled but the course run is not started",
|
|
492
|
+
"message": "You are enrolled"
|
|
493
|
+
},
|
|
494
|
+
"components.EnrolledCourseRun.unenroll": {
|
|
495
|
+
"description": "Button label to unenroll.",
|
|
496
|
+
"message": "Unenroll"
|
|
457
497
|
},
|
|
458
|
-
"components.EnrolledCourseRun.
|
|
459
|
-
"description": "Accessible label displayed when user is being
|
|
460
|
-
"message": "
|
|
498
|
+
"components.EnrolledCourseRun.unenrolling": {
|
|
499
|
+
"description": "Accessible label displayed when user is being unenrolled.",
|
|
500
|
+
"message": "Unenrolling..."
|
|
461
501
|
},
|
|
462
502
|
"components.LanguageSelector.currentlySelected": {
|
|
463
503
|
"description": "Accessible hint to mark the currently selected language in the language selector",
|
package/i18n/locales/fa-IR.json
CHANGED
|
@@ -211,6 +211,10 @@
|
|
|
211
211
|
"description": "Help text below the \"Enroll now\" CTA when an enrollment attempt has already failed.",
|
|
212
212
|
"message": "Your enrollment request failed."
|
|
213
213
|
},
|
|
214
|
+
"components.CourseRunEnrollment.getEnrollmentFailed": {
|
|
215
|
+
"description": "Help text replacing the CTA on a course run when when enrollment fetching failed.",
|
|
216
|
+
"message": "Enrollment fetching failed"
|
|
217
|
+
},
|
|
214
218
|
"components.CourseRunEnrollment.goToCourse": {
|
|
215
219
|
"description": "CTA for users who are already enrolled in a course run.",
|
|
216
220
|
"message": "Go to course"
|
|
@@ -223,6 +227,14 @@
|
|
|
223
227
|
"description": "Helper text in the enroll button for non logged in users",
|
|
224
228
|
"message": "Log in to enroll"
|
|
225
229
|
},
|
|
230
|
+
"components.CourseRunEnrollment.unenroll": {
|
|
231
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
232
|
+
"message": "Unenroll from this course"
|
|
233
|
+
},
|
|
234
|
+
"components.CourseRunEnrollment.unenrollmentFailed": {
|
|
235
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
236
|
+
"message": "Your unenrollment request failed."
|
|
237
|
+
},
|
|
226
238
|
"components.CourseRunList.enrollFromTo": {
|
|
227
239
|
"description": "Text label for the enrollment dates",
|
|
228
240
|
"message": "Enrollment from {start} to {end}"
|
|
@@ -231,6 +243,10 @@
|
|
|
231
243
|
"description": "Text displayed when no course run are opened for the course",
|
|
232
244
|
"message": "No session available for this course."
|
|
233
245
|
},
|
|
246
|
+
"components.CourseRunUnenrollmentButton.unenroll": {
|
|
247
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
248
|
+
"message": "Unenroll from this course"
|
|
249
|
+
},
|
|
234
250
|
"components.Dashboard.DashboardRoutes.course.path": {
|
|
235
251
|
"description": "The path to display a course detail view.",
|
|
236
252
|
"message": "/courses/{code}"
|
|
@@ -247,6 +263,14 @@
|
|
|
247
263
|
"description": "The path to display the courses view.",
|
|
248
264
|
"message": "/courses"
|
|
249
265
|
},
|
|
266
|
+
"components.Dashboard.DashboardRoutes.order.label": {
|
|
267
|
+
"description": "Label of the order view used in navigation components.",
|
|
268
|
+
"message": "{orderTitle}"
|
|
269
|
+
},
|
|
270
|
+
"components.Dashboard.DashboardRoutes.order.path": {
|
|
271
|
+
"description": "The path to display an order detail view.",
|
|
272
|
+
"message": "/courses/orders/{orderId}"
|
|
273
|
+
},
|
|
250
274
|
"components.Dashboard.DashboardRoutes.preferences.addresses.creation.label": {
|
|
251
275
|
"description": "Label of the addresses creation view.",
|
|
252
276
|
"message": "Create address"
|
|
@@ -315,6 +339,10 @@
|
|
|
315
339
|
"description": "The dashboard's breadcrumb back button's label",
|
|
316
340
|
"message": "Back"
|
|
317
341
|
},
|
|
342
|
+
"components.DashboardCourses.loading": {
|
|
343
|
+
"description": "Message displayed while loading orders and enrollments",
|
|
344
|
+
"message": "Loading ..."
|
|
345
|
+
},
|
|
318
346
|
"components.DashboardCreateAddressForm.header": {
|
|
319
347
|
"description": "Title of the dashboard address creation form",
|
|
320
348
|
"message": "Create an address"
|
|
@@ -403,6 +431,10 @@
|
|
|
403
431
|
"description": "Label of the title input on the credit card edit page",
|
|
404
432
|
"message": "Name of the credit card"
|
|
405
433
|
},
|
|
434
|
+
"components.DashboardOrderLoader.loading": {
|
|
435
|
+
"description": "Message displayed while loading an order",
|
|
436
|
+
"message": "Loading order ..."
|
|
437
|
+
},
|
|
406
438
|
"components.DashboardSidebar.header": {
|
|
407
439
|
"description": "Title of the dashboard sidebar",
|
|
408
440
|
"message": "Welcome {name}"
|
|
@@ -447,17 +479,25 @@
|
|
|
447
479
|
"description": "Label displayed when user do not have select a course run.",
|
|
448
480
|
"message": "Select a course run"
|
|
449
481
|
},
|
|
482
|
+
"components.EnrolledCourseRun.courseRunStartIn": {
|
|
483
|
+
"description": "Error displayed when user is enrolled but the course run is not started",
|
|
484
|
+
"message": "The course starts {relativeStartDate}"
|
|
485
|
+
},
|
|
450
486
|
"components.EnrolledCourseRun.goToCourse": {
|
|
451
487
|
"description": "CTA displayed when user is enrolled to the course run.",
|
|
452
488
|
"message": "Go to course"
|
|
453
489
|
},
|
|
454
|
-
"components.EnrolledCourseRun.
|
|
455
|
-
"description": "
|
|
456
|
-
"message": "
|
|
490
|
+
"components.EnrolledCourseRun.isEnroll": {
|
|
491
|
+
"description": "Message displayed when user is enrolled but the course run is not started",
|
|
492
|
+
"message": "You are enrolled"
|
|
493
|
+
},
|
|
494
|
+
"components.EnrolledCourseRun.unenroll": {
|
|
495
|
+
"description": "Button label to unenroll.",
|
|
496
|
+
"message": "Unenroll"
|
|
457
497
|
},
|
|
458
|
-
"components.EnrolledCourseRun.
|
|
459
|
-
"description": "Accessible label displayed when user is being
|
|
460
|
-
"message": "
|
|
498
|
+
"components.EnrolledCourseRun.unenrolling": {
|
|
499
|
+
"description": "Accessible label displayed when user is being unenrolled.",
|
|
500
|
+
"message": "Unenrolling..."
|
|
461
501
|
},
|
|
462
502
|
"components.LanguageSelector.currentlySelected": {
|
|
463
503
|
"description": "Accessible hint to mark the currently selected language in the language selector",
|
package/i18n/locales/fr-CA.json
CHANGED
|
@@ -211,6 +211,10 @@
|
|
|
211
211
|
"description": "Help text below the \"Enroll now\" CTA when an enrollment attempt has already failed.",
|
|
212
212
|
"message": "Votre demande d'inscription a échoué."
|
|
213
213
|
},
|
|
214
|
+
"components.CourseRunEnrollment.getEnrollmentFailed": {
|
|
215
|
+
"description": "Help text replacing the CTA on a course run when when enrollment fetching failed.",
|
|
216
|
+
"message": "Enrollment fetching failed"
|
|
217
|
+
},
|
|
214
218
|
"components.CourseRunEnrollment.goToCourse": {
|
|
215
219
|
"description": "CTA for users who are already enrolled in a course run.",
|
|
216
220
|
"message": "Accéder au cours"
|
|
@@ -223,6 +227,14 @@
|
|
|
223
227
|
"description": "Helper text in the enroll button for non logged in users",
|
|
224
228
|
"message": "Connectez-vous pour vous inscrire"
|
|
225
229
|
},
|
|
230
|
+
"components.CourseRunEnrollment.unenroll": {
|
|
231
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
232
|
+
"message": "Unenroll from this course"
|
|
233
|
+
},
|
|
234
|
+
"components.CourseRunEnrollment.unenrollmentFailed": {
|
|
235
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
236
|
+
"message": "Your unenrollment request failed."
|
|
237
|
+
},
|
|
226
238
|
"components.CourseRunList.enrollFromTo": {
|
|
227
239
|
"description": "Text label for the enrollment dates",
|
|
228
240
|
"message": "Inscription du {start} au {end}"
|
|
@@ -231,6 +243,10 @@
|
|
|
231
243
|
"description": "Text displayed when no course run are opened for the course",
|
|
232
244
|
"message": "Aucune session disponible pour ce cours."
|
|
233
245
|
},
|
|
246
|
+
"components.CourseRunUnenrollmentButton.unenroll": {
|
|
247
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
248
|
+
"message": "Unenroll from this course"
|
|
249
|
+
},
|
|
234
250
|
"components.Dashboard.DashboardRoutes.course.path": {
|
|
235
251
|
"description": "The path to display a course detail view.",
|
|
236
252
|
"message": "/courses/{code}"
|
|
@@ -247,6 +263,14 @@
|
|
|
247
263
|
"description": "The path to display the courses view.",
|
|
248
264
|
"message": "/courses"
|
|
249
265
|
},
|
|
266
|
+
"components.Dashboard.DashboardRoutes.order.label": {
|
|
267
|
+
"description": "Label of the order view used in navigation components.",
|
|
268
|
+
"message": "{orderTitle}"
|
|
269
|
+
},
|
|
270
|
+
"components.Dashboard.DashboardRoutes.order.path": {
|
|
271
|
+
"description": "The path to display an order detail view.",
|
|
272
|
+
"message": "/courses/orders/{orderId}"
|
|
273
|
+
},
|
|
250
274
|
"components.Dashboard.DashboardRoutes.preferences.addresses.creation.label": {
|
|
251
275
|
"description": "Label of the addresses creation view.",
|
|
252
276
|
"message": "Create address"
|
|
@@ -315,6 +339,10 @@
|
|
|
315
339
|
"description": "The dashboard's breadcrumb back button's label",
|
|
316
340
|
"message": "Back"
|
|
317
341
|
},
|
|
342
|
+
"components.DashboardCourses.loading": {
|
|
343
|
+
"description": "Message displayed while loading orders and enrollments",
|
|
344
|
+
"message": "Loading ..."
|
|
345
|
+
},
|
|
318
346
|
"components.DashboardCreateAddressForm.header": {
|
|
319
347
|
"description": "Title of the dashboard address creation form",
|
|
320
348
|
"message": "Créer une adresse"
|
|
@@ -403,6 +431,10 @@
|
|
|
403
431
|
"description": "Label of the title input on the credit card edit page",
|
|
404
432
|
"message": "Nom de la carte de crédit"
|
|
405
433
|
},
|
|
434
|
+
"components.DashboardOrderLoader.loading": {
|
|
435
|
+
"description": "Message displayed while loading an order",
|
|
436
|
+
"message": "Loading order ..."
|
|
437
|
+
},
|
|
406
438
|
"components.DashboardSidebar.header": {
|
|
407
439
|
"description": "Title of the dashboard sidebar",
|
|
408
440
|
"message": "Welcome {name}"
|
|
@@ -447,17 +479,25 @@
|
|
|
447
479
|
"description": "Label displayed when user do not have select a course run.",
|
|
448
480
|
"message": "Sélectionnez une session"
|
|
449
481
|
},
|
|
482
|
+
"components.EnrolledCourseRun.courseRunStartIn": {
|
|
483
|
+
"description": "Error displayed when user is enrolled but the course run is not started",
|
|
484
|
+
"message": "The course starts {relativeStartDate}"
|
|
485
|
+
},
|
|
450
486
|
"components.EnrolledCourseRun.goToCourse": {
|
|
451
487
|
"description": "CTA displayed when user is enrolled to the course run.",
|
|
452
488
|
"message": "Accéder au cours"
|
|
453
489
|
},
|
|
454
|
-
"components.EnrolledCourseRun.
|
|
455
|
-
"description": "
|
|
456
|
-
"message": "
|
|
490
|
+
"components.EnrolledCourseRun.isEnroll": {
|
|
491
|
+
"description": "Message displayed when user is enrolled but the course run is not started",
|
|
492
|
+
"message": "You are enrolled"
|
|
493
|
+
},
|
|
494
|
+
"components.EnrolledCourseRun.unenroll": {
|
|
495
|
+
"description": "Button label to unenroll.",
|
|
496
|
+
"message": "Unenroll"
|
|
457
497
|
},
|
|
458
|
-
"components.EnrolledCourseRun.
|
|
459
|
-
"description": "Accessible label displayed when user is being
|
|
460
|
-
"message": "
|
|
498
|
+
"components.EnrolledCourseRun.unenrolling": {
|
|
499
|
+
"description": "Accessible label displayed when user is being unenrolled.",
|
|
500
|
+
"message": "Unenrolling..."
|
|
461
501
|
},
|
|
462
502
|
"components.LanguageSelector.currentlySelected": {
|
|
463
503
|
"description": "Accessible hint to mark the currently selected language in the language selector",
|
package/i18n/locales/fr-FR.json
CHANGED
|
@@ -211,6 +211,10 @@
|
|
|
211
211
|
"description": "Help text below the \"Enroll now\" CTA when an enrollment attempt has already failed.",
|
|
212
212
|
"message": "Votre demande d'inscription a échoué."
|
|
213
213
|
},
|
|
214
|
+
"components.CourseRunEnrollment.getEnrollmentFailed": {
|
|
215
|
+
"description": "Help text replacing the CTA on a course run when when enrollment fetching failed.",
|
|
216
|
+
"message": "Échec de la récupération de l'inscription"
|
|
217
|
+
},
|
|
214
218
|
"components.CourseRunEnrollment.goToCourse": {
|
|
215
219
|
"description": "CTA for users who are already enrolled in a course run.",
|
|
216
220
|
"message": "Accéder au cours"
|
|
@@ -223,6 +227,14 @@
|
|
|
223
227
|
"description": "Helper text in the enroll button for non logged in users",
|
|
224
228
|
"message": "Connectez-vous pour vous inscrire"
|
|
225
229
|
},
|
|
230
|
+
"components.CourseRunEnrollment.unenroll": {
|
|
231
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
232
|
+
"message": "Se désinscrire de ce cours"
|
|
233
|
+
},
|
|
234
|
+
"components.CourseRunEnrollment.unenrollmentFailed": {
|
|
235
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
236
|
+
"message": "Votre demande de désinscription a échoué."
|
|
237
|
+
},
|
|
226
238
|
"components.CourseRunList.enrollFromTo": {
|
|
227
239
|
"description": "Text label for the enrollment dates",
|
|
228
240
|
"message": "Inscription du {start} au {end}"
|
|
@@ -231,6 +243,10 @@
|
|
|
231
243
|
"description": "Text displayed when no course run are opened for the course",
|
|
232
244
|
"message": "Aucune session disponible pour ce cours."
|
|
233
245
|
},
|
|
246
|
+
"components.CourseRunUnenrollmentButton.unenroll": {
|
|
247
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
248
|
+
"message": "Se désinscrire de ce cours"
|
|
249
|
+
},
|
|
234
250
|
"components.Dashboard.DashboardRoutes.course.path": {
|
|
235
251
|
"description": "The path to display a course detail view.",
|
|
236
252
|
"message": "/cours/{code}"
|
|
@@ -247,6 +263,14 @@
|
|
|
247
263
|
"description": "The path to display the courses view.",
|
|
248
264
|
"message": "/cours"
|
|
249
265
|
},
|
|
266
|
+
"components.Dashboard.DashboardRoutes.order.label": {
|
|
267
|
+
"description": "Label of the order view used in navigation components.",
|
|
268
|
+
"message": "{orderTitle}"
|
|
269
|
+
},
|
|
270
|
+
"components.Dashboard.DashboardRoutes.order.path": {
|
|
271
|
+
"description": "The path to display an order detail view.",
|
|
272
|
+
"message": "/fr/cours/commandes/{orderId}"
|
|
273
|
+
},
|
|
250
274
|
"components.Dashboard.DashboardRoutes.preferences.addresses.creation.label": {
|
|
251
275
|
"description": "Label of the addresses creation view.",
|
|
252
276
|
"message": "Créer une adresse"
|
|
@@ -315,6 +339,10 @@
|
|
|
315
339
|
"description": "The dashboard's breadcrumb back button's label",
|
|
316
340
|
"message": "Retour"
|
|
317
341
|
},
|
|
342
|
+
"components.DashboardCourses.loading": {
|
|
343
|
+
"description": "Message displayed while loading orders and enrollments",
|
|
344
|
+
"message": "Chargement ..."
|
|
345
|
+
},
|
|
318
346
|
"components.DashboardCreateAddressForm.header": {
|
|
319
347
|
"description": "Title of the dashboard address creation form",
|
|
320
348
|
"message": "Créer une adresse"
|
|
@@ -403,6 +431,10 @@
|
|
|
403
431
|
"description": "Label of the title input on the credit card edit page",
|
|
404
432
|
"message": "Nom de la carte de crédit"
|
|
405
433
|
},
|
|
434
|
+
"components.DashboardOrderLoader.loading": {
|
|
435
|
+
"description": "Message displayed while loading an order",
|
|
436
|
+
"message": "Chargement de la commande..."
|
|
437
|
+
},
|
|
406
438
|
"components.DashboardSidebar.header": {
|
|
407
439
|
"description": "Title of the dashboard sidebar",
|
|
408
440
|
"message": "Bienvenue {name}"
|
|
@@ -447,16 +479,24 @@
|
|
|
447
479
|
"description": "Label displayed when user do not have select a course run.",
|
|
448
480
|
"message": "Sélectionnez une session"
|
|
449
481
|
},
|
|
482
|
+
"components.EnrolledCourseRun.courseRunStartIn": {
|
|
483
|
+
"description": "Error displayed when user is enrolled but the course run is not started",
|
|
484
|
+
"message": "Le cours commence dans {relativeStartDate}"
|
|
485
|
+
},
|
|
450
486
|
"components.EnrolledCourseRun.goToCourse": {
|
|
451
487
|
"description": "CTA displayed when user is enrolled to the course run.",
|
|
452
488
|
"message": "Accéder au cours"
|
|
453
489
|
},
|
|
454
|
-
"components.EnrolledCourseRun.
|
|
455
|
-
"description": "
|
|
490
|
+
"components.EnrolledCourseRun.isEnroll": {
|
|
491
|
+
"description": "Message displayed when user is enrolled but the course run is not started",
|
|
492
|
+
"message": "Vous êtes inscrit"
|
|
493
|
+
},
|
|
494
|
+
"components.EnrolledCourseRun.unenroll": {
|
|
495
|
+
"description": "Button label to unenroll.",
|
|
456
496
|
"message": "Se désinscrire"
|
|
457
497
|
},
|
|
458
|
-
"components.EnrolledCourseRun.
|
|
459
|
-
"description": "Accessible label displayed when user is being
|
|
498
|
+
"components.EnrolledCourseRun.unenrolling": {
|
|
499
|
+
"description": "Accessible label displayed when user is being unenrolled.",
|
|
460
500
|
"message": "Désinscription en cours..."
|
|
461
501
|
},
|
|
462
502
|
"components.LanguageSelector.currentlySelected": {
|
package/i18n/locales/ko-KR.json
CHANGED
|
@@ -211,6 +211,10 @@
|
|
|
211
211
|
"description": "Help text below the \"Enroll now\" CTA when an enrollment attempt has already failed.",
|
|
212
212
|
"message": "Your enrollment request failed."
|
|
213
213
|
},
|
|
214
|
+
"components.CourseRunEnrollment.getEnrollmentFailed": {
|
|
215
|
+
"description": "Help text replacing the CTA on a course run when when enrollment fetching failed.",
|
|
216
|
+
"message": "Enrollment fetching failed"
|
|
217
|
+
},
|
|
214
218
|
"components.CourseRunEnrollment.goToCourse": {
|
|
215
219
|
"description": "CTA for users who are already enrolled in a course run.",
|
|
216
220
|
"message": "Go to course"
|
|
@@ -223,6 +227,14 @@
|
|
|
223
227
|
"description": "Helper text in the enroll button for non logged in users",
|
|
224
228
|
"message": "Log in to enroll"
|
|
225
229
|
},
|
|
230
|
+
"components.CourseRunEnrollment.unenroll": {
|
|
231
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
232
|
+
"message": "Unenroll from this course"
|
|
233
|
+
},
|
|
234
|
+
"components.CourseRunEnrollment.unenrollmentFailed": {
|
|
235
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
236
|
+
"message": "Your unenrollment request failed."
|
|
237
|
+
},
|
|
226
238
|
"components.CourseRunList.enrollFromTo": {
|
|
227
239
|
"description": "Text label for the enrollment dates",
|
|
228
240
|
"message": "Enrollment from {start} to {end}"
|
|
@@ -231,6 +243,10 @@
|
|
|
231
243
|
"description": "Text displayed when no course run are opened for the course",
|
|
232
244
|
"message": "No session available for this course."
|
|
233
245
|
},
|
|
246
|
+
"components.CourseRunUnenrollmentButton.unenroll": {
|
|
247
|
+
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
248
|
+
"message": "Unenroll from this course"
|
|
249
|
+
},
|
|
234
250
|
"components.Dashboard.DashboardRoutes.course.path": {
|
|
235
251
|
"description": "The path to display a course detail view.",
|
|
236
252
|
"message": "/courses/{code}"
|
|
@@ -247,6 +263,14 @@
|
|
|
247
263
|
"description": "The path to display the courses view.",
|
|
248
264
|
"message": "/courses"
|
|
249
265
|
},
|
|
266
|
+
"components.Dashboard.DashboardRoutes.order.label": {
|
|
267
|
+
"description": "Label of the order view used in navigation components.",
|
|
268
|
+
"message": "{orderTitle}"
|
|
269
|
+
},
|
|
270
|
+
"components.Dashboard.DashboardRoutes.order.path": {
|
|
271
|
+
"description": "The path to display an order detail view.",
|
|
272
|
+
"message": "/courses/orders/{orderId}"
|
|
273
|
+
},
|
|
250
274
|
"components.Dashboard.DashboardRoutes.preferences.addresses.creation.label": {
|
|
251
275
|
"description": "Label of the addresses creation view.",
|
|
252
276
|
"message": "Create address"
|
|
@@ -315,6 +339,10 @@
|
|
|
315
339
|
"description": "The dashboard's breadcrumb back button's label",
|
|
316
340
|
"message": "Back"
|
|
317
341
|
},
|
|
342
|
+
"components.DashboardCourses.loading": {
|
|
343
|
+
"description": "Message displayed while loading orders and enrollments",
|
|
344
|
+
"message": "Loading ..."
|
|
345
|
+
},
|
|
318
346
|
"components.DashboardCreateAddressForm.header": {
|
|
319
347
|
"description": "Title of the dashboard address creation form",
|
|
320
348
|
"message": "Create an address"
|
|
@@ -403,6 +431,10 @@
|
|
|
403
431
|
"description": "Label of the title input on the credit card edit page",
|
|
404
432
|
"message": "Name of the credit card"
|
|
405
433
|
},
|
|
434
|
+
"components.DashboardOrderLoader.loading": {
|
|
435
|
+
"description": "Message displayed while loading an order",
|
|
436
|
+
"message": "Loading order ..."
|
|
437
|
+
},
|
|
406
438
|
"components.DashboardSidebar.header": {
|
|
407
439
|
"description": "Title of the dashboard sidebar",
|
|
408
440
|
"message": "Welcome {name}"
|
|
@@ -447,17 +479,25 @@
|
|
|
447
479
|
"description": "Label displayed when user do not have select a course run.",
|
|
448
480
|
"message": "Select a course run"
|
|
449
481
|
},
|
|
482
|
+
"components.EnrolledCourseRun.courseRunStartIn": {
|
|
483
|
+
"description": "Error displayed when user is enrolled but the course run is not started",
|
|
484
|
+
"message": "The course starts {relativeStartDate}"
|
|
485
|
+
},
|
|
450
486
|
"components.EnrolledCourseRun.goToCourse": {
|
|
451
487
|
"description": "CTA displayed when user is enrolled to the course run.",
|
|
452
488
|
"message": "Go to course"
|
|
453
489
|
},
|
|
454
|
-
"components.EnrolledCourseRun.
|
|
455
|
-
"description": "
|
|
456
|
-
"message": "
|
|
490
|
+
"components.EnrolledCourseRun.isEnroll": {
|
|
491
|
+
"description": "Message displayed when user is enrolled but the course run is not started",
|
|
492
|
+
"message": "You are enrolled"
|
|
493
|
+
},
|
|
494
|
+
"components.EnrolledCourseRun.unenroll": {
|
|
495
|
+
"description": "Button label to unenroll.",
|
|
496
|
+
"message": "Unenroll"
|
|
457
497
|
},
|
|
458
|
-
"components.EnrolledCourseRun.
|
|
459
|
-
"description": "Accessible label displayed when user is being
|
|
460
|
-
"message": "
|
|
498
|
+
"components.EnrolledCourseRun.unenrolling": {
|
|
499
|
+
"description": "Accessible label displayed when user is being unenrolled.",
|
|
500
|
+
"message": "Unenrolling..."
|
|
461
501
|
},
|
|
462
502
|
"components.LanguageSelector.currentlySelected": {
|
|
463
503
|
"description": "Accessible hint to mark the currently selected language in the language selector",
|