refactor(i18n): 扁平化所有国际化语言文件的翻译结构

移除多层嵌套的翻译对象,将所有翻译项直接挂载到顶层lang对象上,统一代码结构
This commit is contained in:
2026-07-03 16:36:28 +08:00
parent e4c9b7fd59
commit a27e3518da
22 changed files with 237 additions and 351 deletions

View File

@@ -1,16 +1,10 @@
export const lang = {
//title为每个页面的标题
title: 'Bill',
// fenxiao/bill.vue page new translation items
fenxiao: {
// Bill
bill: {
// Bill number prefix
billNoPrefix: 'Bill No.:',
// No bill information
noBill: 'No bill information',
// Distribution is not enabled by merchant
addonClosed: 'Distribution is not enabled by merchant',
},
},
}

View File

@@ -3,8 +3,6 @@ export const lang = {
// title: 'Withdrawal Details',
title: '',
// Detail labels
withdrawalDetail: {
currentStatus: 'Current Status',
transactionNo: 'Transaction No.',
serviceFee: 'Service Fee',
@@ -15,5 +13,4 @@ export const lang = {
refuseReason: 'Rejection Reason',
transferTypeName: 'Transfer Method',
transferTime: 'Transfer Time',
},
}

View File

@@ -4,7 +4,6 @@ export const lang = {
captchaPlaceholder: 'Please enter verification code',
next: 'Next',
// Find Password
find: {
// Step titles
step0Title: 'Please enter your phone number',
step1Title: 'Please enter the verification code',
@@ -32,5 +31,4 @@ export const lang = {
complexityLowercase: ', lowercase letters',
complexityUppercase: ', uppercase letters',
complexitySymbol: ', special characters',
}
};

View File

@@ -2,7 +2,6 @@ export const lang = {
// title is the page title
title: 'Bind Mobile',
bindMobile: {
// One-click authorization binding
oneClickAuthBind: 'One-Click Authorization Binding',
// Manual binding
@@ -44,5 +43,4 @@ export const lang = {
bindBenefitTip: 'Enjoy more services after binding your mobile number',
// Send code tip
sendCodeTip: 'Click "Get Dynamic Code" and a verification code will be sent to your mobile number {mobile}',
},
}

View File

@@ -59,9 +59,6 @@ export const lang = {
privacyPolicy: 'Privacy Policy',
registrationAgreement: 'Registration Agreement',
// member/index.vue page new translation items
index: {
// I got it
iKnow: 'Got it',
},
}

View File

@@ -75,19 +75,5 @@ export const lang = {
doNotRepeatedlyClick: "Do not click repeatedly",
pleaseSelectRegion: "Please select region",
pleaseInputDetailAddress: "Please enter detailed address",
member: {
info: {
avatar: 'Avatar',
nickname: 'Nickname',
name: 'Name',
gender: 'Gender',
birthday: 'Birthday',
mobile: 'Mobile',
password: 'Password',
cancellation: 'Cancel Account',
logout: 'Log Out'
}
}
pleaseInputDetailAddress: "Please enter detailed address"
}

View File

@@ -1,11 +1,7 @@
export const lang = {
// member/public member common mixin
member: {
public: {
// Risk warning
riskWarningTitle: 'Risk Warning',
// Confirm account cancellation
cancelAccountConfirm: 'Are you sure you want to cancel the current account?',
},
},
}

View File

@@ -1,17 +1,8 @@
export const lang = {
//title为每个页面的标题
title: 'Check-in Rewards',
signinNotEnabled: 'Merchant has not enabled member check-in',
signinClosed: 'Check-in is not available',
shareDesc: 'Check in daily, earn points and rewards non-stop',
shareTitle: 'Check-in Rewards: Check in daily, earn points and rewards non-stop',
member: {
signin: {
title: 'Check-in Rewards',
signinNotEnabled: 'Merchant has not enabled member check-in',
signinClosed: 'Check-in is not available',
shareDesc: 'Check in daily, earn points and rewards non-stop',
shareTitle: 'Check-in Rewards: Check in daily, earn points and rewards non-stop'
}
}
}

View File

@@ -1,6 +1,4 @@
export const lang = {
pay: {
cashier: {
title: 'Cashier',
// Pay button
confirmPay: 'Confirm Payment',
@@ -16,6 +14,4 @@ export const lang = {
paying: 'Processing payment...',
paymentCancelled: 'Payment cancelled',
paymentFailed: 'Payment failed, reason: {reason}',
}
}
};

View File

@@ -1,6 +1,4 @@
export const lang = {
pay: {
result: {
//title is the page title
title: 'Payment Result',
paymentSuccess: 'Payment Successful',
@@ -21,5 +19,3 @@ export const lang = {
// toast messages
noPayInfo: 'Payment information not found!',
}
}
}

View File

@@ -1,10 +1,4 @@
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,16 +1,10 @@
export const lang = {
//title为每个页面的标题
title: '账单',
// fenxiao/bill.vue 页面新增翻译项
fenxiao: {
// 账单
bill: {
// 账单编号前缀
billNoPrefix: '账单编号:',
// 暂无账单信息
noBill: '暂无账单信息',
// 商家未开启分销
addonClosed: '商家未开启分销',
},
},
}

View File

@@ -3,8 +3,6 @@ export const lang = {
// title: '提现详情',
title: '',
// 详情标签
withdrawalDetail: {
currentStatus: '当前状态',
transactionNo: '交易号',
serviceFee: '手续费',
@@ -15,5 +13,4 @@ export const lang = {
refuseReason: '拒绝理由',
transferTypeName: '转账方式名称',
transferTime: '转账时间',
},
}

View File

@@ -3,8 +3,7 @@ export const lang = {
accountPlaceholder: '请输入手机号',
captchaPlaceholder: '请输入验证码',
next: '下一步',
// 找回密码
find: {
// 步骤标题
step0Title: '请输入手机号',
step1Title: '请输入验证码',
@@ -32,5 +31,4 @@ export const lang = {
complexityLowercase: '、小写字母',
complexityUppercase: '、大写字母',
complexitySymbol: '、特殊字符',
}
};

View File

@@ -2,7 +2,6 @@ export const lang = {
// title为每个页面的标题
title: '绑定手机号',
bindMobile: {
// 一键授权绑定
oneClickAuthBind: '一键授权绑定',
// 手动绑定
@@ -44,5 +43,4 @@ export const lang = {
bindBenefitTip: '绑定手机号后可享受更多服务',
// 发送动态码提示
sendCodeTip: '点击"获取动态码",将会向您的手机号{mobile}发送验证码',
},
}

View File

@@ -62,9 +62,6 @@ export const lang = {
privacyPolicy: '隐私协议',
registrationAgreement: '注册协议',
// member/index.vue 页面新增翻译项
index: {
// 我知道了
iKnow: '我知道了',
},
}

View File

@@ -75,19 +75,5 @@ export const lang = {
doNotRepeatedlyClick: "请勿重复点击",
pleaseSelectRegion: "请选择所在地区",
pleaseInputDetailAddress: "请输入详细地址",
member: {
info: {
avatar: '头像',
nickname: '昵称',
name: '姓名',
gender: '性别',
birthday: '生日',
mobile: '手机号',
password: '密码',
cancellation: '注销账号',
logout: '退出登录'
}
}
pleaseInputDetailAddress: "请输入详细地址"
}

View File

@@ -1,11 +1,7 @@
export const lang = {
// member/public 会员公共 mixin
member: {
public: {
// 风险提示
riskWarningTitle: '风险提示',
// 注销账号确认
cancelAccountConfirm: '确定要注销当前账号吗?',
},
},
}

View File

@@ -1,17 +1,8 @@
export const lang = {
//title为每个页面的标题
title: '签到有礼',
signinNotEnabled: '商家未开启会员签到',
signinClosed: '签到未开启',
shareDesc: '天天签到,积分好礼送不停',
shareTitle: '签到有礼,天天签到,积分好礼送不停',
member: {
signin: {
title: '签到有礼',
signinNotEnabled: '商家未开启会员签到',
signinClosed: '签到未开启',
shareDesc: '天天签到,积分好礼送不停',
shareTitle: '签到有礼,天天签到,积分好礼送不停'
}
}
}

View File

@@ -1,6 +1,4 @@
export const lang = {
pay: {
cashier: {
title: '收银台',
// 支付按钮
confirmPay: '确认支付',
@@ -16,6 +14,4 @@ export const lang = {
paying: '支付中...',
paymentCancelled: '您已取消支付',
paymentFailed: '支付失败,失败原因: {reason}',
}
}
};

View File

@@ -1,6 +1,4 @@
export const lang = {
pay: {
result: {
//title为每个页面的标题
title: '支付结果',
paymentSuccess: '支付成功',
@@ -21,5 +19,3 @@ export const lang = {
// 提示信息
noPayInfo: '未获取到支付信息!',
}
}
}

View File

@@ -1,10 +1,4 @@
export const lang = {
title: '微信支付',
openInBrowserTip: '点击右上角跳转到浏览器打开',
pay: {
wxPay: {
title: '微信支付',
openInBrowserTip: '点击右上角跳转到浏览器打开'
}
}
};