From cfa39de3934e2386d90f37ad2c3dc830106e175a Mon Sep 17 00:00:00 2001 From: Andreas Eriksson Date: Mon, 6 Dec 2021 20:27:30 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Add=20translation=20to=20?= =?UTF-8?q?week?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/skolplattformen-app/components/week.component.tsx | 3 ++- apps/skolplattformen-app/translations/en.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/skolplattformen-app/components/week.component.tsx b/apps/skolplattformen-app/components/week.component.tsx index 519848299..de804fa49 100644 --- a/apps/skolplattformen-app/components/week.component.tsx +++ b/apps/skolplattformen-app/components/week.component.tsx @@ -17,6 +17,7 @@ import { LanguageService } from '../services/languageService' import { Sizing, Typography } from '../styles' import { TransitionView } from './transitionView.component' import { getMeaningfulStartingDate } from '../utils/calendarHelpers' +import { translate } from '../utils/translation' interface WeekProps { child: Child @@ -130,7 +131,7 @@ export const Week = ({ child }: WeekProps) => { }, [lessons]) const getWeekText = (date = moment()) => { - return `Vecka ${date.isoWeek()}` + return `${translate('schedule.week')} ${date.isoWeek()}` } return showSchema ? ( diff --git a/apps/skolplattformen-app/translations/en.json b/apps/skolplattformen-app/translations/en.json index 188a51d60..be8d4d4da 100644 --- a/apps/skolplattformen-app/translations/en.json +++ b/apps/skolplattformen-app/translations/en.json @@ -129,7 +129,8 @@ "start": "Start", "end": "End", "lunch": "Lunch", - "gymBag": "Gym bag" + "gymBag": "Gym bag", + "week": "Week" }, "classmates": { "class": "Class",