@@ -101,7 +101,7 @@ async function handleRegister() {
101101 const confirmPwd = confirmPassword .value .trim ()
102102
103103 if (! name || ! pwd || ! confirmPwd || pwd !== confirmPwd ) {
104- ms .error (' Passwords don\' t match' )
104+ ms .error (' 两次输入的密码不一致 | Passwords don\' t match' )
105105 return
106106 }
107107
@@ -135,23 +135,23 @@ async function handleRegister() {
135135
136136 <!-- Add Tabs -->
137137 <NTabs v-model:value =" activeTab" type =" line" >
138- <NTabPane name =" login" label =" Login " >
139- <NInput v-model:value =" username" type =" text" placeholder =" Email " class =" mb-2" />
140- <NInput v-model:value =" password" type =" password" placeholder =" Password " class =" mb-2" @keypress =" handlePress" />
138+ <NTabPane name =" login" : label =" $t('common.login') " >
139+ <NInput v-model:value =" username" type =" text" : placeholder =" $t('common.email') " class =" mb-2" />
140+ <NInput v-model:value =" password" type =" password" : placeholder =" $t('common.password') " class =" mb-2" @keypress =" handlePress" />
141141
142142 <NButton block type =" primary" :disabled =" disabled" :loading =" loading" @click =" handleLogin" >
143143 {{ $t('common.login') }}
144144 </NButton >
145145 </NTabPane >
146146
147- <NTabPane v-if =" authStore.session && authStore.session.allowRegister" name =" register" label =" Register " >
148- <NInput v-model:value =" username" type =" text" placeholder =" Email " class =" mb-2" />
149- <NInput v-model:value =" password" type =" password" placeholder =" Password " class =" mb-2" @input =" handlePasswordInput" />
147+ <NTabPane v-if =" authStore.session && authStore.session.allowRegister" name =" register" : label =" $t('common.register') " >
148+ <NInput v-model:value =" username" type =" text" : placeholder =" $t('common.email') " class =" mb-2" />
149+ <NInput v-model:value =" password" type =" password" : placeholder =" $t('common.password') " class =" mb-2" @input =" handlePasswordInput" />
150150 <NInput
151151 v-if =" showConfirmPassword"
152152 v-model:value =" confirmPassword"
153153 type =" password"
154- placeholder =" Confirm Password "
154+ : placeholder =" $t('common.passwordConfirm') "
155155 class =" mb-4"
156156 :status =" confirmPasswordStatus"
157157 />
0 commit comments