The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
fix(i18n): mark missing toast messages for translation (#2274)
Konrad1275a15571eb
diff --git a/apps/remix/app/components/dialogs/admin-document-delete-dialog.tsx b/apps/remix/app/components/dialogs/admin-document-delete-dialog.tsxindex aee9167cc..076fb0546 100644--- a/apps/remix/app/components/dialogs/admin-document-delete-dialog.tsx+++ b/apps/remix/app/components/dialogs/admin-document-delete-dialog.tsx@@ -45,7 +45,7 @@ export const AdminDocumentDeleteDialog = ({ envelopeId }: AdminDocumentDeleteDiatoast({title: _(msg`Document deleted`),- description: 'The Document has been deleted successfully.',+ description: _(msg`The Document has been deleted successfully.`),duration: 5000,});@@ -54,8 +54,9 @@ export const AdminDocumentDeleteDialog = ({ envelopeId }: AdminDocumentDeleteDiatoast({title: _(msg`An unknown error occurred`),variant: 'destructive',- description:- 'We encountered an unknown error while attempting to delete your document. Please try again later.',+ description: _(+ msg`We encountered an unknown error while attempting to delete your document. Please try again later.`,+ ),});}};diff --git a/apps/remix/app/components/dialogs/template-bulk-send-dialog.tsx b/apps/remix/app/components/dialogs/template-bulk-send-dialog.tsxindex 610ce7ac3..086e7bd39 100644--- a/apps/remix/app/components/dialogs/template-bulk-send-dialog.tsx+++ b/apps/remix/app/components/dialogs/template-bulk-send-dialog.tsx@@ -103,8 +103,8 @@ export const TemplateBulkSendDialog = ({console.error(err);toast({- title: 'Error',- description: 'Failed to upload CSV. Please check the file format and try again.',+ title: _(msg`Error`),+ description: _(msg`Failed to upload CSV. Please check the file format and try again.`),variant: 'destructive',});}diff --git a/apps/remix/app/components/embed/authoring/configure-fields-view.tsx b/apps/remix/app/components/embed/authoring/configure-fields-view.tsxindex 0065b55da..915c40b8b 100644--- a/apps/remix/app/components/embed/authoring/configure-fields-view.tsx+++ b/apps/remix/app/components/embed/authoring/configure-fields-view.tsx@@ -1,5 +1,6 @@import { useCallback, useEffect, useMemo, useRef, useState } from 'react';+import { msg } from '@lingui/core/macro';import { useLingui } from '@lingui/react';import { Trans } from '@lingui/react/macro';import type { EnvelopeItem, FieldType } from '@prisma/client';@@ -229,8 +230,8 @@ export const ConfigureFieldsView = ({setFieldClipboard(lastActiveField);toast({- title: 'Copied field',- description: 'Copied field to clipboard',+ title: _(msg`Copied field`),+ description: _(msg`Copied field to clipboard`),});}},diff --git a/apps/remix/app/components/embed/multisign/multi-sign-document-signing-view.tsx b/apps/remix/app/components/embed/multisign/multi-sign-document-signing-view.tsxindex fa83d3650..4cc5fc4ae 100644--- a/apps/remix/app/components/embed/multisign/multi-sign-document-signing-view.tsx+++ b/apps/remix/app/components/embed/multisign/multi-sign-document-signing-view.tsx@@ -150,8 +150,8 @@ export const MultiSignDocumentSigningView = ({onDocumentError?.();toast({- title: 'Error',- description: 'Failed to complete the document. Please try again.',+ title: _(msg`Error`),+ description: _(msg`Failed to complete the document. Please try again.`),variant: 'destructive',});} finally {diff --git a/apps/remix/app/components/forms/signin.tsx b/apps/remix/app/components/forms/signin.tsxindex 5ea14ee44..d32fc39a2 100644--- a/apps/remix/app/components/forms/signin.tsx+++ b/apps/remix/app/components/forms/signin.tsx@@ -201,7 +201,7 @@ export const SignInForm = ({.otherwise(() => handleFallbackErrorMessages(error.code));toast({- title: 'Something went wrong',+ title: _(msg`Something went wrong`),description: _(errorMessage),duration: 10000,variant: 'destructive',diff --git a/apps/remix/app/components/general/document-signing/document-signing-form.tsx b/apps/remix/app/components/general/document-signing/document-signing-form.tsxindex ce9ed53ae..c57ea27b6 100644--- a/apps/remix/app/components/general/document-signing/document-signing-form.tsx+++ b/apps/remix/app/components/general/document-signing/document-signing-form.tsx@@ -108,8 +108,8 @@ export const DocumentSigningForm = ({await completeDocument({ nextSigner });} catch (err) {toast({- title: 'Error',- description: 'An error occurred while completing the document. Please try again.',+ title: _(msg`Error`),+ description: _(msg`An error occurred while completing the document. Please try again.`),variant: 'destructive',});diff --git a/apps/remix/app/components/general/document-signing/document-signing-reject-dialog.tsx b/apps/remix/app/components/general/document-signing/document-signing-reject-dialog.tsxindex ac7ffc745..059c38e7d 100644--- a/apps/remix/app/components/general/document-signing/document-signing-reject-dialog.tsx+++ b/apps/remix/app/components/general/document-signing/document-signing-reject-dialog.tsx@@ -74,8 +74,8 @@ export function DocumentSigningRejectDialog({});toast({- title: 'Document rejected',- description: 'The document has been successfully rejected.',+ title: t`Document rejected`,+ description: t`The document has been successfully rejected.`,duration: 5000,});@@ -88,8 +88,8 @@ export function DocumentSigningRejectDialog({}} catch (err) {toast({- title: 'Error',- description: 'An error occurred while rejecting the document. Please try again.',+ title: t`Error`,+ description: t`An error occurred while rejecting the document. Please try again.`,variant: 'destructive',duration: 5000,});diff --git a/apps/remix/app/routes/_unauthenticated+/organisation.sso.confirmation.$token.tsx b/apps/remix/app/routes/_unauthenticated+/organisation.sso.confirmation.$token.tsxindex ac6869c89..4139c383d 100644--- a/apps/remix/app/routes/_unauthenticated+/organisation.sso.confirmation.$token.tsx+++ b/apps/remix/app/routes/_unauthenticated+/organisation.sso.confirmation.$token.tsx@@ -1,6 +1,7 @@import { useState } from 'react';import { msg } from '@lingui/core/macro';+import { useLingui } from '@lingui/react';import { Trans } from '@lingui/react/macro';import { AlertTriangle, Building2, Database, Eye, Settings, UserCircle2 } from 'lucide-react';import { data, isRouteErrorResponse } from 'react-router';@@ -125,6 +126,7 @@ export async function loader({ params }: Route.LoaderArgs) {export default function OrganisationSsoConfirmationTokenPage({ loaderData }: Route.ComponentProps) {const { token, type, user, organisation } = loaderData;+ const { _ } = useLingui();const { toast } = useToast();const navigate = useNavigate();@@ -136,12 +138,12 @@ export default function OrganisationSsoConfirmationTokenPage({ loaderData }: Rouawait navigate('/');toast({- title: 'Account link declined',+ title: _(msg`Account link declined`),});},onError: (error) => {toast({- title: 'Error declining account link',+ title: _(msg`Error declining account link`),description: error.message,});},@@ -153,12 +155,12 @@ export default function OrganisationSsoConfirmationTokenPage({ loaderData }: Rouawait navigate(formatOrganisationLoginPath(organisation.url));toast({- title: 'Account linked successfully',+ title: _(msg`Account linked successfully`),});},onError: (error) => {toast({- title: 'Error linking account',+ title: _(msg`Error linking account`),description: error.message,});},diff --git a/packages/ui/primitives/document-flow/add-fields.tsx b/packages/ui/primitives/document-flow/add-fields.tsxindex aa1a0e5c5..2fa68cd79 100644--- a/packages/ui/primitives/document-flow/add-fields.tsx+++ b/packages/ui/primitives/document-flow/add-fields.tsx@@ -457,8 +457,8 @@ export const AddFieldsFormPartial = ({setFieldClipboard(lastActiveField);toast({- title: 'Copied field',- description: 'Copied field to clipboard',+ title: _(msg`Copied field`),+ description: _(msg`Copied field to clipboard`),});}},diff --git a/packages/ui/primitives/template-flow/add-template-fields.tsx b/packages/ui/primitives/template-flow/add-template-fields.tsxindex 321251f1f..b2a4ee2cf 100644--- a/packages/ui/primitives/template-flow/add-template-fields.tsx+++ b/packages/ui/primitives/template-flow/add-template-fields.tsx@@ -217,8 +217,8 @@ export const AddTemplateFieldsFormPartial = ({setFieldClipboard(lastActiveField);toast({- title: 'Copied field',- description: 'Copied field to clipboard',+ title: _(msg`Copied field`),+ description: _(msg`Copied field to clipboard`),});}},