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
+3 -3
View File
@@ -1,5 +1,5 @@
import type { IntlConfig } from "react-intl"
export type ServerIntlProviderProps = React.PropsWithChildren<{
intl: IntlConfig
}>
export type ClientIntlProviderProps = React.PropsWithChildren<
Pick<IntlConfig, "defaultLocale" | "locale" | "messages">
>