i18next / i18next-chained-backend

An i18next backend to chain multiple backends (add fallbacks, caches, ...)
MIT License
66 stars 10 forks source link

Incompatible with fallbackLng #25

Closed Maxim-Filimonov closed 2 years ago

Maxim-Filimonov commented 2 years ago

🐛 Bug Report

I noticed that this backend is not compatible with fallbackLng property of i18n. It throws an exception despite the fact that fallbackLng is specified.

To Reproduce

Example

Expected behaviour

Expected to not throw warnings/errors when fallbackLng is present.

Your Environment

adrai commented 2 years ago

Your backend options are not correctly passed in the init function: https://codesandbox.io/s/billowing-wildflower-oyj715?file=/src/i18n.js:1836-1934

see: https://github.com/i18next/i18next-chained-backend#more-complete-sample

jordanshardy commented 2 years ago

@adrai thanks for the response here. When the backend options are correctly passed like this example it is still throwing a warning which I have attached below. Any help with this would be awesome. Thanks!

Screen Shot 2022-03-01 at 10 40 40 am
adrai commented 2 years ago

Sorry, but I don't see that warning... I just see:

image

btw: regarding saveMissing: https://github.com/i18next/i18next-chained-backend#important-advice-for-the-usage-in-combination-with-savemissingupdatemissing