Skip to content

Commit

Permalink
fix: 🐛 Add translation to week
Browse files Browse the repository at this point in the history
  • Loading branch information
whyer committed Dec 6, 2021
1 parent f7aa467 commit cfa39de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/skolplattformen-app/components/week.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ? (
Expand Down
3 changes: 2 additions & 1 deletion apps/skolplattformen-app/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@
"start": "Start",
"end": "End",
"lunch": "Lunch",
"gymBag": "Gym bag"
"gymBag": "Gym bag",
"week": "Week"
},
"classmates": {
"class": "Class",
Expand Down

0 comments on commit cfa39de

Please sign in to comment.