Skip to content

Commit

Permalink
translate strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz committed Apr 2, 2024
1 parent dd04237 commit 519774c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/players/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ function Players() {
return '';
}
if (nameResults.length < 1) {
return <p>No players with this name</p>;
return <p>{t('No players with this name')}</p>;
}
let morePlayers = '';
if (nameResults.length >= 5) {
morePlayers = <p>Refine you search to get better results</p>
morePlayers = <p>{t('Refine your search to get better results')}</p>
}
return (
<div>
Expand All @@ -94,7 +94,7 @@ function Players() {
</ul>
</div>
);
}, [searched, nameResults]);
}, [searched, nameResults, t]);

useEffect(() => {
if (enterPress) {
Expand Down

0 comments on commit 519774c

Please sign in to comment.