refactor: Update badge labels to use multiplication symbol instead of 'x'

This commit is contained in:
robin
2024-09-02 16:59:28 +08:00
parent 8b9f5d4448
commit afaf11ffb6
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1748,8 +1748,8 @@ ui:
confirm: View badges
title: Badges
awarded: Awarded
earned_x: Earned x{{ number }}
x_awarded: "{{ number }} awarded"
earned_×: Earned ×{{ number }}
×_awarded: "{{ number }} awarded"
can_earn_multiple: You can earn this multiple times.
earned: Earned
+2 -2
View File
@@ -57,7 +57,7 @@ const Index: FC<IProps> = ({
{badgePillType === 'count' && Number(data?.earned_count) > 0 && (
<Badge pill bg="success" className="label">
x{data.earned_count}
×{data.earned_count}
</Badge>
)}
{data.icon.startsWith('http') ? (
@@ -78,7 +78,7 @@ const Index: FC<IProps> = ({
<h6 className="mb-0 mt-3 text-center">{data.name}</h6>
{showAwardedCount && (
<div className="small text-secondary">
{t('x_awarded', { number: formatCount(data.award_count) })}
{t('×_awarded', { number: formatCount(data.award_count) })}
</div>
)}
</Card.Body>
@@ -73,13 +73,13 @@ const Index: FC<IProps> = ({ data }) => {
<div className="small mt-2">
{data.award_count > 0 && (
<span className="text-secondary me-2">
{t('x_awarded', { number: formatCount(data.award_count) })}
{t('×_awarded', { number: formatCount(data.award_count) })}
</span>
)}
{data.earned_count > 0 && (
<Badge bg="success">
{t('earned_x', { number: data.earned_count })}
{t('earned_×', { number: data.earned_count })}
</Badge>
)}
</div>