From 3362e3ce1b18bcba8791486c7edcdba7488a1c60 Mon Sep 17 00:00:00 2001 From: jajjibhai008 Date: Mon, 4 Mar 2024 20:48:25 +0500 Subject: [PATCH] feat: mark course about page static strings for i18n --- .../course/CourseAssociatedPrograms.jsx | 10 +- src/components/course/CourseMainContent.jsx | 131 ++++++++++--- .../course/CourseMaterialsButton.jsx | 11 +- .../course/CourseRecommendations.jsx | 19 +- src/components/course/CourseReview.jsx | 115 +++++++++-- src/components/course/CourseSidebar.jsx | 59 +++++- src/components/course/CourseSidebarPrice.jsx | 60 ++++-- src/components/course/CourseSkills.jsx | 20 +- .../course/SubsidyRequestButton.jsx | 11 +- src/components/course/VerifiedCertPitch.jsx | 37 +++- .../course/course-header/CourseHeader.jsx | 32 ++- .../course/course-header/CoursePreview.jsx | 7 +- .../course/course-header/CourseRunCards.jsx | 1 - .../deprecated/CourseRunCard.jsx | 183 ++++++++++++++++-- .../course-header/tests/CourseHeader.test.jsx | 25 +-- .../tests/CoursePreview.test.jsx | 13 +- .../tests/DeprecatedCourseRunCard.test.jsx | 43 ++-- src/components/course/data/constants.js | 1 - src/components/course/data/hooks.jsx | 48 +++-- .../course/data/tests/hooks.test.jsx | 97 ++++++++-- .../course/routes/tests/CourseAbout.test.jsx | 25 +-- .../tests/CourseAssociatedPrograms.test.jsx | 17 +- .../CourseEnrollmentFailedAlert.test.jsx | 13 +- .../course/tests/CourseMainContent.test.jsx | 13 +- .../course/tests/CoursePage.test.jsx | 21 +- .../tests/CourseRecommendationCard.test.jsx | 9 +- .../tests/CourseRecommendations.test.jsx | 13 +- .../course/tests/CourseSidebar.test.jsx | 13 +- .../course/tests/CourseSidebarPrice.test.jsx | 106 +++++----- .../course/tests/CourseSkills.test.jsx | 17 +- .../course/tests/CreatedBy.test.jsx | 13 +- .../tests/SubsidyRequestButton.test.jsx | 17 +- .../course/tests/VerifiedCertPitch.test.jsx | 3 +- .../CourseMainContent.test.jsx.snap | 4 +- 34 files changed, 903 insertions(+), 304 deletions(-) diff --git a/src/components/course/CourseAssociatedPrograms.jsx b/src/components/course/CourseAssociatedPrograms.jsx index 7e77bb132e..e125309be9 100644 --- a/src/components/course/CourseAssociatedPrograms.jsx +++ b/src/components/course/CourseAssociatedPrograms.jsx @@ -2,6 +2,7 @@ import React, { useContext } from 'react'; import { Hyperlink } from '@openedx/paragon'; import { sendEnterpriseTrackEvent } from '@edx/frontend-enterprise-utils'; import { AppContext } from '@edx/frontend-platform/react'; +import { FormattedMessage } from '@edx/frontend-platform/i18n'; import { CourseContext } from './CourseContextProvider'; import { getProgramIcon, formatProgramType } from './data/utils'; @@ -11,10 +12,15 @@ const CourseAssociatedPrograms = () => { const { state } = useContext(CourseContext); const { course } = state; const { enterpriseConfig } = useContext(AppContext); - return (
-

Associated Programs

+

+ +