DEV Community

Cover image for Don't use i18next ❌😒

Don't use i18next ❌😒

Nevo David on September 30, 2024

According to npmjs.com statistics, i18next is the most popular internationalization library for React. This is probably due to the right choice of...
Collapse
 
masudalimrancasual profile image
Masud Al Imran • Edited

Almost every project I have worked on I implemented internationalization myself, I don't find any significant benefit using i18next that I can't implement myself pretty easily. I think trying to use plugins for every small functions are overkill.
P.S. I also don't like using autocomplete/ search bar plugins. I insist on making one up myself.

Collapse
 
henrywills22 profile image
henrywills22

interesting... do you always get your projects translated just in the json files without any external tool?

Collapse
 
elsyng profile image
Ellis

AgreedπŸ‘

Collapse
 
nevodavid profile image
Nevo David

I think it all comes down to the amount of languages and amount of translations you need

Collapse
 
martinbaun profile image
Martin Baun

Agreed. Tolgee does it perfectly.

Collapse
 
nevodavid profile image
Nevo David

Yas!

Collapse
 
nenyasha profile image
Melody Mbewe

Great reads @nevodavid. Thanks for the insights

Collapse
 
brooks-123 profile image
Brook

I used i18next for a project at work then we migrated to lingui, but Tolgee looks interesting.

Collapse
 
nevodavid profile image
Nevo David

You should try it out πŸš€

Collapse
 
kamran2121 profile image
kamran2121

we exactly got to this issue when storing arrays in i18next data

Collapse
 
nevodavid profile image
Nevo David

Time to move to Tolgee :)

Collapse
 
best_codes profile image
Best Codes

I've tried Tolgee, and it's pretty nice, but I honestly preferred Crowdin translate over it.

Collapse
 
nevodavid profile image
Nevo David

Why?

Collapse
 
best_codes profile image
Best Codes

The Crowdin setup was more intuitive for me. It was easier to integrate with my GitHub account to auto translate my apps and stuff. Plus, you can AI translate in bulk (then review, of course), which helped me translate Codequill all in one day. :D

Thread Thread
 
smithjohn21 profile image
smithjohn21

Tolgee has the batch translation feature now. AFAIK it was added like year ago or something.

Thread Thread
 
best_codes profile image
Best Codes

Does it have OpenAI integration for it?

Thread Thread
 
jancizmar profile image
Jan Cizmar

Hey! Tolgee has something called Tolgee AI translator, which is based on OpenAI. In comparison to legacy translators like Google Translate or DeepL, it uses much more data. tolgee.io/platform/translation_pro...

Collapse
 
steven0121 profile image
Steven

Thanks for the insights!

Collapse
 
nevodavid profile image
Nevo David

You are welcome :)

Collapse
 
servicehumorist407 profile image
Andrew

What do you think of: formatjs.io/docs/intl/ ?
We are using it and it works well.

Collapse
 
nevodavid profile image
Nevo David

It's good :)
But it stateless, it means that you can only translate through code

Collapse
 
jancizmar profile image
Jan Cizmar

btw. Tolgee JS uses the ICU MessageFormat implementation provided by FormatJS, which depends on the intl classes.