Skip to content

The Open Source DocuSign Alternative.

fix(i18n): mark missing strings for translation in card components (#2308)

Konradd77f81163b54
diff --git a/apps/remix/app/components/general/envelope-editor/envelope-editor-recipient-form.tsx b/apps/remix/app/components/general/envelope-editor/envelope-editor-recipient-form.tsx
index ab83b3189..4cb544627 100644
--- a/apps/remix/app/components/general/envelope-editor/envelope-editor-recipient-form.tsx
+++ b/apps/remix/app/components/general/envelope-editor/envelope-editor-recipient-form.tsx
@@ -594,8 +594,12 @@ export const EnvelopeEditorRecipientForm = () => {
<Card backdropBlur={false} className="border">
<CardHeader className="flex flex-row justify-between">
<div>
- <CardTitle>Recipients</CardTitle>
- <CardDescription className="mt-1.5">Add recipients to your document</CardDescription>
+ <CardTitle>
+ <Trans>Recipients</Trans>
+ </CardTitle>
+ <CardDescription className="mt-1.5">
+ <Trans>Add recipients to your document</Trans>
+ </CardDescription>
</div>
<div className="flex flex-row items-center space-x-2">
diff --git a/apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id.logs.tsx b/apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id.logs.tsx
index 0c6c37339..6ecff1c13 100644
--- a/apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id.logs.tsx
+++ b/apps/remix/app/routes/_authenticated+/t.$teamUrl+/documents.$id.logs.tsx
@@ -179,7 +179,9 @@ export default function DocumentsLogsPage({ loaderData }: Route.ComponentProps)
))}
<div className="text-sm text-foreground">
- <h3 className="font-semibold">Recipients</h3>
+ <h3 className="font-semibold">
+ <Trans>Recipients</Trans>
+ </h3>
<ul className="list-inside list-disc text-muted-foreground">
{recipients.map((recipient) => (
<li key={`recipient-${recipient.id}`}>
diff --git a/apps/remix/app/routes/_internal+/[__htmltopdf]+/certificate.tsx b/apps/remix/app/routes/_internal+/[__htmltopdf]+/certificate.tsx
index 126931a49..f316af405 100644
--- a/apps/remix/app/routes/_internal+/[__htmltopdf]+/certificate.tsx
+++ b/apps/remix/app/routes/_internal+/[__htmltopdf]+/certificate.tsx
@@ -1,5 +1,6 @@
import { msg } from '@lingui/core/macro';
import { useLingui } from '@lingui/react';
+import { Trans } from '@lingui/react/macro';
import { EnvelopeType, FieldType, SigningStatus } from '@prisma/client';
import { DateTime } from 'luxon';
import { redirect } from 'react-router';
@@ -290,7 +291,9 @@ export default function SigningCertificate({ loaderData }: Route.ComponentProps)
</p>
</>
) : (
- <p className="text-muted-foreground">N/A</p>
+ <p className="text-muted-foreground">
+ <Trans>N/A</Trans>
+ </p>
)}
<p className="mt-2 text-sm text-muted-foreground print:text-xs">
diff --git a/packages/ui/primitives/document-flow/add-fields.tsx b/packages/ui/primitives/document-flow/add-fields.tsx
index 1a185f1bb..80c0e864b 100644
--- a/packages/ui/primitives/document-flow/add-fields.tsx
+++ b/packages/ui/primitives/document-flow/add-fields.tsx
@@ -753,7 +753,7 @@ export const AddFieldsFormPartial = ({
)}
>
<Contact className="h-4 w-4" />
- Initials
+ <Trans>Initials</Trans>
</p>
</CardContent>
</Card>
@@ -903,7 +903,7 @@ export const AddFieldsFormPartial = ({
)}
>
<Disc className="h-4 w-4" />
- Radio
+ <Trans>Radio</Trans>
</p>
</CardContent>
</Card>
@@ -928,8 +928,7 @@ export const AddFieldsFormPartial = ({
)}
>
<CheckSquare className="h-4 w-4" />
- {/* Not translated on purpose. */}
- Checkbox
+ <Trans>Checkbox</Trans>
</p>
</CardContent>
</Card>
diff --git a/packages/ui/primitives/field-selector.tsx b/packages/ui/primitives/field-selector.tsx
index ba7c1f673..b814b5db6 100644
--- a/packages/ui/primitives/field-selector.tsx
+++ b/packages/ui/primitives/field-selector.tsx
@@ -1,3 +1,4 @@
+import { Trans } from '@lingui/react/macro';
import { FieldType } from '@prisma/client';
import {
CalendarDays,
@@ -115,7 +116,7 @@ export const FieldSelector = ({
{field.type === FieldType.SIGNATURE && (
<div className="text-muted-foreground font-signature absolute inset-0 flex items-center justify-center text-lg">
- Signature
+ <Trans>Signature</Trans>
</div>
)}
</CardContent>
diff --git a/packages/ui/primitives/template-flow/add-template-fields.tsx b/packages/ui/primitives/template-flow/add-template-fields.tsx
index 13dc55bbd..3a3217fe7 100644
--- a/packages/ui/primitives/template-flow/add-template-fields.tsx
+++ b/packages/ui/primitives/template-flow/add-template-fields.tsx
@@ -797,7 +797,7 @@ export const AddTemplateFieldsFormPartial = ({
)}
>
<Contact className="h-4 w-4" />
- Initials
+ <Trans>Initials</Trans>
</p>
</CardContent>
</Card>
@@ -953,7 +953,7 @@ export const AddTemplateFieldsFormPartial = ({
)}
>
<Disc className="h-4 w-4" />
- Radio
+ <Trans>Radio</Trans>
</p>
</CardContent>
</Card>
@@ -979,8 +979,7 @@ export const AddTemplateFieldsFormPartial = ({
)}
>
<CheckSquare className="h-4 w-4" />
- {/* Not translated on purpose. */}
- Checkbox
+ <Trans>Checkbox</Trans>
</p>
</CardContent>
</Card>