From 37692284186478c29d4a84837ee76070928aaa3e Mon Sep 17 00:00:00 2001 From: siykt Date: Tue, 24 Oct 2023 00:23:42 +0800 Subject: [PATCH] fix: use zh-TW translate id --- src/lib/cronstrue.js | 2 +- src/utils/shared.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/cronstrue.js b/src/lib/cronstrue.js index 809ef6677..3931efd56 100644 --- a/src/lib/cronstrue.js +++ b/src/lib/cronstrue.js @@ -6,7 +6,7 @@ import 'cronstrue/locales/zh_CN'; const supportedLocales = ['en', 'zh', 'zh-tw', 'fr']; const altLocaleId = { zh: 'zh_CN', - 'zh-tw': 'zh_TW', + 'zh-TW': 'zh_TW', }; export function readableCron(expression) { diff --git a/src/utils/shared.js b/src/utils/shared.js index c11bce48c..88a7140d7 100644 --- a/src/utils/shared.js +++ b/src/utils/shared.js @@ -1580,7 +1580,7 @@ export const supportLocales = [ { id: 'uk', name: 'Україньська' }, { id: 'vi', name: 'Tiếng Việt' }, { id: 'zh', name: '简体中文' }, - { id: 'zh-tw', name: '繁體中文' }, + { id: 'zh-TW', name: '繁體中文' }, ]; export const communities = [