From 0d7ee98460fdf563b7abc467eadb0adb9fb038a8 Mon Sep 17 00:00:00 2001 From: karthikeyareddy183 Date: Thu, 4 Sep 2025 17:02:54 +0530 Subject: [PATCH] translated to english --- .../src/components/ChangePasswordDialog.vue | 32 +++++++-------- .../src/components/EditVoiceDialog.vue | 32 +++++++-------- main/manager-web/src/components/HeaderBar.vue | 14 +++---- .../src/components/ManualAddDeviceDialog.vue | 2 +- main/manager-web/src/components/TtsModel.vue | 40 +++++++++---------- .../src/components/ViewPasswordDialog.vue | 10 ++--- 6 files changed, 65 insertions(+), 65 deletions(-) diff --git a/main/manager-web/src/components/ChangePasswordDialog.vue b/main/manager-web/src/components/ChangePasswordDialog.vue index f960c908e..e4f85dd83 100644 --- a/main/manager-web/src/components/ChangePasswordDialog.vue +++ b/main/manager-web/src/components/ChangePasswordDialog.vue @@ -14,32 +14,32 @@
*
- 旧密码: + Old Password:
- +
*
- 新密码: + New Password:
- +
*
- 确认新密码: + Confirm Password:
- +
- 确定 + Confirm
- 取消 + Cancel
@@ -75,26 +75,26 @@ export default { } }, methods: { - ...mapActions(['logout']), // 引入Vuex的logout action + ...mapActions(['logout']), // Import Vuex logout action confirm() { if (!this.oldPassword.trim() || !this.newPassword.trim() || !this.confirmNewPassword.trim()) { - this.$message.error('请填写所有字段'); + this.$message.error('Please fill in all fields'); return; } if (this.newPassword !== this.confirmNewPassword) { - this.$message.error('两次输入的新密码不一致'); + this.$message.error('New passwords do not match'); return; } if (this.newPassword === this.oldPassword) { - this.$message.error('新密码不能与旧密码相同'); + this.$message.error('New password cannot be the same as old password'); return; } - // 修改后的接口调用 + // API call for password change userApi.changePassword(this.oldPassword, this.newPassword, (res) => { if (res.data.code === 0) { this.$message.success({ - message: '密码修改成功,请重新登录', + message: 'Password changed successfully, please login again', showClose: true }); this.logout().then(() => { @@ -102,10 +102,10 @@ export default { this.$emit('update:visible', false); }); } else { - this.$message.error(res.data.msg || '密码修改失败'); + this.$message.error(res.data.msg || 'Password change failed'); } }, (err) => { - this.$message.error(err.msg || '密码修改失败'); + this.$message.error(err.msg || 'Password change failed'); }); this.$emit('input', false); }, diff --git a/main/manager-web/src/components/EditVoiceDialog.vue b/main/manager-web/src/components/EditVoiceDialog.vue index b7feb78d0..b805d22de 100644 --- a/main/manager-web/src/components/EditVoiceDialog.vue +++ b/main/manager-web/src/components/EditVoiceDialog.vue @@ -3,31 +3,31 @@ - - + + - - + + - - + + - + - - +
@@ -38,14 +38,14 @@ class="custom-audio" >
- 生成试听 + Generate Preview
@@ -59,8 +59,8 @@ export default { type: Object, default: () => ({ voiceCode: 'wawaxiaohe', - voiceName: '湾湾小何', - languageType: '中文', + voiceName: 'Wanwan Xiaohe', + languageType: 'Chinese', sortNumber: 123 }) } @@ -72,8 +72,8 @@ export default { audioUrl: 'http://music.163.com/song/media/outer/url?id=447925558.mp3', generatedAudio: null, rules: { - voiceCode: [{ required: true, message: '请输入音色编码', trigger: 'blur' }], - voiceName: [{ required: true, message: '请输入音色名称', trigger: 'blur' }] + voiceCode: [{ required: true, message: 'Please enter voice code', trigger: 'blur' }], + voiceName: [{ required: true, message: 'Please enter voice name', trigger: 'blur' }] } } }, diff --git a/main/manager-web/src/components/HeaderBar.vue b/main/manager-web/src/components/HeaderBar.vue index 9683e02d3..cc3efdc7e 100644 --- a/main/manager-web/src/components/HeaderBar.vue +++ b/main/manager-web/src/components/HeaderBar.vue @@ -1,13 +1,13 @@ @@ -90,14 +90,14 @@