-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80a7c5f
commit 94d941a
Showing
4 changed files
with
31 additions
and
43 deletions.
There are no files selected for viewing
30 changes: 1 addition & 29 deletions
30
...c/templates/nextjs-sxa/src/assets/app.css → ...ates/nextjs-sxa/src/assets/sxa-styles.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
packages/create-sitecore-jss/src/templates/nextjs-sxa/src/pages/_app.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { AppProps } from 'next/app'; | ||
import { I18nProvider } from 'next-localization'; | ||
|
||
import 'assets/sxa-styles.css'; | ||
import 'assets/app.css'; | ||
|
||
function App({ Component, pageProps }: AppProps): 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters