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", "codeLogin": "Code Login",
"qrcodeLogin": "Qr Code Login", "qrcodeLogin": "Qr Code Login",
"forgetPassword": "Forget Password", "forgetPassword": "Forget Password",
"tenantname": "Tenant Name", "tenantName": "Tenant Name",
"username": "Username", "username": "Username",
"password": "Password", "password": "Password",
"usernameTip": "Please enter username", "usernameTip": "Please enter username",

View File

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

View File

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