@jswork/i18n-language-detect
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -5,4 +5,4 @@ /*! | ||
* homepage: https://js.work | ||
* version: 1.0.10 | ||
* date: 2023-10-12 11:03:48 | ||
* version: 1.0.11 | ||
* date: 2023-10-13 08:58:06 | ||
* license: MIT | ||
@@ -9,0 +9,0 @@ */ |
@@ -5,4 +5,4 @@ /*! | ||
* homepage: https://js.work | ||
* version: 1.0.10 | ||
* date: 2023-10-12 11:03:46 | ||
* version: 1.0.11 | ||
* date: 2023-10-13 08:58:04 | ||
* license: MIT | ||
@@ -47,4 +47,6 @@ */ | ||
var routerType = inOptions.routerType; | ||
var suburl = routerType === 'hash' ? window.location.hash : window.location.search; | ||
var uri = new URL(suburl.slice(1), 'http://localhost'); | ||
var isHashType = routerType === 'hash'; | ||
var suburl = isHashType ? window.location.hash : window.location.search; | ||
var idx = isHashType ? 1 : 0; | ||
var uri = new URL(suburl.slice(idx), 'http://localhost'); | ||
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) { | ||
@@ -51,0 +53,0 @@ var key = keys_1[_i]; |
@@ -6,4 +6,4 @@ "use strict"; | ||
* homepage: https://js.work | ||
* version: 1.0.10 | ||
* date: 2023-10-12 11:03:48 | ||
* version: 1.0.11 | ||
* date: 2023-10-13 08:58:06 | ||
* license: MIT | ||
@@ -52,4 +52,6 @@ */ | ||
var routerType = inOptions.routerType; | ||
var suburl = routerType === 'hash' ? window.location.hash : window.location.search; | ||
var uri = new URL(suburl.slice(1), 'http://localhost'); | ||
var isHashType = routerType === 'hash'; | ||
var suburl = isHashType ? window.location.hash : window.location.search; | ||
var idx = isHashType ? 1 : 0; | ||
var uri = new URL(suburl.slice(idx), 'http://localhost'); | ||
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) { | ||
@@ -56,0 +58,0 @@ var key = keys_1[_i]; |
@@ -5,6 +5,6 @@ /*! | ||
* homepage: https://js.work | ||
* version: 1.0.10 | ||
* date: 2023-10-12 11:03:48 | ||
* version: 1.0.11 | ||
* date: 2023-10-13 08:58:06 | ||
* license: MIT | ||
*/ | ||
export default function stdLanuage(inLaugage: string, inFallbackLng?: string): string; |
@@ -5,4 +5,4 @@ /*! | ||
* homepage: https://js.work | ||
* version: 1.0.10 | ||
* date: 2023-10-12 11:03:46 | ||
* version: 1.0.11 | ||
* date: 2023-10-13 08:58:04 | ||
* license: MIT | ||
@@ -9,0 +9,0 @@ */ |
@@ -6,4 +6,4 @@ "use strict"; | ||
* homepage: https://js.work | ||
* version: 1.0.10 | ||
* date: 2023-10-12 11:03:48 | ||
* version: 1.0.11 | ||
* date: 2023-10-13 08:58:06 | ||
* license: MIT | ||
@@ -10,0 +10,0 @@ */ |
{ | ||
"name": "@jswork/i18n-language-detect", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "Language detect plugin.", | ||
@@ -55,3 +55,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "556b09ed4855cffafa37610798a76b972025a2b8" | ||
"gitHead": "c0691d0861f314422818be49748c02418aea352b" | ||
} |
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
13091
277