snowball-js
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -15,11 +15,12 @@ "use strict"; | ||
static getUserLanguage() { | ||
const { language } = navigator; | ||
switch (language) { | ||
case 'ko-KR': | ||
return I18nLanguages.KO; | ||
case 'en-US': | ||
return I18nLanguages.EN; | ||
default: | ||
return I18nLanguages.EN; | ||
const language = navigator.language; | ||
if (language.startsWith(I18nLanguages.KO)) { | ||
return I18nLanguages.KO; | ||
} | ||
else if (language.startsWith(I18nLanguages.EN)) { | ||
return I18nLanguages.EN; | ||
} | ||
else { | ||
return I18nLanguages.EN; | ||
} | ||
} | ||
@@ -26,0 +27,0 @@ text(key) { |
{ | ||
"name": "snowball-js", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "TypeScript utilities for miscellaneous projects", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
10606
185