Skip to content

Use with NextJS, where can I put the loadAllLocales function? #402

Answered by ivanhofer
IRediTOTO asked this question in Q&A
Discussion options

You must be logged in to vote

Please take a look at the official Next.js example: https://github.com/ivanhofer/typesafe-i18n/tree/main/packages/adapter-react/examples/nextjs
You should not call loadAllLocales, instead you should use loadLocaleAsync and just load the locale your user needs.

Replies: 1 comment 2 replies

Comment options

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

@ivanhofer
Comment options

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