Skip to content

Commit

Permalink
feat: update localisations
Browse files Browse the repository at this point in the history
  • Loading branch information
HRemonen committed Oct 18, 2023
1 parent 9be411c commit 80aba96
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/client/components/InteractiveForm/InteractiveForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ const InteractiveForm = () => {

sendEmail(targets, requestEmailTemplate, 'Curre Chat Request')
.then(() => {
enqueueSnackbar(t('contact:sendSuccess'), {
enqueueSnackbar(t('AIrequest:sendSuccess'), {
variant: 'success',
})
})
.catch(() => {
enqueueSnackbar(t('contact:pateErrorMessage'), { variant: 'error' })
enqueueSnackbar(t('AIrequest:pateErrorMessage'), { variant: 'error' })
})
}

Expand Down
4 changes: 3 additions & 1 deletion src/client/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@
"senderFullname": "User's Name:",
"senderFaculty": "User's Faculty:",
"userMessage": "User's Message:",
"courseSize": "Planned Course Size:"
"courseSize": "Planned Course Size:",
"sendSuccess": "Curre Chat request has been sent successfully, we'll be in touch!",
"pateErrorMessage": "No response from the server"
},
"openai": {
"title": "Artificial intelligence in teaching",
Expand Down
4 changes: 3 additions & 1 deletion src/client/locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
"senderFullname": "Käyttäjän nimi:",
"senderFaculty": "Käyttäjän tiedekunta",
"userMessage": "Käyttäjän viesti:",
"courseSize": "Kurssin suunniteltu koko:"
"courseSize": "Kurssin suunniteltu koko:",
"sendSuccess": "Curre Chat pyyntö lähetetty onnistuneesti, olemme yhteydessä sinuun pian!",
"pateErrorMessage": "Palvelimeen ei saatu yhteyttä"
},
"openai": {
"title": "Tekoäly opetuksessa",
Expand Down
4 changes: 3 additions & 1 deletion src/client/locales/sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
"senderFullname": "Käyttäjän nimi:",
"senderFaculty": "Käyttäjän tiedekunta",
"userMessage": "Käyttäjän viesti:",
"courseSize": "Kurssin suunniteltu koko:"
"courseSize": "Kurssin suunniteltu koko:",
"sendSuccess": "Curre Chat pyyntö lähetetty onnistuneesti, olemme yhteydessä sinuun pian!",
"pateErrorMessage": "Palvelimeen ei saatu yhteyttä"
},
"openai": {
"title": "Artificiell intelligens i undervisningen",
Expand Down

0 comments on commit 80aba96

Please sign in to comment.