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,25 +1,21 @@
export const lang = {
pay: {
result: {
//title为每个页面的标题
title: '支付结果',
paymentSuccess: '支付成功',
paymentFail: '支付失败',
goHome: '回到首页',
memberCenter: '会员中心',
payMoney: '支付金额',
unit: '元',
// 消费奖励
congratulations: '恭喜您获得',
points: '积分',
growthValue: '成长值',
couponsCount: '{count}张优惠券',
// 操作按钮
rechargeRecords: '充值记录',
memberCard: '会员卡',
viewOrder: '查看订单',
// 提示信息
noPayInfo: '未获取到支付信息!',
}
}
//title为每个页面的标题
title: '支付结果',
paymentSuccess: '支付成功',
paymentFail: '支付失败',
goHome: '回到首页',
memberCenter: '会员中心',
payMoney: '支付金额',
unit: '元',
// 消费奖励
congratulations: '恭喜您获得',
points: '积分',
growthValue: '成长值',
couponsCount: '{count}张优惠券',
// 操作按钮
rechargeRecords: '充值记录',
memberCard: '会员卡',
viewOrder: '查看订单',
// 提示信息
noPayInfo: '未获取到支付信息!',
}