diff --git a/packages/core/client/src/collection-manager/interfaces/sequence.tsx b/packages/core/client/src/collection-manager/interfaces/sequence.tsx index 1409e985e9..1675091945 100644 --- a/packages/core/client/src/collection-manager/interfaces/sequence.tsx +++ b/packages/core/client/src/collection-manager/interfaces/sequence.tsx @@ -146,13 +146,14 @@ const RuleTypes = { title: '{{t("Reset cycle")}}', 'x-decorator': 'FormItem', ['x-component']({ value, onChange }) { + const { t } = useTranslation(); const shortValues = [ - { label: '不重置', value: 0 }, - { label: '每天', value: 1, cron: '0 0 * * *' }, - { label: '每周一', value: 2, cron: '0 0 * * 1' }, - { label: '每月', value: 3, cron: '0 0 1 * *' }, - { label: '每年', value: 4, cron: '0 0 1 1 *' }, - { label: '自定义', value: 5, cron: '* * * * *' } + { label: 'No reset', value: 0 }, + { label: 'Daily', value: 1, cron: '0 0 * * *' }, + { label: 'Every Monday', value: 2, cron: '0 0 * * 1' }, + { label: 'Monthly', value: 3, cron: '0 0 1 * *' }, + { label: 'Yearly', value: 4, cron: '0 0 1 1 *' }, + { label: 'Customize', value: 5, cron: '* * * * *' } ]; const option = typeof value === 'undefined' ? shortValues[0] @@ -163,7 +164,7 @@ const RuleTypes = {
{option.value === 5 diff --git a/packages/core/client/src/locale/zh_CN.ts b/packages/core/client/src/locale/zh_CN.ts index b7bf910a11..ab3c0826d8 100644 --- a/packages/core/client/src/locale/zh_CN.ts +++ b/packages/core/client/src/locale/zh_CN.ts @@ -143,6 +143,11 @@ export default { "Start from": "起始于", "Starts from {{value}}": "从 {{value}} 开始", "Reset cycle": "重置周期", + "No reset": "不重置", + "Daily": "每天", + "Every Monday": "每周一", + "Monthly": "每月", + "Yearly": "每年", "Operations": "操作", "Choices": "选择类型", "Checkbox": "勾选",