Skip to content

Commit

Permalink
Merge pull request #53 from yubaoa/main
Browse files Browse the repository at this point in the history
fix: quartz  format error in zh-cn locale
  • Loading branch information
abichinger authored May 7, 2024
2 parents caa0b72 + 67f92e8 commit 60e3e34
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions core/src/locale/cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ const locale: Localization = {
'*': { prefix: ':' },
empty: { text: '每分钟' },
},
second: {
'*': { prefix: ':' },
empty: { text: '每秒' },
},
},
minute: {
text: '分',
Expand Down Expand Up @@ -78,6 +82,29 @@ const locale: Localization = {
'*': { prefix: '和' },
},
},

//quartz format
'q-second': {
text: '秒',
},
'q-minute': {
text: '分钟',
second: {
'*': {
prefix: ':',
suffix: '秒',
},
empty: { text: '每' },
},
},
'q-hour': {
text: '小时',
minute: {
'*': {
prefix: ':',
},
},
},
}

export default locale

0 comments on commit 60e3e34

Please sign in to comment.