Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jswork/i18n-language-detect

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jswork/i18n-language-detect - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

6

dist/index.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc