Buckets:
| import type { AppProps } from "next/app"; | |
| import { I18nProvider } from "next-localization"; | |
| import { SitecorePageProps } from "lib/page-props"; | |
| import "assets/main.scss"; | |
| function App({ | |
| Component, | |
| pageProps, | |
| }: AppProps<SitecorePageProps>): JSX.Element { | |
| const { dictionary, ...rest } = pageProps; | |
| return ( | |
| // Use the next-localization (w/ rosetta) library to provide our translation dictionary to the app. | |
| // Note Next.js does not (currently) provide anything for translation, only i18n routing. | |
| // If your app is not multilingual, next-localization and references to it can be removed. | |
| <I18nProvider lngDict={dictionary} locale={pageProps.locale}> | |
| <Component {...rest} /> | |
| </I18nProvider> | |
| ); | |
| } | |
| export default App; | |
Xet Storage Details
- Size:
- 755 Bytes
- Xet hash:
- 705343c9a28cae3059707b466fea72c738a02ec1a08759c480f7c31e9a1e1bdc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.