diff --git a/README.md b/README.md index 3692be0..d1ad155 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- 🚀 Keycloakify v10 starter 🚀 + 🚀 Keycloakify v11 starter 🚀

diff --git a/package.json b/package.json index 17072a5..afc0728 100755 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/login/i18n.ts b/src/login/i18n.ts index 017dc2c..3eb9068 100644 --- a/src/login/i18n.ts +++ b/src/login/i18n.ts @@ -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() + .build(); -export type I18n = typeof ofTypeI18n; +type I18n = typeof ofTypeI18n; + +export { useI18n, type I18n }; diff --git a/yarn.lock b/yarn.lock index 3703c69..91a986b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"