Add missing translation (#241)

This commit is contained in:
Luke Vella 2022-07-25 10:05:49 +01:00 committed by GitHub
parent b093b060c5
commit 585ec65efd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -121,6 +121,7 @@
"weekView": "Week view",
"whatsThis": "What's this?",
"yes": "Yes",
"you": "You",
"yourDetails": "Your details",
"yourName": "Your name…",
"yourPolls": "Your polls"

View file

@ -1,4 +1,5 @@
import clsx from "clsx";
import { useTranslation } from "next-i18next";
import * as React from "react";
import { stringToValue } from "@/utils/string-to-value";
@ -110,6 +111,7 @@ const UserAvatar: React.VoidFunctionComponent<UserAvaterProps> = ({
className,
...forwardedProps
}) => {
const { t } = useTranslation("app");
if (!showName) {
return <UserAvatarInner className={className} {...forwardedProps} />;
}
@ -125,7 +127,7 @@ const UserAvatar: React.VoidFunctionComponent<UserAvaterProps> = ({
<div className="min-w-0 truncate" title={forwardedProps.name}>
{forwardedProps.name}
</div>
{isYou ? <Badge>You</Badge> : null}
{isYou ? <Badge>{t("you")}</Badge> : null}
</div>
);
};