@jswork/i18n-language-detect
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -5,4 +5,4 @@ /*! | ||
* homepage: https://js.work | ||
* version: 1.0.7 | ||
* date: 2023-08-24 07:58:59 | ||
* version: 1.0.8 | ||
* date: 2023-08-28 11:07:18 | ||
* license: MIT | ||
@@ -24,5 +24,5 @@ */ | ||
init(services: any, inOptions: I18nLanguageDetectOptions): void; | ||
detect(): string; | ||
detect(): string | null; | ||
cacheUserLanguage(lng: string): void; | ||
} | ||
export default I18nLanguageDetect; |
@@ -5,4 +5,4 @@ /*! | ||
* homepage: https://js.work | ||
* version: 1.0.7 | ||
* date: 2023-08-24 07:58:57 | ||
* version: 1.0.8 | ||
* date: 2023-08-28 11:07:16 | ||
* license: MIT | ||
@@ -76,3 +76,3 @@ */ | ||
: getLanguage(lookupQuerystring, this.options); | ||
return lang || store.getItem(this.cacheKey) || navigator.language; | ||
return lang || navigator.language || store.getItem(this.cacheKey); | ||
}; | ||
@@ -79,0 +79,0 @@ I18nLanguageDetect.prototype.cacheUserLanguage = function (lng) { |
@@ -6,4 +6,4 @@ "use strict"; | ||
* homepage: https://js.work | ||
* version: 1.0.7 | ||
* date: 2023-08-24 07:58:59 | ||
* version: 1.0.8 | ||
* date: 2023-08-28 11:07:18 | ||
* license: MIT | ||
@@ -78,3 +78,3 @@ */ | ||
: getLanguage(lookupQuerystring, this.options); | ||
return lang || store.getItem(this.cacheKey) || navigator.language; | ||
return lang || navigator.language || store.getItem(this.cacheKey); | ||
}; | ||
@@ -81,0 +81,0 @@ I18nLanguageDetect.prototype.cacheUserLanguage = function (lng) { |
{ | ||
"name": "@jswork/i18n-language-detect", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Language detect plugin.", | ||
@@ -55,3 +55,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "679d46f6c9a405529e37fea160410cdec70c1f89" | ||
"gitHead": "dedde88468fb7d4a613524d65d3ad2b649075c69" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10706