Type-Safe Translations with i18next for your TypeScript project

preview_player
Показать описание
In this video you will see how to introduce type-safe translations within your TypeScript projects thanks to i18next.

Рекомендации по теме
Комментарии
Автор

Accutaly, this is not type safe. Nothing ensures that all languages have same variables. You created Resources object by using english locale as reference, but nothing gurantes that .jsons I create for other languages are exactly of that type.

josippardon
Автор

I really need this, thank you so much!

victoriagonzalez
Автор

Doesn't work with React Native with Expo

belkocik
Автор

I found one issue with this, Intellisense is broken when specific translations file is bigger than ~200 keys/lines, how can I solve it?

I use WebStorm

awakeupcall
Автор

I get below error : Type 'DefaultTFuncReturn' is not assignable to type 'string | undefined'.

suryapratap
Автор

It doesn't work.
VS Code 1.88.1

wdkmbiz