diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 567ff9ad3..4bea93e32 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -342,5 +342,6 @@ "Enter the title and description of the document you want to add": "Enter the title and description of the document you want to add", "Documentation updated successfully": "Documentation updated successfully", "Please fill all fields": "Please fill all fields", - "Boost your organization": "Boost your organizations productivity with Pulse" + "Boost your organization": "Boost your organizations productivity with Pulse", + "Please wait to be added to a program or cohort": "Please wait to be added to a program or cohort" } diff --git a/public/locales/fr/translation.json b/public/locales/fr/translation.json index 20d67949b..b1aabf837 100644 --- a/public/locales/fr/translation.json +++ b/public/locales/fr/translation.json @@ -461,5 +461,6 @@ "Provide Quality range between 1-2": "Fournir une gamme de qualité entre 1-2", "Provide Quantity range between 1-2": "Fournir une gamme de quantité comprise entre 1-2", "Provide Professional_Skills range between 1-2": "Fournir une gamme de compétences professionnelles comprise entre 1-2", - "Sprint Ratings": "Sprint Notations" + "Sprint Ratings": "Sprint Notations", + "Please wait to be added to a program or cohort":"Veuillez attendre d'être ajouté à un programme ou à une cohorte" } diff --git a/public/locales/kn/translation.json b/public/locales/kn/translation.json index fe14f9b63..6d4a22ebc 100644 --- a/public/locales/kn/translation.json +++ b/public/locales/kn/translation.json @@ -448,5 +448,6 @@ "Provide Quality range between 1-2": "Tanga ubuziranenge hagati ya 1-2", "Provide Quantity range between 1-2": "Tanga Umubare uri hagati ya 1-2", "Provide Professional_Skills range between 1-2": "Tanga ubuhanga buri hagati ya 1-2", - "Sprint Ratings": "Amanota ya Sprint" + "Sprint Ratings": "Amanota ya Sprint", + "Please wait to be added to a program or cohort": "Tegereza tukongere muri porogarame cyangwa itsinda" } diff --git a/src/pages/Organization/AdminLogin.tsx b/src/pages/Organization/AdminLogin.tsx index 01067cbcd..b13321182 100644 --- a/src/pages/Organization/AdminLogin.tsx +++ b/src/pages/Organization/AdminLogin.tsx @@ -94,8 +94,9 @@ function AdminLogin() { }, onError: (err) => { /* istanbul ignore next */ - if (err.message.toLowerCase() !== 'invalid credential') { - toast.error(err.message); + if (err.message.toLowerCase() !== 'invalid credential' ) { + const translateError = t('Please wait to be added to a program or cohort') + toast.error(translateError); } else { /* istanbul ignore next */ setError('password', { @@ -255,6 +256,7 @@ function AdminLogin() { ) : ( '' )} +