Add language config saved

This commit is contained in:
TranMC
2025-04-23 10:57:50 +07:00
parent 4aba849cf1
commit 63e4e72ec7
2 changed files with 165 additions and 19 deletions

View File

@@ -105,6 +105,12 @@ def setup_config(translator=None):
'Token': {
'refresh_server': 'https://token.cursorpro.com.cn',
'enable_refresh': True
},
'Language': {
'current_language': '', # Set by local system detection if empty
'fallback_language': 'en',
'auto_update_languages': 'True',
'language_cache_dir': os.path.join(config_dir, "language_cache")
}
}
@@ -364,4 +370,4 @@ def get_config(translator=None):
global _config_cache
if _config_cache is None:
_config_cache = setup_config(translator)
return _config_cache
return _config_cache