fix: 🐛 Add translation to week
This commit is contained in:
parent
f7aa4675a4
commit
cfa39de393
|
@ -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 ? (
|
||||
|
|
|
@ -129,7 +129,8 @@
|
|||
"start": "Start",
|
||||
"end": "End",
|
||||
"lunch": "Lunch",
|
||||
"gymBag": "Gym bag"
|
||||
"gymBag": "Gym bag",
|
||||
"week": "Week"
|
||||
},
|
||||
"classmates": {
|
||||
"class": "Class",
|
||||
|
|
Loading…
Reference in New Issue