feat(localization): add localization for static strings
This commit is contained in:
committed by
Benedikt Rötsch
parent
eaec09a594
commit
68a8052bdf
@@ -13,5 +13,4 @@ mixin courseCard(course = {fields: {title: '', description: '', categories: [],
|
||||
+entryState(course)
|
||||
p.course-card__description= course.fields.shortDescription
|
||||
.course-card__link-wrapper
|
||||
a.course-card__link(href=`/courses/${course.fields.slug}${queryString}`) view course
|
||||
|
||||
a.course-card__link(href=`/courses/${course.fields.slug}${queryString}`) #{translate("viewCourseLabel", currentLocale.code)}
|
||||
|
||||
@@ -15,4 +15,4 @@ mixin editorialFeatures(entry)
|
||||
.editorial-features__hint-wrapper
|
||||
svg.editorial-features__hint-icon
|
||||
use(xlink:href='/icons/icons.svg#info')
|
||||
.editorial-features__hint-message Edit this entry in our web app. You have to be logged in and have access to the connected space to use this feature.
|
||||
.editorial-features__hint-message #{translate('editorialFeaturesHint', currentLocale.code)}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
mixin entryState(entry)
|
||||
if entry.draft
|
||||
.pill.pill--draft draft
|
||||
.pill.pill--draft #{translate('draftLabel', currentLocale.code)}
|
||||
if entry.pendingChanges
|
||||
.pill.pill--pending-changes pending changes
|
||||
.pill.pill--pending-changes #{translate('pendingChangesLabel', currentLocale.code)}
|
||||
|
||||
@@ -20,10 +20,10 @@ mixin lesson(lesson, course, nextLesson)
|
||||
when 'lessonImage'
|
||||
+lessonModuleImage(module)
|
||||
else
|
||||
h2 ️️⚠️ Invalid lesson module
|
||||
h2 ️️#{translate('lessonModuleErrorTitle', currentLocale.code)}
|
||||
p
|
||||
span Could not determine type of
|
||||
span #{translate('lessonModuleErrorBody', currentLocale.code)}
|
||||
strong #{module.sys.id}
|
||||
if nextLesson
|
||||
a.lesson__cta.cta(href=`/courses/${course.fields.slug}/lessons/${nextLesson.fields.slug}${queryString}`) View next lesson
|
||||
a.lesson__cta.cta(href=`/courses/${course.fields.slug}/lessons/${nextLesson.fields.slug}${queryString}`) #{translate('nextLessonLabel', currentLocale.code)}
|
||||
|
||||
|
||||
@@ -3,4 +3,4 @@ mixin lessonModuleImage(module)
|
||||
if module.fields.image && module.fields.image.fields.file && module.fields.image.fields.file.url
|
||||
img.lesson-module-image__image(src=module.fields.image.fields.file.url alt=module.fields.image.fields.title)
|
||||
else
|
||||
h3 ⚠️ Image missing
|
||||
h3 #{translate('imageErrorTitle', currentLocale.code)}
|
||||
|
||||
@@ -14,4 +14,4 @@ mixin moduleHighlightedCourse(module, course)
|
||||
.module-higlighted-course__description-wrapper
|
||||
p !{helpers.markdown(course.fields.shortDescription)}
|
||||
.module-higlighted-course__link-wrapper
|
||||
a.module-higlighted-course__link(href=`/courses/${course.fields.slug}${queryString}`) view course
|
||||
a.module-higlighted-course__link(href=`/courses/${course.fields.slug}${queryString}`) #{translate('viewCourseLabel', currentLocale.code)}
|
||||
|
||||
Reference in New Issue
Block a user