i18next / next-app-dir-i18next-no-locale-path-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next.js 13/14 app directory feature in combination with i18next and no locale in url

This example shows a basic way to use i18next (and react-i18next) in a Next.js 13 app with the new app directory features. next-i18next is not needed anymore for this setup.

It shows i18next integration on some server side pages and some client side pages.

There is also an example middleware with language detection and persistence via cookie.

This example has been created out of this discussion.

The example was originally based on this example with this blog post describing this with more detail information.

About


Languages

Language:JavaScript 87.3%Language:CSS 12.7%