Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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