diff --git a/i18n/locales/de-DE.json b/i18n/locales/de-DE.json index 1d9eb74..f953378 100644 --- a/i18n/locales/de-DE.json +++ b/i18n/locales/de-DE.json @@ -73,5 +73,8 @@ "deliveryKeyInvalidLabel": "Ihr Delivery API Zugangsschlüssel ist ungültig.", "spaceOrTokenInvalid": "Dieser Space existiert nicht, oder Ihr Access Token kommt nicht von diesem Space.", "somethingWentWrongLabel": "Irgendetwas lief falsch.", - "previewKeyInvalidLabel": "Ihr Preview API Zugangsschlüssel ist ungültig." + "previewKeyInvalidLabel": "Ihr Preview API Zugangsschlüssel ist ungültig.", + "beginnerLabel": "Anfänger", + "intermediateLabel": "Fortgeschrittener", + "advancedLabel": "Profi" } diff --git a/i18n/locales/en-US.json b/i18n/locales/en-US.json index 83e4f48..d8da0fe 100644 --- a/i18n/locales/en-US.json +++ b/i18n/locales/en-US.json @@ -74,5 +74,8 @@ "deliveryKeyInvalidLabel": "Your Delivery API key is invalid.", "spaceOrTokenInvalid": "This space does not exist or your access token is not associated with your space.", "somethingWentWrongLabel": "Something went wrong", - "previewKeyInvalidLabel": "Your Preview API key is invalid." + "previewKeyInvalidLabel": "Your Preview API key is invalid.", + "beginnerLabel": "Beginner", + "intermediateLabel": "Intermediate", + "advancedLabel": "Advanced" } diff --git a/views/course.pug b/views/course.pug index 262a938..2cd91c4 100644 --- a/views/course.pug +++ b/views/course.pug @@ -38,7 +38,7 @@ block content .course__overview-item svg.course__overview-icon use(xlink:href='/icons/icons.svg#skill-level') - .course__overview-value #{translate('skillLevelLabel', currentLocale.code)}: #{course.fields.skillLevel} + .course__overview-value #{translate('skillLevelLabel', currentLocale.code)}: #{translate(`${course.fields.skillLevel}Label`, currentLocale.code)} .course__overview-cta-wrapper a.course__overview-cta.cta(href=`/courses/${course.fields.slug}/lessons/${course.fields.lessons[0].fields.slug}${queryString}`) #{translate('startCourseLabel', currentLocale.code)} .course__description !{helpers.markdown(course.fields.description)}