Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: translate error message #310

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading