Skip to content

Commit 4ac1666

Browse files
update
1 parent 2336324 commit 4ac1666

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/Discord.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import { Avatar, AvatarGroup } from "@chakra-ui/react";
33
import { FaDiscord } from "react-icons/fa";
44
import useDiscordInfo from "../../hooks/useDiscordInfo";
55
import { GUILDID } from "../../config/globals";
6+
import { useTranslation } from "react-i18next";
67

78
function DiscordWidget() {
9+
const { t } = useTranslation();
810
const { infos } = useDiscordInfo(GUILDID);
911
const membersOnline = infos?.members ?? [];
1012
const presenceCount = infos?.presence_count ?? "🙈";
@@ -20,8 +22,10 @@ function DiscordWidget() {
2022
</div>
2123

2224
<div className="flex items-center">
23-
<MdOnlinePrediction size={22} className="mr-2" />
24-
<span className="font-bold">Members Online : {presenceCount}</span>
25+
<MdOnlinePrediction size={22} className="mr-2 align-baseline" />
26+
<span className="font-bold">
27+
{t("online")} : {presenceCount}
28+
</span>
2529
</div>
2630

2731
<AvatarGroup size="sm" max={7} textColor="black">

0 commit comments

Comments
 (0)