Skip to content

Commit

Permalink
fix: translate error message (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwamugema authored Oct 4, 2023
1 parent c24a47e commit 308ee11
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 @@ -92,8 +92,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 @@ -254,6 +255,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

1 comment on commit 308ee11

@vercel
Copy link

@vercel vercel bot commented on 308ee11 Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

metron-devpulse – ./

metron-devpulse-metron.vercel.app
metron-devpulse-git-develop-metron.vercel.app
metron-devpulse.vercel.app

Please sign in to comment.