Skip to content

Commit

Permalink
fix(OH2-438): Translate login server connection error message (#703)
Browse files Browse the repository at this point in the history
Co-authored-by: SteveGT96 <[email protected]>
  • Loading branch information
SteveGT96 and SteveGT96 authored Nov 28, 2024
1 parent e6703da commit ecb5f25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/activities/loginActivity/LoginActivity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const LoginActivity: FC = () => {
const error = state.main.authentication.error;
return error?.status === 401
? t("errors.incorrectcredentials")
: error?.message ?? t("errors.somethingwrong");
: t(error?.message ?? "errors.somethingwrong");
});

const status = useAppSelector(
Expand Down
3 changes: 3 additions & 0 deletions src/resources/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,9 @@
"sql": {
"theselecteditemisstillusedsomewhere": {
"msg": "The selected item is still used somewhere."
},
"problemsoccurredwithserverconnection": {
"msg": "Problems occurred with server connection."
}
},
"userbrowser": {
Expand Down

0 comments on commit ecb5f25

Please sign in to comment.