Buckets:
| import type { AppProps } from "next/app"; | |
| import type { MessageConfig } from "../helper/loadIntlMessages"; | |
| import { IntlProvider } from "react-intl"; | |
| import { useRouter } from "next/router"; | |
| export default function MyApp({ | |
| Component, | |
| pageProps, | |
| }: AppProps<{ intlMessages: MessageConfig }>) { | |
| const { locale, defaultLocale } = useRouter(); | |
| return ( | |
| <IntlProvider | |
| locale={locale as string} | |
| defaultLocale={defaultLocale} | |
| messages={pageProps.intlMessages} | |
| > | |
| <Component {...pageProps} /> | |
| </IntlProvider> | |
| ); | |
| } | |
Xet Storage Details
- Size:
- 552 Bytes
- Xet hash:
- a9f707f4733e58620c220d03987c36e218f53689e1e4f231c325139cd2a9df8b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.