Skip to content

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

🐛 Fix i18n keys

Luke Vellaec5b112f08a1
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.json
index c5a746216..94f196a8c 100644
--- a/apps/web/public/locales/en/app.json
+++ b/apps/web/public/locales/en/app.json
@@ -603,5 +603,10 @@
"pollStatusCanceled": "Canceled",
"schedulePoll": "Schedule",
"schedulePollDescription": "Select a final date for your event.",
- "featureNameSchedule": "Schedule Poll"
+ "featureNameSchedule": "Schedule Poll",
+ "pollClosed": "Poll closed",
+ "deleteMenuItem": "Delete",
+ "deletePollPrompt": "Are you sure you want to delete <b>{title}</b>?",
+ "pollDeleted": "Poll deleted",
+ "pollDeleteError": "Failed to delete poll"
}
diff --git a/apps/web/src/features/poll/components/polls-infinite-list.tsx b/apps/web/src/features/poll/components/polls-infinite-list.tsx
index ac808e1cd..9f3f4071b 100644
--- a/apps/web/src/features/poll/components/polls-infinite-list.tsx
+++ b/apps/web/src/features/poll/components/polls-infinite-list.tsx
@@ -138,12 +138,7 @@ function PollListItem({
<DropdownMenuItem
onSelect={() => {
toast.promise(closePoll.mutateAsync({ pollId: id }), {
- loading: (
- <Trans
- i18nKey="closingPoll"
- defaults="Closing poll..."
- />
- ),
+ loading: <Trans i18nKey="loading" defaults="Loading…" />,
success: (
<Trans i18nKey="pollClosed" defaults="Poll closed" />
),
@@ -160,10 +155,11 @@ function PollListItem({
<DropdownMenuItem
onSelect={() => {
toast.promise(reopenPoll.mutateAsync({ pollId: id }), {
- loading: (
+ loading: <Trans i18nKey="loading" defaults="Loading…" />,
+ success: (
<Trans
- i18nKey="reopeningPoll"
- defaults="Reopening poll..."
+ i18nKey="pollReopened"
+ defaults="Poll Reopened"
/>
),
});
@@ -215,9 +211,7 @@ function PollListItem({
onClick={() => {
deletePollDialog.dismiss();
toast.promise(deletePoll.mutateAsync({ pollId: id }), {
- loading: (
- <Trans i18nKey="deletingPoll" defaults="Deleting poll..." />
- ),
+ loading: <Trans i18nKey="loading" defaults="Loading…" />,
success: (
<Trans i18nKey="pollDeleted" defaults="Poll deleted" />
),