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

@@ -93,9 +93,8 @@ export default {
var startHours = format[0].split(':');
var endHours = format[1].split(':');
let timeData = obj.month.split('月');
let month = timeData[0];
let date = timeData[1].split('日')[0];
let month = obj.monthNum;
let date = obj.dateNum;
// 开始时间戳
dateTime.setHours(startHours[0],startHours[1],0,0);
@@ -180,7 +179,9 @@ export default {
objects = {
title: this.obj.dataTime.advance_day == 0 ? this.$lang('components.nsSelectTime.today') : '',
type: 'special',
month: nowMonth + '月' + nowDate + '日',
month: this.$lang('components.nsSelectTime.monthDayFormat', { month: nowMonth, date: nowDate }),
monthNum: nowMonth,
dateNum: nowDate,
Day: '(' + dayStr + ')'
};
this.dayData.push(objects); //左侧日期数据处理
@@ -191,7 +192,9 @@ export default {
if (i == 0 || i == 1) {
objects = {
title: this.obj.dataTime.advance_day == 0 ? this.$lang('components.nsSelectTime.tomorrow') : '',
month: nowMonth + '月' + nowDate + '日',
month: this.$lang('components.nsSelectTime.monthDayFormat', { month: nowMonth, date: nowDate }),
monthNum: nowMonth,
dateNum: nowDate,
Day: '(' + dayStr + ')'
};
this.dayData.push(objects); //左侧日期数据处理
@@ -200,7 +203,9 @@ export default {
default:
objects = {
title: '',
month: nowMonth + '月' + nowDate + '日',
month: this.$lang('components.nsSelectTime.monthDayFormat', { month: nowMonth, date: nowDate }),
monthNum: nowMonth,
dateNum: nowDate,
Day: '(' + dayStr + ')'
};
this.dayData.push(objects); //左侧日期数据处理