Skip to content

Commit bf1e210

Browse files
authored
fix: fix version key length (#4079)
1 parent ff4ab81 commit bf1e210

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

shell/app/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,6 +1790,7 @@
17901790
"no ip address": "no ip address",
17911791
"no matching data": "no matching data",
17921792
"no more than 30 characters": "no more than 30 characters",
1793+
"no more than 100 characters": "no more than 100 characters",
17931794
"no {name}": "no {name}",
17941795
"node params": "node params",
17951796
"normal view": "normal view",

shell/app/locales/zh.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1790,6 +1790,7 @@
17901790
"no ip address": "暂无ip地址",
17911791
"no matching data": "无匹配数据",
17921792
"no more than 30 characters": "不超过30个字符",
1793+
"no more than 100 characters": "不超过100个字符",
17931794
"no {name}": "暂无{name}",
17941795
"node params": "节点入参",
17951796
"normal view": "正常查看",

shell/app/modules/project/pages/release/components/form.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ const ReleaseForm = ({ readyOnly = false }: { readyOnly?: boolean }) => {
130130
className: 'w-1/2',
131131
rules: [
132132
{ required: true, message: i18n.t('Please enter the {name}', { name: i18n.t('Version').toLowerCase() }) },
133+
{ max: 100, message: i18n.t('dop:no more than 100 characters') },
133134
{
134135
pattern: /^[A-Za-z0-9._+-]+$/,
135136
message: i18n.t('dop:Must be composed of letters, numbers, underscores, hyphens and dots.'),

0 commit comments

Comments
 (0)