feat: add multi-language page configs and fix i18n issues

1. 新增多套多语言页面翻译文件,覆盖文件列表、案例展示、商户相关、印章相关、分销、小程序发货等页面
2. 修复语言包拼写错误:loginTpis → loginTips
3. 重构语言包合并逻辑,使用深度合并替代浅合并避免子key丢失
4. 优化导航栏标题设置,统一使用$langConfig.title替代硬编码标题
5. 修复底部导航栏语言切换不响应的问题,改为响应式获取当前语言
6. 完善英文通用语言包,补充订单、购物车、会员相关翻译
7. 修复商品详情页默认标题为空的问题,设置为"商品详情"
This commit is contained in:
2026-06-25 14:52:39 +08:00
parent cc7125361f
commit 5d3663786c
51 changed files with 581 additions and 63 deletions

View File

@@ -0,0 +1,4 @@
export const lang = {
//title为每个页面的标题
title: 'Agreement',
}

View File

@@ -34,7 +34,10 @@ export const lang = {
copySuccess: 'Copied',
copySelected: 'Copied selected content',
copyFail: 'Copy failed',
copyFailWithReason: 'Copy failed: {reason}',
openingFile: 'Opening file...',
openingFileName: 'Opening file: {name}',
openingFileTitle: 'Opening: {title}',
fileOpenFail: 'Failed to open file',
loadHistoryFail: 'Failed to load history',
about: '0B',
@@ -64,6 +67,7 @@ export const lang = {
improveService: 'We will improve our service',
openLink: 'Open Link',
confirmOpenLink: 'Are you sure you want to open this link: ',
confirmOpenLinkText: 'Are you sure you want to open this link: {url}?',
operationFailed: 'Operation failed, please try again',
prompt: 'Prompt',
serviceTypeNotSupported: 'Current service type does not support this page',

View File

@@ -0,0 +1,4 @@
export const lang = {
//title为每个页面的标题
title: 'Case Studies',
}

View File

@@ -34,4 +34,34 @@ export const lang = {
loginTips: 'Click to login and enjoy more exciting information',
toLogin: 'Go to login',
toGoodsCategoryPage: 'Go shopping',
// 订单状态
waitpay: 'Pending Payment',
waitsend: 'Pending Shipment',
waitconfirm: 'Pending Receipt',
activist: 'After-sales',
completed: 'Completed',
// 购买/购物车
buy: 'Buy',
buyNow: 'Buy Now',
addToCart: 'Add to Cart',
addToCartSuccess: 'Added to Cart',
addToCartFail: 'Failed to Add to Cart',
addToCartFailMax: 'Maximum purchase quantity reached',
addToCartFailMin: 'Minimum purchase quantity not met',
addToCartFailStock: 'Insufficient Stock',
// 咨询
consult: 'Consult Now',
consultSuccess: 'Consultation Successful',
consultFail: 'Consultation Failed',
// 会员相关
privacyPolicy: 'Privacy Policy',
registrationAgreement: 'Registration Agreement',
cancellation: 'Account Cancellation',
logout: 'Log Out',
logoutTitle: 'Tip',
logoutContent: 'Are you sure you want to log out?',
}

View File

@@ -0,0 +1,4 @@
export const lang = {
//title为每个页面的标题
title: 'Distributors',
}

View File

@@ -0,0 +1,4 @@
export const lang = {
//title为每个页面的标题
title: 'Ranking',
}

View File

@@ -0,0 +1,4 @@
export const lang = {
//title为每个页面的标题
title: 'File Preview',
}

4
lang/en-us/files/list.js Normal file
View File

@@ -0,0 +1,4 @@
export const lang = {
//title为每个页面的标题
title: 'View Files',
}

View File

@@ -2,5 +2,6 @@ export const lang = {
//title为每个页面的标题
title: 'Goods Category',
search: 'Search',
seeMore : 'See More'
seeMore : 'See More',
Make: 'Consult Now'
}

View File

@@ -9,6 +9,7 @@ export const lang = {
leave:'leave a message',
make:'make an appointment',
makebtn:'make',
commissiontext: 'Commission',
sales:'sales',
stock:'stock',

View File

@@ -1,6 +1,7 @@
export const lang = {
//title为每个页面的标题
title: 'Edit Account',
addTitle: 'Add Account',
name: 'Name',
namePlaceholder: 'Please enter real name',
mobilePhone: 'Mobile Number',

View File

@@ -1,6 +1,7 @@
export const lang = {
//title为每个页面的标题
title: 'Edit Shipping Address',
addTitle: 'Add Shipping Address',
consignee: 'Name',
consigneePlaceholder: 'Consignee Name',
mobile: 'Mobile',

View File

@@ -2,7 +2,7 @@ export const lang = {
//title为每个页面的标题
title: 'Member Center',
login: 'Login',
loginTpis: 'Login experience',
loginTips: 'Login experience',
memberLevel: 'Member Level',
moreAuthority: 'More Privileges',
allOrders: 'All Orders',
@@ -11,6 +11,7 @@ export const lang = {
readyDelivery: 'Pending Shipment',
waitDelivery: 'Pending Receipt',
refunding: 'Refunding',
getDynacode: 'Get Verification Code',
// 会员中心入口
sign: 'Check-in',
personInfo: 'Personal Information',

View File

@@ -0,0 +1,4 @@
export const lang = {
//title为每个页面的标题
title: 'Merchant Home',
}

5
lang/en-us/merch/edit.js Normal file
View File

@@ -0,0 +1,5 @@
export const lang = {
//title为每个页面的标题
title: 'Edit Product',
addTitle: 'Add Product',
}

View File

@@ -0,0 +1,4 @@
export const lang = {
//title为每个页面的标题
title: 'Merchants',
}

View File

@@ -0,0 +1,4 @@
export const lang = {
//title为每个页面的标题
title: 'Search Results',
}

View File

@@ -0,0 +1,4 @@
export const lang = {
//title为每个页面的标题
title: 'Material Search',
}

View File

@@ -0,0 +1,4 @@
export const lang = {
//title为每个页面的标题
title: 'Structure Selection',
}

View File

@@ -0,0 +1,4 @@
export const lang = {
//title为每个页面的标题
title: 'Mini Program Shipping',
}