Skip to content

The Open Source DocuSign Alternative.

fix: add pluralization to 2fa code template (#2131)

Konradfccd97e12478
diff --git a/packages/email/template-components/template-access-auth-2fa.tsx b/packages/email/template-components/template-access-auth-2fa.tsx
index edaa4df7e..841a43016 100644
--- a/packages/email/template-components/template-access-auth-2fa.tsx
+++ b/packages/email/template-components/template-access-auth-2fa.tsx
@@ -1,4 +1,4 @@
-import { Trans } from '@lingui/react/macro';
+import { Plural, Trans } from '@lingui/react/macro';
import { Heading, Img, Section, Text } from '../components';
@@ -46,7 +46,11 @@ export const TemplateAccessAuth2FA = ({
</Section>
<Text className="mt-4 text-center text-sm text-slate-600">
- <Trans>This code will expire in {expiresInMinutes} minutes.</Trans>
+ <Plural
+ value={expiresInMinutes}
+ one="This code will expire in # minute."
+ other="This code will expire in # minutes."
+ />
</Text>
<Text className="mt-4 text-center text-sm text-slate-500">