ownerVotingLang.js
5.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
export const messages = {
en: {
ownerVoting: {
search: {
title: 'Search Conditions',
qaId: 'Please enter voting ID',
qaName: 'Please enter voting name'
},
list: {
title: 'Voting Information'
},
table: {
qaName: 'Voting Name',
validity: 'Validity Period',
type: 'Type',
options: 'Options',
voteCount: 'Total Votes/Voted',
state: 'Status',
createTime: 'Create Time',
operation: 'Operation',
peopleChose: ' people chose'
},
type: {
single: 'Single Choice',
multiple: 'Multiple Choice'
},
state: {
published: 'Published',
unpublished: 'Unpublished'
},
operation: {
result: 'Result',
publish: 'Publish'
},
add: {
title: 'Add Voting',
success: 'Add voting successfully',
error: 'Failed to add voting'
},
edit: {
title: 'Edit Voting',
noId: 'No voting ID provided',
fetchError: 'Failed to get voting details'
},
delete: {
title: 'Delete Voting',
confirm: 'Are you sure to delete this voting?',
success: 'Delete voting successfully',
error: 'Failed to delete voting'
},
deleteQuestionAnswer: {
title: 'Delete Questionnaire',
confirm: 'Are you sure to delete this questionnaire?',
success: 'Delete questionnaire successfully',
error: 'Failed to delete questionnaire'
},
publish: {
title: 'Publish Voting',
name: 'Name',
tip: 'Tips',
tipContent: 'After publishing, it cannot be modified again. Please confirm before publishing!',
notifyWay: 'Notification Method',
notifyWayPlaceholder: 'Required, please select notification method',
sms: 'SMS',
wechat: 'WeChat Message',
noNotify: 'No Notification',
notifyWayRequired: 'Notification method is required',
publishBtn: 'Publish',
success: 'Publish successfully',
error: 'Failed to publish'
},
form: {
qaName: 'Voting Name',
qaNamePlaceholder: 'Please enter voting name',
type: 'Type',
typePlaceholder: 'Please select type',
startTime: 'Start Time',
startTimePlaceholder: 'Please select start time',
endTime: 'End Time',
endTimePlaceholder: 'Please select end time',
options: 'Options',
optionPlaceholder: 'Option {num}',
addOption: 'Add Option'
},
validate: {
qaName: 'Voting name is required',
type: 'Type is required',
startTime: 'Start time is required',
endTime: 'End time is required',
endTimeAfterStart: 'End time must be after start time',
atLeastOneOption: 'At least one option is required',
optionNotEmpty: 'Option cannot be empty'
},
fetchError: 'Failed to get voting list'
}
},
zh: {
ownerVoting: {
search: {
title: '查询条件',
qaId: '请输入投票ID',
qaName: '请输入投票名称'
},
list: {
title: '投票信息'
},
table: {
qaName: '投票名称',
validity: '有效期',
type: '类型',
options: '选项',
voteCount: '总投票/已投票',
state: '状态',
createTime: '创建时间',
operation: '操作',
peopleChose: '人选择'
},
type: {
single: '单选',
multiple: '多选'
},
state: {
published: '已发布',
unpublished: '待发布'
},
operation: {
result: '结果',
publish: '发布'
},
add: {
title: '添加投票',
success: '添加投票成功',
error: '添加投票失败'
},
edit: {
title: '编辑投票',
noId: '未提供投票ID',
fetchError: '获取投票详情失败'
},
delete: {
title: '删除投票',
confirm: '确定删除该投票吗?',
success: '删除投票成功',
error: '删除投票失败'
},
deleteQuestionAnswer: {
title: '删除问卷',
confirm: '确定删除该问卷吗?',
success: '删除问卷成功',
error: '删除问卷失败'
},
publish: {
title: '发布投票',
name: '名称',
tip: '温馨提示',
tipContent: '发布后将无法再次修改,请确认无误后再发布!',
notifyWay: '通知方式',
notifyWayPlaceholder: '必填,请选择通知方式',
sms: '短信',
wechat: '微信消息',
noNotify: '不通知',
notifyWayRequired: '通知方式不能为空',
publishBtn: '发布',
success: '发布成功',
error: '发布失败'
},
form: {
qaName: '投票名称',
qaNamePlaceholder: '请输入投票名称',
type: '类型',
typePlaceholder: '请选择类型',
startTime: '开始时间',
startTimePlaceholder: '请选择开始时间',
endTime: '结束时间',
endTimePlaceholder: '请选择结束时间',
options: '选项',
optionPlaceholder: '选项{num}',
addOption: '添加选项'
},
validate: {
qaName: '投票名称不能为空',
type: '类型不能为空',
startTime: '开始时间不能为空',
endTime: '结束时间不能为空',
endTimeAfterStart: '结束时间必须晚于开始时间',
atLeastOneOption: '至少需要一个选项',
optionNotEmpty: '选项不能为空'
},
fetchError: '获取投票列表失败'
}
}
}