fix(client): lab preview modal text (#56305)

This commit is contained in:
Tom
2024-09-27 03:02:45 -05:00
committed by GitHub
parent 1fb4871e91
commit fbad740901
2 changed files with 6 additions and 1 deletions

View File

@@ -445,6 +445,7 @@
"help-translate": "We are still translating this certification.",
"help-translate-link": "Help us translate.",
"project-preview-title": "Here's a preview of what you will build",
"demo-project-title": "Here's an example of a project that meets the requirements",
"github-required": "<0>Create a GitHub</0> account if you don't have one. You'll need it when you create the virtual Linux server machine. This process may take a few minutes.",
"gitpod": {
"intro": "This course runs in a virtual Linux machine using Gitpod. Follow these instructions to start the course:",

View File

@@ -526,7 +526,11 @@ function ShowClassic({
<ProjectPreviewModal
challengeData={challengeData}
closeText={t('buttons.start-coding')}
previewTitle={t('learn.project-preview-title')}
previewTitle={
demoType === 'onClick'
? t('learn.demo-project-title')
: t('learn.project-preview-title')
}
/>
<ShortcutsModal />
</LearnLayout>