mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +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