diff --git a/public/locales/en/app.json b/public/locales/en/app.json
index 3ebaf8d7e..9602c47c8 100644
--- a/public/locales/en/app.json
+++ b/public/locales/en/app.json
@@ -1,7 +1,9 @@
{
"12h": "12-hour",
"24h": "24-hour",
+ "addTimeOption": "Add time option",
"admin": "Admin",
+ "applyToAllDates": "Apply to all dates",
"areYouSure": "Are you sure?",
"back": "Back",
"blog": "Blog",
@@ -9,10 +11,7 @@
"calendarHelpTitle": "Forget something?",
"cancel": "Cancel",
"comment": "Comment",
- "applyToAllDates": "Apply to all dates",
"commentPlaceholder": "Leave a comment on this poll (visible to everyone)",
- "deleteDate": "Delete date",
- "addTimeOption": "Add time option",
"comments": "Comments",
"continue": "Continue",
"copied": "Copied",
@@ -22,6 +21,7 @@
"creatingDemo": "Creating demo poll…",
"delete": "Delete",
"deleteComment": "Delete comment",
+ "deleteDate": "Delete date",
"deletedPoll": "Deleted poll",
"deletedPollInfo": "this poll doesn't exist anymore.",
"deletePoll": "Delete poll",
@@ -55,7 +55,14 @@
"locationPlaceholder": "Joe's Coffee Shop",
"lockPoll": "Lock poll",
"login": "Login",
+ "loginCheckInbox": "Please check your inbox.",
+ "loginMagicLinkSent": "A magic link has been sent to:",
+ "loginSendMagicLink": "Send me a magic link",
+ "loginViaMagicLink": "Login via magic link",
+ "loginViaMagicLinkDescription": "We'll send you an email with a magic link that you can use to login.",
+ "loginWithValidEmail": "Please enter a valid email address",
"logout": "Logout",
+ "manage": "Manage",
"menu": "Menu",
"mixedOptionsDescription": "You can't have both time and date options in the same poll. Which would you like to keep?",
"mixedOptionsKeepDates": "Keep date options",
@@ -113,6 +120,7 @@
"voteCount": "{{count}} vote",
"weekStartsOn": "Week starts on",
"weekView": "Week view",
+ "whatsThis": "What's this?",
"yes": "Yes",
"yourDetails": "Your details",
"yourPolls": "Your polls"
diff --git a/src/components/login-form.tsx b/src/components/login-form.tsx
index b8f49f464..72991206f 100644
--- a/src/components/login-form.tsx
+++ b/src/components/login-form.tsx
@@ -1,5 +1,6 @@
import clsx from "clsx";
import { useRouter } from "next/router";
+import { useTranslation } from "next-i18next";
import { usePlausible } from "next-plausible";
import * as React from "react";
import { useForm } from "react-hook-form";
@@ -11,6 +12,7 @@ import { validEmail } from "@/utils/form-validation";
import { trpc } from "../utils/trpc";
const LoginForm: React.VoidFunctionComponent = () => {
+ const { t } = useTranslation("app");
const { register, formState, handleSubmit, getValues } =
useForm<{ email: string }>();
@@ -24,7 +26,9 @@ const LoginForm: React.VoidFunctionComponent = () => {