Next.js Discord

Discord Forum

Next.js which is the best language translation library? (i'm noob)

Unanswered
Giant panda posted this in #help-forum
Open in Discord
Giant pandaOP
Hello everyone, i'm a DevOps Engineer and seasoned .NET backend developer, lately i'm approaching the study of Rust and NodeJS with Next.js.
Because of this i'm creating a simple project that aims to simplify Systemd Task management.
That said, the main focus of this post is that i cannot get the translations to work using the library "react-i18next".
I need a good tutorial to implement browser driven la guage selection on Next.js.
This is the cli script repo: https://github.com/dnviti/taskgen
This is the WebAPI repo: https://github.com/dnviti/taskgen-webapi
This is the WebUI repo: https://github.com/dnviti/taskgen-webui

I only need help for the latest one, which is made using Next.js.

I used GPT-4o to generate all code and i do not have any knowledge of Next.js so the codebase could be a total garbage.

If you want to aid thank you!

14 Replies

Giant pandaOP
Is that i cannot find a good tutorial about translations in Next.js (language should be browser driven).
Do you know one?
depends of how you want to imlement i18n
do you want language based routing like /en/home /de/home
or what i use just loading the languages strings into memory and dynamically rendering tsx
take a look at this -> https://next-intl-docs.vercel.app/
most people use that
Asian black bear
To ensure you get the best possible assistance, could you please change your thread title to be more descriptive? Specific titles attract the attention of users who can help and make it easier for others to find similar solutions in the future.
Asian black bear
Additionally your initial post is barely describing anything that you need help with and as such you should read our guidelines on how to ask for help: https://nextjs-forum.com/post/1138338531983491154
@gin take a look at this -> https://next-intl-docs.vercel.app/ most people use that
Giant pandaOP
Going to test that as soon as possible
@gin or what i use just loading the languages strings into memory and dynamically rendering tsx
Giant pandaOP
This is what i need, the translations should be automatically selected using the default browser's language (but also there is a select list to change those on the fly, saving the setting somewhere like local storage)
make sure to answer my message as solution
like that