Skip to content

Commit 68a561b

Browse files
committed
fix: solve comments
1 parent 3b4cc7c commit 68a561b

13 files changed

Lines changed: 33 additions & 33 deletions

File tree

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,3 @@ Thumbs.db
4646

4747
# AI development artifacts
4848
.ui-develop
49-
50-
# local file
51-
*.local
52-
*.local.*

apps/evm/src/libs/translations/translations/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,14 +1254,14 @@
12541254
"endOfCycle": {
12551255
"days": "Days",
12561256
"deadline": "{{date, MMMM d, yyyy h:mm a}}",
1257-
"helper": "Stay in the top 500 until <bold>{{deadline}}</bold> to receive Prime rewards during the next cycle. Check the <summaryLink>See last cycle's Prime summary</summaryLink> now to view your ranking and stay competitive.",
1257+
"helper": "Stay in the top 500 until <bold>{{deadline}}</bold> to receive Prime rewards during the next cycle. <summaryLink>See last cycle's Prime summary</summaryLink>.",
12581258
"helperEnded": "Stay in the top 500 until {{deadline}} to receive Prime rewards during the next cycle.",
12591259
"hours": "Hours",
12601260
"mins": "Mins",
12611261
"sec": "Sec",
12621262
"title": "End of cycle"
12631263
},
1264-
"tablesRefreshNote": "Refreshed hourly · Last refresh: {{distance}} ago",
1264+
"tablesRefreshNote": "Refreshed hourly · Last refresh: {{date, distanceToNow}} ago",
12651265
"title": "Prime leaderboard"
12661266
},
12671267
"primeStatusBanner": {

apps/evm/src/libs/translations/translations/ja.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,14 +1254,14 @@
12541254
"endOfCycle": {
12551255
"days": "",
12561256
"deadline": "{{date, MMMM d, yyyy h:mm a}}",
1257-
"helper": "<bold>{{deadline}}</bold> まで上位 500 位以内を維持すると、次のサイクルで Prime 報酬を獲得できます。<summaryLink>前回サイクルの Prime サマリーを見る</summaryLink>と、順位を確認して競争を有利に進められます",
1257+
"helper": "<bold>{{deadline}}</bold> まで上位 500 位以内を維持すると、次のサイクルで Prime 報酬を獲得できます。<summaryLink>前回サイクルの Prime サマリーを見る</summaryLink>。",
12581258
"helperEnded": "{{deadline}} まで上位 500 位以内を維持すると、次のサイクルで Prime 報酬を獲得できます。",
12591259
"hours": "時間",
12601260
"mins": "",
12611261
"sec": "",
12621262
"title": "サイクル終了"
12631263
},
1264-
"tablesRefreshNote": "1時間ごとに更新 · 最終更新:{{distance}}前",
1264+
"tablesRefreshNote": "1時間ごとに更新 · 最終更新:{{date, distanceToNow}}前",
12651265
"title": "Prime リーダーボード"
12661266
},
12671267
"primeStatusBanner": {

apps/evm/src/libs/translations/translations/th.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,14 +1254,14 @@
12541254
"endOfCycle": {
12551255
"days": "วัน",
12561256
"deadline": "{{date, MMMM d, yyyy h:mm a}}",
1257-
"helper": "รักษาอันดับใน 500 อันดับแรกจนถึง <bold>{{deadline}}</bold> เพื่อรับรางวัล Prime ในรอบถัดไป <summaryLink>ดูสรุป Prime ของรอบที่แล้ว</summaryLink> เพื่อดูอันดับของคุณและรักษาความสามารถในการแข่งขัน",
1257+
"helper": "รักษาอันดับใน 500 อันดับแรกจนถึง <bold>{{deadline}}</bold> เพื่อรับรางวัล Prime ในรอบถัดไป <summaryLink>ดูสรุป Prime ของรอบที่แล้ว</summaryLink>",
12581258
"helperEnded": "รักษาอันดับใน 500 อันดับแรกจนถึง {{deadline}} เพื่อรับรางวัล Prime ในรอบถัดไป",
12591259
"hours": "ชม.",
12601260
"mins": "นาที",
12611261
"sec": "วินาที",
12621262
"title": "สิ้นสุดรอบ"
12631263
},
1264-
"tablesRefreshNote": "รีเฟรชทุกชั่วโมง · รีเฟรชล่าสุด: {{distance}} ที่แล้ว",
1264+
"tablesRefreshNote": "รีเฟรชทุกชั่วโมง · รีเฟรชล่าสุด: {{date, distanceToNow}} ที่แล้ว",
12651265
"title": "กระดานผู้นำ Prime"
12661266
},
12671267
"primeStatusBanner": {

apps/evm/src/libs/translations/translations/tr.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,14 +1254,14 @@
12541254
"endOfCycle": {
12551255
"days": "Gün",
12561256
"deadline": "{{date, MMMM d, yyyy h:mm a}}",
1257-
"helper": "Sonraki döngüde Prime ödülleri kazanmak için <bold>{{deadline}}</bold> tarihine kadar ilk 500 içinde kalın. Sıralamanızı görmek ve rekabette kalmak için <summaryLink>geçen döngünün Prime özetini görüntüleyin</summaryLink>.",
1257+
"helper": "Sonraki döngüde Prime ödülleri kazanmak için <bold>{{deadline}}</bold> tarihine kadar ilk 500 içinde kalın. <summaryLink>Geçen döngünün Prime özetini görüntüleyin</summaryLink>.",
12581258
"helperEnded": "Sonraki döngüde Prime ödülleri kazanmak için {{deadline}} tarihine kadar ilk 500 içinde kalın.",
12591259
"hours": "Saat",
12601260
"mins": "Dak.",
12611261
"sec": "Sn.",
12621262
"title": "Döngü sonu"
12631263
},
1264-
"tablesRefreshNote": "Saatlik yenilenir · Son yenileme: {{distance}} önce",
1264+
"tablesRefreshNote": "Saatlik yenilenir · Son yenileme: {{date, distanceToNow}} önce",
12651265
"title": "Prime lider tablosu"
12661266
},
12671267
"primeStatusBanner": {

apps/evm/src/libs/translations/translations/vi.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,14 +1254,14 @@
12541254
"endOfCycle": {
12551255
"days": "Ngày",
12561256
"deadline": "{{date, MMMM d, yyyy h:mm a}}",
1257-
"helper": "Giữ vị trí trong top 500 đến <bold>{{deadline}}</bold> để nhận thưởng Prime trong chu kỳ tiếp theo. <summaryLink>Xem tổng kết Prime của chu kỳ trước</summaryLink> để theo dõi thứ hạng và duy trì tính cạnh tranh.",
1257+
"helper": "Giữ vị trí trong top 500 đến <bold>{{deadline}}</bold> để nhận thưởng Prime trong chu kỳ tiếp theo. <summaryLink>Xem tổng kết Prime của chu kỳ trước</summaryLink>.",
12581258
"helperEnded": "Giữ vị trí trong top 500 đến {{deadline}} để nhận thưởng Prime trong chu kỳ tiếp theo.",
12591259
"hours": "Giờ",
12601260
"mins": "Phút",
12611261
"sec": "Giây",
12621262
"title": "Kết thúc chu kỳ"
12631263
},
1264-
"tablesRefreshNote": "Làm mới mỗi giờ · Lần làm mới cuối: {{distance}} trước",
1264+
"tablesRefreshNote": "Làm mới mỗi giờ · Lần làm mới cuối: {{date, distanceToNow}} trước",
12651265
"title": "Bảng xếp hạng Prime"
12661266
},
12671267
"primeStatusBanner": {

apps/evm/src/libs/translations/translations/zh-Hans.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,14 +1254,14 @@
12541254
"endOfCycle": {
12551255
"days": "",
12561256
"deadline": "{{date, MMMM d, yyyy h:mm a}}",
1257-
"helper": "在 <bold>{{deadline}}</bold> 之前保持在前 500 名,即可在下个周期获得 Prime 奖励。<summaryLink>查看上个周期的 Prime 总结</summaryLink>,了解你的排名并保持竞争力",
1257+
"helper": "在 <bold>{{deadline}}</bold> 之前保持在前 500 名,即可在下个周期获得 Prime 奖励。<summaryLink>查看上个周期的 Prime 总结</summaryLink>。",
12581258
"helperEnded": "在 {{deadline}} 之前保持在前 500 名,即可在下个周期获得 Prime 奖励。",
12591259
"hours": "",
12601260
"mins": "",
12611261
"sec": "",
12621262
"title": "周期结束"
12631263
},
1264-
"tablesRefreshNote": "每小时刷新 · 上次刷新:{{distance}}前",
1264+
"tablesRefreshNote": "每小时刷新 · 上次刷新:{{date, distanceToNow}}前",
12651265
"title": "Prime 排行榜"
12661266
},
12671267
"primeStatusBanner": {

apps/evm/src/libs/translations/translations/zh-Hant.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,14 +1254,14 @@
12541254
"endOfCycle": {
12551255
"days": "",
12561256
"deadline": "{{date, MMMM d, yyyy h:mm a}}",
1257-
"helper": "在 <bold>{{deadline}}</bold> 之前保持在前 500 名,即可在下個週期獲得 Prime 獎勵。<summaryLink>查看上個週期的 Prime 總結</summaryLink>,了解你的排名並保持競爭力",
1257+
"helper": "在 <bold>{{deadline}}</bold> 之前保持在前 500 名,即可在下個週期獲得 Prime 獎勵。<summaryLink>查看上個週期的 Prime 總結</summaryLink>。",
12581258
"helperEnded": "在 {{deadline}} 之前保持在前 500 名,即可在下個週期獲得 Prime 獎勵。",
12591259
"hours": "",
12601260
"mins": "",
12611261
"sec": "",
12621262
"title": "週期結束"
12631263
},
1264-
"tablesRefreshNote": "每小時刷新 · 上次刷新:{{distance}}前",
1264+
"tablesRefreshNote": "每小時刷新 · 上次刷新:{{date, distanceToNow}}前",
12651265
"title": "Prime 排行榜"
12661266
},
12671267
"primeStatusBanner": {

apps/evm/src/pages/PrimeLeaderboard/EndOfCycle/Timer/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { Fragment } from 'react';
22

33
import { useTranslation } from 'libs/translations';
44

5+
import { pad } from './pad';
6+
57
export interface TimerProps {
68
days: number;
79
hours: number;
@@ -12,8 +14,6 @@ export interface TimerProps {
1214
export const Timer: React.FC<TimerProps> = ({ days, hours, minutes, seconds }) => {
1315
const { t } = useTranslation();
1416

15-
const pad = (value: number) => String(value).padStart(2, '0');
16-
1717
const segments = [
1818
{ label: t('primeLeaderboard.endOfCycle.days'), value: days },
1919
{ label: t('primeLeaderboard.endOfCycle.hours'), value: hours },
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const pad = (value: number) => String(value).padStart(2, '0');

0 commit comments

Comments
 (0)