feat: add and optimize multilingual text resources

- add new language packs for multiple pages and components including category, cart, order, member center, distribution, etc.
- add Chinese and English translations for new features and UI text
- fix navigation service error message to use multilingual text
- update component templates to use dynamic language translation instead of hardcoded text
- adjust code indentation and formatting for consistency
This commit is contained in:
2026-06-26 13:49:26 +08:00
parent 66a579d48c
commit f7fb9f34f9
116 changed files with 1640 additions and 525 deletions

View File

@@ -233,14 +233,14 @@ export default {
}
if (cart_id.length == 0) {
this.$util.showToast({
title: '请选择要删除的商品'
title: this.$lang('selectDeleteGoods')
});
return;
}
uni.showModal({
title: '提示',
content: cart_id.length > 1 ? '确定要删除这些商品吗?' : '确定要删除该商品吗?',
title: this.$lang('tip'),
content: cart_id.length > 1 ? this.$lang('confirmDeleteGoods') : this.$lang('confirmDeleteGood'),
success: res => {
if (res.confirm) {
cart_id = cart_id.toString();
@@ -381,8 +381,8 @@ export default {
*/
clearInvalidGoods() {
uni.showModal({
title: '提示',
content: '确定要清空这些商品吗?',
title: this.$lang('tip'),
content: this.$lang('confirmClearInvalid'),
success: res => {
if (res.confirm) {
var cart_ids = [];
@@ -432,11 +432,11 @@ export default {
if (event.type == 'plus') {
if (data.max_buy > 0 && data.max_buy < data.stock) {
this.$util.showToast({
title: '该商品每人限购' + data.max_buy + '件'
title: this.$lang('purchaseLimit', { maxBuy: data.max_buy })
});
} else {
this.$util.showToast({
title: '库存不足'
title: this.$lang('outOfStock')
});
}
} else {