You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constlanguageDetector=newLanguageDetector(null,{// order and from where user language should be detectedorder: ['querystring','cookie','localStorage','sessionStorage','navigator','htmlTag','path','subdomain'],// keys or params to lookup language fromlookupQuerystring: 'lng',lookupCookie: 'i18next',lookupLocalStorage: 'i18nextLng',lookupSessionStorage: 'i18nextLng',lookupFromPathIndex: 0,lookupFromSubdomainIndex: 0,// cache user language oncaches: ['localStorage','cookie'],excludeCacheFor: ['cimode'],// languages to not persist (cookie, localStorage)// optional htmlTag with lang attribute, the default is:htmlTag: document.documentElement,// optional set cookie options, reference:[MDN Set-Cookie docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie)cookieOptions: {path: '/',sameSite: 'strict'}});if(!i18n.isInitialized){i18n.use(languageDetector)
Expected behavior
Expect the lng in the querystring to work regardless of position
Your Environment
node v14
i18next-browser-language 6.1.2
The text was updated successfully, but these errors were encountered:
馃悰 Bug Report
The following URLs does not work:
Only works if the query string is before a
#
.To Reproduce
Expected behavior
Expect the
lng
in the querystring to work regardless of positionYour Environment
node v14
i18next-browser-language 6.1.2
The text was updated successfully, but these errors were encountered: