Skip to content

Commit acca0d0

Browse files
using translations
1 parent 90725b7 commit acca0d0

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

src/client/components/Courses/Course/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { RouterTabs } from '../../common/RouterTabs'
2222
import Discussion from './Discussions'
2323
import { ApiErrorView } from '../../common/ApiErrorView'
2424
import apiClient from '../../../util/apiClient'
25+
import { t } from 'i18next'
2526

2627
const Course = () => {
2728
const [showTeachers, setShowTeachers] = useState(false)
@@ -234,13 +235,14 @@ const Course = () => {
234235
}
235236

236237
const AssignedResponsibilityManagement = ({responsibility, handleRemove}) => {
238+
const { t, i18n } = useTranslation()
237239
if(!responsibility.createdByUserId){
238240
return (<></>)
239241
}
240242
return (
241243
<Box>
242-
<Typography>manuaalisesti lisätty</Typography>
243-
<Button onClick={handleRemove}>poista</Button>
244+
<Typography>{t('course:rag')}</Typography>
245+
<Button onClick={handleRemove}>{t('course:remove')}</Button>
244246
</Box>
245247
)
246248
}

src/client/locales/en.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@
281281
"stats": "Statistics",
282282
"discussions": "Discussions",
283283
"prompts": "Prompts",
284-
"rag": "RAG"
284+
"rag": "RAG",
285+
"remove": "remove"
285286
},
286287
"tooltip": {
287288
"copied": "Copied!"
@@ -297,4 +298,4 @@
297298
"description": "Facing problems? Or have a feature suggestion? Tell us about it below. Note that the feedback is not anonymous. You can also ask for a reply from the developers.",
298299
"responseWanted": "I want a reply to the feedback"
299300
}
300-
}
301+
}

src/client/locales/fi.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@
281281
"stats": "Statistiikka",
282282
"discussions": "Keskustelut",
283283
"prompts": "Alustukset",
284-
"rag": "RAG"
284+
"rag": "RAG",
285+
"remove": "poista"
285286
},
286287
"tooltip": {
287288
"copied": "Kopioitu!"
@@ -297,4 +298,4 @@
297298
"description": "Törmäsitko ongelmiin? Onko sinulle kehitysehdotus? Kerro siitä tässä. Huom. palaute ei ole anonyymiä. Voit myös halutessasi pyytää vastausta kehittäjiltä.",
298299
"responseWanted": "Haluan vastauksen palautteeseen"
299300
}
300-
}
301+
}

0 commit comments

Comments
 (0)