fix: i18n translate tenantName

pull/60/head
mrtse 2025-01-08 22:27:20 +08:00
parent e4240806b7
commit 5b21395ca6
3 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@
"codeLogin": "Code Login",
"qrcodeLogin": "Qr Code Login",
"forgetPassword": "Forget Password",
"tenantname": "Tenant Name",
"tenantName": "Tenant Name",
"username": "Username",
"password": "Password",
"usernameTip": "Please enter username",

View File

@ -5,7 +5,7 @@
"codeLogin": "验证码登录",
"qrcodeLogin": "二维码登录",
"forgetPassword": "忘记密码",
"tenantname": "租户",
"tenantName": "租户",
"username": "账号",
"password": "密码",
"usernameTip": "请输入用户名",

View File

@ -37,13 +37,13 @@ const formSchema = computed((): VbenFormSchema[] => {
{
component: 'VbenInput',
componentProps: {
placeholder: $t('authentication.tenantName'),
placeholder: $t('page.auth.tenantName'),
},
fieldName: 'tenantName',
label: $t('authentication.tenantName'),
label: $t('page.auth.tenantName'),
rules: z
.string()
.min(1, { message: $t('authentication.tenantNameTip') })
.min(1, { message: $t('page.auth.tenantNameTip') })
.default(import.meta.env.VITE_APP_DEFAULT_TENANT_NAME),
dependencies: {
triggerFields: ['tenantName'],
@ -56,7 +56,7 @@ const formSchema = computed((): VbenFormSchema[] => {
{
component: 'VbenInput',
componentProps: {
placeholder: $t('authentication.usernameTip'),
placeholder: $t('authentication.username'),
},
fieldName: 'username',
label: $t('authentication.username'),