feat:新增多语言
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user