feat: Add Brazilian Portuguese language

This commit is contained in:
Ricardo Negreiros
2025-03-20 05:25:29 -03:00
parent cba470344f
commit 63209d6ed6
9 changed files with 399 additions and 7 deletions

View File

@@ -139,6 +139,8 @@ class Translator:
return 'de'
elif system_locale.startswith('fr'):
return 'fr'
elif system_locale.startswith('pt'):
return 'pt'
@@ -156,6 +158,8 @@ class Translator:
return 'de'
elif 'fr' in env_lang:
return 'fr'
elif 'pt' in env_lang:
return 'pt'
return 'en'
except: