i18n: replace hardcoded strings with language translations
批量将项目中多处硬编码的文本替换为多语言翻译条目,统一项目文案管理,提升多语言适配效率,包括导航提示、操作反馈、空状态提示、表单占位符等各类文本内容。
This commit is contained in:
@@ -38,13 +38,13 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
textVal() {
|
||||
return '该店铺已打烊...';
|
||||
return this.$lang('storeclose.storeClosed');
|
||||
},
|
||||
pageVal() {
|
||||
if (this.$store.state.siteState == -2) {
|
||||
return '店铺不存在';
|
||||
return this.$lang('storeclose.storeNotExist');
|
||||
} else if (this.$store.state.siteState == -3) {
|
||||
return '店铺打烊';
|
||||
return this.$lang('storeclose.storeClosed');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user