Skip to content

Commit

Permalink
feat: add finnish translations for the theses table
Browse files Browse the repository at this point in the history
  • Loading branch information
HRemonen committed Sep 25, 2024
1 parent 6330b15 commit 492fa4f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client/components/ThesisPage/ThesesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@ import dayjs from 'dayjs'
import { useEffect, useMemo, useRef, useState } from 'react'
import { Trans, useTranslation } from 'react-i18next'

import { Box, Stack, TextField, Typography } from '@mui/material'
import {
DataGrid,
DataGridProps,
GridColDef,
GridRowSelectionModel,
useGridApiRef,
} from '@mui/x-data-grid'
import { fiFI } from '@mui/x-data-grid/locales'

import {
ProgramData,
ThesisData as Thesis,
TranslationLanguage,
} from '@backend/types'
import { Box, Stack, TextField, Typography } from '@mui/material'

import { usePaginatedTheses } from '../../hooks/useTheses'
import useLoggedInUser from '../../hooks/useLoggedInUser'
Expand Down Expand Up @@ -254,6 +256,7 @@ const ThesesPage = () => {
onRowSelectionModelChange={(newSelection: GridRowSelectionModel) =>
setRowSelectionModel(newSelection)
}
localeText={fiFI.components.MuiDataGrid.defaultProps.localeText}
slots={{
toolbar: ThesisToolbar,
footer: ViewThesisFooter as DataGridProps['slots']['footer'],
Expand Down

0 comments on commit 492fa4f

Please sign in to comment.