feat:新增多语言

This commit is contained in:
JiaJun
2026-04-14 17:27:52 +08:00
parent 8fcf0355b3
commit b2c7c8d362
31 changed files with 1952 additions and 378 deletions

View File

@@ -8,25 +8,25 @@ import {
import type {goodsType} from '@/types/business.type.ts'
export type GoodCategoryMeta = {
name: string
ctaLabel: string
nameKey: string
ctaLabelKey: string
icon: LucideIcon
}
export const HOME_CATEGORY_META_MAP: Record<goodsType, GoodCategoryMeta> = {
WITHDRAW: {
name: 'Transfer to Platform',
ctaLabel: 'Transfer Now',
nameKey: 'goods.categories.WITHDRAW',
ctaLabelKey: 'goods.actions.WITHDRAW',
icon: ArrowRightLeft,
},
BONUS: {
name: 'Game Bonus',
ctaLabel: 'Redeem Bonus',
nameKey: 'goods.categories.BONUS',
ctaLabelKey: 'goods.actions.BONUS',
icon: Sparkles,
},
PHYSICAL: {
name: 'Physical Prizes',
ctaLabel: 'Claim Prize',
nameKey: 'goods.categories.PHYSICAL',
ctaLabelKey: 'goods.actions.PHYSICAL',
icon: Gift,
},
}