mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 04:35:45 +08:00
新增:提示语locale配置
This commit is contained in:
@@ -3,7 +3,7 @@ class Contents::CreateForm < BaseForm
|
|||||||
|
|
||||||
validates :filepath, presence: true
|
validates :filepath, presence: true
|
||||||
|
|
||||||
validates :new_branch, length: { maximum: 50, too_long: "分支名称过长,仅支持%{count}的长度"}
|
validates :new_branch, length: { maximum: 100, too_long: "过长,仅支持%{count}的长度"}
|
||||||
|
|
||||||
validate :check_branch
|
validate :check_branch
|
||||||
|
|
||||||
|
|||||||
5
config/locales/forms/create_file_form.zh-CN.yml
Normal file
5
config/locales/forms/create_file_form.zh-CN.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
'zh-CN':
|
||||||
|
activemodel:
|
||||||
|
attributes:
|
||||||
|
contents/create_form:
|
||||||
|
new_branch: 分支名称
|
||||||
Reference in New Issue
Block a user