Skip to content

Commit

Permalink
refactor: Remove br as variable from rating translation
Browse files Browse the repository at this point in the history
  • Loading branch information
mowi12 committed Dec 10, 2024
1 parent 17f6c1a commit 8c70be6
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions src/components/Rating/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,29 @@ export default function Rating() {
const { rating } = usePluginData("leaderboard-plugin") as LeadboardData;
return (
<div>
<div>
<Translate id="rating.firstPlace" description="The label for the first place in a ranking" values={{points: rating.firstPlace}}>
{"1. Platz: {points} Punkte"}
</Translate>
{"\u00A0"}
</div>
<div>
<Translate id="rating.secondPlace" description="The label for the second place in a ranking" values={{points: rating.secondPlace}}>
{"2. Platz: {points} Punkte"}
</Translate>
{"\u00A0"}
</div>
<div>
<Translate id="rating.thirdPlace" description="The label for the third place in a ranking" values={{points: rating.thirdPlace}}>
{"3. Platz: {points} Punkte"}
</Translate>
{"\u00A0"}
</div>
<Translate
id="rating.firstPlace"
description="The label for the first place in a ranking"
values={{ points: rating.firstPlace }}
>
{"1. Platz: {points} Punkte"}
</Translate>
<br />
<Translate
id="rating.secondPlace"
description="The label for the second place in a ranking"
values={{ points: rating.secondPlace }}
>
{"2. Platz: {points} Punkte"}
</Translate>
<br />
<Translate
id="rating.thirdPlace"
description="The label for the third place in a ranking"
values={{ points: rating.thirdPlace }}
>
{"3. Platz: {points} Punkte"}
</Translate>
</div>
);
}

0 comments on commit 8c70be6

Please # to comment.