i18next / i18next-xhr-backend

[deprecated] can be replaced with i18next-http-backend
https://github.com/i18next/i18next-http-backend
MIT License
253 stars 75 forks source link

Why does zh/translation.json automatically load #367

Closed bihongbin3027 closed 1 year ago

bihongbin3027 commented 1 year ago

image image image

bihongbin3027 commented 1 year ago

Why does the zh/translation.json file automatically load? I haven't even defined the zh folder.

bihongbin3027 commented 1 year ago

image

adrai commented 1 year ago

because of the default option: load: 'all'

image

Try to set it to load: 'currentOnly'

https://www.i18next.com/overview/configuration-options#languages-namespaces-resources

btw: i18next-xhr-backend is deprecated... use i18next-http-backend instead

bihongbin3027 commented 1 year ago

thanks. @adrai