Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lorissigrist/paraglide-next-pages-router-example
https://github.com/lorissigrist/paraglide-next-pages-router-example
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lorissigrist/paraglide-next-pages-router-example
- Owner: LorisSigrist
- Created: 2024-02-27T08:30:43.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-18T10:00:04.000Z (7 months ago)
- Last Synced: 2024-04-18T16:39:46.143Z (7 months ago)
- Language: TypeScript
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# ParaglideJS Example with NextJS Pages Router
This is an example of how to use ParaglideJS with NextJS Pages Router. It shows that Paraglide is still able to work with NextJS Pages Router.The interesting files are:
- `next.config.js` - Where the i18n configuration is set up
- `pages/_app.js` - Where the language is passed to ParaglideJS
- `pages/_document.js` - Where the `html` lang attribute is set
- `pages/index.js` and `pages/about.js` - Where some messages are used