Skip to content
Snippets Groups Projects
Commit ae3cc166 authored by xaralis's avatar xaralis
Browse files

feat: improve pluralization

parent 0185c9c9
No related branches found
No related tags found
No related merge requests found
Pipeline #1900 passed
......@@ -19,7 +19,12 @@ const GlobalStats = () => {
return (
<div className="bg-grey-50 flex space-x-4 leading-normal px-4 py-2 text-xs md:text-sm text-grey-300">
<div>
<strong>{onlineMembers}</strong> <span>členů online</span>
<strong>{onlineMembers}</strong>{" "}
<span>
{onlineMembers === 1 && "člen online"}
{onlineMembers > 1 && onlineMembers < 4 && "členové online"}
{onlineMembers > 4 && "členovů online"}
</span>
</div>
<div>
<strong>{onlineUsers}</strong> <span>online celkem</span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment