chore: improve the check time of variable name (#7569)

This commit is contained in:
Joel
2024-08-23 14:30:26 +08:00
committed by GitHub
parent 0a7ab9a47d
commit 399d7cd596
18 changed files with 105 additions and 104 deletions

View File

@@ -290,11 +290,11 @@ const translation = {
typeSelect: 'Select',
},
varKeyError: {
canNoBeEmpty: 'Variable key can not be empty',
tooLong: 'Variable key: {{key}} too length. Can not be longer then 30 characters',
notValid: 'Variable key: {{key}} is invalid. Can only contain letters, numbers, and underscores',
notStartWithNumber: 'Variable key: {{key}} can not start with a number',
keyAlreadyExists: 'Variable key: :{{key}} already exists',
canNoBeEmpty: '{{key}} is required',
tooLong: '{{key}} is too length. Can not be longer then 30 characters',
notValid: '{{key}} is invalid. Can only contain letters, numbers, and underscores',
notStartWithNumber: '{{key}} can not start with a number',
keyAlreadyExists: '{{key}} already exists',
},
otherError: {
promptNoBeEmpty: 'Prompt can not be empty',
@@ -323,7 +323,6 @@ const translation = {
'content': 'Content',
'required': 'Required',
'errorMsg': {
varNameRequired: 'Variable name is required',
labelNameRequired: 'Label name is required',
varNameCanBeRepeat: 'Variable name can not be repeated',
atLeastOneOption: 'At least one option is required',