From 80aba96523d95b20199f7f3b91357d7cd1b6b3a5 Mon Sep 17 00:00:00 2001 From: Henri Remonen Date: Wed, 18 Oct 2023 11:13:34 +0300 Subject: [PATCH] feat: update localisations --- src/client/components/InteractiveForm/InteractiveForm.tsx | 4 ++-- src/client/locales/en.json | 4 +++- src/client/locales/fi.json | 4 +++- src/client/locales/sv.json | 4 +++- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/client/components/InteractiveForm/InteractiveForm.tsx b/src/client/components/InteractiveForm/InteractiveForm.tsx index d80078e7..fad97a36 100644 --- a/src/client/components/InteractiveForm/InteractiveForm.tsx +++ b/src/client/components/InteractiveForm/InteractiveForm.tsx @@ -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' }) }) } diff --git a/src/client/locales/en.json b/src/client/locales/en.json index 53905ddb..81c9bedb 100644 --- a/src/client/locales/en.json +++ b/src/client/locales/en.json @@ -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", diff --git a/src/client/locales/fi.json b/src/client/locales/fi.json index 5eeb20b6..60471599 100644 --- a/src/client/locales/fi.json +++ b/src/client/locales/fi.json @@ -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", diff --git a/src/client/locales/sv.json b/src/client/locales/sv.json index cda4b29e..a7d47dcb 100644 --- a/src/client/locales/sv.json +++ b/src/client/locales/sv.json @@ -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",