fix: ro-RO is not a valid language (#5635)

This commit is contained in:
非法操作 2024-06-26 18:56:31 +08:00 committed by GitHub
parent 4c0a31d38b
commit e1a72e0e2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,3 @@
languages = ['en-US', 'zh-Hans', 'zh-Hant', 'pt-BR', 'es-ES', 'fr-FR', 'de-DE', 'ja-JP', 'ko-KR', 'ru-RU', 'it-IT', 'uk-UA', 'vi-VN', 'pl-PL', 'hi-IN']
language_timezone_mapping = {
'en-US': 'America/New_York',
'zh-Hans': 'Asia/Shanghai',
@ -21,6 +17,8 @@ language_timezone_mapping = {
'hi-IN': 'Asia/Kolkata'
}
languages = language_timezone_mapping.keys()
def supported_language(lang):
if lang in languages: