feat: web i18n (#1286)

This commit is contained in:
David Nguyen
2024-08-27 20:34:39 +09:00
committed by GitHub
parent 0829311214
commit 75c8772a02
294 changed files with 14846 additions and 2229 deletions

View File

@ -1,6 +1,9 @@
import type { Metadata } from 'next';
import Link from 'next/link';
import { Trans } from '@lingui/macro';
import { setupI18nSSR } from '@documenso/lib/client-only/providers/i18n.server';
import { Button } from '@documenso/ui/primitives/button';
export const metadata: Metadata = {
@ -8,18 +11,26 @@ export const metadata: Metadata = {
};
export default function ForgotPasswordPage() {
setupI18nSSR();
return (
<div className="w-screen max-w-lg px-4">
<div className="w-full">
<h1 className="text-4xl font-semibold">Email sent!</h1>
<h1 className="text-4xl font-semibold">
<Trans>Email sent!</Trans>
</h1>
<p className="text-muted-foreground mb-4 mt-2 text-sm">
A password reset email has been sent, if you have an account you should see it in your
inbox shortly.
<Trans>
A password reset email has been sent, if you have an account you should see it in your
inbox shortly.
</Trans>
</p>
<Button asChild>
<Link href="/signin">Return to sign in</Link>
<Link href="/signin">
<Trans>Return to sign in</Trans>
</Link>
</Button>
</div>
</div>