From 1ed7db04fe9372ed6ec92b15d352a6cd8dcfe0ff Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 18 Oct 2024 02:27:56 +0800 Subject: [PATCH] feat: trans --- .../modules/power/my-wallet-section/index.tsx | 48 +++++++++++-------- locales/settings/en.json | 4 +- 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/apps/renderer/src/modules/power/my-wallet-section/index.tsx b/apps/renderer/src/modules/power/my-wallet-section/index.tsx index 0bca24371..159d7545d 100644 --- a/apps/renderer/src/modules/power/my-wallet-section/index.tsx +++ b/apps/renderer/src/modules/power/my-wallet-section/index.tsx @@ -3,9 +3,9 @@ import { Trans, useTranslation } from "react-i18next" import { Button } from "~/components/ui/button" import { CopyButton } from "~/components/ui/code-highlighter" +import { Divider } from "~/components/ui/divider" import { LoadingWithIcon } from "~/components/ui/loading" import { Tooltip, TooltipContent, TooltipPortal, TooltipTrigger } from "~/components/ui/tooltip" -import { DAILY_CLAIM_AMOUNT } from "~/constants" import { apiClient } from "~/lib/api-fetch" import { cn } from "~/lib/utils" import { SettingSectionTitle } from "~/modules/settings/section" @@ -53,7 +53,7 @@ export const MyWalletSection = () => {
{ ), }} /> -

{t("wallet.power.dailyClaim", { amount: DAILY_CLAIM_AMOUNT })}

@@ -125,25 +124,34 @@ export const MyWalletSection = () => {
+ +
{t("wallet.power.rewardDescription")}
- All active users on Follow are eligible for daily power rewards, which can be used for - purchases and tipping on Follow. -
-
- Based on your level and past activities, you can receive a{" "} - - {BigInt(myWallet.todayDailyPower || 0n)} - {" "} - reward today.{" "} - - Learn more. - + + {BigInt(myWallet.todayDailyPower || 0n)} + + ), + Link: ( + + ), + }} + />
diff --git a/locales/settings/en.json b/locales/settings/en.json index 20e566070..3b1e60251 100644 --- a/locales/settings/en.json +++ b/locales/settings/en.json @@ -230,7 +230,9 @@ "wallet.create.button": "Create Wallet", "wallet.create.description": "Create a free wallet to receive Power, which can be used to reward creators and also get rewarded for your content contributions.", "wallet.power.dailyClaim": "You can claim {{amount}} free Power daily, which can be used to tip RSS entries on Follow.", - "wallet.power.description": "Power is an ERC-20 token on the {{blockchainName}} blockchain.", + "wallet.power.description2": "Power is an ERC-20 token on the {{blockchainName}} blockchain, which can be used for purchases and tipping on Follow.", + "wallet.power.rewardDescription": "All active users on Follow are eligible for daily power rewards.", + "wallet.power.rewardDescription2": "Based on your level and past activities, you can receive a reward today. Learn more.", "wallet.ranking.level": "Level", "wallet.ranking.name": "Name", "wallet.ranking.power": "Power",