New i18n with dynamic imports

This commit is contained in:
garronej
2022-07-31 18:57:30 +02:00
parent 2be40816b2
commit 69c15bd473
34 changed files with 135 additions and 32032 deletions

View File

@ -2,13 +2,13 @@ import React, { memo } from "react";
import Template from "./Template";
import type { KcProps } from "./KcProps";
import type { KcContextBase } from "../getKcContext/KcContextBase";
import { getMsg } from "../i18n";
import { useI18n } from "../i18n";
import { useCssAndCx } from "tss-react";
const LoginIdpLinkConfirm = memo(({ kcContext, ...props }: { kcContext: KcContextBase.LoginIdpLinkConfirm } & KcProps) => {
const { url, idpAlias } = kcContext;
const { msg } = getMsg(kcContext);
const { msg } = useI18n();
const { cx } = useCssAndCx();