fix: 🐛 Add translation to week

This commit is contained in:
Andreas Eriksson 2021-12-06 20:27:30 +01:00
parent f7aa4675a4
commit cfa39de393
2 changed files with 4 additions and 2 deletions

View File

@ -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 ? (

View File

@ -129,7 +129,8 @@
"start": "Start",
"end": "End",
"lunch": "Lunch",
"gymBag": "Gym bag"
"gymBag": "Gym bag",
"week": "Week"
},
"classmates": {
"class": "Class",