Skip to content

Commit

Permalink
Update to Keycloakify 11
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Sep 22, 2024
1 parent fb9b24f commit 5001393
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<i>🚀 <a href="https://keycloakify.dev">Keycloakify</a> v10 starter 🚀</i>
<i>🚀 <a href="https://keycloakify.dev">Keycloakify</a> v11 starter 🚀</i>
<br/>
<br/>
</p>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"license": "MIT",
"keywords": [],
"dependencies": {
"keycloakify": "^10.1.4",
"keycloakify": "^11.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
12 changes: 9 additions & 3 deletions src/login/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { createUseI18n } from "keycloakify/login";
import { i18nBuilder } from "keycloakify/login";
import type { ThemeName } from "../kc.gen";

export const { useI18n, ofTypeI18n } = createUseI18n({});
/** @see: https://docs.keycloakify.dev/i18n */
const { useI18n, ofTypeI18n } = i18nBuilder
.withThemeName<ThemeName>()
.build();

export type I18n = typeof ofTypeI18n;
type I18n = typeof ofTypeI18n;

export { useI18n, type I18n };
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4015,10 +4015,10 @@ jsonfile@^6.0.1:
optionalDependencies:
graceful-fs "^4.1.6"

keycloakify@^10.1.4:
version "10.1.4"
resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-10.1.4.tgz#ba640a9ce20f7bf1e7515605afcc2fb86f3005a1"
integrity sha512-YgroCRyh+dLS886kGFt1E1wU0U88NDi53blRryzLhbL1Pmrzp6+ZfLhqxOFBp2F8QICYOk10AlaMpzUqS54bjg==
keycloakify@^11.0.0:
version "11.0.0"
resolved "https://registry.yarnpkg.com/keycloakify/-/keycloakify-11.0.0.tgz#ae679297669a620841b6d324f7d0c787d34c07a5"
integrity sha512-PW5j2lSTxr/yN4qJ4/TNQIuuPkaZN2gTZiXpGIYL4PMgWsDLkj+xfZrI7am7snbgOGg63GQ4gKVvirl5atIuuA==
dependencies:
tsafe "^1.6.6"

Expand Down

0 comments on commit 5001393

Please sign in to comment.