mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-04 03:32:12 +02:00
Add missing translation (#241)
This commit is contained in:
parent
b093b060c5
commit
585ec65efd
2 changed files with 4 additions and 1 deletions
|
@ -121,6 +121,7 @@
|
|||
"weekView": "Week view",
|
||||
"whatsThis": "What's this?",
|
||||
"yes": "Yes",
|
||||
"you": "You",
|
||||
"yourDetails": "Your details",
|
||||
"yourName": "Your name…",
|
||||
"yourPolls": "Your polls"
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue