feat: 新增多语言配置并优化语言加载逻辑

1. 新增多个页面的中英文多语言词条,包括会员卡协议、积分商品、收银台等
2. 新增退款商品选择、微信支付、电子名片等页面的语言包
3. 优化lang.js语言加载逻辑,支持蛇形命名转换和多路径匹配,完善$lang调用兼容处理
This commit is contained in:
2026-06-27 09:07:51 +08:00
parent 84f5cd4568
commit bf4fe97aa3
29 changed files with 245 additions and 8 deletions

View File

@@ -1,11 +1,27 @@
export const lang = {
title: 'Business Card',
// Section titles
enterpriseFiles: 'Enterprise Files',
enterpriseVideos: 'Enterprise Videos',
onlineMessage: 'Online Message',
exclusiveCustomerService: 'Exclusive Customer Service',
// Share
contactUs: 'Contact Us',
share: 'Share',
call: 'Call',
copy: 'Copy',
oneClickNavigation: 'Navigation',
// Message form
name: 'Name',
pleaseEnterName: 'Please enter your name',
contactInfo: 'Contact Info',
pleaseEnterMobile: 'Please enter your mobile number',
messageContent: 'Message',
pleaseEnterMessage: 'Please enter your message',
submit: 'Submit',
// Toast messages
videoUrlNotExist: 'Video URL does not exist',
@@ -14,5 +30,7 @@ export const lang = {
pleaseFillMessage: 'Please fill in the message content',
submitSuccess: 'Submitted successfully',
submitFailed: 'Submission failed, please try again',
copySuccess: 'Copied successfully',
copyFailed: 'Copy failed',
}

View File

@@ -0,0 +1,3 @@
export const lang = {
title: ''
};

View File

@@ -3,6 +3,7 @@ export const lang = {
// Form page - formdata
form: {
formdata: {
title: 'Form Details',
// Empty state messages
submitSuccess: 'Submitted successfully',
noFormInfo: 'Form information not available',

3
lang/en-us/index/diy.js Normal file
View File

@@ -0,0 +1,3 @@
export const lang = {
title: ''
};

View File

@@ -1,4 +1,8 @@
export const lang = {
title: 'Find Password',
accountPlaceholder: 'Please enter mobile number',
captchaPlaceholder: 'Please enter verification code',
next: 'Next',
// Find Password
find: {
// Step titles

View File

@@ -0,0 +1,3 @@
export const lang = {
title: 'Member Card Agreement'
};

View File

@@ -36,4 +36,9 @@ export const lang = {
reset: 'Reset',
confirm: 'Confirm',
},
modal: {
title: 'Tip',
merchantNotExist: 'Merchant does not exist',
},
}

View File

@@ -0,0 +1,7 @@
export const lang = {
title: 'Select Refund Items',
totalItems: '{count} items total',
next: 'Next',
selectGoods: 'Please select goods',
orderInfoNotFound: 'Order information not found'
};

View File

@@ -1,6 +1,7 @@
export const lang = {
pay: {
cashier: {
title: 'Cashier',
// Pay button
confirmPay: 'Confirm Payment',
// Empty states

10
lang/en-us/pay/wx_pay.js Normal file
View File

@@ -0,0 +1,10 @@
export const lang = {
title: 'WeChat Pay',
openInBrowserTip: 'Tap the top-right menu and open in browser',
pay: {
wxPay: {
title: 'WeChat Pay',
openInBrowserTip: 'Tap the top-right menu and open in browser'
}
}
};

View File

@@ -1,4 +1,6 @@
export const lang = {
title: 'Point Products',
// Search
searchPlaceholder: 'Please enter product keywords',

View File

@@ -4,6 +4,7 @@ export const lang = {
seal: {
medium: {
search: {
title: 'Medium Material Search',
// Search input placeholder
placeholder: 'Enter keywords to search',
// Search results title

View File

@@ -0,0 +1,3 @@
export const lang = {
title: ''
};