Skip to content

Using typesafe-i18n with Next.js 13 App Directory #580

Answered by billytheme
AngaBlue asked this question in Q&A
Discussion options

You must be logged in to vote

I am the colleague @AngaBlue mentioned. This overview might not be the best way to do this, and there may be some inconsistencies, but it does work.

This guide is for route-based locale, rather than subdomain-based locale. You could probably get it working using subdomain-based, but it would need some adaption.

The first problem is that Next.js App router has either removed support for native locale navigation, or hasn't implemented it yet (its not clear from the docs whether they intend to do so in future), so we have to implement it ourselves. The Next.js documentation on this is actually not bad, (https://nextjs.org/docs/app/building-your-application/routing/internationalization), so w…

Replies: 5 comments 23 replies

Comment options

You must be logged in to vote
1 reply
@AngaBlue
Comment options

Comment options

You must be logged in to vote
2 replies
@ivanhofer
Comment options

@billytheme
Comment options

Comment options

You must be logged in to vote
1 reply
@ivanhofer
Comment options

Comment options

You must be logged in to vote
18 replies
@osdiab
Comment options

@ivanhofer
Comment options

@osdiab
Comment options

@billytheme
Comment options

@osdiab
Comment options

Answer selected by ivanhofer
Comment options

You must be logged in to vote
1 reply
@ivanhofer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants