feat: 新增多语言配置并优化语言加载逻辑
1. 新增多个页面的中英文多语言词条,包括会员卡协议、积分商品、收银台等 2. 新增退款商品选择、微信支付、电子名片等页面的语言包 3. 优化lang.js语言加载逻辑,支持蛇形命名转换和多路径匹配,完善$lang调用兼容处理
This commit is contained in:
@@ -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',
|
||||
|
||||
}
|
||||
|
||||
3
lang/en-us/empty/index.js
Normal file
3
lang/en-us/empty/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export const lang = {
|
||||
title: ''
|
||||
};
|
||||
@@ -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
3
lang/en-us/index/diy.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export const lang = {
|
||||
title: ''
|
||||
};
|
||||
@@ -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
|
||||
|
||||
3
lang/en-us/member/card_agreement.js
Normal file
3
lang/en-us/member/card_agreement.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export const lang = {
|
||||
title: 'Member Card Agreement'
|
||||
};
|
||||
@@ -36,4 +36,9 @@ export const lang = {
|
||||
reset: 'Reset',
|
||||
confirm: 'Confirm',
|
||||
},
|
||||
|
||||
modal: {
|
||||
title: 'Tip',
|
||||
merchantNotExist: 'Merchant does not exist',
|
||||
},
|
||||
}
|
||||
|
||||
7
lang/en-us/order/refund_goods_select.js
Normal file
7
lang/en-us/order/refund_goods_select.js
Normal 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'
|
||||
};
|
||||
@@ -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
10
lang/en-us/pay/wx_pay.js
Normal 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'
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -1,4 +1,6 @@
|
||||
export const lang = {
|
||||
title: 'Point Products',
|
||||
|
||||
// Search
|
||||
searchPlaceholder: 'Please enter product keywords',
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
3
lang/en-us/webview/webview.js
Normal file
3
lang/en-us/webview/webview.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export const lang = {
|
||||
title: ''
|
||||
};
|
||||
Reference in New Issue
Block a user