Skip to content

Commit

Permalink
fix: use zh-TW translate id
Browse files Browse the repository at this point in the history
  • Loading branch information
Siykt committed Oct 23, 2023
1 parent 6a3a379 commit 3769228
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/cronstrue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 3769228

Please sign in to comment.