forked from XiaoMo/ChatGPT-Next-Web
Revert "Not to detect user lang when running in Node"
This commit is contained in:
parent
f27b25a62e
commit
d0e73bd6b2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user