Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
Add missing translation (#241)
Luke Vella585ec65efde7
diff --git a/public/locales/en/app.json b/public/locales/en/app.jsonindex 4fb33f8ce..2b8a71372 100644--- a/public/locales/en/app.json+++ b/public/locales/en/app.json@@ -121,6 +121,7 @@"weekView": "Week view","whatsThis": "What's this?","yes": "Yes",+ "you": "You","yourDetails": "Your details","yourName": "Your name…","yourPolls": "Your polls"diff --git a/src/components/poll/user-avatar.tsx b/src/components/poll/user-avatar.tsxindex 5368b18c0..4e4444c33 100644--- a/src/components/poll/user-avatar.tsx+++ b/src/components/poll/user-avatar.tsx@@ -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>);};