i18n: 替换所有硬编码文本为多语言配置

将项目中各处的硬编码字符串替换为国际化语言包调用,统一管理页面和组件的文案内容,方便后续多语言适配与维护
This commit is contained in:
2026-06-22 17:53:38 +08:00
parent 47098bddda
commit 4715f06b2f
19 changed files with 109 additions and 100 deletions

View File

@@ -142,7 +142,7 @@
// 方案2:使用SDK打开用户资料
this.openUserProfile(contactId);
} else {
this.showError('未配置企业微信客服信息');
this.showError(this.$lang('wxwork.notConfigured'));
}
// #endif
@@ -151,7 +151,7 @@
// H5环境直接跳转
window.location.href = contactUrl;
} else {
this.showError('未配置企业微信客服信息');
this.showError(this.$lang('wxwork.notConfigured'));
}
// #endif
},
@@ -171,7 +171,7 @@
},
fail: (err) => {
console.error('跳转企业微信失败:', err);
this.showError('跳转失败,请检查企业微信配置');
this.showError(this.$lang('wxwork.jumpFailed'));
}
});
},
@@ -181,7 +181,7 @@
*/
openUserProfile(contactId) {
if (!this.wxWorkSDK) {
this.showError('企业微信SDK未初始化');
this.showError(this.$lang('wxwork.sdkNotInit'));
return;
}
@@ -190,7 +190,7 @@
}, (res) => {
}, (err) => {
console.error('打开用户资料失败:', err);
this.showError('打开用户资料失败');
this.showError(this.$lang('wxwork.openProfileFailed'));
});
},