diff --git a/homepage/src/components/Homepage.astro b/homepage/src/components/Homepage.astro index 7380fedfc..016f091fd 100644 --- a/homepage/src/components/Homepage.astro +++ b/homepage/src/components/Homepage.astro @@ -26,7 +26,7 @@ const [lastEdition, ...pastEditions] = allEditions

- {lastEdition ? : } + {lastEdition ? : }
diff --git a/homepage/src/components/SurveyEdition.astro b/homepage/src/components/SurveyEdition.astro index fadf44ef2..47ed859cc 100644 --- a/homepage/src/components/SurveyEdition.astro +++ b/homepage/src/components/SurveyEdition.astro @@ -2,7 +2,7 @@ import T from '@components/T' import { statuses } from '@helpers/constants' import TakeSurvey from '@components/TakeSurvey' -import { getLocaleSubset } from '@helpers/translator' +import { getLocaleSubset, getStringTranslator } from '@helpers/translator' import { ResultsStatusEnum } from '@devographics/types' const { survey, edition, locale, isLast } = Astro.props @@ -11,6 +11,7 @@ const { background } = colors const isOpen = status === statuses.open const isPreview = status === statuses.preview const mainLink = isOpen || isPreview ? questionsUrl : resultsUrl +const getString = getStringTranslator(locale) let marker if (isOpen) { @@ -20,6 +21,7 @@ if (isOpen) { } else if (isLast) { marker = 'homepage.most_recent_survey' } + ---
@@ -34,7 +36,7 @@ if (isOpen) {

{year}

-
@@ -50,7 +52,7 @@ if (isOpen) { ) : (
{questionsUrl && ( - + )} {resultsUrl && edition.resultsStatus === ResultsStatusEnum.PUBLISHED ? ( - + ) : ( @@ -68,6 +70,7 @@ if (isOpen) { )}
) + }