Skip to content

Commit

Permalink
Merge pull request ChatGPTNextWeb#1657 from Yidadaa/revert-1648-not-t…
Browse files Browse the repository at this point in the history
…o-detect-user-lang-in-node

Revert "Not to detect user lang when running in Node"
  • Loading branch information
Yidadaa authored May 20, 2023
2 parents ba040ab + f84d792 commit e15f43a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e15f43a

Please sign in to comment.