Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <mingchang555@hotmail.com>
  • Loading branch information
zmcNotafraid committed Jun 4, 2024
1 parent 73db020 commit 1490f9d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@
"node_country_distribution": "Nodes distribution by Country/Region",
"top_50_holders": "Top 50 Holders",
"rounded": "Rounded",
"latest_day": "24h",
"24h": "24h",
"day_to_one_week": "1d-1w",
"one_week_to_one_month": "1w-1m",
"one_month_to_three_months": "1m-3m",
Expand Down
4 changes: 2 additions & 2 deletions src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,15 @@
"node_country_distribution": "节点国家(地区)分布图",
"top_50_holders": "前 50 持有地址",
"rounded": "约等于",
"latest_day": "24小时",
"24h": "24小时",
"day_to_one_week": "1天-1周",
"one_week_to_one_month": "1周-1月",
"one_month_to_three_months": "1月-3月",
"three_months_to_six_months": "3月-6月",
"six_months_to_one_year": "6月-1年",
"one_year_to_three_years": "1年-3年",
"over_three_years": "> 3年",
"ckb_hodl_wave": "CKB HODL Wave"
"ckb_hodl_wave": "CKB持有波动图"
},
"home": {
"height": "高度",
Expand Down
12 changes: 6 additions & 6 deletions src/pages/StatisticsChart/activities/CkbHodlWave.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const useTooltip = () => {
}: SeriesItem & {
data: [string, string, string, string, string, string, string, string, string]
}): string => {
if (seriesName === t('statistic.latest_day')) {
return `<div>${tooltipColor(color)}${widthSpan(t('statistic.latest_day'), currentLanguage)} ${handleAxis(
if (seriesName === t('statistic.24h')) {
return `<div>${tooltipColor(color)}${widthSpan(t('statistic.24h'), currentLanguage)} ${handleAxis(
data[1],
2,
)}% </div>`
Expand All @@ -35,7 +35,7 @@ const useTooltip = () => {
return `<div>${tooltipColor(color)}${widthSpan(t('statistic.day_to_one_week'), currentLanguage)} ${handleAxis(
data[2],
2,
)}</div>`
)}%</div>`
}
if (seriesName === t('statistic.one_week_to_one_month')) {
return `<div>${tooltipColor(color)}${widthSpan(
Expand Down Expand Up @@ -124,7 +124,7 @@ const useOption = (
? []
: [
{
name: t('statistic.latest_day'),
name: t('statistic.24h'),
},
{
name: t('statistic.day_to_one_week'),
Expand All @@ -149,7 +149,7 @@ const useOption = (
},
],
selected: {
[t('statistic.latest_day')]: true,
[t('statistic.24h')]: true,
[t('statistic.day_to_one_week')]: true,
[t('statistic.one_week_to_one_month')]: true,
[t('statistic.one_month_to_three_months')]: true,
Expand Down Expand Up @@ -187,7 +187,7 @@ const useOption = (
],
series: [
{
name: t('statistic.latest_day'),
name: t('statistic.24h'),
type: 'line',
yAxisIndex: 0,
symbol: isThumbnail ? 'none' : 'circle',
Expand Down

0 comments on commit 1490f9d

Please sign in to comment.