@os-team/i18next-tld-language-detector
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,5 @@ | ||
export declare const tldLocaleMap: { | ||
com: string; | ||
ru: string; | ||
}; | ||
export declare const detectLanguageByHost: (host: string) => string; | ||
@@ -2,0 +6,0 @@ declare const tldLanguageDetector: { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.detectLanguageByHost = void 0; | ||
const tldLocaleMap = { | ||
exports.detectLanguageByHost = exports.tldLocaleMap = void 0; | ||
exports.tldLocaleMap = { | ||
com: 'en', | ||
@@ -10,3 +10,3 @@ ru: 'ru', | ||
const tld = host.slice(host.lastIndexOf('.') + 1); | ||
return tldLocaleMap[tld]; | ||
return exports.tldLocaleMap[tld]; | ||
}; | ||
@@ -13,0 +13,0 @@ exports.detectLanguageByHost = detectLanguageByHost; |
{ | ||
"name": "@os-team/i18next-tld-language-detector", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"license": "MIT", | ||
@@ -19,3 +19,3 @@ "repository": "git@gitlab.com:os-team/libs/utils.git", | ||
}, | ||
"gitHead": "cb2a918fa5bc8c3391dd57c72c6dfd6b94f9d142" | ||
"gitHead": "b9ce08aaa962a7a5a348e5d4ac3aeb49933dcd0f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
4652
31