From eb8e0275d77ce7e8eba347af50dedf7ae548ec0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9A=E7=BE=85=E7=8B=BC?= Date: Wed, 1 Mar 2023 19:41:10 +0800 Subject: [PATCH] Update utils.py --- modules/core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/utils.py b/modules/core/utils.py index c8298656..66ec391d 100644 --- a/modules/core/utils.py +++ b/modules/core/utils.py @@ -144,7 +144,7 @@ locale = on_command('locale', async def config_gu(msg: Bot.MessageSession): t = get_target_locale(msg) lang = msg.parsed_msg[''] - if lang in ['zh_cn', 'en_us']: + if lang in ['zh_cn', 'zh_tw', 'en_us']: if BotDBUtil.TargetInfo(msg.target.targetId).edit('locale', lang): t = get_target_locale(msg) await msg.finish(t.t('success'))