Skip to content

Commit

Permalink
fix: translate error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rwamugema committed Oct 3, 2023
1 parent 8d5cb83 commit 592ce1f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
3 changes: 2 additions & 1 deletion public/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
3 changes: 2 additions & 1 deletion public/locales/kn/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
6 changes: 4 additions & 2 deletions src/pages/Organization/AdminLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down Expand Up @@ -255,6 +256,7 @@ function AdminLogin() {
) : (
''
)}

</div>
<div className="flex w-full flex-col sm:flex-row justify-between items-center rounded mb-5 mt-5">
<div className="w-50%">
Expand Down

0 comments on commit 592ce1f

Please sign in to comment.