Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add feed booster achievement with localization #1561

Merged
merged 2 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ enum AchievementsActionIdMap {
// TODO
// FOLLOW_SPECIAL_FEED = 6,
ALPHA_TESTER = 7,
FEED_BOOSTER = 8,
}

const achievementActionIdCopyMap: Record<
Expand Down Expand Up @@ -71,6 +72,10 @@ const achievementActionIdCopyMap: Record<
title: "achievement.alpha_tester",
description: "achievement.alpha_tester_description",
},
[AchievementsActionIdMap.FEED_BOOSTER]: {
title: "achievement.feed_booster",
description: "achievement.feed_booster_description",
},
}

type Achievement = ExtractBizResponse<typeof apiClient.achievement.$get>["data"]
Expand Down
2 changes: 1 addition & 1 deletion apps/renderer/src/modules/boost/level-benefits.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const benefits = [
text: "Unique boost badge for feed",
},
{ icon: "i-mgc-star-cute-re", text: "Support feed owner" },
{ icon: "i-mgc-trophy-cute-re", text: "Booster achievement", comingSoon: true },
{ icon: "i-mgc-trophy-cute-re", text: "Booster achievement" },
{ icon: "i-mgc-rocket-cute-re", text: "Faster feed refresh time", comingSoon: true },
],
},
Expand Down
2 changes: 2 additions & 0 deletions locales/app/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"achievement.alpha_tester": "Alpha Tester",
"achievement.alpha_tester_description": "You are an alpha tester of Follow",
"achievement.description": "Be a hardcore player and mint NFTs.",
"achievement.feed_booster": "Feed Booster",
"achievement.feed_booster_description": "You boosted the feed on Follow",
"achievement.first_claim_feed": "Feed Owner",
"achievement.first_claim_feed_description": "You own your feed on Follow",
"achievement.first_create_list": "List Creator",
Expand Down
2 changes: 2 additions & 0 deletions locales/app/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"achievement.alpha_tester": "Alpha 内测用户",
"achievement.alpha_tester_description": "早期 Follow Alpha 版本的内测用户",
"achievement.description": "成为硬核玩家,赚取 NFT。",
"achievement.feed_booster": "订阅源助力者",
"achievement.feed_booster_description": "在 Follow 上助力订阅源",
"achievement.first_claim_feed": "订阅源所有者",
"achievement.first_claim_feed_description": "在 Follow 上认证订阅源",
"achievement.first_create_list": "列表创作者",
Expand Down
Loading