feat(challenges): 添加自定义挑战类型并优化字段验证
- 新增 CUSTOM 挑战类型支持 - 移除 requirementLabel 必填验证,改为可选字段 - 添加挑战类型选择器的编辑模式禁用状态 - 优化日期选择器的多语言支持 - 完善中英文国际化文案 - 修复空 requirementLabel 导致的渲染问题
This commit is contained in:
@@ -1210,10 +1210,12 @@ const resources = {
|
||||
sleep: '睡眠',
|
||||
mood: '心情',
|
||||
weight: '体重',
|
||||
custom: '自定义',
|
||||
},
|
||||
fields: {
|
||||
title: '标题',
|
||||
titlePlaceholder: '挑战标题(最多100字)',
|
||||
challengeTypeHelper: '饮水、睡眠类型会触发自动上报进度,也可以手动标记完成',
|
||||
coverImage: '封面图',
|
||||
uploadCover: '上传封面',
|
||||
challengeDescription: '挑战说明',
|
||||
@@ -1275,6 +1277,7 @@ const resources = {
|
||||
clear: '清除',
|
||||
helper: '建议比例 16:9,清晰展示挑战氛围',
|
||||
selectSource: '选择封面图',
|
||||
selectMessage: '请选择图片来源',
|
||||
camera: '拍照',
|
||||
album: '从相册选择',
|
||||
cancel: '取消',
|
||||
@@ -1288,6 +1291,11 @@ const resources = {
|
||||
selectFailed: '选择失败',
|
||||
selectFailedMessage: '无法打开相册,请稍后再试',
|
||||
},
|
||||
rankingDescription: '连续打卡榜',
|
||||
datePicker: {
|
||||
confirm: '确认',
|
||||
cancel: '取消',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -2165,10 +2173,12 @@ const resources = {
|
||||
sleep: 'Sleep',
|
||||
mood: 'Mood',
|
||||
weight: 'Weight',
|
||||
custom: 'Custom',
|
||||
},
|
||||
fields: {
|
||||
title: 'Title',
|
||||
titlePlaceholder: 'Challenge title (max 100 characters)',
|
||||
challengeTypeHelper: 'Water and Sleep types auto-report progress and can also be manually marked as complete',
|
||||
coverImage: 'Cover Image',
|
||||
uploadCover: 'Upload Cover',
|
||||
challengeDescription: 'Challenge Description',
|
||||
@@ -2243,6 +2253,11 @@ const resources = {
|
||||
selectFailed: 'Selection Failed',
|
||||
selectFailedMessage: 'Unable to open album, please try again later',
|
||||
},
|
||||
rankingDescription: 'Continuous Check-in Leaderboard',
|
||||
datePicker: {
|
||||
confirm: 'Confirm',
|
||||
cancel: 'Cancel',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user