Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix update username popup locale issue #911

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/components/popup/UpdateUsername.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<span class="text-red-400">*</span>
</p>
<el-form-item prop="username">
<el-input v-model="formData.username" :rows="6" placeholder="请输入用户名" />
<el-input v-model="formData.username" :rows="6" :placeholder="$t('profile.edit.internalUsernamePlaceholder')" />
</el-form-item>
<p class="text-gray-500 text-xs italic mt-[24px]">
{{ $t('rule.nameRule') }}
Expand Down Expand Up @@ -66,7 +66,7 @@
{
required: true,
message: t('all.pleaseInput', {
value: t('models.newModel.modelName')
value: t('profile.edit.internalUsername')
}),
trigger: 'blur'
},
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/en_js/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ export const profile = {
updateUsername: "First Login Update Internal Username",
username: "Username",
internalUsername: "Internal Username",
internalUsernamePlaceholder: "internal username"
},
}
1 change: 1 addition & 0 deletions frontend/src/locales/zh_js/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ export const profile = {
updateUsername: "首次登录更新内部用户名",
username: "用户名",
internalUsername: "内部用户名",
internalUsernamePlaceholder: "内部用户名"
},
}
Loading