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:
4
lang/en-us/agreement/contenr.js
Normal file
4
lang/en-us/agreement/contenr.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Agreement',
|
||||
}
|
||||
@@ -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',
|
||||
|
||||
4
lang/en-us/cases/index.js
Normal file
4
lang/en-us/cases/index.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Case Studies',
|
||||
}
|
||||
@@ -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?',
|
||||
}
|
||||
4
lang/en-us/fenxiao/child_fenxiao.js
Normal file
4
lang/en-us/fenxiao/child_fenxiao.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Distributors',
|
||||
}
|
||||
4
lang/en-us/fenxiao/ranking_list.js
Normal file
4
lang/en-us/fenxiao/ranking_list.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Ranking',
|
||||
}
|
||||
4
lang/en-us/file-preview/file-preview.js
Normal file
4
lang/en-us/file-preview/file-preview.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'File Preview',
|
||||
}
|
||||
4
lang/en-us/files/list.js
Normal file
4
lang/en-us/files/list.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'View Files',
|
||||
}
|
||||
@@ -2,5 +2,6 @@ export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Goods Category',
|
||||
search: 'Search',
|
||||
seeMore : 'See More'
|
||||
seeMore : 'See More',
|
||||
Make: 'Consult Now'
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ export const lang = {
|
||||
leave:'leave a message',
|
||||
make:'make an appointment',
|
||||
makebtn:'make',
|
||||
commissiontext: 'Commission',
|
||||
|
||||
sales:'sales',
|
||||
stock:'stock',
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Edit Account',
|
||||
addTitle: 'Add Account',
|
||||
name: 'Name',
|
||||
namePlaceholder: 'Please enter real name',
|
||||
mobilePhone: 'Mobile Number',
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Edit Shipping Address',
|
||||
addTitle: 'Add Shipping Address',
|
||||
consignee: 'Name',
|
||||
consigneePlaceholder: 'Consignee Name',
|
||||
mobile: 'Mobile',
|
||||
|
||||
@@ -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',
|
||||
|
||||
4
lang/en-us/merch/detail.js
Normal file
4
lang/en-us/merch/detail.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Merchant Home',
|
||||
}
|
||||
5
lang/en-us/merch/edit.js
Normal file
5
lang/en-us/merch/edit.js
Normal file
@@ -0,0 +1,5 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Edit Product',
|
||||
addTitle: 'Add Product',
|
||||
}
|
||||
4
lang/en-us/merch/merchcategory.js
Normal file
4
lang/en-us/merch/merchcategory.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Merchants',
|
||||
}
|
||||
4
lang/en-us/seal/medium/detail.js
Normal file
4
lang/en-us/seal/medium/detail.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Search Results',
|
||||
}
|
||||
4
lang/en-us/seal/medium/search.js
Normal file
4
lang/en-us/seal/medium/search.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Material Search',
|
||||
}
|
||||
4
lang/en-us/seal/structure.js
Normal file
4
lang/en-us/seal/structure.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Structure Selection',
|
||||
}
|
||||
4
lang/en-us/weapp/order_shipping.js
Normal file
4
lang/en-us/weapp/order_shipping.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export const lang = {
|
||||
//title为每个页面的标题
|
||||
title: 'Mini Program Shipping',
|
||||
}
|
||||
Reference in New Issue
Block a user