Skip to content

Commit

Permalink
always try and translate the error message
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Jan de Wit <[email protected]>
  • Loading branch information
edewit authored and pedroigor committed Oct 30, 2024
1 parent 3d91df4 commit 77231bd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ linkedAccounts=Linked accounts
personalInfoDescription=Manage your basic information
removeAccess=Remove access
signingInDescription=Configure ways to sign in.
somethingWentWrongDescription=Sorry, an unexpected error has occurred.
personalInfo=Personal info
removeCred=Remove {{name}}
signOutAllDevices=Sign out all devices
Expand All @@ -98,10 +97,11 @@ permissionRequest=Permission requests - {{name}}
add=Add
error-invalid-value='{{0}}' has invalid value.
somethingWentWrong=Something went wrong
somethingWentWrongDescription=Sorry, an unexpected error has occurred.
tryAgain=Try again
rolesScope=If there is no role scope mapping defined, each user is permitted to use this client scope. If there are role scope mappings defined, the user must be a member of at least one of the roles.
unShareError=Could not un-share the resource due to\: {{error}}
ipAddress=IP address
tryAgain=Try again
resourceName=Resource name
unlinkedEmpty=No unlinked providers
done=Done
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
body, #app {
height: 100%;
overflow-x: hidden;
overflow-y: hidden;
}
.container {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3273,8 +3273,15 @@ groupDuplicated=Group duplicated
duplicateAGroup=Duplicate group
couldNotFetchClientRoleMappings=Could not fetch client role mappings\: {{error}}
duplicateGroupWarning=Duplication of groups with a large number of subgroups is not supported. Please ensure that the group you are duplicating does not have a large number of subgroups.
<<<<<<< HEAD
showMemberships=Show memberships
showMembershipsTitle={{username}} Group Memberships
noGroupMembershipsText=This user is not a member of any groups.
noGroupMemberships=No memberships
termsAndConditionsDeclined=You need to accept the Terms and Conditions to continue
termsAndConditionsDeclined=You need to accept the Terms and Conditions to continue
=======
termsAndConditionsDeclined=You need to accept the Terms and Conditions to continue
somethingWentWrong=Something went wrong
somethingWentWrongDescription=Sorry, an unexpected error has occurred.
tryAgain=Try again
>>>>>>> a163063cc4 (always try and translate the error message)
3 changes: 1 addition & 2 deletions js/libs/ui-shared/src/context/ErrorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
TextContent,
} from "@patternfly/react-core";
import { useTranslation } from "react-i18next";
import { label } from "../user-profile/utils";
import { getNetworkErrorDescription } from "../utils/errors";

type ErrorPageProps = {
Expand Down Expand Up @@ -42,7 +41,7 @@ export const ErrorPage = (props: ErrorPageProps) => {
>
<TextContent>
{errorMessage ? (
<Text>{label(t, errorMessage)}</Text>
<Text>{t(errorMessage)}</Text>
) : (
<Text>{t("somethingWentWrongDescription")}</Text>
)}
Expand Down

0 comments on commit 77231bd

Please sign in to comment.