- chore: set browsers target to defaults 286
- perf: use object deconstruction, optional chaining and hot path optimisations 287
- fix: align addDetector impementation to type definition 282
- fix: separate cjs and mjs typings
- introduce convertDetectedLanguage option
- simplify usage without i18next
- try to force esm moduel type for esm build 269
- typescript fix for i18next v22
- fix export order for typescript 267
- Types entries missing in package exports (Needed for Typescript >= 4.7 and moduleResolution="Node16"/"Nodenext") 266
- define module exports in package.json
- lookup subdomain with localhost option 264
- fix querystring lookup if happening after # 256
- export DecetorOptions and CustomDetector types
- fix lookup return types 245
- cookieOptions types 239
- Type PluginOptions properly 235
- optimize check for local storage and session storage 222
- BREAKING rename lookupSessionStorage and add it to defaults 221
- optimize cookie serialization and set sameSite to strict by default, to prepare for browser changes
- BREAKING needs i18next >= 19.5.0
- let i18next figure out which detected lng is best match
- typescript Updated typescript typings for DetectorOptions to align with current options 216
- sessionStorage support 215
- Add config option checkForSimilarInWhitelist 211
- fix: pass cookieOptions with the cacheUserLang 205
- feat: add cookieOptions for setting cookies 203
- update index file to reflect build changes done in 4.0.0
- typescript: Use updated ts export default from i18next 194
- removes deprecated jsnext:main from package.json
- Bundle all entry points with rollup bringing it up to same standard as xhr-backend
- note: dist/es -> dist/esm, dist/commonjs -> dist/cjs (individual files -> one bundled file)
- removes bower finally
- add default checkWhitelist: true
- Added option to prevent checking whitelist for detected languages
checkWhitelist: true
190
- Remove clutter from npm package 181
- typescript: Fix types for
use()
module 180
- typescript: fix types 165
- typescript: add types 164
- fix 157
- fix 159
- Lang by path: skip if language not found 159
- support for fallback language in form of object 151
- add .js for browser import implementation PR147
- [BREAKING] options.excludeCacheFor (array of language codes; default ['cimode']): if a language maps a value in that list the language will not be written to cache (eg. localStorage, cookie). If you use lng cimode in your tests and require it to be cached set the option to false or empty array