richie-education 2.21.1 → 2.22.0
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/.eslintrc.json +2 -1
- package/.storybook/main.js +21 -12
- package/i18n/compile-translations.js +1 -1
- package/i18n/locales/ar-SA.json +72 -4
- package/i18n/locales/es-ES.json +72 -4
- package/i18n/locales/fa-IR.json +72 -4
- package/i18n/locales/fr-CA.json +106 -38
- package/i18n/locales/fr-FR.json +102 -34
- package/i18n/locales/ko-KR.json +72 -4
- package/i18n/locales/pt-PT.json +92 -24
- package/i18n/locales/ru-RU.json +72 -4
- package/js/api/joanie.ts +33 -1
- package/js/api/mocks/joanie/assets/organization_cover_001.jpg +0 -0
- package/js/api/mocks/joanie/assets/organization_cover_002.jpg +0 -0
- package/js/api/mocks/joanie/organizations.ts +47 -0
- package/js/components/Banner/index.stories.tsx +19 -16
- package/js/components/Button/index.stories.tsx +12 -12
- package/js/components/CourseGlimpse/index.stories.tsx +8 -8
- package/js/components/CourseGlimpseList/index.stories.tsx +12 -14
- package/js/components/Form/CheckboxField.stories.tsx +7 -8
- package/js/components/Form/{Field.stories.tsx → Field.stories.config.tsx} +3 -1
- package/js/components/Form/RadioField.stories.tsx +13 -13
- package/js/components/Form/SelectField.stories.tsx +21 -20
- package/js/components/Form/TextAreaField.stories.tsx +7 -8
- package/js/components/Form/TextField.stories.tsx +7 -8
- package/js/components/Icon/index.stories.tsx +8 -5
- package/js/components/Modal/index.stories.tsx +19 -19
- package/js/components/Spinner/_styles.scss +5 -0
- package/js/components/Spinner/index.stories.tsx +11 -11
- package/js/components/Spinner/index.tsx +1 -1
- package/js/hooks/useCertificates/index.tsx +27 -0
- package/js/hooks/useDownloadCertificate/index.spec.tsx +122 -0
- package/js/hooks/useDownloadCertificate/index.tsx +35 -0
- package/js/hooks/useIntersectionObserver.tsx +1 -1
- package/js/hooks/useOrders.ts +3 -9
- package/js/hooks/useOrganizations/index.ts +31 -0
- package/js/index.tsx +9 -0
- package/js/mockServiceWorker.js +302 -0
- package/js/pages/DashboardAddressesManagement/DashboardCreateAddress.spec.tsx +1 -1
- package/js/pages/DashboardAddressesManagement/DashboardCreateAddress.stories.tsx +18 -19
- package/js/pages/DashboardAddressesManagement/DashboardEditAddress.stories.tsx +20 -19
- package/js/pages/DashboardAddressesManagement/index.spec.tsx +1 -1
- package/js/pages/DashboardAddressesManagement/index.stories.tsx +18 -19
- package/js/pages/DashboardCertificates/_styles.scss +8 -0
- package/js/pages/DashboardCertificates/index.spec.tsx +180 -0
- package/js/pages/DashboardCertificates/index.tsx +72 -0
- package/js/pages/DashboardCourses/_styles.scss +5 -15
- package/js/pages/DashboardCourses/index.spec.tsx +333 -60
- package/js/pages/DashboardCourses/index.tsx +58 -62
- package/js/pages/DashboardCourses/useOrdersEnrollments.tsx +302 -0
- package/js/pages/DashboardCreditCardsManagement/CreditCardBrandLogo.stories.tsx +20 -18
- package/js/pages/DashboardCreditCardsManagement/DashboardEditCreditCard.spec.tsx +1 -1
- package/js/pages/DashboardCreditCardsManagement/DashboardEditCreditCard.stories.tsx +16 -15
- package/js/pages/DashboardCreditCardsManagement/index.spec.tsx +1 -1
- package/js/pages/DashboardCreditCardsManagement/index.stories.tsx +14 -15
- package/js/pages/TeacherCoursesDashboardLoader/index.tsx +16 -0
- package/js/pages/TeacherOrganizationCourseDashboardLoader/index.tsx +1 -1
- package/js/settings.ts +2 -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 +29 -4
- package/js/utils/test/expectBanner.ts +21 -0
- package/js/utils/test/factories/joanie.ts +28 -4
- package/js/utils/test/factories/richie.ts +1 -0
- package/js/widgets/CourseProductItem/components/CourseProductCertificateItem/index.spec.tsx +5 -42
- package/js/widgets/CourseProductItem/components/CourseProductCertificateItem/index.tsx +11 -33
- package/js/widgets/CourseProductItem/index.tsx +4 -1
- package/js/widgets/Dashboard/components/DashboardAvatar/index.stories.tsx +7 -8
- package/js/widgets/Dashboard/components/DashboardBox/index.stories.tsx +52 -49
- package/js/widgets/Dashboard/components/DashboardBreadcrumbs/index.stories.tsx +11 -11
- package/js/widgets/Dashboard/components/DashboardCard/index.stories.tsx +37 -35
- package/js/widgets/Dashboard/components/DashboardItem/Certificate/_styles.scss +25 -0
- package/js/widgets/Dashboard/components/DashboardItem/Certificate/index.spec.tsx +77 -0
- package/js/widgets/Dashboard/components/DashboardItem/Certificate/index.stories.tsx +34 -0
- package/js/widgets/Dashboard/components/DashboardItem/Certificate/index.tsx +114 -0
- package/js/widgets/Dashboard/components/DashboardItem/DashboardItemCourseEnrolling.stories.tsx +46 -49
- package/js/widgets/Dashboard/components/DashboardItem/Enrollment/DashboardItemEnrollment.stories.tsx +19 -19
- package/js/widgets/Dashboard/components/DashboardItem/Order/DashboardItemOrder.spec.tsx +37 -3
- package/js/widgets/Dashboard/components/DashboardItem/Order/DashboardItemOrder.tsx +57 -21
- package/js/widgets/Dashboard/components/DashboardItem/Order/DashboardItemOrderReadonly.stories.tsx +47 -45
- package/js/widgets/Dashboard/components/DashboardItem/Order/DashboardItemOrderWritable.stories.tsx +47 -47
- package/js/widgets/Dashboard/components/DashboardItem/_styles.scss +25 -19
- package/js/widgets/Dashboard/components/DashboardItem/index.stories.tsx +7 -7
- package/js/widgets/Dashboard/components/DashboardItem/{mock.stories.ts → stories.mock.ts} +1 -0
- package/js/widgets/Dashboard/components/DashboardOrderLoader/index.tsx +6 -1
- package/js/widgets/Dashboard/components/DashboardSidebar/index.stories.tsx +23 -25
- package/js/widgets/Dashboard/components/DashboardSidebar/index.tsx +9 -3
- package/js/widgets/Dashboard/components/LearnerDashboardSidebar/index.stories.tsx +14 -15
- package/js/widgets/Dashboard/components/LearnerDashboardSidebar/index.tsx +5 -1
- package/js/widgets/Dashboard/components/TeacherOrganizationDashboardSidebar/index.stories.tsx +18 -19
- package/js/widgets/Dashboard/components/TeacherOrganizationDashboardSidebar/index.tsx +1 -6
- package/js/widgets/Dashboard/components/TeacherProfileDashboardSidebar/components/OrganizationLinks/_styles.scss +42 -0
- package/js/widgets/Dashboard/components/TeacherProfileDashboardSidebar/components/OrganizationLinks/index.tsx +55 -0
- package/js/widgets/Dashboard/components/TeacherProfileDashboardSidebar/index.spec.tsx +134 -0
- package/js/widgets/Dashboard/components/TeacherProfileDashboardSidebar/index.stories.tsx +14 -15
- package/js/widgets/Dashboard/components/TeacherProfileDashboardSidebar/index.tsx +7 -7
- package/js/widgets/Dashboard/index.spec.tsx +15 -4
- package/js/widgets/Dashboard/utils/learnerRouteMessages.tsx +11 -0
- package/js/widgets/Dashboard/utils/learnerRoutes.tsx +7 -1
- package/js/widgets/Dashboard/utils/teacherRoutes.tsx +2 -2
- package/mocks/browser.ts +7 -0
- package/mocks/handlers.ts +3 -0
- package/package.json +43 -36
- package/scss/colors/_theme.scss +11 -0
- package/scss/components/_index.scss +3 -0
- package/webpack.config.js +7 -0
- package/js/utils/test/expectBannerError.ts +0 -9
- package/js/widgets/Dashboard/components/TeacherProfileDashboardLoader/index.tsx +0 -28
package/.eslintrc.json
CHANGED
package/.storybook/main.js
CHANGED
|
@@ -3,25 +3,34 @@ module.exports = {
|
|
|
3
3
|
stories: [
|
|
4
4
|
'../stories/**/*.stories.mdx',
|
|
5
5
|
'../stories/**/*.stories.@(js|jsx|ts|tsx)',
|
|
6
|
-
'../js/**/*.stories.@(js|jsx|ts|tsx)'
|
|
6
|
+
'../js/**/*.stories.@(js|jsx|ts|tsx)'
|
|
7
7
|
],
|
|
8
8
|
addons: [
|
|
9
9
|
'@storybook/addon-links',
|
|
10
10
|
'@storybook/addon-essentials',
|
|
11
|
-
'@storybook/addon-interactions'
|
|
11
|
+
'@storybook/addon-interactions'
|
|
12
12
|
],
|
|
13
|
-
framework:
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
framework: {
|
|
14
|
+
name: '@storybook/react-webpack5',
|
|
15
|
+
options: {},
|
|
16
16
|
},
|
|
17
|
-
staticDirs: [
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
'../../richie/
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
staticDirs: [{
|
|
18
|
+
from: './public',
|
|
19
|
+
to: '/static',
|
|
20
|
+
}, {
|
|
21
|
+
from: '../../richie/static',
|
|
22
|
+
to: '/static',
|
|
23
|
+
}, {
|
|
24
|
+
from: '../../richie/apps/core/static',
|
|
25
|
+
to: '/static',
|
|
26
|
+
}, '../../richie/apps/core/templates/richie'],
|
|
27
|
+
webpackFinal: async (config, {
|
|
28
|
+
configType,
|
|
29
|
+
}) => {
|
|
24
30
|
config.resolve.plugins = [new TsconfigPathsPlugin()];
|
|
25
31
|
return config;
|
|
26
32
|
},
|
|
33
|
+
docs: {
|
|
34
|
+
autodocs: true,
|
|
35
|
+
},
|
|
27
36
|
};
|
package/i18n/locales/ar-SA.json
CHANGED
|
@@ -263,6 +263,14 @@
|
|
|
263
263
|
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
264
264
|
"message": "Unenroll from this course"
|
|
265
265
|
},
|
|
266
|
+
"components.Dashboard.DashboardRoutes.certificates.label": {
|
|
267
|
+
"description": "Label of the certificates view used in navigation components.",
|
|
268
|
+
"message": "My certificates"
|
|
269
|
+
},
|
|
270
|
+
"components.Dashboard.DashboardRoutes.certificates.path": {
|
|
271
|
+
"description": "The path to display the certificates view.",
|
|
272
|
+
"message": "/certificates"
|
|
273
|
+
},
|
|
266
274
|
"components.Dashboard.DashboardRoutes.course.path": {
|
|
267
275
|
"description": "The path to display a course detail view.",
|
|
268
276
|
"message": "/courses/{code}"
|
|
@@ -355,6 +363,42 @@
|
|
|
355
363
|
"description": "The dashboard's breadcrumb back button's label",
|
|
356
364
|
"message": "Back"
|
|
357
365
|
},
|
|
366
|
+
"components.DashboardCertificate.details": {
|
|
367
|
+
"description": "Label for the details button of a certificate",
|
|
368
|
+
"message": "Details"
|
|
369
|
+
},
|
|
370
|
+
"components.DashboardCertificate.download": {
|
|
371
|
+
"description": "Label for the download button of a certificate",
|
|
372
|
+
"message": "Download"
|
|
373
|
+
},
|
|
374
|
+
"components.DashboardCertificate.generatingCertificate": {
|
|
375
|
+
"description": "Accessible label displayed while certificate is being generated on the dashboard.",
|
|
376
|
+
"message": "Certificate is being generated..."
|
|
377
|
+
},
|
|
378
|
+
"components.DashboardCertificate.issuedOn": {
|
|
379
|
+
"description": "Label for the date of issue of a certificate",
|
|
380
|
+
"message": "Issued on {date}"
|
|
381
|
+
},
|
|
382
|
+
"components.DashboardCertificate.noCertificate": {
|
|
383
|
+
"description": "Label displayed when no certificate is available",
|
|
384
|
+
"message": "When all your courses will be passed, you will be able to download your certificate here."
|
|
385
|
+
},
|
|
386
|
+
"components.DashboardCertificates.empty": {
|
|
387
|
+
"description": "Message displayed when there are no certificates",
|
|
388
|
+
"message": "You have no certificates yet."
|
|
389
|
+
},
|
|
390
|
+
"components.DashboardCertificates.loading": {
|
|
391
|
+
"description": "Message displayed while loading certificates",
|
|
392
|
+
"message": "Loading certificates..."
|
|
393
|
+
},
|
|
394
|
+
"components.DashboardCourses.emptyList": {
|
|
395
|
+
"description": "Empty placeholder of the dashboard's list of orders and enrollments",
|
|
396
|
+
"message": "You have no enrollments nor orders yet."
|
|
397
|
+
},
|
|
398
|
+
"components.DashboardCourses.loadMoreResults": {
|
|
399
|
+
"description": "Button to manually load more orders and enrollments",
|
|
400
|
+
"message": "Load more"
|
|
401
|
+
},
|
|
358
402
|
"components.DashboardCourses.loading": {
|
|
359
403
|
"description": "Message displayed while loading orders and enrollments",
|
|
360
404
|
"message": "Loading orders and enrollments..."
|
|
@@ -888,7 +932,7 @@
|
|
|
888
932
|
"message": "/teacher"
|
|
889
933
|
},
|
|
890
934
|
"components.TeacherOrganizationCourseDashboardLoader.loading": {
|
|
891
|
-
"description": "Message displayed while loading
|
|
935
|
+
"description": "Message displayed while loading courses on the teacher's dashboard'",
|
|
892
936
|
"message": "Loading organization ..."
|
|
893
937
|
},
|
|
894
938
|
"components.TeacherOrganizationDashboardSidebar.header": {
|
|
@@ -899,9 +943,13 @@
|
|
|
899
943
|
"description": "Sub title of the organization dashboard sidebar",
|
|
900
944
|
"message": "You are on the organization dashboard"
|
|
901
945
|
},
|
|
902
|
-
"components.
|
|
903
|
-
"description": "
|
|
904
|
-
"message": "
|
|
946
|
+
"components.TeacherProfileDashboardSidebar.OrganizationLinks.organizationLinkTitle": {
|
|
947
|
+
"description": "Organization link title",
|
|
948
|
+
"message": "Link to organization \"{organizationTitle}\""
|
|
949
|
+
},
|
|
950
|
+
"components.TeacherProfileDashboardSidebar.OrganizationLinks.organizationsTitle": {
|
|
951
|
+
"description": "Title of the organizations section",
|
|
952
|
+
"message": "My universities"
|
|
905
953
|
},
|
|
906
954
|
"components.TeacherProfileDashboardSidebar.header": {
|
|
907
955
|
"description": "Title of the dashboard sidebar",
|
|
@@ -971,6 +1019,14 @@
|
|
|
971
1019
|
"description": "Error shown if a user tries to remove a main address",
|
|
972
1020
|
"message": "Cannot remove main address."
|
|
973
1021
|
},
|
|
1022
|
+
"hooks.useCertificates.errorGet": {
|
|
1023
|
+
"description": "Error message shown to the user when certificates fetch request fails.",
|
|
1024
|
+
"message": "An error occurred while fetching certificates. Please retry later."
|
|
1025
|
+
},
|
|
1026
|
+
"hooks.useCertificates.errorNotFound": {
|
|
1027
|
+
"description": "Error message shown to the user when no certificate matches.",
|
|
1028
|
+
"message": "Cannot find the certificate"
|
|
1029
|
+
},
|
|
974
1030
|
"hooks.useCreditCards.errorCreate": {
|
|
975
1031
|
"description": "Error message shown to the user when credit card creation request fails.",
|
|
976
1032
|
"message": "An error occurred while creating the credit card. Please retry later."
|
|
@@ -1031,6 +1087,18 @@
|
|
|
1031
1087
|
"description": "Error message shown to the user when no orders matches.",
|
|
1032
1088
|
"message": "Cannot find the orders."
|
|
1033
1089
|
},
|
|
1090
|
+
"hooks.useOrdersEnrollments.errorGet": {
|
|
1091
|
+
"description": "Error message shown to the user when orders or enrollments fetch request fails.",
|
|
1092
|
+
"message": "An error occurred while fetching orders and enrollments. Please retry later."
|
|
1093
|
+
},
|
|
1094
|
+
"hooks.useOrganizations.errorNotFound": {
|
|
1095
|
+
"description": "Error message shown to the user when no organizations matches.",
|
|
1096
|
+
"message": "Cannot find the organization"
|
|
1097
|
+
},
|
|
1098
|
+
"hooks.useOrganizations.errorSelect": {
|
|
1099
|
+
"description": "Error message shown to the user when organizations fetch request fails.",
|
|
1100
|
+
"message": "An error occurred while fetching organizations. Please retry later."
|
|
1101
|
+
},
|
|
1034
1102
|
"hooks.useProduct.errorGet": {
|
|
1035
1103
|
"description": "Error message shown to the user when product fetch request fails.",
|
|
1036
1104
|
"message": "An error occurred while fetching product. Please retry later."
|
package/i18n/locales/es-ES.json
CHANGED
|
@@ -263,6 +263,14 @@
|
|
|
263
263
|
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
264
264
|
"message": "Unenroll from this course"
|
|
265
265
|
},
|
|
266
|
+
"components.Dashboard.DashboardRoutes.certificates.label": {
|
|
267
|
+
"description": "Label of the certificates view used in navigation components.",
|
|
268
|
+
"message": "My certificates"
|
|
269
|
+
},
|
|
270
|
+
"components.Dashboard.DashboardRoutes.certificates.path": {
|
|
271
|
+
"description": "The path to display the certificates view.",
|
|
272
|
+
"message": "/certificates"
|
|
273
|
+
},
|
|
266
274
|
"components.Dashboard.DashboardRoutes.course.path": {
|
|
267
275
|
"description": "The path to display a course detail view.",
|
|
268
276
|
"message": "/courses/{code}"
|
|
@@ -355,6 +363,42 @@
|
|
|
355
363
|
"description": "The dashboard's breadcrumb back button's label",
|
|
356
364
|
"message": "Back"
|
|
357
365
|
},
|
|
366
|
+
"components.DashboardCertificate.details": {
|
|
367
|
+
"description": "Label for the details button of a certificate",
|
|
368
|
+
"message": "Details"
|
|
369
|
+
},
|
|
370
|
+
"components.DashboardCertificate.download": {
|
|
371
|
+
"description": "Label for the download button of a certificate",
|
|
372
|
+
"message": "Download"
|
|
373
|
+
},
|
|
374
|
+
"components.DashboardCertificate.generatingCertificate": {
|
|
375
|
+
"description": "Accessible label displayed while certificate is being generated on the dashboard.",
|
|
376
|
+
"message": "Certificate is being generated..."
|
|
377
|
+
},
|
|
378
|
+
"components.DashboardCertificate.issuedOn": {
|
|
379
|
+
"description": "Label for the date of issue of a certificate",
|
|
380
|
+
"message": "Issued on {date}"
|
|
381
|
+
},
|
|
382
|
+
"components.DashboardCertificate.noCertificate": {
|
|
383
|
+
"description": "Label displayed when no certificate is available",
|
|
384
|
+
"message": "When all your courses will be passed, you will be able to download your certificate here."
|
|
385
|
+
},
|
|
386
|
+
"components.DashboardCertificates.empty": {
|
|
387
|
+
"description": "Message displayed when there are no certificates",
|
|
388
|
+
"message": "You have no certificates yet."
|
|
389
|
+
},
|
|
390
|
+
"components.DashboardCertificates.loading": {
|
|
391
|
+
"description": "Message displayed while loading certificates",
|
|
392
|
+
"message": "Loading certificates..."
|
|
393
|
+
},
|
|
394
|
+
"components.DashboardCourses.emptyList": {
|
|
395
|
+
"description": "Empty placeholder of the dashboard's list of orders and enrollments",
|
|
396
|
+
"message": "You have no enrollments nor orders yet."
|
|
397
|
+
},
|
|
398
|
+
"components.DashboardCourses.loadMoreResults": {
|
|
399
|
+
"description": "Button to manually load more orders and enrollments",
|
|
400
|
+
"message": "Load more"
|
|
401
|
+
},
|
|
358
402
|
"components.DashboardCourses.loading": {
|
|
359
403
|
"description": "Message displayed while loading orders and enrollments",
|
|
360
404
|
"message": "Loading orders and enrollments..."
|
|
@@ -888,7 +932,7 @@
|
|
|
888
932
|
"message": "/teacher"
|
|
889
933
|
},
|
|
890
934
|
"components.TeacherOrganizationCourseDashboardLoader.loading": {
|
|
891
|
-
"description": "Message displayed while loading
|
|
935
|
+
"description": "Message displayed while loading courses on the teacher's dashboard'",
|
|
892
936
|
"message": "Loading organization ..."
|
|
893
937
|
},
|
|
894
938
|
"components.TeacherOrganizationDashboardSidebar.header": {
|
|
@@ -899,9 +943,13 @@
|
|
|
899
943
|
"description": "Sub title of the organization dashboard sidebar",
|
|
900
944
|
"message": "You are on the organization dashboard"
|
|
901
945
|
},
|
|
902
|
-
"components.
|
|
903
|
-
"description": "
|
|
904
|
-
"message": "
|
|
946
|
+
"components.TeacherProfileDashboardSidebar.OrganizationLinks.organizationLinkTitle": {
|
|
947
|
+
"description": "Organization link title",
|
|
948
|
+
"message": "Link to organization \"{organizationTitle}\""
|
|
949
|
+
},
|
|
950
|
+
"components.TeacherProfileDashboardSidebar.OrganizationLinks.organizationsTitle": {
|
|
951
|
+
"description": "Title of the organizations section",
|
|
952
|
+
"message": "My universities"
|
|
905
953
|
},
|
|
906
954
|
"components.TeacherProfileDashboardSidebar.header": {
|
|
907
955
|
"description": "Title of the dashboard sidebar",
|
|
@@ -971,6 +1019,14 @@
|
|
|
971
1019
|
"description": "Error shown if a user tries to remove a main address",
|
|
972
1020
|
"message": "Cannot remove main address."
|
|
973
1021
|
},
|
|
1022
|
+
"hooks.useCertificates.errorGet": {
|
|
1023
|
+
"description": "Error message shown to the user when certificates fetch request fails.",
|
|
1024
|
+
"message": "An error occurred while fetching certificates. Please retry later."
|
|
1025
|
+
},
|
|
1026
|
+
"hooks.useCertificates.errorNotFound": {
|
|
1027
|
+
"description": "Error message shown to the user when no certificate matches.",
|
|
1028
|
+
"message": "Cannot find the certificate"
|
|
1029
|
+
},
|
|
974
1030
|
"hooks.useCreditCards.errorCreate": {
|
|
975
1031
|
"description": "Error message shown to the user when credit card creation request fails.",
|
|
976
1032
|
"message": "An error occurred while creating the credit card. Please retry later."
|
|
@@ -1031,6 +1087,18 @@
|
|
|
1031
1087
|
"description": "Error message shown to the user when no orders matches.",
|
|
1032
1088
|
"message": "Cannot find the orders."
|
|
1033
1089
|
},
|
|
1090
|
+
"hooks.useOrdersEnrollments.errorGet": {
|
|
1091
|
+
"description": "Error message shown to the user when orders or enrollments fetch request fails.",
|
|
1092
|
+
"message": "An error occurred while fetching orders and enrollments. Please retry later."
|
|
1093
|
+
},
|
|
1094
|
+
"hooks.useOrganizations.errorNotFound": {
|
|
1095
|
+
"description": "Error message shown to the user when no organizations matches.",
|
|
1096
|
+
"message": "Cannot find the organization"
|
|
1097
|
+
},
|
|
1098
|
+
"hooks.useOrganizations.errorSelect": {
|
|
1099
|
+
"description": "Error message shown to the user when organizations fetch request fails.",
|
|
1100
|
+
"message": "An error occurred while fetching organizations. Please retry later."
|
|
1101
|
+
},
|
|
1034
1102
|
"hooks.useProduct.errorGet": {
|
|
1035
1103
|
"description": "Error message shown to the user when product fetch request fails.",
|
|
1036
1104
|
"message": "An error occurred while fetching product. Please retry later."
|
package/i18n/locales/fa-IR.json
CHANGED
|
@@ -263,6 +263,14 @@
|
|
|
263
263
|
"description": "Help text below the \"Unenroll now\" CTA when an enrollment attempt has already failed.",
|
|
264
264
|
"message": "Unenroll from this course"
|
|
265
265
|
},
|
|
266
|
+
"components.Dashboard.DashboardRoutes.certificates.label": {
|
|
267
|
+
"description": "Label of the certificates view used in navigation components.",
|
|
268
|
+
"message": "My certificates"
|
|
269
|
+
},
|
|
270
|
+
"components.Dashboard.DashboardRoutes.certificates.path": {
|
|
271
|
+
"description": "The path to display the certificates view.",
|
|
272
|
+
"message": "/certificates"
|
|
273
|
+
},
|
|
266
274
|
"components.Dashboard.DashboardRoutes.course.path": {
|
|
267
275
|
"description": "The path to display a course detail view.",
|
|
268
276
|
"message": "/courses/{code}"
|
|
@@ -355,6 +363,42 @@
|
|
|
355
363
|
"description": "The dashboard's breadcrumb back button's label",
|
|
356
364
|
"message": "Back"
|
|
357
365
|
},
|
|
366
|
+
"components.DashboardCertificate.details": {
|
|
367
|
+
"description": "Label for the details button of a certificate",
|
|
368
|
+
"message": "Details"
|
|
369
|
+
},
|
|
370
|
+
"components.DashboardCertificate.download": {
|
|
371
|
+
"description": "Label for the download button of a certificate",
|
|
372
|
+
"message": "Download"
|
|
373
|
+
},
|
|
374
|
+
"components.DashboardCertificate.generatingCertificate": {
|
|
375
|
+
"description": "Accessible label displayed while certificate is being generated on the dashboard.",
|
|
376
|
+
"message": "Certificate is being generated..."
|
|
377
|
+
},
|
|
378
|
+
"components.DashboardCertificate.issuedOn": {
|
|
379
|
+
"description": "Label for the date of issue of a certificate",
|
|
380
|
+
"message": "Issued on {date}"
|
|
381
|
+
},
|
|
382
|
+
"components.DashboardCertificate.noCertificate": {
|
|
383
|
+
"description": "Label displayed when no certificate is available",
|
|
384
|
+
"message": "When all your courses will be passed, you will be able to download your certificate here."
|
|
385
|
+
},
|
|
386
|
+
"components.DashboardCertificates.empty": {
|
|
387
|
+
"description": "Message displayed when there are no certificates",
|
|
388
|
+
"message": "You have no certificates yet."
|
|
389
|
+
},
|
|
390
|
+
"components.DashboardCertificates.loading": {
|
|
391
|
+
"description": "Message displayed while loading certificates",
|
|
392
|
+
"message": "Loading certificates..."
|
|
393
|
+
},
|
|
394
|
+
"components.DashboardCourses.emptyList": {
|
|
395
|
+
"description": "Empty placeholder of the dashboard's list of orders and enrollments",
|
|
396
|
+
"message": "You have no enrollments nor orders yet."
|
|
397
|
+
},
|
|
398
|
+
"components.DashboardCourses.loadMoreResults": {
|
|
399
|
+
"description": "Button to manually load more orders and enrollments",
|
|
400
|
+
"message": "Load more"
|
|
401
|
+
},
|
|
358
402
|
"components.DashboardCourses.loading": {
|
|
359
403
|
"description": "Message displayed while loading orders and enrollments",
|
|
360
404
|
"message": "Loading orders and enrollments..."
|
|
@@ -888,7 +932,7 @@
|
|
|
888
932
|
"message": "/teacher"
|
|
889
933
|
},
|
|
890
934
|
"components.TeacherOrganizationCourseDashboardLoader.loading": {
|
|
891
|
-
"description": "Message displayed while loading
|
|
935
|
+
"description": "Message displayed while loading courses on the teacher's dashboard'",
|
|
892
936
|
"message": "Loading organization ..."
|
|
893
937
|
},
|
|
894
938
|
"components.TeacherOrganizationDashboardSidebar.header": {
|
|
@@ -899,9 +943,13 @@
|
|
|
899
943
|
"description": "Sub title of the organization dashboard sidebar",
|
|
900
944
|
"message": "You are on the organization dashboard"
|
|
901
945
|
},
|
|
902
|
-
"components.
|
|
903
|
-
"description": "
|
|
904
|
-
"message": "
|
|
946
|
+
"components.TeacherProfileDashboardSidebar.OrganizationLinks.organizationLinkTitle": {
|
|
947
|
+
"description": "Organization link title",
|
|
948
|
+
"message": "Link to organization \"{organizationTitle}\""
|
|
949
|
+
},
|
|
950
|
+
"components.TeacherProfileDashboardSidebar.OrganizationLinks.organizationsTitle": {
|
|
951
|
+
"description": "Title of the organizations section",
|
|
952
|
+
"message": "My universities"
|
|
905
953
|
},
|
|
906
954
|
"components.TeacherProfileDashboardSidebar.header": {
|
|
907
955
|
"description": "Title of the dashboard sidebar",
|
|
@@ -971,6 +1019,14 @@
|
|
|
971
1019
|
"description": "Error shown if a user tries to remove a main address",
|
|
972
1020
|
"message": "Cannot remove main address."
|
|
973
1021
|
},
|
|
1022
|
+
"hooks.useCertificates.errorGet": {
|
|
1023
|
+
"description": "Error message shown to the user when certificates fetch request fails.",
|
|
1024
|
+
"message": "An error occurred while fetching certificates. Please retry later."
|
|
1025
|
+
},
|
|
1026
|
+
"hooks.useCertificates.errorNotFound": {
|
|
1027
|
+
"description": "Error message shown to the user when no certificate matches.",
|
|
1028
|
+
"message": "Cannot find the certificate"
|
|
1029
|
+
},
|
|
974
1030
|
"hooks.useCreditCards.errorCreate": {
|
|
975
1031
|
"description": "Error message shown to the user when credit card creation request fails.",
|
|
976
1032
|
"message": "An error occurred while creating the credit card. Please retry later."
|
|
@@ -1031,6 +1087,18 @@
|
|
|
1031
1087
|
"description": "Error message shown to the user when no orders matches.",
|
|
1032
1088
|
"message": "Cannot find the orders."
|
|
1033
1089
|
},
|
|
1090
|
+
"hooks.useOrdersEnrollments.errorGet": {
|
|
1091
|
+
"description": "Error message shown to the user when orders or enrollments fetch request fails.",
|
|
1092
|
+
"message": "An error occurred while fetching orders and enrollments. Please retry later."
|
|
1093
|
+
},
|
|
1094
|
+
"hooks.useOrganizations.errorNotFound": {
|
|
1095
|
+
"description": "Error message shown to the user when no organizations matches.",
|
|
1096
|
+
"message": "Cannot find the organization"
|
|
1097
|
+
},
|
|
1098
|
+
"hooks.useOrganizations.errorSelect": {
|
|
1099
|
+
"description": "Error message shown to the user when organizations fetch request fails.",
|
|
1100
|
+
"message": "An error occurred while fetching organizations. Please retry later."
|
|
1101
|
+
},
|
|
1034
1102
|
"hooks.useProduct.errorGet": {
|
|
1035
1103
|
"description": "Error message shown to the user when product fetch request fails.",
|
|
1036
1104
|
"message": "An error occurred while fetching product. Please retry later."
|