Merge pull request #1657 from Yidadaa/revert-1648-not-to-detect-user-lang-in-node

Revert "Not to detect user lang when running in Node"
This commit is contained in:
Yifei Zhang 2023-05-20 23:49:24 +08:00 committed by GitHub
commit 18df79ce00
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() {
if (typeof process === "object") {
return DEFAULT_LANG;
}
try {
return navigator.language.toLowerCase();
} catch {