microapps / gatsby-plugin-react-i18next

Easily translate your Gatsby website into multiple languages
MIT License
121 stars 72 forks source link

It is not possible to provide `fallbackLng` to `i18next` #159

Open burakozdemir32 opened 1 year ago

burakozdemir32 commented 1 year ago

Currently, defaultLanguage is provided to i18next and it overrides the one provided in i18nextOptions.

i18next fallback setting: https://www.i18next.com/principles/fallback#fallback-to-different-languages

Overriding happens: https://github.com/microapps/gatsby-plugin-react-i18next/blob/master/src/plugin/wrapPageElement.tsx#L143

burakozdemir32 commented 1 year ago

Could you please check this?