mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-11-30 02:08:37 +08:00
fix: ro-RO is not a valid language (#5635)
This commit is contained in:
parent
4c0a31d38b
commit
e1a72e0e2b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user