feat(locales): add new translation keys and update existing ones

Add new translation keys for various languages including zh_cn, pt, bg, ru, zh_tw, tr, nl, es, fr, and de. These changes include new error messages, prompts, and additional UI text to improve user experience and localization. Also, reorder initialization code in main.py for better readability.
This commit is contained in:
paulpham157
2025-04-12 19:23:07 +07:00
parent 82e2625dfe
commit 84358805fc
12 changed files with 577 additions and 121 deletions

View File

@@ -79,8 +79,8 @@ def run_as_admin():
class Translator:
def __init__(self):
self.translations = {}
self.current_language = self.detect_system_language() # Use correct method name
self.fallback_language = 'en' # Fallback language if translation is missing
self.current_language = self.detect_system_language() # Use correct method name
self.load_translations()
self.default_layout_id_to_lang_code_mapping = {
0x0409: 'en', # English