11import { Card , H2 , UL } from '@blueprintjs/core' ;
2- import { useTranslation } from 'react-i18next' ;
2+ import { Trans , useTranslation } from 'react-i18next' ;
3+ import { ItalicLink } from 'src/commons/sideContent/content/SideContentCseMachine' ;
34import Constants , { Links } from 'src/commons/utils/Constants' ;
45import { useSession } from 'src/commons/utils/Hooks' ;
56
@@ -9,33 +10,34 @@ const Welcome: React.FC = () => {
910 const { t } = useTranslation ( ) ;
1011 const { name } = useSession ( ) ;
1112
13+ const { sourceAcademyDeploymentName } = Constants ;
1214 return (
1315 < div className = "fullpage" >
1416 < Card className = "fullpage-content" >
1517 < div className = { styles . fullpage } >
1618 < div >
17- < H2 >
18- { t ( 'welcome.title' , {
19- sourceAcademyDeploymentName : Constants . sourceAcademyDeploymentName
20- } ) }
21- </ H2 >
19+ < H2 > { t ( 'welcome.title' , { sourceAcademyDeploymentName } ) } </ H2 >
2220 < div >
23- { t ( 'welcome.loggedInMessage' , {
24- name,
25- sourceAcademyDeploymentName : Constants . sourceAcademyDeploymentName
26- } ) }
21+ < Trans
22+ i18nKey = "welcome.loggedInMessage"
23+ components = { [ < strong /> ] }
24+ tOptions = { { name, sourceAcademyDeploymentName } }
25+ />
2726 </ div >
2827 < div className = { styles [ 'fullpage-content' ] } >
2928 < UL className = { styles [ 'text-left' ] } >
29+ < li > { t ( 'welcome.enrollmentMessage' ) } </ li >
3030 < li >
31- { t ( 'welcome.resourcesForLearners' , {
32- resourcesForLearners : Links . resourcesForLearners
33- } ) }
31+ < Trans
32+ i18nKey = "welcome.resourcesForLearners"
33+ components = { [ < ItalicLink href = { Links . resourcesForLearners } /> ] }
34+ />
3435 </ li >
3536 < li >
36- { t ( 'welcome.resourcesForEducators' , {
37- resourcesForEducators : Links . resourcesForEducators
38- } ) }
37+ < Trans
38+ i18nKey = "welcome.resourcesForEducators"
39+ components = { [ < ItalicLink href = { Links . resourcesForEducators } /> ] }
40+ />
3941 </ li >
4042 </ UL >
4143 </ div >
0 commit comments