Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Update tools/i18n/i18n.py
Browse files- tools/i18n/i18n.py +1 -1
 
    	
        tools/i18n/i18n.py
    CHANGED
    
    | 
         @@ -5,7 +5,7 @@ import os 
     | 
|
| 5 | 
         
             
            I18N_JSON_DIR : os.PathLike = os.path.join(os.path.dirname(os.path.relpath(__file__)), 'locale')
         
     | 
| 6 | 
         | 
| 7 | 
         
             
            def load_language_list(language):
         
     | 
| 8 | 
         
            -
                with open("tools/i18n/locale/zh_CN.json" 
     | 
| 9 | 
         
             
                    language_list = json.load(f)
         
     | 
| 10 | 
         
             
                return language_list
         
     | 
| 11 | 
         | 
| 
         | 
|
| 5 | 
         
             
            I18N_JSON_DIR : os.PathLike = os.path.join(os.path.dirname(os.path.relpath(__file__)), 'locale')
         
     | 
| 6 | 
         | 
| 7 | 
         
             
            def load_language_list(language):
         
     | 
| 8 | 
         
            +
                with open("tools/i18n/locale/zh_CN.json", "r", encoding="utf-8") as f:
         
     | 
| 9 | 
         
             
                    language_list = json.load(f)
         
     | 
| 10 | 
         
             
                return language_list
         
     | 
| 11 | 
         |