mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 14:22:25 +08:00
Revert "Not to detect user lang when running in Node"
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user