feat: improve instantiation of intl

This commit is contained in:
Michael Zetterberg
2025-04-07 07:33:28 +02:00
parent f31b374370
commit 7c82a565ae
11 changed files with 95 additions and 65 deletions

View File

@@ -14,8 +14,6 @@ import { getIntl } from "@/i18n"
import { SASModal } from "../components/SASModal"
import type { FormatXMLElementFn } from "intl-messageformat"
import type { LangParams, PageArgs, SearchParams } from "@/types/params"
import type { State } from "../sasUtils"
@@ -82,10 +80,7 @@ export default async function SASxScandicLoginPage({
</p>
</Typography>
<Footnote textAlign="center">
{intl.formatMessage<
React.ReactNode,
FormatXMLElementFn<React.ReactNode>
>(
{intl.formatMessage(
{
id: "If you are not redirected automatically, please <loginLink>click here</loginLink>.",
},