npm / i18next-resources-to-backend
i18next-resources-to-backend
What changed in i18next-resources-to-backend 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
1 breaking1 new APIs and options3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initi18next-resources-to-backend 15 changes
Breaking changes 1
Validates language and namespace before passing them to the loader, rejecting unsafe values to prevent crafted paths from escaping the locales directory and to protect static-resource lookup.
New APIs and options 1
The backend declares its callback calling convention with callbackApi, so i18next calls read and create with a callback and passes create its options; debug mode no longer logs the deprecation notice. Older i18next versions ignore it.
Fixes and other changes 3
A loader without a callback calls the i18next callback only once; errors from that callback now reach the app instead of marking the loaded namespace as failed.
Empty language strings are allowed again, restoring behavior rejected since 1.2.2.
Empty namespace strings are allowed again, restoring behavior rejected since 1.2.2.