File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ import { Avatar, AvatarGroup } from "@chakra-ui/react";
33import { FaDiscord } from "react-icons/fa" ;
44import useDiscordInfo from "../../hooks/useDiscordInfo" ;
55import { GUILDID } from "../../config/globals" ;
6+ import { useTranslation } from "react-i18next" ;
67
78function 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" >
You can’t perform that action at this time.
0 commit comments