Revert "Not to detect user lang when running in Node"

This commit is contained in:
Yifei Zhang 2023-05-20 23:44:35 +08:00 committed by GitHub
parent f27b25a62e
commit d0e73bd6b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -66,9 +66,6 @@ function setItem(key: string, value: string) {
} }
function getLanguage() { function getLanguage() {
if (typeof process === "object") {
return DEFAULT_LANG;
}
try { try {
return navigator.language.toLowerCase(); return navigator.language.toLowerCase();
} catch { } catch {