Skip to content

Commit 421e91d

Browse files
committed
release
1 parent c24af00 commit 421e91d

3 files changed

+5
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 8.0.4
2+
3+
- fix localstorage check to try to address [297](https://github.com/i18next/i18next-browser-languageDetector/issues/297) [300](https://github.com/i18next/i18next-browser-languageDetector/pull/300)
4+
15
### 8.0.3
26

37
- change localstorage check to try to address [297](https://github.com/i18next/i18next-browser-languageDetector/issues/297)

i18nextBrowserLanguageDetector.js

-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@
184184
if (lookupLocalStorage && localStorageAvailable()) {
185185
return window.localStorage.getItem(lookupLocalStorage) || undefined; // Undefined ensures type consistency with the previous version of this function
186186
}
187-
188187
return undefined;
189188
},
190189
// Deconstruct the options object and extract the lookupLocalStorage property
@@ -386,7 +385,6 @@
386385
if (this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes) return detected; // new i18next v19.5.0
387386
return detected.length > 0 ? detected[0] : null; // a little backward compatibility
388387
}
389-
390388
cacheUserLanguage(lng) {
391389
let caches = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.options.caches;
392390
if (!caches) return;

i18nextBrowserLanguageDetector.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)