Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💄 Show "Organized by {name}" for the poll host (#2704)

Luke Vellad04cddf429f2
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.json
index a607ef023..74b8fcb6d 100644
--- a/apps/web/public/locales/en/app.json
+++ b/apps/web/public/locales/en/app.json
@@ -271,7 +271,6 @@
"eventHostDescription": "You are the creator of this poll",
"eventPageAbout": "About",
"eventPageGoingCount": "{count, plural, one {# going} other {# going}}",
- "eventPageHostedBy": "Hosted by {name}",
"eventRegisterAlreadyResponded": "This email has already been used to respond",
"eventRegisterSuccessTitle": "You're registered",
"eventRegisterYourDetails": "Your details",
@@ -467,6 +466,7 @@
"optionalLabel": "(Optional)",
"optionCount": "{count, plural, one {# option} other {# options}}",
"or": "Or",
+ "organizedBy": "Organized by {name}",
"organizationName": "Organization Name",
"organizationNamePlaceholder": "e.g. Acme Corp",
"organizationNameRequired": "Organization name is required",
diff --git a/apps/web/src/app/[locale]/e/[id]/page.tsx b/apps/web/src/app/[locale]/e/[id]/page.tsx
index 2f960d005..684406b4c 100644
--- a/apps/web/src/app/[locale]/e/[id]/page.tsx
+++ b/apps/web/src/app/[locale]/e/[id]/page.tsx
@@ -157,8 +157,8 @@ export default async function EventPage({
src={host.image ?? undefined}
size="sm"
/>
- {t("eventPageHostedBy", {
- defaultValue: "Hosted by {name}",
+ {t("organizedBy", {
+ defaultValue: "Organized by {name}",
name: host.name,
})}
</EventSubtitle>
diff --git a/apps/web/src/features/poll/components/event-card.tsx b/apps/web/src/features/poll/components/event-card.tsx
index 19a429be7..b07cb6a2b 100644
--- a/apps/web/src/features/poll/components/event-card.tsx
+++ b/apps/web/src/features/poll/components/event-card.tsx
@@ -69,7 +69,11 @@ export function EventCard() {
{poll.user ? (
<EventMetaItem>
<User2Icon />
- {poll.user.name}
+ <Trans
+ i18nKey="organizedBy"
+ defaults="Organized by {name}"
+ values={{ name: poll.user.name }}
+ />
</EventMetaItem>
) : null}
{poll.location ? (