This is a TypeScript version of this.
The src/@types/i18next.d.ts
file also enables typesafe translations.
During development, you can run npm run resources-for-ts
. And on runtime the translations are directly downloaded from the locize CDN.
Alternatively, you can use the command npm run resources-for-ts-toc
to download all namespaces separately and create a toc ts file.