mirror of
https://github.com/documenso/documenso.git
synced 2026-07-24 17:04:12 +10:00
138d663c25
Merge origin/main into feat/external-2fa-codes. Resolve formatting conflicts caused by biome rollout; preserve both feature streams: PR's external 2FA token + signing-session 2FA proof additions plus main's RateLimit/RecipientExpired/signingReminders/date-auto-insert. In complete-document-with-token.ts, drop the duplicate early field-fetching block introduced when main moved that logic later with date auto-insert support; keep the EXTERNAL_TWO_FACTOR_AUTH check using derivedRecipientActionAuth.
23 lines
995 B
TypeScript
23 lines
995 B
TypeScript
import type { MessageDescriptor } from '@lingui/core';
|
|
import { msg } from '@lingui/core/macro';
|
|
|
|
// This is separate from the pdf-viewer.ts constant file due to parsing issues during testing.
|
|
export const PDF_VIEWER_ERROR_MESSAGES = {
|
|
editor: {
|
|
title: msg`Configuration Error`,
|
|
description: msg`There was an issue rendering some fields, please review the fields and try again.`,
|
|
},
|
|
preview: {
|
|
title: msg`Configuration Error`,
|
|
description: msg`Something went wrong while rendering the document, some fields may be missing or corrupted.`,
|
|
},
|
|
signing: {
|
|
title: msg`Configuration Error`,
|
|
description: msg`Something went wrong while rendering the document, some fields may be missing or corrupted.`,
|
|
},
|
|
default: {
|
|
title: msg`Configuration Error`,
|
|
description: msg`Something went wrong while rendering the document, please try again or contact our support.`,
|
|
},
|
|
} satisfies Record<string, { title: MessageDescriptor; description: MessageDescriptor }>;
|