From 67f92e821dab9e0b7408cca43b19821215316707 Mon Sep 17 00:00:00 2001 From: yubaoa <50763222+yubaoa@users.noreply.github.com> Date: Mon, 6 May 2024 20:48:23 +0800 Subject: [PATCH] fix: quartz format error in zh-cn locale --- core/src/locale/cn.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/core/src/locale/cn.ts b/core/src/locale/cn.ts index 0cd88d7b..6c0d959e 100644 --- a/core/src/locale/cn.ts +++ b/core/src/locale/cn.ts @@ -37,6 +37,10 @@ const locale: Localization = { '*': { prefix: ':' }, empty: { text: '每分钟' }, }, + second: { + '*': { prefix: ':' }, + empty: { text: '每秒' }, + }, }, minute: { text: '分', @@ -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