internationalization - i18next appends the default translation namespace to my namespaces -


i using i18n - aurelia's wrapper of i18next following configuration:

  instance.i18next.use(backend);    return instance.setup({     backend: {       loadpath: 'assets/locales/{{lng}}/{{ns}}.json',     },     detectfromheaders: false,     lng: 'bg',     fallbacklng: 'bg',     ns: ['app', 'dp', 'management'],     defaultns: 'app',     fallbackns:'app',     attributes: ['t', 'i18n'],     usecookie: false,     getasync: false,     debug: false   }); 

i have component switches different language via setlocale(language) function. works fine translations, however, when switch between languages reason i18next adds translation.json namespaces although don't use , makes xhr call , 404 error translation.json - namespace don't want in first place. there option remove altogether namespaces? in advance

the issue not part of aurelia-i18n 1 of i18next itself. workaround found far set fallbacklng false.

{   backend: {                             loadpath: './locales/{{lng}}/{{ns}}.json',    },   lng : 'de',   ns: ['foo'],   defaultns: "foo",   attributes : ['t','i18n'],   fallbacklng : false,  <----- set false avoid search translation ns   debug : false } 

Comments