chore(localization): add localization for skill level tags (#43)

* chore(localization): add localization for skill level tags

* chore(localization): lowercase the skill level symbols
This commit is contained in:
David Litvak Bruno
2017-11-08 17:09:16 +01:00
committed by GitHub
parent f6c12658ce
commit 20a1a0915f
3 changed files with 9 additions and 3 deletions

View File

@@ -73,5 +73,8 @@
"deliveryKeyInvalidLabel": "Ihr Delivery API Zugangsschlüssel ist ungültig.", "deliveryKeyInvalidLabel": "Ihr Delivery API Zugangsschlüssel ist ungültig.",
"spaceOrTokenInvalid": "Dieser Space existiert nicht, oder Ihr Access Token kommt nicht von diesem Space.", "spaceOrTokenInvalid": "Dieser Space existiert nicht, oder Ihr Access Token kommt nicht von diesem Space.",
"somethingWentWrongLabel": "Irgendetwas lief falsch.", "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"
} }

View File

@@ -74,5 +74,8 @@
"deliveryKeyInvalidLabel": "Your Delivery API key is invalid.", "deliveryKeyInvalidLabel": "Your Delivery API key is invalid.",
"spaceOrTokenInvalid": "This space does not exist or your access token is not associated with your space.", "spaceOrTokenInvalid": "This space does not exist or your access token is not associated with your space.",
"somethingWentWrongLabel": "Something went wrong", "somethingWentWrongLabel": "Something went wrong",
"previewKeyInvalidLabel": "Your Preview API key is invalid." "previewKeyInvalidLabel": "Your Preview API key is invalid.",
"beginnerLabel": "Beginner",
"intermediateLabel": "Intermediate",
"advancedLabel": "Advanced"
} }

View File

@@ -38,7 +38,7 @@ block content
.course__overview-item .course__overview-item
svg.course__overview-icon svg.course__overview-icon
use(xlink:href='/icons/icons.svg#skill-level') 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 .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)} 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)} .course__description !{helpers.markdown(course.fields.description)}