Next.js Discord

Discord Forum

which solution to use for a multilingual site next-intl or the default one?

Unanswered
Asian black bear posted this in #help-forum
Open in Discord
Asian black bearOP
I would need some advice on what to use to make a multilingual presentation site.
I'm using next-intl I'm using it for the homepage and it seems to work, after a day of corrections and tests, following their examples. Now I realize that it is very invasive, it seems that everything revolves around it, and I don't know if it is the right choice.
I am still quite inexperienced with nextjs, so I still have doubts and I don't know what is usually used in these cases.
the solution I would like is to be able to manage two languages, but in the future there could be even more,
the default one that must not have the iso_code of the language so only
/ and for English /en in the urls
obviously manage sitemap, the language selector and in case /it was present in the urls there was a redirect to /.
https://nextjs.org/docs/app/guides/internationalization
I saw this solution, I find it simpler, but I don't know if it's the right solution, it seems to me that many use next-intl.
I would like to manage metadata etc... for each language

https://next-intl.dev/docs/getting-started/app-router/with-i18n-routing
https://github.com/amannn/next-intl/blob/main/examples/example-app-router

could you give me some advice on the direction to take if the one suggested by next in its documentation or continue to use next-intl? the next-intl examples use different solutions from what I'm doing, as code structure, so it remains difficult for me to use it

thanks

1 Reply

Asian black bearOP
I chose to use next-intl