Skip to content

Commit

Permalink
Add missing translations for WebAuthN in Account Console (keycloak#26384
Browse files Browse the repository at this point in the history
)

Closes keycloak#26383

Signed-off-by: Jon Koops <[email protected]>
  • Loading branch information
jonkoops authored Jan 22, 2024
1 parent 43053b8 commit 03b03f3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 193 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,5 @@ unLinkSuccess=Successfully unlinked account
applications=Applications
sharedWithMe=Shared with Me
username=Username
webauthn-display-name=Security Key
webauthn-help-text=Use your security key to sign in.
184 changes: 0 additions & 184 deletions js/apps/account-ui/public/locales/en/translation.json

This file was deleted.

8 changes: 1 addition & 7 deletions js/apps/account-ui/src/i18next.d.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
// https://www.i18next.com/overview/typescript
import "i18next";

import translation from "../public/locales/en/translation.json";

declare module "i18next" {
interface CustomTypeOptions {
defaultNS: "translation";
resources: {
translation: typeof translation;
};
// TODO: This flag should be removed and code that errors out should be made functional.
// This will have to be done incrementally as the amount of errors the default produces is just too much.
// This will have to be done incrementally as the amount of errors the defaults produce is just too much.
allowObjectInHTMLChildren: true;
}
}
4 changes: 2 additions & 2 deletions js/apps/admin-ui/src/i18next.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import "i18next";

declare module "i18next" {
interface CustomTypeOptions {
// TODO: These flags should be removed and code that errors out should be made functional.
// This will have to be done incrementally as the amount of errors the defaults produce is just too much.
// TODO: This flag should be removed and code that errors out should be made functional.
// This will have to be done incrementally as the amount of errors the default produces is just too much.
allowObjectInHTMLChildren: true;
}
}

0 comments on commit 03b03f3

Please sign in to comment.