mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-06 12:41:48 +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",
|
"weekView": "Week view",
|
||||||
"whatsThis": "What's this?",
|
"whatsThis": "What's this?",
|
||||||
"yes": "Yes",
|
"yes": "Yes",
|
||||||
|
"you": "You",
|
||||||
"yourDetails": "Your details",
|
"yourDetails": "Your details",
|
||||||
"yourName": "Your name…",
|
"yourName": "Your name…",
|
||||||
"yourPolls": "Your polls"
|
"yourPolls": "Your polls"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
|
import { useTranslation } from "next-i18next";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|
||||||
import { stringToValue } from "@/utils/string-to-value";
|
import { stringToValue } from "@/utils/string-to-value";
|
||||||
|
@ -110,6 +111,7 @@ const UserAvatar: React.VoidFunctionComponent<UserAvaterProps> = ({
|
||||||
className,
|
className,
|
||||||
...forwardedProps
|
...forwardedProps
|
||||||
}) => {
|
}) => {
|
||||||
|
const { t } = useTranslation("app");
|
||||||
if (!showName) {
|
if (!showName) {
|
||||||
return <UserAvatarInner className={className} {...forwardedProps} />;
|
return <UserAvatarInner className={className} {...forwardedProps} />;
|
||||||
}
|
}
|
||||||
|
@ -125,7 +127,7 @@ const UserAvatar: React.VoidFunctionComponent<UserAvaterProps> = ({
|
||||||
<div className="min-w-0 truncate" title={forwardedProps.name}>
|
<div className="min-w-0 truncate" title={forwardedProps.name}>
|
||||||
{forwardedProps.name}
|
{forwardedProps.name}
|
||||||
</div>
|
</div>
|
||||||
{isYou ? <Badge>You</Badge> : null}
|
{isYou ? <Badge>{t("you")}</Badge> : null}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue