Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix(qa): restore working Excel template download for question import

Marc Seitz3e3ab9abbd71
diff --git a/components/datarooms/dataroom-document-card.tsx b/components/datarooms/dataroom-document-card.tsx
index 7b75daec..2efd6488 100644
--- a/components/datarooms/dataroom-document-card.tsx
+++ b/components/datarooms/dataroom-document-card.tsx
@@ -8,6 +8,7 @@ import { TeamContextType } from "@/context/team-context";
import {
ArchiveXIcon,
BetweenHorizontalStartIcon,
+ DownloadIcon,
FilePenIcon,
FileSlidersIcon,
FolderInputIcon,
@@ -20,6 +21,7 @@ import { mutate } from "swr";
import { type DataroomFolderDocument } from "@/lib/swr/use-dataroom";
import { type DocumentWithLinksAndLinkCountAndViewCount } from "@/lib/types";
import { cn, nFormatter, timeAgo } from "@/lib/utils";
+import { downloadFromLinkEndpoint } from "@/lib/utils/download-document";
import { fileIcon } from "@/lib/utils/get-file-icon";
import {
HIERARCHICAL_DISPLAY_STYLE,
@@ -175,6 +177,24 @@ export default function DataroomDocumentCard({
);
};
+ const handleDownloadDocument = (e: React.MouseEvent) => {
+ e.stopPropagation();
+ setMenuOpen(false);
+
+ toast.promise(
+ downloadFromLinkEndpoint({
+ endpoint: `/api/teams/${teamInfo?.currentTeam?.id}/documents/${dataroomDocument.document.id}/download`,
+ body: {},
+ fallbackFileName: dataroomDocument.document.name,
+ }),
+ {
+ loading: "Preparing download...",
+ success: "Download started.",
+ error: (err) => err.message || "Failed to download. Try again.",
+ },
+ );
+ };
+
const handleMenuStateChange = (open: boolean) => {
if (isFirstClick) {
setMenuOpen(true); // Keep the dropdown open on the first click
@@ -301,6 +321,12 @@ export default function DataroomDocumentCard({
</DropdownMenuTrigger>
<DropdownMenuContent align="end" ref={dropdownRef}>
<DropdownMenuLabel>Actions</DropdownMenuLabel>
+ {dataroomDocument.document.type !== "notion" ? (
+ <DropdownMenuItem onClick={handleDownloadDocument}>
+ <DownloadIcon className="mr-2 h-4 w-4" />
+ Download
+ </DropdownMenuItem>
+ ) : null}
<DropdownMenuItem
onClick={(e) => {
e.stopPropagation();
diff --git a/components/datarooms/download-progress-modal.tsx b/components/datarooms/download-progress-modal.tsx
index 86b44815..493d3b9a 100644
--- a/components/datarooms/download-progress-modal.tsx
+++ b/components/datarooms/download-progress-modal.tsx
@@ -75,6 +75,8 @@ interface DownloadProgressModalProps {
onClose: () => void;
jobId: string | null;
dataroomName?: string;
+ /** Display-only. Set when the job was scoped to a single folder. */
+ folderName?: string;
// For team member downloads (uses next-auth session)
teamId: string;
dataroomId: string;
@@ -85,6 +87,7 @@ export function DownloadProgressModal({
onClose,
jobId,
dataroomName,
+ folderName,
teamId,
dataroomId,
}: DownloadProgressModalProps) {
@@ -94,6 +97,11 @@ export function DownloadProgressModal({
const [existingDownloads, setExistingDownloads] = useState<DownloadJob[]>([]);
const [loading, setLoading] = useState(true);
const [showNewDownload, setShowNewDownload] = useState(false);
+ // Tracks the scope of the job currently on screen, not of the modal. A
+ // failed folder job offers "Back to Downloads", from where "Start New
+ // Download" always creates a whole-dataroom job, so the folder name has to
+ // stop being the title at that point.
+ const [scopeFolderName, setScopeFolderName] = useState(folderName);
const [isStartingDownload, setIsStartingDownload] = useState(false);
const [expandedDownloadId, setExpandedDownloadId] = useState<string | null>(
null,
@@ -132,17 +140,18 @@ export function DownloadProgressModal({
if (response.ok) {
const downloads = await response.json();
setExistingDownloads(downloads);
-
- // If we have a current jobId, show the new download view
- if (jobId) {
- setShowNewDownload(true);
- }
} else {
console.error("Failed to fetch existing downloads");
}
} catch (error) {
console.error("Error fetching existing downloads:", error);
} finally {
+ // A caller that hands us a jobId already started that job, so we go
+ // straight to progress. Independent of the job list loading, which
+ // would otherwise strand a running job behind an empty history view.
+ if (jobId) {
+ setShowNewDownload(true);
+ }
setLoading(false);
}
};
@@ -212,6 +221,7 @@ export function DownloadProgressModal({
setIsStartingDownload(true);
setShowNewDownload(true);
+ setScopeFolderName(undefined);
try {
const endpoint = `/api/teams/${teamId}/datarooms/${dataroomId}/download/bulk`;
@@ -372,7 +382,11 @@ export function DownloadProgressModal({
<DialogContent className="sm:max-w-md">
<DialogHeader>
<DialogTitle>
- Download {dataroomName || status?.dataroomName || "Dataroom"}
+ Download{" "}
+ {scopeFolderName ||
+ dataroomName ||
+ status?.dataroomName ||
+ "Dataroom"}
</DialogTitle>
<DialogDescription>
{showNewDownload
@@ -546,6 +560,11 @@ export function DownloadProgressModal({
{download.status}
</span>
</div>
+ <div className="text-sm font-medium">
+ {download.type === "folder"
+ ? download.folderName
+ : "Entire dataroom"}
+ </div>
<div className="text-xs text-muted-foreground">
{formatDate(download.createdAt)}
</div>
@@ -641,7 +660,9 @@ export function DownloadProgressModal({
) : (
<>
<Download className="mr-2 h-3 w-3" />
- Download All ({download.downloadUrls.length}{" "}
+ Download All ({
+ download.downloadUrls.length
+ }{" "}
parts)
</>
)}
diff --git a/components/documents/folder-card.tsx b/components/documents/folder-card.tsx
index f679d53a..1d88894b 100644
--- a/components/documents/folder-card.tsx
+++ b/components/documents/folder-card.tsx
@@ -9,6 +9,7 @@ import {
ChevronRight,
ClipboardCopyIcon,
CopyIcon,
+ DownloadIcon,
EyeOffIcon,
FileSlidersIcon,
FolderIcon,
@@ -40,8 +41,9 @@ import {
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
-import { MoveToDataroomFolderModal } from "../datarooms/move-dataroom-folder-modal";
+import { DownloadProgressModal } from "../datarooms/download-progress-modal";
import { SetUnifiedPermissionsModal } from "../datarooms/groups/set-unified-permissions-modal";
+import { MoveToDataroomFolderModal } from "../datarooms/move-dataroom-folder-modal";
import { EditFolderModal } from "../folders/edit-folder-modal";
import { AddFolderToDataroomModal } from "./add-folder-to-dataroom-modal";
import { MoveToFolderModal } from "./move-folder-modal";
@@ -80,6 +82,7 @@ export default function FolderCard({
const [addDataroomOpen, setAddDataroomOpen] = useState<boolean>(false);
const [groupPermissionOpen, setGroupPermissionOpen] =
useState<boolean>(false);
+ const [downloadJobId, setDownloadJobId] = useState<string | null>(null);
const dropdownRef = useRef<HTMLDivElement | null>(null);
// Get hierarchical display name for dataroom folders
@@ -157,6 +160,38 @@ export default function FolderCard({
);
};
+ const handleDownloadFolder = (e: React.MouseEvent) => {
+ e.preventDefault();
+ e.stopPropagation();
+ setMenuOpen(false);
+
+ // The job is created before the modal opens, so an empty folder surfaces
+ // as a toast instead of a modal that immediately shows an error.
+ toast.promise(
+ fetch(
+ `/api/teams/${teamInfo?.currentTeam?.id}/datarooms/${dataroomId}/download/bulk`,
+ {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({ folderId: folder.id }),
+ },
+ ).then(async (res) => {
+ const data = await res.json();
+ if (!res.ok) {
+ throw new Error(data.error || "Failed to start download");
+ }
+ setDownloadJobId(data.jobId);
+ }),
+ {
+ loading: "Preparing download...",
+ success: "Download started.",
+ error: (err) => err.message || "Failed to download folder. Try again.",
+ },
+ );
+ };
+
const handleCardClick = (e: React.MouseEvent) => {
if (isDragging || menuOpen) {
e.preventDefault();
@@ -351,16 +386,22 @@ export default function FolderCard({
: "Add folder to dataroom"}
</DropdownMenuItem>
{isDataroom && dataroomId ? (
- <DropdownMenuItem
- onClick={(e) => {
- e.preventDefault();
- e.stopPropagation();
- setGroupPermissionOpen(true);
- }}
- >
- <FileSlidersIcon className="mr-2 h-4 w-4" />
- Set Group Permissions
- </DropdownMenuItem>
+ <>
+ <DropdownMenuItem onClick={handleDownloadFolder}>
+ <DownloadIcon className="mr-2 h-4 w-4" />
+ Download folder
+ </DropdownMenuItem>
+ <DropdownMenuItem
+ onClick={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ setGroupPermissionOpen(true);
+ }}
+ >
+ <FileSlidersIcon className="mr-2 h-4 w-4" />
+ Set Group Permissions
+ </DropdownMenuItem>
+ </>
) : null}
<DropdownMenuItem
onClick={(e) => {
@@ -468,6 +509,16 @@ export default function FolderCard({
]}
/>
) : null}
+ {downloadJobId && dataroomId && teamInfo?.currentTeam?.id ? (
+ <DownloadProgressModal
+ isOpen
+ onClose={() => setDownloadJobId(null)}
+ jobId={downloadJobId}
+ folderName={folder.name}
+ teamId={teamInfo.currentTeam.id}
+ dataroomId={dataroomId}
+ />
+ ) : null}
</>
);
}
diff --git a/components/view/viewer-not-found.tsx b/components/view/viewer-not-found.tsx
new file mode 100644
index 00000000..075822b1
--- /dev/null
+++ b/components/view/viewer-not-found.tsx
@@ -0,0 +1,46 @@
+"use client";
+
+import NotFound from "@/pages/404";
+import { useTranslation } from "react-i18next";
+
+/**
+ * Why a visitor is being shown the not-found screen instead of the link.
+ *
+ * Each reason maps to `viewer.notFound.reasons.<reason>` in the locale files;
+ * the value here is the English fallback.
+ */
+const REASONS = {
+ expired: "Sorry, the link you're looking for is expired.",
+ archived: "Sorry, the link you're looking for is archived.",
+ dataroomClosed: "This data room has been closed and is no longer available.",
+ loadErrorRefresh:
+ "Sorry, we had trouble loading this link. Please try refreshing.",
+ loadErrorRetry:
+ "Sorry, we had trouble loading this link. Please try again in a moment.",
+ embedOnly: "This page can only be accessed when embedded in another website.",
+} as const;
+
+export type ViewerNotFoundReason = keyof typeof REASONS;
+
+/**
+ * The not-found screen, rendered in the data room's language.
+ *
+ * Every `NotFound` under `pages/view/**` lives inside an inner component that
+ * the page's default export wraps in `<ViewerI18nProvider>`, so `t` always
+ * resolves here. The early-exit `getStaticProps` branches (a link that failed
+ * to load, or a frozen data room read before the brand is known) ship no
+ * bundles — those fall back to English, which is the best we can do without a
+ * resolved brand locale.
+ */
+export function ViewerNotFound({ reason }: { reason: ViewerNotFoundReason }) {
+ const { t } = useTranslation("viewer");
+
+ return (
+ <NotFound
+ eyebrow={t("notFound.eyebrow", "404 error")}
+ title={t("notFound.title", "Page not found.")}
+ message={t(`notFound.reasons.${reason}`, REASONS[reason])}
+ homeLabel={t("notFound.goHome", "Go back home")}
+ />
+ );
+}
diff --git a/components/viewer-upload-component.tsx b/components/viewer-upload-component.tsx
index 6fc61d59..8d2a843a 100644
--- a/components/viewer-upload-component.tsx
+++ b/components/viewer-upload-component.tsx
@@ -2,6 +2,7 @@ import { useRef, useState } from "react";
import { usePendingUploads } from "@/context/pending-uploads-context";
import { FileUp } from "lucide-react";
+import { useTranslation } from "react-i18next";
import { toast } from "sonner";
import { DocumentData } from "@/lib/documents/create-document";
@@ -26,6 +27,9 @@ export function ViewerUploadComponent({
taskId?: string;
onUploadSuccess?: () => void;
}) {
+ // Viewer-only component: it is mounted exclusively inside the data room
+ // viewer tree, so the `dataroom` namespace is always available.
+ const { t } = useTranslation("dataroom");
const [uploads, setUploads] = useState<
{ uploadId: string; fileName: string; progress: number }[]
>([]);
@@ -133,12 +137,20 @@ export function ViewerUploadComponent({
if (!response.ok) {
const errorData = await response.json();
- throw new Error(errorData.message || "Failed to process upload");
+ throw new Error(
+ errorData.message ||
+ t("uploadZone.errorProcessFailed", "Failed to process upload"),
+ );
}
const result = await response.json();
if (!result.document) {
- throw new Error("Upload response missing document metadata");
+ throw new Error(
+ t(
+ "uploadZone.errorMissingMetadata",
+ "Upload response missing document metadata",
+ ),
+ );
}
// Determine if the file needs trigger processing (PDF, docs, slides)
@@ -167,12 +179,16 @@ export function ViewerUploadComponent({
settleUpload(uploadId, false);
} catch (error) {
console.error("Error processing upload:", error);
- toast.error((error as Error).message || "Failed to upload document");
+ const fallback = t(
+ "uploadZone.toastUploadFailed",
+ "Failed to upload document",
+ );
+ toast.error((error as Error).message || fallback);
if (pendingId) {
updatePendingUpload(pendingId, {
status: "error",
- errorMessage: (error as Error).message || "Failed to upload document",
+ errorMessage: (error as Error).message || fallback,
});
}
@@ -225,10 +241,16 @@ export function ViewerUploadComponent({
<FileUp className="h-5 w-5 text-muted-foreground" />
</div>
<p className="text-sm font-medium text-foreground">
- Drag & drop files here, or click to select files
+ {t(
+ "uploadZone.dropzoneTitle",
+ "Drag & drop files here, or click to select files",
+ )}
</p>
<p className="mt-1 text-xs text-muted-foreground">
- Supported: PDF, Office, spreadsheets, images, ZIP, and more
+ {t(
+ "uploadZone.dropzoneHint",
+ "Supported: PDF, Office, spreadsheets, images, ZIP, and more",
+ )}
</p>
</div>
)}
@@ -237,7 +259,7 @@ export function ViewerUploadComponent({
{rejectedFiles.length > 0 && (
<div className="mt-3 rounded-lg border border-red-200 bg-red-50 p-3 dark:border-red-800 dark:bg-red-950/30">
<p className="text-xs font-medium text-red-600 dark:text-red-400">
- Some files were rejected:
+ {t("uploadZone.rejectedTitle", "Some files were rejected:")}
</p>
<ul className="mt-1.5 space-y-0.5">
{rejectedFiles.map((file, index) => (
diff --git a/components/viewer-upload-zone.tsx b/components/viewer-upload-zone.tsx
index 1e978953..d1a94227 100644
--- a/components/viewer-upload-zone.tsx
+++ b/components/viewer-upload-zone.tsx
@@ -2,6 +2,7 @@ import { useCallback } from "react";
import { DocumentStorageType } from "@prisma/client";
import { FileRejection, useDropzone } from "react-dropzone";
+import { useTranslation } from "react-i18next";
import { toast } from "sonner";
import { VIEWER_ACCEPTED_FILE_TYPES } from "@/lib/constants";
@@ -46,20 +47,28 @@ export default function ViewerUploadZone({
maxFileSize?: number;
disabled?: boolean;
}) {
+ // Viewer-only component: it is mounted exclusively inside the data room
+ // viewer tree, so the `dataroom` namespace is always available.
+ const { t } = useTranslation("dataroom");
+
const onDropRejected = useCallback(
(rejectedFiles: FileRejection[]) => {
const rejected = rejectedFiles.map(({ file, errors }) => {
let message = "";
if (errors.find(({ code }) => code === "file-too-large")) {
- message = `File size too big (max. ${maxFileSize} MB).`;
+ message = t(
+ "uploadZone.rejectedTooLarge",
+ "File size too big (max. {{size}} MB).",
+ { size: maxFileSize },
+ );
} else if (errors.find(({ code }) => code === "file-invalid-type")) {
- message = `File type not supported.`;
+ message = t("uploadZone.rejectedType", "File type not supported.");
}
return { fileName: file.name, message };
});
onUploadRejected(rejected);
},
- [onUploadRejected, maxFileSize],
+ [onUploadRejected, maxFileSize, t],
);
const onDrop = useCallback(
@@ -96,7 +105,11 @@ export default function ViewerUploadZone({
},
onError: (error) => {
console.error("Upload error:", error);
- toast.error(`Failed to upload ${file.name}`);
+ toast.error(
+ t("uploadZone.toastFileFailed", "Failed to upload {{name}}", {
+ name: file.name,
+ }),
+ );
},
viewerData,
teamId,
@@ -159,10 +172,12 @@ export default function ViewerUploadZone({
try {
await Promise.all(uploadPromises);
- toast.success("File upload complete!");
+ toast.success(t("uploadZone.toastComplete", "File upload complete!"));
} catch (error) {
console.error("Upload error:", error);
- toast.error("An error occurred during upload");
+ toast.error(
+ t("uploadZone.toastError", "An error occurred during upload"),
+ );
}
},
[
@@ -172,6 +187,7 @@ export default function ViewerUploadZone({
viewerData,
teamId,
taskId,
+ t,
],
);
@@ -185,7 +201,7 @@ export default function ViewerUploadZone({
});
return (
- <div {...getRootProps()} className="relative min-w-0 min-h-[200px]">
+ <div {...getRootProps()} className="relative min-h-[200px] min-w-0">
<div
className={cn(
"absolute inset-0 z-40 -m-1 rounded-lg border-2 border-dashed",
@@ -205,10 +221,13 @@ export default function ViewerUploadZone({
<div className="flex h-full items-center justify-center">
<div className="inline-flex flex-col rounded-lg bg-background/95 px-6 py-4 text-center ring-1 ring-gray-900/5 dark:bg-gray-900/95 dark:ring-white/10">
<span className="font-medium text-foreground">
- Drop your file(s) here
+ {t("uploadZone.dropActive", "Drop your file(s) here")}
</span>
<p className="mt-1 text-xs leading-5 text-muted-foreground">
- PDF, Office, images, ZIP, and more
+ {t(
+ "uploadZone.dropActiveHint",
+ "PDF, Office, images, ZIP, and more",
+ )}
</p>
</div>
</div>
diff --git a/lib/utils/download-document.ts b/lib/utils/download-document.ts
index eb546917..b3af8e7f 100644
--- a/lib/utils/download-document.ts
+++ b/lib/utils/download-document.ts
@@ -25,7 +25,9 @@ export async function downloadFromLinkEndpoint({
if (!response.ok) {
const errorData = await response.json().catch(() => ({}));
- throw new Error(errorData.error || "Failed to download file");
+ throw new Error(
+ errorData.error || errorData.message || "Failed to download file",
+ );
}
const contentType = response.headers.get("content-type");
diff --git a/locales/de/dataroom.json b/locales/de/dataroom.json
index aa5f3748..7c858ab9 100644
--- a/locales/de/dataroom.json
+++ b/locales/de/dataroom.json
@@ -73,7 +73,8 @@
"uploadingTo": "Hochladen nach:",
"setByOwner": "(festgelegt vom Datenraum-Inhaber)",
"success": "Dokument erfolgreich hochgeladen!",
- "successDescription": "Ihr Dokument ist jetzt im Datenraum sichtbar."
+ "successDescription": "Ihr Dokument ist jetzt im Datenraum sichtbar.",
+ "previewDisabled": "Im Vorschaumodus können Sie keine Dateien hochladen."
},
"download": {
"folderTitle": "Ordner herunterladen: {{name}}",
@@ -167,6 +168,66 @@
"generating": "Wird generiert...",
"successToast": "Indexdatei erfolgreich generiert",
"errorToast": "Index konnte nicht generiert werden",
- "genericError": "Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut."
+ "genericError": "Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",
+ "previewDisabled": "Im Vorschaumodus können Sie keine Indexdatei generieren."
+ },
+ "requestList": {
+ "trigger": "Anfrageliste",
+ "title": "Anfrageliste",
+ "summaryEmpty": "Ihnen zugewiesene Anfragen erscheinen hier.",
+ "summaryPending_one": "{{count}} Anfrage benötigt Ihre Aufmerksamkeit.",
+ "summaryPending_other": "{{count}} Anfragen benötigen Ihre Aufmerksamkeit.",
+ "summaryDone": "Sie haben alles erledigt. Warten auf die Prüfung durch den Inhaber.",
+ "emptyTitle": "Nichts zu erledigen",
+ "emptyDescription": "Ihnen ist derzeit keine Anfrage zugewiesen.",
+ "due": "Fällig {{date}}",
+ "overdue": "überfällig",
+ "lockedByHost": "Vom Inhaber als erledigt markiert",
+ "commentPlaceholder": "Notiz für den Inhaber hinzufügen (optional)…",
+ "commentPlaceholderLocked": "Kommentar hinzufügen…",
+ "submitComment": "Kommentar hinzufügen",
+ "submitStatus": "Anfrage aktualisieren",
+ "submitDefault": "Update senden",
+ "activityHeading": "Aktivität",
+ "uploadsHeading": "Ihre Dateien",
+ "uploadRequired": "Datei erforderlich",
+ "uploadProcessing": "Wird verarbeitet",
+ "toastUpdated": "Anfrage aktualisiert",
+ "toastCommented": "Kommentar hinzugefügt",
+ "toastFailed": "Aktualisierung fehlgeschlagen",
+ "status": {
+ "OPEN": "Offen",
+ "IN_PROGRESS": "In Bearbeitung",
+ "SUBMITTED": "Eingereicht",
+ "COMPLETED": "Abgeschlossen"
+ },
+ "activity": {
+ "you": "Sie",
+ "someone": "Jemand",
+ "empty": "Noch keine Aktivität.",
+ "created": "Anfrage erstellt",
+ "assigned": "Zuweisungen aktualisiert",
+ "uploaded": "{{name}} hochgeladen",
+ "uploadedFallback": "Datei hochgeladen",
+ "statusFromTo": "Status von {{from}} zu {{to}} geändert",
+ "statusTo": "Status auf {{status}} gesetzt",
+ "statusChanged": "Status geändert",
+ "updated": "Anfrage aktualisiert"
+ }
+ },
+ "uploadZone": {
+ "dropzoneTitle": "Dateien hierher ziehen und ablegen oder klicken, um Dateien auszuwählen",
+ "dropzoneHint": "Unterstützt: PDF, Office, Tabellen, Bilder, ZIP und mehr",
+ "dropActive": "Datei(en) hier ablegen",
+ "dropActiveHint": "PDF, Office, Bilder, ZIP und mehr",
+ "rejectedTitle": "Einige Dateien wurden abgelehnt:",
+ "rejectedTooLarge": "Datei ist zu groß (max. {{size}} MB).",
+ "rejectedType": "Dateityp wird nicht unterstützt.",
+ "toastComplete": "Upload abgeschlossen!",
+ "toastError": "Beim Hochladen ist ein Fehler aufgetreten",
+ "toastFileFailed": "{{name}} konnte nicht hochgeladen werden",
+ "toastUploadFailed": "Dokument konnte nicht hochgeladen werden",
+ "errorProcessFailed": "Upload konnte nicht verarbeitet werden",
+ "errorMissingMetadata": "In der Upload-Antwort fehlen die Dokument-Metadaten"
}
}
diff --git a/locales/de/viewer.json b/locales/de/viewer.json
index 8d682ba7..834ed877 100644
--- a/locales/de/viewer.json
+++ b/locales/de/viewer.json
@@ -6,7 +6,9 @@
"linksOnCurrentPage": "Links auf der aktuellen Seite",
"zoomIn": "Vergrößern",
"zoomOut": "Verkleinern",
+ "resetZoom": "An Bildschirm anpassen",
"fullscreen": "Vollbild",
+ "exitFullscreen": "Vollbild beenden",
"downloadDocument": "Dokument herunterladen",
"teamMemberTooltip": "Verifizierung übersprungen, da Sie Teammitglied sind; es werden keine Analysen erfasst",
"changeLanguage": "Sprache ändern"
@@ -58,5 +60,82 @@
"notWorking": "Inhalt funktioniert nicht ordnungsgemäß",
"other": "Sonstiges"
}
+ },
+ "qa": {
+ "header": {
+ "title": "Fragen an das Team",
+ "composeTitle": "Neue Frage stellen",
+ "subtitleWithName": "Fragen zu {{name}}",
+ "subtitle": "Fragen zu diesem Datenraum",
+ "back": "Zurück",
+ "close": "Schließen"
+ },
+ "tabs": {
+ "home": "Start",
+ "messages": "Fragen",
+ "faq": "FAQ"
+ },
+ "home": {
+ "askNew": "Neue Frage stellen",
+ "recentReply": "Letzte Antwort",
+ "openConversation": "Unterhaltung öffnen",
+ "frequentlyAsked": "Häufig gestellte Fragen"
+ },
+ "messages": {
+ "emptyTitle": "Noch keine Fragen",
+ "emptyDescription": "Stellen Sie dem Team eine Frage – sie erscheint dann hier.",
+ "askQuestion": "Frage stellen",
+ "newReply": "Neue Antwort"
+ },
+ "compose": {
+ "aboutPage": "Zu dieser Seite",
+ "subjectPlaceholder": "Betreff (optional)",
+ "messagePlaceholder": "Geben Sie Ihre Frage ein …",
+ "sending": "Wird gesendet …",
+ "submit": "Frage senden"
+ },
+ "thread": {
+ "you": "Sie",
+ "team": "Team",
+ "page": "Seite {{page}}",
+ "newDivider": "Neu",
+ "closed": "Diese Unterhaltung wurde vom Team geschlossen.",
+ "messagePlaceholder": "Geben Sie Ihre Nachricht ein …",
+ "sendReply": "Antwort senden"
+ },
+ "status": {
+ "answered": "Beantwortet",
+ "awaiting": "Warten auf Antwort",
+ "closed": "Geschlossen"
+ },
+ "snippet": {
+ "team": "Team: ",
+ "you": "Sie: "
+ },
+ "time": {
+ "now": "jetzt",
+ "minutes": "{{n}} Min.",
+ "hours": "{{n}} Std.",
+ "days": "{{n}} T."
+ },
+ "toasts": {
+ "sendMessageFailed": "Nachricht konnte nicht gesendet werden",
+ "sendQuestionFailed": "Frage konnte nicht gesendet werden"
+ },
+ "untitled": "Frage ohne Titel",
+ "faqEmpty": "Es wurden noch keine Fragen veröffentlicht."
+ },
+ "notFound": {
+ "eyebrow": "Fehler 404",
+ "title": "Seite nicht gefunden.",
+ "goHome": "Zurück zur Startseite",
+ "reasons": {
+ "expired": "Der gesuchte Link ist abgelaufen.",
+ "archived": "Der gesuchte Link wurde archiviert.",
+ "dataroomClosed": "Dieser Datenraum wurde geschlossen und ist nicht mehr verfügbar.",
+ "loadErrorRefresh": "Der Link konnte leider nicht geladen werden. Bitte aktualisieren Sie die Seite.",
+ "loadErrorRetry": "Der Link konnte leider nicht geladen werden. Bitte versuchen Sie es gleich noch einmal.",
+ "embedOnly": "Auf diese Seite kann nur zugegriffen werden, wenn sie in eine andere Website eingebettet ist."
+ }
}
}
diff --git a/locales/en/dataroom.json b/locales/en/dataroom.json
index 92f6ab58..93968aca 100644
--- a/locales/en/dataroom.json
+++ b/locales/en/dataroom.json
@@ -170,5 +170,64 @@
"errorToast": "Failed to generate index",
"genericError": "Something went wrong. Please try again.",
"previewDisabled": "Generating an index file isn't available in preview mode."
+ },
+ "requestList": {
+ "trigger": "Request List",
+ "title": "Request List",
+ "summaryEmpty": "Requests assigned to you appear here.",
+ "summaryPending_one": "{{count}} request needs your attention.",
+ "summaryPending_other": "{{count}} requests need your attention.",
+ "summaryDone": "You're all caught up. Awaiting host review.",
+ "emptyTitle": "Nothing to action",
+ "emptyDescription": "No requests are assigned to you right now.",
+ "due": "Due {{date}}",
+ "overdue": "overdue",
+ "lockedByHost": "Marked completed by the host",
+ "commentPlaceholder": "Add a note for the host (optional)…",
+ "commentPlaceholderLocked": "Add a comment…",
+ "submitComment": "Add comment",
+ "submitStatus": "Update request",
+ "submitDefault": "Send update",
+ "activityHeading": "Activity",
+ "uploadsHeading": "Your files",
+ "uploadRequired": "File required",
+ "uploadProcessing": "Processing",
+ "toastUpdated": "Request updated",
+ "toastCommented": "Comment added",
+ "toastFailed": "Failed to update",
+ "status": {
+ "OPEN": "Open",
+ "IN_PROGRESS": "In progress",
+ "SUBMITTED": "Submitted",
+ "COMPLETED": "Completed"
+ },
+ "activity": {
+ "you": "You",
+ "someone": "Someone",
+ "empty": "No activity yet.",
+ "created": "created the request",
+ "assigned": "updated the assignees",
+ "uploaded": "uploaded {{name}}",
+ "uploadedFallback": "uploaded a file",
+ "statusFromTo": "changed status from {{from}} to {{to}}",
+ "statusTo": "set status to {{status}}",
+ "statusChanged": "changed the status",
+ "updated": "updated the request"
+ }
+ },
+ "uploadZone": {
+ "dropzoneTitle": "Drag & drop files here, or click to select files",
+ "dropzoneHint": "Supported: PDF, Office, spreadsheets, images, ZIP, and more",
+ "dropActive": "Drop your file(s) here",
+ "dropActiveHint": "PDF, Office, images, ZIP, and more",
+ "rejectedTitle": "Some files were rejected:",
+ "rejectedTooLarge": "File size too big (max. {{size}} MB).",
+ "rejectedType": "File type not supported.",
+ "toastComplete": "File upload complete!",
+ "toastError": "An error occurred during upload",
+ "toastFileFailed": "Failed to upload {{name}}",
+ "toastUploadFailed": "Failed to upload document",
+ "errorProcessFailed": "Failed to process upload",
+ "errorMissingMetadata": "Upload response missing document metadata"
}
}
diff --git a/locales/en/viewer.json b/locales/en/viewer.json
index 162247ca..d5f8682c 100644
--- a/locales/en/viewer.json
+++ b/locales/en/viewer.json
@@ -60,5 +60,82 @@
"notWorking": "Content is not working properly",
"other": "Other"
}
+ },
+ "qa": {
+ "header": {
+ "title": "Ask the deal team",
+ "composeTitle": "Ask a new question",
+ "subtitleWithName": "Questions about {{name}}",
+ "subtitle": "Questions about this data room",
+ "back": "Back",
+ "close": "Close"
+ },
+ "tabs": {
+ "home": "Home",
+ "messages": "Questions",
+ "faq": "FAQ"
+ },
+ "home": {
+ "askNew": "Ask a new question",
+ "recentReply": "Recent reply",
+ "openConversation": "Open conversation",
+ "frequentlyAsked": "Frequently asked"
+ },
+ "messages": {
+ "emptyTitle": "No questions yet",
+ "emptyDescription": "Ask the team a question and it will show up here.",
+ "askQuestion": "Ask a question",
+ "newReply": "New reply"
+ },
+ "compose": {
+ "aboutPage": "About this page",
+ "subjectPlaceholder": "Subject (optional)",
+ "messagePlaceholder": "Type your question...",
+ "sending": "Sending…",
+ "submit": "Send question"
+ },
+ "thread": {
+ "you": "You",
+ "team": "Team",
+ "page": "Page {{page}}",
+ "newDivider": "New",
+ "closed": "This conversation has been closed by the team.",
+ "messagePlaceholder": "Type your message...",
+ "sendReply": "Send reply"
+ },
+ "status": {
+ "answered": "Answered",
+ "awaiting": "Awaiting reply",
+ "closed": "Closed"
+ },
+ "snippet": {
+ "team": "Team: ",
+ "you": "You: "
+ },
+ "time": {
+ "now": "now",
+ "minutes": "{{n}}m",
+ "hours": "{{n}}h",
+ "days": "{{n}}d"
+ },
+ "toasts": {
+ "sendMessageFailed": "Failed to send message",
+ "sendQuestionFailed": "Failed to send question"
+ },
+ "untitled": "Untitled question",
+ "faqEmpty": "No questions published yet."
+ },
+ "notFound": {
+ "eyebrow": "404 error",
+ "title": "Page not found.",
+ "goHome": "Go back home",
+ "reasons": {
+ "expired": "Sorry, the link you're looking for is expired.",
+ "archived": "Sorry, the link you're looking for is archived.",
+ "dataroomClosed": "This data room has been closed and is no longer available.",
+ "loadErrorRefresh": "Sorry, we had trouble loading this link. Please try refreshing.",
+ "loadErrorRetry": "Sorry, we had trouble loading this link. Please try again in a moment.",
+ "embedOnly": "This page can only be accessed when embedded in another website."
+ }
}
}
diff --git a/locales/es/dataroom.json b/locales/es/dataroom.json
index b57e788a..b4ca86e0 100644
--- a/locales/es/dataroom.json
+++ b/locales/es/dataroom.json
@@ -73,7 +73,8 @@
"uploadingTo": "Subiendo a:",
"setByOwner": "(establecido por el propietario de la sala de datos)",
"success": "¡Documento subido correctamente!",
- "successDescription": "Su documento ya está visible en la sala de datos."
+ "successDescription": "Su documento ya está visible en la sala de datos.",
+ "previewDisabled": "No puede subir archivos en modo vista previa."
},
"download": {
"folderTitle": "Descargar carpeta: {{name}}",
@@ -167,6 +168,66 @@
"generating": "Generando...",
"successToast": "El archivo de índice se generó correctamente",
"errorToast": "No se pudo generar el archivo de índice",
- "genericError": "Algo salió mal. Por favor, inténtelo de nuevo."
+ "genericError": "Algo salió mal. Por favor, inténtelo de nuevo.",
+ "previewDisabled": "No puede generar un archivo de índice en modo vista previa."
+ },
+ "requestList": {
+ "trigger": "Lista de solicitudes",
+ "title": "Lista de solicitudes",
+ "summaryEmpty": "Las solicitudes asignadas a usted aparecerán aquí.",
+ "summaryPending_one": "{{count}} solicitud requiere su atención.",
+ "summaryPending_other": "{{count}} solicitudes requieren su atención.",
+ "summaryDone": "Está todo al día. A la espera de la revisión del propietario.",
+ "emptyTitle": "Nada por hacer",
+ "emptyDescription": "No tiene ninguna solicitud asignada en este momento.",
+ "due": "Vence el {{date}}",
+ "overdue": "vencida",
+ "lockedByHost": "Marcada como completada por el propietario",
+ "commentPlaceholder": "Añada una nota para el propietario (opcional)…",
+ "commentPlaceholderLocked": "Añada un comentario…",
+ "submitComment": "Añadir comentario",
+ "submitStatus": "Actualizar solicitud",
+ "submitDefault": "Enviar actualización",
+ "activityHeading": "Actividad",
+ "uploadsHeading": "Sus archivos",
+ "uploadRequired": "Archivo obligatorio",
+ "uploadProcessing": "Procesando",
+ "toastUpdated": "Solicitud actualizada",
+ "toastCommented": "Comentario añadido",
+ "toastFailed": "No se pudo actualizar",
+ "status": {
+ "OPEN": "Abierta",
+ "IN_PROGRESS": "En curso",
+ "SUBMITTED": "Enviada",
+ "COMPLETED": "Completada"
+ },
+ "activity": {
+ "you": "Usted",
+ "someone": "Alguien",
+ "empty": "Aún no hay actividad.",
+ "created": "creó la solicitud",
+ "assigned": "actualizó los asignados",
+ "uploaded": "subió {{name}}",
+ "uploadedFallback": "subió un archivo",
+ "statusFromTo": "cambió el estado de {{from}} a {{to}}",
+ "statusTo": "estableció el estado en {{status}}",
+ "statusChanged": "cambió el estado",
+ "updated": "actualizó la solicitud"
+ }
+ },
+ "uploadZone": {
+ "dropzoneTitle": "Arrastre y suelte archivos aquí, o haga clic para seleccionarlos",
+ "dropzoneHint": "Compatible: PDF, Office, hojas de cálculo, imágenes, ZIP y más",
+ "dropActive": "Suelte sus archivos aquí",
+ "dropActiveHint": "PDF, Office, imágenes, ZIP y más",
+ "rejectedTitle": "Se rechazaron algunos archivos:",
+ "rejectedTooLarge": "El archivo es demasiado grande (máx. {{size}} MB).",
+ "rejectedType": "Tipo de archivo no compatible.",
+ "toastComplete": "¡Carga completada!",
+ "toastError": "Se produjo un error durante la carga",
+ "toastFileFailed": "No se pudo subir {{name}}",
+ "toastUploadFailed": "No se pudo subir el documento",
+ "errorProcessFailed": "No se pudo procesar la carga",
+ "errorMissingMetadata": "Faltan los metadatos del documento en la respuesta de carga"
}
}
diff --git a/locales/es/viewer.json b/locales/es/viewer.json
index 323c5b15..90b2d37a 100644
--- a/locales/es/viewer.json
+++ b/locales/es/viewer.json
@@ -6,7 +6,9 @@
"linksOnCurrentPage": "Enlaces en la página actual",
"zoomIn": "Acercar",
"zoomOut": "Alejar",
+ "resetZoom": "Ajustar a la pantalla",
"fullscreen": "Pantalla completa",
+ "exitFullscreen": "Salir de pantalla completa",
"downloadDocument": "Descargar documento",
"teamMemberTooltip": "Verificación omitida porque es miembro del equipo; no se recopilarán datos analíticos",
"changeLanguage": "Cambiar idioma"
@@ -58,5 +60,82 @@
"notWorking": "El contenido no funciona correctamente",
"other": "Otro"
}
+ },
+ "qa": {
+ "header": {
+ "title": "Pregunte al equipo",
+ "composeTitle": "Hacer una nueva pregunta",
+ "subtitleWithName": "Preguntas sobre {{name}}",
+ "subtitle": "Preguntas sobre esta sala de datos",
+ "back": "Atrás",
+ "close": "Cerrar"
+ },
+ "tabs": {
+ "home": "Inicio",
+ "messages": "Preguntas",
+ "faq": "FAQ"
+ },
+ "home": {
+ "askNew": "Hacer una nueva pregunta",
+ "recentReply": "Respuesta reciente",
+ "openConversation": "Abrir conversación",
+ "frequentlyAsked": "Preguntas frecuentes"
+ },
+ "messages": {
+ "emptyTitle": "Aún no hay preguntas",
+ "emptyDescription": "Haga una pregunta al equipo y aparecerá aquí.",
+ "askQuestion": "Hacer una pregunta",
+ "newReply": "Respuesta nueva"
+ },
+ "compose": {
+ "aboutPage": "Sobre esta página",
+ "subjectPlaceholder": "Asunto (opcional)",
+ "messagePlaceholder": "Escriba su pregunta...",
+ "sending": "Enviando…",
+ "submit": "Enviar pregunta"
+ },
+ "thread": {
+ "you": "Usted",
+ "team": "Equipo",
+ "page": "Página {{page}}",
+ "newDivider": "Nuevo",
+ "closed": "El equipo ha cerrado esta conversación.",
+ "messagePlaceholder": "Escriba su mensaje...",
+ "sendReply": "Enviar respuesta"
+ },
+ "status": {
+ "answered": "Respondida",
+ "awaiting": "Esperando respuesta",
+ "closed": "Cerrada"
+ },
+ "snippet": {
+ "team": "Equipo: ",
+ "you": "Usted: "
+ },
+ "time": {
+ "now": "ahora",
+ "minutes": "{{n}} min",
+ "hours": "{{n}} h",
+ "days": "{{n}} d"
+ },
+ "toasts": {
+ "sendMessageFailed": "No se pudo enviar el mensaje",
+ "sendQuestionFailed": "No se pudo enviar la pregunta"
+ },
+ "untitled": "Pregunta sin título",
+ "faqEmpty": "Aún no se han publicado preguntas."
+ },
+ "notFound": {
+ "eyebrow": "Error 404",
+ "title": "Página no encontrada.",
+ "goHome": "Volver al inicio",
+ "reasons": {
+ "expired": "El enlace que busca ha caducado.",
+ "archived": "El enlace que busca está archivado.",
+ "dataroomClosed": "Esta sala de datos se ha cerrado y ya no está disponible.",
+ "loadErrorRefresh": "No pudimos cargar este enlace. Intente actualizar la página.",
+ "loadErrorRetry": "No pudimos cargar este enlace. Vuelva a intentarlo en un momento.",
+ "embedOnly": "Solo se puede acceder a esta página cuando está insertada en otro sitio web."
+ }
}
}
diff --git a/locales/fr/dataroom.json b/locales/fr/dataroom.json
index 3e381d38..952151d1 100644
--- a/locales/fr/dataroom.json
+++ b/locales/fr/dataroom.json
@@ -73,7 +73,8 @@
"uploadingTo": "Envoi vers :",
"setByOwner": "(défini par le propriétaire de la salle de données)",
"success": "Document téléversé avec succès !",
- "successDescription": "Votre document est désormais visible dans la salle de données."
+ "successDescription": "Votre document est désormais visible dans la salle de données.",
+ "previewDisabled": "Vous ne pouvez pas téléverser de fichiers en mode aperçu."
},
"download": {
"folderTitle": "Télécharger le dossier : {{name}}",
@@ -167,6 +168,66 @@
"generating": "Génération...",
"successToast": "Fichier d'index généré avec succès",
"errorToast": "Échec de la génération de l'index",
- "genericError": "Une erreur s'est produite. Veuillez réessayer."
+ "genericError": "Une erreur s'est produite. Veuillez réessayer.",
+ "previewDisabled": "Vous ne pouvez pas générer de fichier d'index en mode aperçu."
+ },
+ "requestList": {
+ "trigger": "Liste de demandes",
+ "title": "Liste de demandes",
+ "summaryEmpty": "Les demandes qui vous sont attribuées apparaissent ici.",
+ "summaryPending_one": "{{count}} demande requiert votre attention.",
+ "summaryPending_other": "{{count}} demandes requièrent votre attention.",
+ "summaryDone": "Vous êtes à jour. En attente de la vérification du propriétaire.",
+ "emptyTitle": "Rien à traiter",
+ "emptyDescription": "Aucune demande ne vous est attribuée pour le moment.",
+ "due": "Échéance {{date}}",
+ "overdue": "en retard",
+ "lockedByHost": "Marquée comme terminée par le propriétaire",
+ "commentPlaceholder": "Ajouter une note pour le propriétaire (facultatif)…",
+ "commentPlaceholderLocked": "Ajouter un commentaire…",
+ "submitComment": "Ajouter un commentaire",
+ "submitStatus": "Mettre à jour la demande",
+ "submitDefault": "Envoyer la mise à jour",
+ "activityHeading": "Activité",
+ "uploadsHeading": "Vos fichiers",
+ "uploadRequired": "Fichier requis",
+ "uploadProcessing": "Traitement en cours",
+ "toastUpdated": "Demande mise à jour",
+ "toastCommented": "Commentaire ajouté",
+ "toastFailed": "Échec de la mise à jour",
+ "status": {
+ "OPEN": "Ouverte",
+ "IN_PROGRESS": "En cours",
+ "SUBMITTED": "Envoyée",
+ "COMPLETED": "Terminée"
+ },
+ "activity": {
+ "you": "Vous",
+ "someone": "Quelqu'un",
+ "empty": "Aucune activité pour le moment.",
+ "created": "demande créée",
+ "assigned": "attributions mises à jour",
+ "uploaded": "{{name}} téléversé",
+ "uploadedFallback": "fichier téléversé",
+ "statusFromTo": "statut modifié de {{from}} à {{to}}",
+ "statusTo": "statut défini sur {{status}}",
+ "statusChanged": "statut modifié",
+ "updated": "demande mise à jour"
+ }
+ },
+ "uploadZone": {
+ "dropzoneTitle": "Glissez-déposez des fichiers ici, ou cliquez pour les sélectionner",
+ "dropzoneHint": "Pris en charge : PDF, Office, tableurs, images, ZIP et plus",
+ "dropActive": "Déposez vos fichiers ici",
+ "dropActiveHint": "PDF, Office, images, ZIP et plus",
+ "rejectedTitle": "Certains fichiers ont été refusés :",
+ "rejectedTooLarge": "Fichier trop volumineux (max. {{size}} Mo).",
+ "rejectedType": "Type de fichier non pris en charge.",
+ "toastComplete": "Téléversement terminé !",
+ "toastError": "Une erreur s'est produite lors du téléversement",
+ "toastFileFailed": "Échec du téléversement de {{name}}",
+ "toastUploadFailed": "Échec du téléversement du document",
+ "errorProcessFailed": "Échec du traitement du téléversement",
+ "errorMissingMetadata": "Les métadonnées du document sont absentes de la réponse de téléversement"
}
}
diff --git a/locales/fr/viewer.json b/locales/fr/viewer.json
index f50a3d2b..be7f894f 100644
--- a/locales/fr/viewer.json
+++ b/locales/fr/viewer.json
@@ -6,7 +6,9 @@
"linksOnCurrentPage": "Liens sur la page actuelle",
"zoomIn": "Zoom avant",
"zoomOut": "Zoom arrière",
+ "resetZoom": "Ajuster à l'écran",
"fullscreen": "Plein écran",
+ "exitFullscreen": "Quitter le plein écran",
"downloadDocument": "Télécharger le document",
"teamMemberTooltip": "Vérification ignorée car vous êtes membre de l'équipe ; aucune analyse ne sera collectée",
"changeLanguage": "Changer de langue"
@@ -58,5 +60,82 @@
"notWorking": "Le contenu ne fonctionne pas correctement",
"other": "Autre"
}
+ },
+ "qa": {
+ "header": {
+ "title": "Poser une question à l'équipe",
+ "composeTitle": "Poser une nouvelle question",
+ "subtitleWithName": "Questions sur {{name}}",
+ "subtitle": "Questions sur cette salle de données",
+ "back": "Retour",
+ "close": "Fermer"
+ },
+ "tabs": {
+ "home": "Accueil",
+ "messages": "Questions",
+ "faq": "FAQ"
+ },
+ "home": {
+ "askNew": "Poser une nouvelle question",
+ "recentReply": "Réponse récente",
+ "openConversation": "Ouvrir la conversation",
+ "frequentlyAsked": "Questions fréquentes"
+ },
+ "messages": {
+ "emptyTitle": "Aucune question pour le moment",
+ "emptyDescription": "Posez une question à l'équipe et elle apparaîtra ici.",
+ "askQuestion": "Poser une question",
+ "newReply": "Nouvelle réponse"
+ },
+ "compose": {
+ "aboutPage": "À propos de cette page",
+ "subjectPlaceholder": "Objet (facultatif)",
+ "messagePlaceholder": "Saisissez votre question...",
+ "sending": "Envoi…",
+ "submit": "Envoyer la question"
+ },
+ "thread": {
+ "you": "Vous",
+ "team": "Équipe",
+ "page": "Page {{page}}",
+ "newDivider": "Nouveau",
+ "closed": "Cette conversation a été fermée par l'équipe.",
+ "messagePlaceholder": "Saisissez votre message...",
+ "sendReply": "Envoyer la réponse"
+ },
+ "status": {
+ "answered": "Répondue",
+ "awaiting": "En attente de réponse",
+ "closed": "Fermée"
+ },
+ "snippet": {
+ "team": "Équipe : ",
+ "you": "Vous : "
+ },
+ "time": {
+ "now": "maintenant",
+ "minutes": "{{n}} min",
+ "hours": "{{n}} h",
+ "days": "{{n}} j"
+ },
+ "toasts": {
+ "sendMessageFailed": "Échec de l'envoi du message",
+ "sendQuestionFailed": "Échec de l'envoi de la question"
+ },
+ "untitled": "Question sans titre",
+ "faqEmpty": "Aucune question publiée pour le moment."
+ },
+ "notFound": {
+ "eyebrow": "Erreur 404",
+ "title": "Page introuvable.",
+ "goHome": "Retour à l'accueil",
+ "reasons": {
+ "expired": "Le lien que vous recherchez a expiré.",
+ "archived": "Le lien que vous recherchez est archivé.",
+ "dataroomClosed": "Cette salle de données a été fermée et n'est plus disponible.",
+ "loadErrorRefresh": "Nous n'avons pas pu charger ce lien. Veuillez actualiser la page.",
+ "loadErrorRetry": "Nous n'avons pas pu charger ce lien. Veuillez réessayer dans un instant.",
+ "embedOnly": "Cette page est accessible uniquement lorsqu'elle est intégrée à un autre site web."
+ }
}
}
diff --git a/locales/it/dataroom.json b/locales/it/dataroom.json
index 1fca16e7..08c70d14 100644
--- a/locales/it/dataroom.json
+++ b/locales/it/dataroom.json
@@ -73,7 +73,8 @@
"uploadingTo": "Caricamento in:",
"setByOwner": "(impostato dal proprietario della data room)",
"success": "Documento caricato correttamente!",
- "successDescription": "Il tuo documento è ora visibile nella data room."
+ "successDescription": "Il tuo documento è ora visibile nella data room.",
+ "previewDisabled": "Non puoi caricare file in modalità anteprima."
},
"download": {
"folderTitle": "Scarica cartella: {{name}}",
@@ -167,6 +168,66 @@
"generating": "Generazione...",
"successToast": "File indice generato con successo",
"errorToast": "Impossibile generare l'indice",
- "genericError": "Qualcosa è andato storto. Riprova."
+ "genericError": "Qualcosa è andato storto. Riprova.",
+ "previewDisabled": "Non puoi generare un file indice in modalità anteprima."
+ },
+ "requestList": {
+ "trigger": "Elenco richieste",
+ "title": "Elenco richieste",
+ "summaryEmpty": "Le richieste assegnate a te compaiono qui.",
+ "summaryPending_one": "{{count}} richiesta richiede la tua attenzione.",
+ "summaryPending_other": "{{count}} richieste richiedono la tua attenzione.",
+ "summaryDone": "Sei in pari. In attesa della revisione del proprietario.",
+ "emptyTitle": "Nulla da fare",
+ "emptyDescription": "Al momento non ti è assegnata alcuna richiesta.",
+ "due": "Scadenza {{date}}",
+ "overdue": "in ritardo",
+ "lockedByHost": "Contrassegnata come completata dal proprietario",
+ "commentPlaceholder": "Aggiungi una nota per il proprietario (facoltativo)…",
+ "commentPlaceholderLocked": "Aggiungi un commento…",
+ "submitComment": "Aggiungi commento",
+ "submitStatus": "Aggiorna richiesta",
+ "submitDefault": "Invia aggiornamento",
+ "activityHeading": "Attività",
+ "uploadsHeading": "I tuoi file",
+ "uploadRequired": "File obbligatorio",
+ "uploadProcessing": "Elaborazione",
+ "toastUpdated": "Richiesta aggiornata",
+ "toastCommented": "Commento aggiunto",
+ "toastFailed": "Aggiornamento non riuscito",
+ "status": {
+ "OPEN": "Aperta",
+ "IN_PROGRESS": "In corso",
+ "SUBMITTED": "Inviata",
+ "COMPLETED": "Completata"
+ },
+ "activity": {
+ "you": "Tu",
+ "someone": "Qualcuno",
+ "empty": "Nessuna attività.",
+ "created": "richiesta creata",
+ "assigned": "assegnatari aggiornati",
+ "uploaded": "{{name}} caricato",
+ "uploadedFallback": "file caricato",
+ "statusFromTo": "stato modificato da {{from}} a {{to}}",
+ "statusTo": "stato impostato su {{status}}",
+ "statusChanged": "stato modificato",
+ "updated": "richiesta aggiornata"
+ }
+ },
+ "uploadZone": {
+ "dropzoneTitle": "Trascina qui i file oppure fai clic per selezionarli",
+ "dropzoneHint": "Supportati: PDF, Office, fogli di calcolo, immagini, ZIP e altro",
+ "dropActive": "Rilascia qui i tuoi file",
+ "dropActiveHint": "PDF, Office, immagini, ZIP e altro",
+ "rejectedTitle": "Alcuni file sono stati rifiutati:",
+ "rejectedTooLarge": "File troppo grande (max. {{size}} MB).",
+ "rejectedType": "Tipo di file non supportato.",
+ "toastComplete": "Caricamento completato!",
+ "toastError": "Si è verificato un errore durante il caricamento",
+ "toastFileFailed": "Caricamento di {{name}} non riuscito",
+ "toastUploadFailed": "Caricamento del documento non riuscito",
+ "errorProcessFailed": "Elaborazione del caricamento non riuscita",
+ "errorMissingMetadata": "Metadati del documento mancanti nella risposta di caricamento"
}
}
diff --git a/locales/it/viewer.json b/locales/it/viewer.json
index ec41b5b9..02df9de4 100644
--- a/locales/it/viewer.json
+++ b/locales/it/viewer.json
@@ -6,7 +6,9 @@
"linksOnCurrentPage": "Link nella pagina corrente",
"zoomIn": "Ingrandisci",
"zoomOut": "Riduci",
+ "resetZoom": "Adatta allo schermo",
"fullscreen": "Schermo intero",
+ "exitFullscreen": "Esci dallo schermo intero",
"downloadDocument": "Scarica documento",
"teamMemberTooltip": "Verifica saltata perché sei un membro del team; non verranno raccolti dati analitici",
"changeLanguage": "Cambia lingua"
@@ -58,5 +60,82 @@
"notWorking": "Il contenuto non funziona correttamente",
"other": "Altro"
}
+ },
+ "qa": {
+ "header": {
+ "title": "Fai una domanda al team",
+ "composeTitle": "Fai una nuova domanda",
+ "subtitleWithName": "Domande su {{name}}",
+ "subtitle": "Domande su questa data room",
+ "back": "Indietro",
+ "close": "Chiudi"
+ },
+ "tabs": {
+ "home": "Home",
+ "messages": "Domande",
+ "faq": "FAQ"
+ },
+ "home": {
+ "askNew": "Fai una nuova domanda",
+ "recentReply": "Risposta recente",
+ "openConversation": "Apri conversazione",
+ "frequentlyAsked": "Domande frequenti"
+ },
+ "messages": {
+ "emptyTitle": "Ancora nessuna domanda",
+ "emptyDescription": "Fai una domanda al team e comparirà qui.",
+ "askQuestion": "Fai una domanda",
+ "newReply": "Nuova risposta"
+ },
+ "compose": {
+ "aboutPage": "Su questa pagina",
+ "subjectPlaceholder": "Oggetto (facoltativo)",
+ "messagePlaceholder": "Scrivi la tua domanda...",
+ "sending": "Invio…",
+ "submit": "Invia domanda"
+ },
+ "thread": {
+ "you": "Tu",
+ "team": "Team",
+ "page": "Pagina {{page}}",
+ "newDivider": "Nuovo",
+ "closed": "Questa conversazione è stata chiusa dal team.",
+ "messagePlaceholder": "Scrivi il tuo messaggio...",
+ "sendReply": "Invia risposta"
+ },
+ "status": {
+ "answered": "Risposta ricevuta",
+ "awaiting": "In attesa di risposta",
+ "closed": "Chiusa"
+ },
+ "snippet": {
+ "team": "Team: ",
+ "you": "Tu: "
+ },
+ "time": {
+ "now": "ora",
+ "minutes": "{{n}} min",
+ "hours": "{{n}} h",
+ "days": "{{n}} g"
+ },
+ "toasts": {
+ "sendMessageFailed": "Invio del messaggio non riuscito",
+ "sendQuestionFailed": "Invio della domanda non riuscito"
+ },
+ "untitled": "Domanda senza titolo",
+ "faqEmpty": "Nessuna domanda pubblicata finora."
+ },
+ "notFound": {
+ "eyebrow": "Errore 404",
+ "title": "Pagina non trovata.",
+ "goHome": "Torna alla home",
+ "reasons": {
+ "expired": "Il link che stai cercando è scaduto.",
+ "archived": "Il link che stai cercando è archiviato.",
+ "dataroomClosed": "Questa data room è stata chiusa e non è più disponibile.",
+ "loadErrorRefresh": "Non è stato possibile caricare questo link. Prova ad aggiornare la pagina.",
+ "loadErrorRetry": "Non è stato possibile caricare questo link. Riprova tra poco.",
+ "embedOnly": "Questa pagina è accessibile solo se incorporata in un altro sito web."
+ }
}
}
diff --git a/locales/ja/dataroom.json b/locales/ja/dataroom.json
index cb700590..e96c3208 100644
--- a/locales/ja/dataroom.json
+++ b/locales/ja/dataroom.json
@@ -73,7 +73,8 @@
"uploadingTo": "アップロード先:",
"setByOwner": "(データルームの所有者により設定)",
"success": "資料をアップロードしました!",
- "successDescription": "資料がデータルームに表示されました。"
+ "successDescription": "資料がデータルームに表示されました。",
+ "previewDisabled": "プレビュー モードではファイルをアップロードできません。"
},
"download": {
"folderTitle": "フォルダをダウンロード:{{name}}",
@@ -167,6 +168,66 @@
"generating": "生成中...",
"successToast": "インデックスファイルを生成しました",
"errorToast": "インデックスの生成に失敗しました",
- "genericError": "問題が発生しました。もう一度お試しください。"
+ "genericError": "問題が発生しました。もう一度お試しください。",
+ "previewDisabled": "プレビュー モードではインデックスファイルを生成できません。"
+ },
+ "requestList": {
+ "trigger": "リクエスト一覧",
+ "title": "リクエスト一覧",
+ "summaryEmpty": "あなたに割り当てられたリクエストがここに表示されます。",
+ "summaryPending_one": "{{count}} 件のリクエストに対応が必要です。",
+ "summaryPending_other": "{{count}} 件のリクエストに対応が必要です。",
+ "summaryDone": "対応はすべて完了しました。所有者の確認をお待ちください。",
+ "emptyTitle": "対応が必要な項目はありません",
+ "emptyDescription": "現在あなたに割り当てられたリクエストはありません。",
+ "due": "期限 {{date}}",
+ "overdue": "期限超過",
+ "lockedByHost": "所有者により完了として設定されました",
+ "commentPlaceholder": "所有者へのメモを追加(任意)…",
+ "commentPlaceholderLocked": "コメントを追加…",
+ "submitComment": "コメントを追加",
+ "submitStatus": "リクエストを更新",
+ "submitDefault": "更新を送信",
+ "activityHeading": "アクティビティ",
+ "uploadsHeading": "あなたのファイル",
+ "uploadRequired": "ファイルが必要です",
+ "uploadProcessing": "処理中",
+ "toastUpdated": "リクエストを更新しました",
+ "toastCommented": "コメントを追加しました",
+ "toastFailed": "更新できませんでした",
+ "status": {
+ "OPEN": "未対応",
+ "IN_PROGRESS": "対応中",
+ "SUBMITTED": "提出済み",
+ "COMPLETED": "完了"
+ },
+ "activity": {
+ "you": "あなた",
+ "someone": "誰か",
+ "empty": "アクティビティはまだありません。",
+ "created": "リクエストを作成しました",
+ "assigned": "担当者を更新しました",
+ "uploaded": "{{name}} をアップロードしました",
+ "uploadedFallback": "ファイルをアップロードしました",
+ "statusFromTo": "ステータスを {{from}} から {{to}} に変更しました",
+ "statusTo": "ステータスを {{status}} に設定しました",
+ "statusChanged": "ステータスを変更しました",
+ "updated": "リクエストを更新しました"
+ }
+ },
+ "uploadZone": {
+ "dropzoneTitle": "ファイルをここにドラッグ&ドロップするか、クリックして選択してください",
+ "dropzoneHint": "対応形式:PDF、Office、表計算、画像、ZIP など",
+ "dropActive": "ファイルをここにドロップ",
+ "dropActiveHint": "PDF、Office、画像、ZIP など",
+ "rejectedTitle": "一部のファイルは受け付けられませんでした:",
+ "rejectedTooLarge": "ファイルサイズが大きすぎます(最大 {{size}} MB)。",
+ "rejectedType": "対応していないファイル形式です。",
+ "toastComplete": "アップロードが完了しました!",
+ "toastError": "アップロード中にエラーが発生しました",
+ "toastFileFailed": "{{name}} をアップロードできませんでした",
+ "toastUploadFailed": "資料をアップロードできませんでした",
+ "errorProcessFailed": "アップロードを処理できませんでした",
+ "errorMissingMetadata": "アップロード応答に資料のメタデータがありません"
}
}
diff --git a/locales/ja/viewer.json b/locales/ja/viewer.json
index 5ae1eb44..e7cda05e 100644
--- a/locales/ja/viewer.json
+++ b/locales/ja/viewer.json
@@ -6,7 +6,9 @@
"linksOnCurrentPage": "現在のページ内のリンク",
"zoomIn": "拡大",
"zoomOut": "縮小",
+ "resetZoom": "画面に合わせる",
"fullscreen": "全画面表示",
+ "exitFullscreen": "全画面表示を終了",
"downloadDocument": "資料をダウンロード",
"teamMemberTooltip": "あなたはチームメンバーのため認証をスキップしました。分析データは収集されません",
"changeLanguage": "言語を変更"
@@ -58,5 +60,82 @@
"notWorking": "コンテンツが正しく動作しない",
"other": "その他"
}
+ },
+ "qa": {
+ "header": {
+ "title": "チームに質問",
+ "composeTitle": "新しい質問をする",
+ "subtitleWithName": "{{name}} に関する質問",
+ "subtitle": "このデータルームに関する質問",
+ "back": "戻る",
+ "close": "閉じる"
+ },
+ "tabs": {
+ "home": "ホーム",
+ "messages": "質問",
+ "faq": "FAQ"
+ },
+ "home": {
+ "askNew": "新しい質問をする",
+ "recentReply": "最近の返信",
+ "openConversation": "会話を開く",
+ "frequentlyAsked": "よくある質問"
+ },
+ "messages": {
+ "emptyTitle": "質問はまだありません",
+ "emptyDescription": "チームに質問すると、ここに表示されます。",
+ "askQuestion": "質問する",
+ "newReply": "新しい返信"
+ },
+ "compose": {
+ "aboutPage": "このページについて",
+ "subjectPlaceholder": "件名(任意)",
+ "messagePlaceholder": "質問を入力してください...",
+ "sending": "送信中…",
+ "submit": "質問を送信"
+ },
+ "thread": {
+ "you": "あなた",
+ "team": "チーム",
+ "page": "{{page}} ページ",
+ "newDivider": "新着",
+ "closed": "この会話はチームによって終了されました。",
+ "messagePlaceholder": "メッセージを入力してください...",
+ "sendReply": "返信を送信"
+ },
+ "status": {
+ "answered": "回答済み",
+ "awaiting": "返信待ち",
+ "closed": "終了"
+ },
+ "snippet": {
+ "team": "チーム: ",
+ "you": "あなた: "
+ },
+ "time": {
+ "now": "たった今",
+ "minutes": "{{n}}分",
+ "hours": "{{n}}時間",
+ "days": "{{n}}日"
+ },
+ "toasts": {
+ "sendMessageFailed": "メッセージを送信できませんでした",
+ "sendQuestionFailed": "質問を送信できませんでした"
+ },
+ "untitled": "無題の質問",
+ "faqEmpty": "公開されている質問はまだありません。"
+ },
+ "notFound": {
+ "eyebrow": "404 エラー",
+ "title": "ページが見つかりません。",
+ "goHome": "ホームに戻る",
+ "reasons": {
+ "expired": "お探しのリンクは有効期限が切れています。",
+ "archived": "お探しのリンクはアーカイブされています。",
+ "dataroomClosed": "このデータルームは閉鎖され、利用できなくなりました。",
+ "loadErrorRefresh": "リンクを読み込めませんでした。ページを再読み込みしてください。",
+ "loadErrorRetry": "リンクを読み込めませんでした。しばらくしてからもう一度お試しください。",
+ "embedOnly": "このページは他のウェブサイトに埋め込まれている場合のみアクセスできます。"
+ }
}
}
diff --git a/locales/nl/dataroom.json b/locales/nl/dataroom.json
index 8cda42d3..6ea35193 100644
--- a/locales/nl/dataroom.json
+++ b/locales/nl/dataroom.json
@@ -170,5 +170,64 @@
"errorToast": "Indexbestand kon niet worden gegenereerd",
"genericError": "Er is iets misgegaan. Probeer het opnieuw.",
"previewDisabled": "Een indexbestand genereren is niet beschikbaar in de voorbeeldmodus."
+ },
+ "requestList": {
+ "trigger": "Verzoekenlijst",
+ "title": "Verzoekenlijst",
+ "summaryEmpty": "Verzoeken die aan u zijn toegewezen verschijnen hier.",
+ "summaryPending_one": "{{count}} verzoek vraagt om uw aandacht.",
+ "summaryPending_other": "{{count}} verzoeken vragen om uw aandacht.",
+ "summaryDone": "U bent helemaal bij. In afwachting van beoordeling door de eigenaar.",
+ "emptyTitle": "Niets te doen",
+ "emptyDescription": "Er zijn op dit moment geen verzoeken aan u toegewezen.",
+ "due": "Uiterlijk {{date}}",
+ "overdue": "te laat",
+ "lockedByHost": "Door de eigenaar als voltooid gemarkeerd",
+ "commentPlaceholder": "Voeg een notitie voor de eigenaar toe (optioneel)…",
+ "commentPlaceholderLocked": "Voeg een opmerking toe…",
+ "submitComment": "Opmerking toevoegen",
+ "submitStatus": "Verzoek bijwerken",
+ "submitDefault": "Update verzenden",
+ "activityHeading": "Activiteit",
+ "uploadsHeading": "Uw bestanden",
+ "uploadRequired": "Bestand vereist",
+ "uploadProcessing": "Wordt verwerkt",
+ "toastUpdated": "Verzoek bijgewerkt",
+ "toastCommented": "Opmerking toegevoegd",
+ "toastFailed": "Bijwerken mislukt",
+ "status": {
+ "OPEN": "Open",
+ "IN_PROGRESS": "In behandeling",
+ "SUBMITTED": "Ingediend",
+ "COMPLETED": "Voltooid"
+ },
+ "activity": {
+ "you": "U",
+ "someone": "Iemand",
+ "empty": "Nog geen activiteit.",
+ "created": "heeft het verzoek aangemaakt",
+ "assigned": "heeft de toegewezen personen bijgewerkt",
+ "uploaded": "heeft {{name}} geüpload",
+ "uploadedFallback": "heeft een bestand geüpload",
+ "statusFromTo": "heeft de status gewijzigd van {{from}} naar {{to}}",
+ "statusTo": "heeft de status ingesteld op {{status}}",
+ "statusChanged": "heeft de status gewijzigd",
+ "updated": "heeft het verzoek bijgewerkt"
+ }
+ },
+ "uploadZone": {
+ "dropzoneTitle": "Sleep bestanden hierheen of klik om bestanden te selecteren",
+ "dropzoneHint": "Ondersteund: PDF, Office, spreadsheets, afbeeldingen, ZIP en meer",
+ "dropActive": "Zet uw bestand(en) hier neer",
+ "dropActiveHint": "PDF, Office, afbeeldingen, ZIP en meer",
+ "rejectedTitle": "Sommige bestanden zijn geweigerd:",
+ "rejectedTooLarge": "Bestand is te groot (max. {{size}} MB).",
+ "rejectedType": "Bestandstype wordt niet ondersteund.",
+ "toastComplete": "Uploaden voltooid!",
+ "toastError": "Er is een fout opgetreden tijdens het uploaden",
+ "toastFileFailed": "Uploaden van {{name}} mislukt",
+ "toastUploadFailed": "Uploaden van document mislukt",
+ "errorProcessFailed": "Verwerken van de upload mislukt",
+ "errorMissingMetadata": "Documentmetagegevens ontbreken in het uploadantwoord"
}
}
diff --git a/locales/nl/viewer.json b/locales/nl/viewer.json
index 5ea154d0..01eecc68 100644
--- a/locales/nl/viewer.json
+++ b/locales/nl/viewer.json
@@ -60,5 +60,82 @@
"notWorking": "Inhoud werkt niet goed",
"other": "Overig"
}
+ },
+ "qa": {
+ "header": {
+ "title": "Stel het team een vraag",
+ "composeTitle": "Nieuwe vraag stellen",
+ "subtitleWithName": "Vragen over {{name}}",
+ "subtitle": "Vragen over deze dataroom",
+ "back": "Terug",
+ "close": "Sluiten"
+ },
+ "tabs": {
+ "home": "Start",
+ "messages": "Vragen",
+ "faq": "FAQ"
+ },
+ "home": {
+ "askNew": "Nieuwe vraag stellen",
+ "recentReply": "Recente reactie",
+ "openConversation": "Gesprek openen",
+ "frequentlyAsked": "Veelgestelde vragen"
+ },
+ "messages": {
+ "emptyTitle": "Nog geen vragen",
+ "emptyDescription": "Stel het team een vraag en deze verschijnt hier.",
+ "askQuestion": "Vraag stellen",
+ "newReply": "Nieuwe reactie"
+ },
+ "compose": {
+ "aboutPage": "Over deze pagina",
+ "subjectPlaceholder": "Onderwerp (optioneel)",
+ "messagePlaceholder": "Typ uw vraag...",
+ "sending": "Verzenden…",
+ "submit": "Vraag verzenden"
+ },
+ "thread": {
+ "you": "U",
+ "team": "Team",
+ "page": "Pagina {{page}}",
+ "newDivider": "Nieuw",
+ "closed": "Dit gesprek is door het team gesloten.",
+ "messagePlaceholder": "Typ uw bericht...",
+ "sendReply": "Reactie verzenden"
+ },
+ "status": {
+ "answered": "Beantwoord",
+ "awaiting": "Wacht op reactie",
+ "closed": "Gesloten"
+ },
+ "snippet": {
+ "team": "Team: ",
+ "you": "U: "
+ },
+ "time": {
+ "now": "nu",
+ "minutes": "{{n}} min",
+ "hours": "{{n}} u",
+ "days": "{{n}} d"
+ },
+ "toasts": {
+ "sendMessageFailed": "Bericht verzenden mislukt",
+ "sendQuestionFailed": "Vraag verzenden mislukt"
+ },
+ "untitled": "Vraag zonder titel",
+ "faqEmpty": "Er zijn nog geen vragen gepubliceerd."
+ },
+ "notFound": {
+ "eyebrow": "Fout 404",
+ "title": "Pagina niet gevonden.",
+ "goHome": "Terug naar start",
+ "reasons": {
+ "expired": "De link die u zoekt is verlopen.",
+ "archived": "De link die u zoekt is gearchiveerd.",
+ "dataroomClosed": "Deze dataroom is gesloten en niet langer beschikbaar.",
+ "loadErrorRefresh": "We konden deze link niet laden. Vernieuw de pagina.",
+ "loadErrorRetry": "We konden deze link niet laden. Probeer het zo meteen opnieuw.",
+ "embedOnly": "Deze pagina is alleen toegankelijk wanneer deze in een andere website is ingesloten."
+ }
}
}
diff --git a/locales/pt-BR/dataroom.json b/locales/pt-BR/dataroom.json
index 3e3fe373..35adfbf9 100644
--- a/locales/pt-BR/dataroom.json
+++ b/locales/pt-BR/dataroom.json
@@ -73,7 +73,8 @@
"uploadingTo": "Enviando para:",
"setByOwner": "(definido pelo proprietário da sala de dados)",
"success": "Documento enviado com sucesso!",
- "successDescription": "Seu documento agora está visível na sala de dados."
+ "successDescription": "Seu documento agora está visível na sala de dados.",
+ "previewDisabled": "Você não pode enviar arquivos no modo de pré-visualização."
},
"download": {
"folderTitle": "Baixar pasta: {{name}}",
@@ -167,6 +168,66 @@
"generating": "Gerando...",
"successToast": "Arquivo de índice gerado com sucesso",
"errorToast": "Falha ao gerar o índice",
- "genericError": "Algo deu errado. Por favor, tente novamente."
+ "genericError": "Algo deu errado. Por favor, tente novamente.",
+ "previewDisabled": "Você não pode gerar um arquivo de índice no modo de pré-visualização."
+ },
+ "requestList": {
+ "trigger": "Lista de solicitações",
+ "title": "Lista de solicitações",
+ "summaryEmpty": "As solicitações atribuídas a você aparecem aqui.",
+ "summaryPending_one": "{{count}} solicitação precisa da sua atenção.",
+ "summaryPending_other": "{{count}} solicitações precisam da sua atenção.",
+ "summaryDone": "Você está em dia. Aguardando a revisão do proprietário.",
+ "emptyTitle": "Nada a fazer",
+ "emptyDescription": "Nenhuma solicitação está atribuída a você no momento.",
+ "due": "Prazo {{date}}",
+ "overdue": "atrasada",
+ "lockedByHost": "Marcada como concluída pelo proprietário",
+ "commentPlaceholder": "Adicione uma observação para o proprietário (opcional)…",
+ "commentPlaceholderLocked": "Adicione um comentário…",
+ "submitComment": "Adicionar comentário",
+ "submitStatus": "Atualizar solicitação",
+ "submitDefault": "Enviar atualização",
+ "activityHeading": "Atividade",
+ "uploadsHeading": "Seus arquivos",
+ "uploadRequired": "Arquivo obrigatório",
+ "uploadProcessing": "Processando",
+ "toastUpdated": "Solicitação atualizada",
+ "toastCommented": "Comentário adicionado",
+ "toastFailed": "Falha ao atualizar",
+ "status": {
+ "OPEN": "Aberta",
+ "IN_PROGRESS": "Em andamento",
+ "SUBMITTED": "Enviada",
+ "COMPLETED": "Concluída"
+ },
+ "activity": {
+ "you": "Você",
+ "someone": "Alguém",
+ "empty": "Ainda não há atividade.",
+ "created": "criou a solicitação",
+ "assigned": "atualizou os responsáveis",
+ "uploaded": "enviou {{name}}",
+ "uploadedFallback": "enviou um arquivo",
+ "statusFromTo": "alterou o status de {{from}} para {{to}}",
+ "statusTo": "definiu o status como {{status}}",
+ "statusChanged": "alterou o status",
+ "updated": "atualizou a solicitação"
+ }
+ },
+ "uploadZone": {
+ "dropzoneTitle": "Arraste e solte arquivos aqui ou clique para selecioná-los",
+ "dropzoneHint": "Compatível: PDF, Office, planilhas, imagens, ZIP e mais",
+ "dropActive": "Solte seus arquivos aqui",
+ "dropActiveHint": "PDF, Office, imagens, ZIP e mais",
+ "rejectedTitle": "Alguns arquivos foram rejeitados:",
+ "rejectedTooLarge": "Arquivo muito grande (máx. {{size}} MB).",
+ "rejectedType": "Tipo de arquivo não compatível.",
+ "toastComplete": "Envio concluído!",
+ "toastError": "Ocorreu um erro durante o envio",
+ "toastFileFailed": "Falha ao enviar {{name}}",
+ "toastUploadFailed": "Falha ao enviar o documento",
+ "errorProcessFailed": "Falha ao processar o envio",
+ "errorMissingMetadata": "Os metadados do documento estão ausentes na resposta de envio"
}
}
diff --git a/locales/pt-BR/viewer.json b/locales/pt-BR/viewer.json
index 375e9d05..3c838cd9 100644
--- a/locales/pt-BR/viewer.json
+++ b/locales/pt-BR/viewer.json
@@ -6,7 +6,9 @@
"linksOnCurrentPage": "Links na página atual",
"zoomIn": "Aumentar zoom",
"zoomOut": "Diminuir zoom",
+ "resetZoom": "Ajustar à tela",
"fullscreen": "Tela cheia",
+ "exitFullscreen": "Sair da tela cheia",
"downloadDocument": "Baixar documento",
"teamMemberTooltip": "Verificação ignorada porque você é membro da equipe; nenhuma análise será coletada",
"changeLanguage": "Alterar idioma"
@@ -58,5 +60,82 @@
"notWorking": "O conteúdo não está funcionando corretamente",
"other": "Outro"
}
+ },
+ "qa": {
+ "header": {
+ "title": "Pergunte à equipe",
+ "composeTitle": "Fazer uma nova pergunta",
+ "subtitleWithName": "Perguntas sobre {{name}}",
+ "subtitle": "Perguntas sobre esta sala de dados",
+ "back": "Voltar",
+ "close": "Fechar"
+ },
+ "tabs": {
+ "home": "Início",
+ "messages": "Perguntas",
+ "faq": "FAQ"
+ },
+ "home": {
+ "askNew": "Fazer uma nova pergunta",
+ "recentReply": "Resposta recente",
+ "openConversation": "Abrir conversa",
+ "frequentlyAsked": "Perguntas frequentes"
+ },
+ "messages": {
+ "emptyTitle": "Ainda não há perguntas",
+ "emptyDescription": "Faça uma pergunta à equipe e ela aparecerá aqui.",
+ "askQuestion": "Fazer uma pergunta",
+ "newReply": "Nova resposta"
+ },
+ "compose": {
+ "aboutPage": "Sobre esta página",
+ "subjectPlaceholder": "Assunto (opcional)",
+ "messagePlaceholder": "Digite sua pergunta...",
+ "sending": "Enviando…",
+ "submit": "Enviar pergunta"
+ },
+ "thread": {
+ "you": "Você",
+ "team": "Equipe",
+ "page": "Página {{page}}",
+ "newDivider": "Novo",
+ "closed": "Esta conversa foi encerrada pela equipe.",
+ "messagePlaceholder": "Digite sua mensagem...",
+ "sendReply": "Enviar resposta"
+ },
+ "status": {
+ "answered": "Respondida",
+ "awaiting": "Aguardando resposta",
+ "closed": "Encerrada"
+ },
+ "snippet": {
+ "team": "Equipe: ",
+ "you": "Você: "
+ },
+ "time": {
+ "now": "agora",
+ "minutes": "{{n}} min",
+ "hours": "{{n}} h",
+ "days": "{{n}} d"
+ },
+ "toasts": {
+ "sendMessageFailed": "Falha ao enviar a mensagem",
+ "sendQuestionFailed": "Falha ao enviar a pergunta"
+ },
+ "untitled": "Pergunta sem título",
+ "faqEmpty": "Nenhuma pergunta publicada ainda."
+ },
+ "notFound": {
+ "eyebrow": "Erro 404",
+ "title": "Página não encontrada.",
+ "goHome": "Voltar ao início",
+ "reasons": {
+ "expired": "O link que você procura expirou.",
+ "archived": "O link que você procura foi arquivado.",
+ "dataroomClosed": "Esta sala de dados foi encerrada e não está mais disponível.",
+ "loadErrorRefresh": "Não foi possível carregar este link. Tente atualizar a página.",
+ "loadErrorRetry": "Não foi possível carregar este link. Tente novamente em instantes.",
+ "embedOnly": "Esta página só pode ser acessada quando incorporada em outro site."
+ }
}
}
diff --git a/pages/404.tsx b/pages/404.tsx
index 51f1cb3e..442b7298 100644
--- a/pages/404.tsx
+++ b/pages/404.tsx
@@ -1,6 +1,25 @@
import Link from "next/link";
-export default function NotFound({ message }: { message?: string }) {
+/**
+ * Next.js's global 404 page, also reused by `pages/view/**` to render blocked
+ * or expired links.
+ *
+ * The label props exist so the viewer can hand in translated copy (see
+ * `components/view/viewer-not-found.tsx`). Next.js renders this page itself for
+ * genuine 404s, where no translation context exists, so every prop falls back
+ * to English.
+ */
+export default function NotFound({
+ message,
+ eyebrow = "404 error",
+ title = "Page not found.",
+ homeLabel = "Go back home",
+}: {
+ message?: string;
+ eyebrow?: string;
+ title?: string;
+ homeLabel?: string;
+}) {
return (
<>
<div className="flex min-h-screen flex-col pb-12 pt-16">
@@ -8,10 +27,10 @@ export default function NotFound({ message }: { message?: string }) {
<div className="py-16">
<div className="text-center">
<p className="text-sm font-semibold uppercase tracking-wide text-indigo-600">
- 404 error
+ {eyebrow}
</p>
<h1 className="mt-2 text-4xl font-extrabold tracking-tight text-slate-950 dark:text-gray-100 sm:text-5xl">
- Page not found.
+ {title}
</h1>
<p className="mt-2 text-base text-gray-600">
{message ||
@@ -22,7 +41,7 @@ export default function NotFound({ message }: { message?: string }) {
href="/"
className="text-base font-medium text-indigo-600 hover:text-indigo-500"
>
- Go back home <span aria-hidden="true"> &rarr;</span>
+ {homeLabel} <span aria-hidden="true"> &rarr;</span>
</Link>
</div>
</div>
diff --git a/pages/api/teams/[teamId]/datarooms/[id]/download/[jobId].ts b/pages/api/teams/[teamId]/datarooms/[id]/download/[jobId].ts
index 5dd288c6..07fd66bb 100644
--- a/pages/api/teams/[teamId]/datarooms/[id]/download/[jobId].ts
+++ b/pages/api/teams/[teamId]/datarooms/[id]/download/[jobId].ts
@@ -3,6 +3,7 @@ import { NextApiRequest, NextApiResponse } from "next";
import { authOptions } from "@/pages/api/auth/[...nextauth]";
import { getServerSession } from "next-auth";
+import { enforceDataroomMemberScope } from "@/lib/api/rbac/guard";
import { generateFreshPresignedUrl } from "@/lib/files/bulk-download-presign";
import prisma from "@/lib/prisma";
import { downloadJobStore } from "@/lib/redis-download-job-store";
@@ -44,7 +45,7 @@ export default async function handler(
teamId: teamId,
},
},
- select: { teamId: true },
+ select: { teamId: true, role: true },
});
if (!teamAccess) {
@@ -53,6 +54,20 @@ export default async function handler(
.json({ error: "Unauthorized to access this team" });
}
+ // Team membership alone would let a scoped member poll (and collect the
+ // presigned URLs of) a job in a room they were never assigned to.
+ if (
+ await enforceDataroomMemberScope({
+ userId,
+ teamId,
+ dataroomId,
+ res,
+ role: teamAccess.role,
+ })
+ ) {
+ return;
+ }
+
// Fetch the job from Redis
const job = await downloadJobStore.getJob(jobId);
diff --git a/pages/api/teams/[teamId]/datarooms/[id]/download/bulk.ts b/pages/api/teams/[teamId]/datarooms/[id]/download/bulk.ts
index a2241ff1..dcace3bc 100644
--- a/pages/api/teams/[teamId]/datarooms/[id]/download/bulk.ts
+++ b/pages/api/teams/[teamId]/datarooms/[id]/download/bulk.ts
@@ -4,8 +4,11 @@ import { getTeamStorageConfigById } from "@/ee/features/storage/config";
import { authOptions } from "@/pages/api/auth/[...nextauth]";
import { getServerSession } from "next-auth";
+import { enforceDataroomMemberScope } from "@/lib/api/rbac/guard";
import { buildBulkDownloadStructure } from "@/lib/dataroom/build-bulk-download-structure";
+import { collectDescendantIds } from "@/lib/dataroom/build-folder-hierarchy";
import prisma from "@/lib/prisma";
+import { ratelimit } from "@/lib/redis";
import { downloadJobStore } from "@/lib/redis-download-job-store";
import { bulkDownloadTask } from "@/lib/trigger/bulk-download";
import { CustomUser } from "@/lib/types";
@@ -14,6 +17,52 @@ export const config = {
maxDuration: 60, // Reduced since we're just triggering the async task
};
+type DataroomFolderRow = {
+ id: string;
+ name: string;
+ path: string;
+ parentId: string | null;
+};
+
+/**
+ * What this request is downloading. Resolved once from the request body and
+ * then used for every downstream decision: which folders go into the zip,
+ * which documents to query, whether the zip is rooted under a folder slug,
+ * and how the job is labelled. `rootFolder` is set only for a folder-scoped
+ * download, so its presence is the whole discriminant.
+ */
+type DownloadScope = {
+ folders: DataroomFolderRow[];
+ rootFolder?: { id: string; name: string };
+};
+
+/**
+ * Returns `null` when a `folderId` was supplied that does not belong to this
+ * dataroom — that lookup is what stops a caller scoping the download to
+ * another dataroom's folder.
+ */
+function resolveDownloadScope(
+ folderId: string | undefined,
+ allFolders: DataroomFolderRow[],
+): DownloadScope | null {
+ if (!folderId) {
+ return { folders: allFolders };
+ }
+
+ const root = allFolders.find((folder) => folder.id === folderId);
+ if (!root) {
+ return null;
+ }
+
+ const descendantIds = collectDescendantIds(folderId, allFolders);
+ return {
+ rootFolder: { id: root.id, name: root.name },
+ folders: allFolders.filter(
+ (folder) => folder.id === folderId || descendantIds.has(folder.id),
+ ),
+ };
+}
+
export default async function handler(
req: NextApiRequest,
res: NextApiResponse,
@@ -32,6 +81,8 @@ export default async function handler(
if (req.method === "POST") {
try {
+ const { folderId } = (req.body ?? {}) as { folderId?: string };
+
const teamAccess = await prisma.userTeam.findUnique({
where: {
userId_teamId: {
@@ -39,13 +90,40 @@ export default async function handler(
teamId: teamId,
},
},
- select: { teamId: true },
+ select: { teamId: true, role: true },
});
if (!teamAccess) {
return res.status(403).end("Unauthorized to access this team");
}
+ // Team membership alone would let a scoped member bulk-download a room
+ // they were never assigned to.
+ if (
+ await enforceDataroomMemberScope({
+ userId,
+ teamId,
+ dataroomId,
+ res,
+ role: teamAccess.role,
+ })
+ ) {
+ return;
+ }
+
+ // Download is now on every row rather than a single page-header button,
+ // so walking a folder list could otherwise fan out one Trigger.dev run
+ // and one lambda batch per row. One key covers both scopes.
+ const { success } = await ratelimit(5, "1 m").limit(
+ `dataroom-download:${teamId}:${dataroomId}:${userId}`,
+ );
+ if (!success) {
+ return res.status(429).json({
+ error: "Too many download requests. Please try again shortly.",
+ code: "RATE_LIMITED",
+ });
+ }
+
const dataroom = await prisma.dataroom.findUnique({
where: {
id: dataroomId,
@@ -62,46 +140,68 @@ export default async function handler(
parentId: true,
},
},
- documents: {
+ },
+ });
+
+ if (!dataroom) {
+ return res.status(404).end("Dataroom not found");
+ }
+
+ const scope = resolveDownloadScope(folderId, dataroom.folders);
+ if (!scope) {
+ return res
+ .status(404)
+ .json({ error: "Folder not found in this dataroom" });
+ }
+
+ const documents = await prisma.dataroomDocument.findMany({
+ where: {
+ dataroomId: dataroom.id,
+ ...(scope.rootFolder
+ ? { folderId: { in: scope.folders.map((folder) => folder.id) } }
+ : {}),
+ },
+ select: {
+ id: true,
+ folderId: true,
+ document: {
select: {
- id: true,
- folderId: true,
- document: {
+ name: true,
+ versions: {
+ where: { isPrimary: true },
select: {
- name: true,
- versions: {
- where: { isPrimary: true },
- select: {
- type: true,
- file: true,
- storageType: true,
- originalFile: true,
- contentType: true,
- fileSize: true,
- },
- take: 1,
- },
+ type: true,
+ file: true,
+ storageType: true,
+ originalFile: true,
+ contentType: true,
+ fileSize: true,
},
+ take: 1,
},
},
},
},
});
- if (!dataroom) {
- return res.status(404).end("Dataroom not found");
- }
-
// Admin bulk download: no permission filtering, no watermark.
+ // `fullFolders` is the builder's hierarchy input and `includedFolders`
+ // is the scope filter; they stay distinct because every path is resolved
+ // against the whole tree before being rebased under `rootFolder`.
const { folderStructure, fileKeys } = buildBulkDownloadStructure({
fullFolders: dataroom.folders,
- includedFolders: dataroom.folders,
- includedDocuments: dataroom.documents,
+ includedFolders: scope.folders,
+ includedDocuments: documents,
enableWatermark: false,
+ rootFolder: scope.rootFolder,
});
if (fileKeys.length === 0) {
- return res.status(404).json({ error: "No files to download" });
+ return res.status(404).json({
+ error: scope.rootFolder
+ ? "This folder has no downloadable files."
+ : "No files to download",
+ });
}
// Get team-specific storage config
@@ -115,7 +215,8 @@ export default async function handler(
// Create download job in Redis
const job = await downloadJobStore.createJob({
- type: "bulk",
+ type: scope.rootFolder ? "folder" : "bulk",
+ folderName: scope.rootFolder?.name,
status: "PENDING",
dataroomId: dataroom.id,
dataroomName: dataroom.name,
@@ -138,6 +239,7 @@ export default async function handler(
folderStructure: folderStructure,
fileKeys: fileKeys,
sourceBucket: storageConfig.bucket,
+ folderName: scope.rootFolder?.name,
watermarkConfig: { enabled: false },
userId: userId,
emailNotification: !!user?.email,
diff --git a/pages/api/teams/[teamId]/datarooms/[id]/download/jobs.ts b/pages/api/teams/[teamId]/datarooms/[id]/download/jobs.ts
index d642b6eb..93c56856 100644
--- a/pages/api/teams/[teamId]/datarooms/[id]/download/jobs.ts
+++ b/pages/api/teams/[teamId]/datarooms/[id]/download/jobs.ts
@@ -3,6 +3,7 @@ import { NextApiRequest, NextApiResponse } from "next";
import { authOptions } from "@/pages/api/auth/[...nextauth]";
import { getServerSession } from "next-auth";
+import { enforceDataroomMemberScope } from "@/lib/api/rbac/guard";
import { generateFreshPresignedUrl } from "@/lib/files/bulk-download-presign";
import prisma from "@/lib/prisma";
import {
@@ -37,13 +38,27 @@ export default async function handler(
teamId: teamId,
},
},
- select: { teamId: true },
+ select: { teamId: true, role: true },
});
if (!teamAccess) {
return res.status(403).end("Unauthorized to access this team");
}
+ // Team membership alone would expose the download history of a room a
+ // scoped member was never assigned to.
+ if (
+ await enforceDataroomMemberScope({
+ userId,
+ teamId,
+ dataroomId,
+ res,
+ role: teamAccess.role,
+ })
+ ) {
+ return;
+ }
+
// Get download jobs for this dataroom
const jobs = await downloadJobStore.getDataroomJobs(
dataroomId,
diff --git a/pages/view/[linkId]/d/[documentId].tsx b/pages/view/[linkId]/d/[documentId].tsx
index 203fe1b1..3b845031 100644
--- a/pages/view/[linkId]/d/[documentId].tsx
+++ b/pages/view/[linkId]/d/[documentId].tsx
@@ -3,7 +3,6 @@ import { useRouter } from "next/router";
import React, { useEffect, useState } from "react";
-import NotFound from "@/pages/404";
import { DataroomBrand } from "@prisma/client";
import Cookies from "js-cookie";
import { useSession } from "next-auth/react";
@@ -15,8 +14,8 @@ import { fetchLinkDataById } from "@/lib/api/links/link-data";
import { getFeatureFlags } from "@/lib/featureFlags";
import { useUrlPasscode } from "@/lib/hooks/use-url-passcode";
import {
- buildViewerI18nPageProps,
type ViewerI18nPageProps,
+ buildViewerI18nPageProps,
} from "@/lib/i18n/viewer-page-props";
import notion from "@/lib/notion";
import {
@@ -30,6 +29,7 @@ import LoadingSpinner from "@/components/ui/loading-spinner";
import CustomMetaTag from "@/components/view/custom-metatag";
import DataroomDocumentView from "@/components/view/dataroom/dataroom-document-view";
import { ViewerI18nProvider } from "@/components/view/viewer-i18n-provider";
+import { ViewerNotFound } from "@/components/view/viewer-not-found";
type DataroomDocumentLinkData = {
linkType: "DATAROOM_LINK";
@@ -102,15 +102,11 @@ function DataroomDocumentViewPageInner({
}
if (frozen) {
- return (
- <NotFound message="This data room has been closed and is no longer available." />
- );
+ return <ViewerNotFound reason="dataroomClosed" />;
}
if (error) {
- return (
- <NotFound message="Sorry, we had trouble loading this link. Please try again in a moment." />
- );
+ return <ViewerNotFound reason="loadErrorRetry" />;
}
const {
@@ -162,16 +158,12 @@ function DataroomDocumentViewPageInner({
// Check if the link is expired
if (expiresAt && new Date(expiresAt) < new Date()) {
- return (
- <NotFound message="Sorry, the link you're looking for is expired." />
- );
+ return <ViewerNotFound reason="expired" />;
}
// Check if the link is archived
if (isArchived) {
- return (
- <NotFound message="Sorry, the link you're looking for is archived." />
- );
+ return <ViewerNotFound reason="archived" />;
}
return (
@@ -214,10 +206,7 @@ export default function DataroomDocumentViewPage(props: DataroomDocumentProps) {
const locale = props.i18n?.locale ?? "en";
const resources = props.i18n?.resources ?? {};
return (
- <ViewerI18nProvider
- locale={locale}
- resources={resources}
- >
+ <ViewerI18nProvider locale={locale} resources={resources}>
<DataroomDocumentViewPageInner {...props} />
</ViewerI18nProvider>
);
diff --git a/pages/view/[linkId]/downloads.tsx b/pages/view/[linkId]/downloads.tsx
index 0322525b..a9e17f8c 100644
--- a/pages/view/[linkId]/downloads.tsx
+++ b/pages/view/[linkId]/downloads.tsx
@@ -4,8 +4,8 @@ import { useRouter } from "next/router";
import { Loader2 } from "lucide-react";
import {
- buildViewerI18nPageProps,
type ViewerI18nPageProps,
+ buildViewerI18nPageProps,
} from "@/lib/i18n/viewer-page-props";
import prisma from "@/lib/prisma";
@@ -14,7 +14,9 @@ import { ViewerI18nProvider } from "@/components/view/viewer-i18n-provider";
type Props = Partial<ViewerI18nPageProps> & { linkId: string | null };
-export const getServerSideProps: GetServerSideProps<Props> = async (context) => {
+export const getServerSideProps: GetServerSideProps<Props> = async (
+ context,
+) => {
const linkId = context.params?.linkId as string;
let link: {
dataroom: { brand: { defaultLanguage: string | null } | null } | null;
@@ -27,7 +29,9 @@ export const getServerSideProps: GetServerSideProps<Props> = async (context) =>
link = await prisma.link.findUnique({
where: { id: linkId },
select: {
- dataroom: { select: { brand: { select: { defaultLanguage: true } } } },
+ dataroom: {
+ select: { brand: { select: { defaultLanguage: true } } },
+ },
},
});
}
diff --git a/pages/view/[linkId]/embed.tsx b/pages/view/[linkId]/embed.tsx
index 11c0613d..388245be 100644
--- a/pages/view/[linkId]/embed.tsx
+++ b/pages/view/[linkId]/embed.tsx
@@ -2,8 +2,6 @@ import { useRouter } from "next/router";
import { useEffect, useState } from "react";
-import NotFound from "@/pages/404";
-
import { useAnalytics } from "@/lib/analytics";
import { useUrlPasscode } from "@/lib/hooks/use-url-passcode";
@@ -11,6 +9,7 @@ import LoadingSpinner from "@/components/ui/loading-spinner";
import DataroomView from "@/components/view/dataroom/dataroom-view";
import DocumentView from "@/components/view/document-view";
import { ViewerI18nProvider } from "@/components/view/viewer-i18n-provider";
+import { ViewerNotFound } from "@/components/view/viewer-not-found";
import { ViewPageProps } from "./index";
@@ -60,9 +59,7 @@ function EmbedPageInner(props: ViewPageProps) {
// Block direct access
if (!isEmbedded) {
- return (
- <NotFound message="This page can only be accessed when embedded in another website." />
- );
+ return <ViewerNotFound reason="embedOnly" />;
}
const {
@@ -99,15 +96,11 @@ function EmbedPageInner(props: ViewPageProps) {
// If the link is expired, show a 404 page
if (expiresAt && new Date(expiresAt) < new Date()) {
- return (
- <NotFound message="Sorry, the link you're looking for is expired." />
- );
+ return <ViewerNotFound reason="expired" />;
}
if (isArchived) {
- return (
- <NotFound message="Sorry, the link you're looking for is archived." />
- );
+ return <ViewerNotFound reason="archived" />;
}
return (
@@ -156,15 +149,11 @@ function EmbedPageInner(props: ViewPageProps) {
// If the link is expired, show a 404 page
if (expiresAt && new Date(expiresAt) < new Date()) {
- return (
- <NotFound message="Sorry, the link you're looking for is expired." />
- );
+ return <ViewerNotFound reason="expired" />;
}
if (isArchived) {
- return (
- <NotFound message="Sorry, the link you're looking for is archived." />
- );
+ return <ViewerNotFound reason="archived" />;
}
return (
diff --git a/pages/view/[linkId]/index.tsx b/pages/view/[linkId]/index.tsx
index 7089ae21..ae55ab58 100644
--- a/pages/view/[linkId]/index.tsx
+++ b/pages/view/[linkId]/index.tsx
@@ -4,7 +4,6 @@ import { useRouter } from "next/router";
import { useEffect, useState } from "react";
import WorkflowAccessView from "@/ee/features/workflows/components/workflow-access-view";
-import NotFound from "@/pages/404";
import { Brand, DataroomBrand, DataroomDocument } from "@prisma/client";
import Cookies from "js-cookie";
import { useSession } from "next-auth/react";
@@ -16,8 +15,8 @@ import { fetchLinkDataById } from "@/lib/api/links/link-data";
import { getFeatureFlags } from "@/lib/featureFlags";
import { useUrlPasscode } from "@/lib/hooks/use-url-passcode";
import {
- buildViewerI18nPageProps,
type ViewerI18nPageProps,
+ buildViewerI18nPageProps,
} from "@/lib/i18n/viewer-page-props";
import notion from "@/lib/notion";
import {
@@ -37,6 +36,7 @@ import CustomMetaTag from "@/components/view/custom-metatag";
import DataroomView from "@/components/view/dataroom/dataroom-view";
import DocumentView from "@/components/view/document-view";
import { ViewerI18nProvider } from "@/components/view/viewer-i18n-provider";
+import { ViewerNotFound } from "@/components/view/viewer-not-found";
type DocumentLinkData = {
linkType: "DOCUMENT_LINK";
@@ -389,21 +389,15 @@ function ViewPageInner({
}
if (frozen) {
- return (
- <NotFound message="This data room has been closed and is no longer available." />
- );
+ return <ViewerNotFound reason="dataroomClosed" />;
}
if (error) {
- return (
- <NotFound message="Sorry, we had trouble loading this link. Please try refreshing." />
- );
+ return <ViewerNotFound reason="loadErrorRefresh" />;
}
if (notionError) {
- return (
- <NotFound message="Sorry, we had trouble loading this link. Please try again in a moment." />
- );
+ return <ViewerNotFound reason="loadErrorRetry" />;
}
const {
@@ -477,15 +471,11 @@ function ViewPageInner({
// If the link is expired, show a 404 page
if (expiresAt && new Date(expiresAt) < new Date()) {
- return (
- <NotFound message="Sorry, the link you're looking for is expired." />
- );
+ return <ViewerNotFound reason="expired" />;
}
if (isArchived) {
- return (
- <NotFound message="Sorry, the link you're looking for is archived." />
- );
+ return <ViewerNotFound reason="archived" />;
}
return (
@@ -563,15 +553,11 @@ function ViewPageInner({
// If the link is expired, show a 404 page
if (expiresAt && new Date(expiresAt) < new Date()) {
- return (
- <NotFound message="Sorry, the link you're looking for is expired." />
- );
+ return <ViewerNotFound reason="expired" />;
}
if (isArchived) {
- return (
- <NotFound message="Sorry, the link you're looking for is archived." />
- );
+ return <ViewerNotFound reason="archived" />;
}
return (
diff --git a/pages/view/domains/[domain]/[slug]/d/[documentId].tsx b/pages/view/domains/[domain]/[slug]/d/[documentId].tsx
index 4ea7a716..5944eb88 100644
--- a/pages/view/domains/[domain]/[slug]/d/[documentId].tsx
+++ b/pages/view/domains/[domain]/[slug]/d/[documentId].tsx
@@ -3,7 +3,6 @@ import { useRouter } from "next/router";
import React, { useEffect, useState } from "react";
-import NotFound from "@/pages/404";
import { DataroomBrand } from "@prisma/client";
import Cookies from "js-cookie";
import { useSession } from "next-auth/react";
@@ -15,8 +14,8 @@ import { fetchLinkDataByDomainSlug } from "@/lib/api/links/link-data";
import { getFeatureFlags } from "@/lib/featureFlags";
import { useUrlPasscode } from "@/lib/hooks/use-url-passcode";
import {
- buildViewerI18nPageProps,
type ViewerI18nPageProps,
+ buildViewerI18nPageProps,
} from "@/lib/i18n/viewer-page-props";
import notion from "@/lib/notion";
import {
@@ -30,6 +29,7 @@ import LoadingSpinner from "@/components/ui/loading-spinner";
import CustomMetaTag from "@/components/view/custom-metatag";
import DataroomDocumentView from "@/components/view/dataroom/dataroom-document-view";
import { ViewerI18nProvider } from "@/components/view/viewer-i18n-provider";
+import { ViewerNotFound } from "@/components/view/viewer-not-found";
type DataroomDocumentLinkData = {
linkType: "DATAROOM_LINK";
@@ -103,15 +103,11 @@ function DataroomDocumentViewPageInner({
}
if (frozen) {
- return (
- <NotFound message="This data room has been closed and is no longer available." />
- );
+ return <ViewerNotFound reason="dataroomClosed" />;
}
if (error) {
- return (
- <NotFound message="Sorry, we had trouble loading this link. Please try again in a moment." />
- );
+ return <ViewerNotFound reason="loadErrorRetry" />;
}
const {
@@ -163,16 +159,12 @@ function DataroomDocumentViewPageInner({
// Check if the link is expired
if (expiresAt && new Date(expiresAt) < new Date()) {
- return (
- <NotFound message="Sorry, the link you're looking for is expired." />
- );
+ return <ViewerNotFound reason="expired" />;
}
// Check if the link is archived
if (isArchived) {
- return (
- <NotFound message="Sorry, the link you're looking for is archived." />
- );
+ return <ViewerNotFound reason="archived" />;
}
return (
@@ -215,10 +207,7 @@ export default function DataroomDocumentViewPage(props: DataroomDocumentProps) {
const locale = props.i18n?.locale ?? "en";
const resources = props.i18n?.resources ?? {};
return (
- <ViewerI18nProvider
- locale={locale}
- resources={resources}
- >
+ <ViewerI18nProvider locale={locale} resources={resources}>
<DataroomDocumentViewPageInner {...props} />
</ViewerI18nProvider>
);
diff --git a/pages/view/domains/[domain]/[slug]/downloads.tsx b/pages/view/domains/[domain]/[slug]/downloads.tsx
index 719532e0..28fa0b07 100644
--- a/pages/view/domains/[domain]/[slug]/downloads.tsx
+++ b/pages/view/domains/[domain]/[slug]/downloads.tsx
@@ -1,8 +1,8 @@
import { GetServerSideProps } from "next";
import {
- buildViewerI18nPageProps,
type ViewerI18nPageProps,
+ buildViewerI18nPageProps,
} from "@/lib/i18n/viewer-page-props";
import prisma from "@/lib/prisma";
@@ -11,7 +11,9 @@ import { ViewerI18nProvider } from "@/components/view/viewer-i18n-provider";
type Props = Partial<ViewerI18nPageProps> & { linkId: string };
-export const getServerSideProps: GetServerSideProps<Props> = async (context) => {
+export const getServerSideProps: GetServerSideProps<Props> = async (
+ context,
+) => {
const domain = context.params?.domain as string;
const slug = context.params?.slug as string;
if (!domain || !slug) {
diff --git a/pages/view/domains/[domain]/[slug]/embed.tsx b/pages/view/domains/[domain]/[slug]/embed.tsx
index 86e6e973..ede2f230 100644
--- a/pages/view/domains/[domain]/[slug]/embed.tsx
+++ b/pages/view/domains/[domain]/[slug]/embed.tsx
@@ -2,7 +2,6 @@ import { useRouter } from "next/router";
import { useEffect, useState } from "react";
-import NotFound from "@/pages/404";
import { Brand, DataroomBrand } from "@prisma/client";
import { useAnalytics } from "@/lib/analytics";
@@ -14,6 +13,7 @@ import LoadingSpinner from "@/components/ui/loading-spinner";
import DataroomView from "@/components/view/dataroom/dataroom-view";
import DocumentView from "@/components/view/document-view";
import { ViewerI18nProvider } from "@/components/view/viewer-i18n-provider";
+import { ViewerNotFound } from "@/components/view/viewer-not-found";
// Reuse the same getStaticProps and getStaticPaths from the main domain view page
export { getStaticProps, getStaticPaths } from "./index";
@@ -85,21 +85,15 @@ function EmbedPageInner(props: DomainEmbedPageProps) {
}
if (!isEmbedded) {
- return (
- <NotFound message="This page can only be accessed when embedded in another website." />
- );
+ return <ViewerNotFound reason="embedOnly" />;
}
if (props.frozen) {
- return (
- <NotFound message="This data room has been closed and is no longer available." />
- );
+ return <ViewerNotFound reason="dataroomClosed" />;
}
if (props.error) {
- return (
- <NotFound message="Sorry, we had trouble loading this link. Please try again in a moment." />
- );
+ return <ViewerNotFound reason="loadErrorRetry" />;
}
const {
@@ -134,15 +128,11 @@ function EmbedPageInner(props: DomainEmbedPageProps) {
} = link;
if (expiresAt && new Date(expiresAt) < new Date()) {
- return (
- <NotFound message="Sorry, the link you're looking for is expired." />
- );
+ return <ViewerNotFound reason="expired" />;
}
if (isArchived) {
- return (
- <NotFound message="Sorry, the link you're looking for is archived." />
- );
+ return <ViewerNotFound reason="archived" />;
}
return (
@@ -189,15 +179,11 @@ function EmbedPageInner(props: DomainEmbedPageProps) {
} = link;
if (expiresAt && new Date(expiresAt) < new Date()) {
- return (
- <NotFound message="Sorry, the link you're looking for is expired." />
- );
+ return <ViewerNotFound reason="expired" />;
}
if (isArchived) {
- return (
- <NotFound message="Sorry, the link you're looking for is archived." />
- );
+ return <ViewerNotFound reason="archived" />;
}
return (
diff --git a/pages/view/domains/[domain]/[slug]/index.tsx b/pages/view/domains/[domain]/[slug]/index.tsx
index 18025bdc..eb2b5b62 100644
--- a/pages/view/domains/[domain]/[slug]/index.tsx
+++ b/pages/view/domains/[domain]/[slug]/index.tsx
@@ -4,7 +4,6 @@ import { useRouter } from "next/router";
import { useEffect, useState } from "react";
import WorkflowAccessView from "@/ee/features/workflows/components/workflow-access-view";
-import NotFound from "@/pages/404";
import { Brand, DataroomBrand } from "@prisma/client";
import Cookies from "js-cookie";
import { useSession } from "next-auth/react";
@@ -16,8 +15,8 @@ import { fetchLinkDataByDomainSlug } from "@/lib/api/links/link-data";
import { getFeatureFlags } from "@/lib/featureFlags";
import { useUrlPasscode } from "@/lib/hooks/use-url-passcode";
import {
- buildViewerI18nPageProps,
type ViewerI18nPageProps,
+ buildViewerI18nPageProps,
} from "@/lib/i18n/viewer-page-props";
import notion from "@/lib/notion";
import {
@@ -37,6 +36,7 @@ import CustomMetaTag from "@/components/view/custom-metatag";
import DataroomView from "@/components/view/dataroom/dataroom-view";
import DocumentView from "@/components/view/document-view";
import { ViewerI18nProvider } from "@/components/view/viewer-i18n-provider";
+import { ViewerNotFound } from "@/components/view/viewer-not-found";
type DocumentLinkData = {
linkType: "DOCUMENT_LINK";
@@ -176,7 +176,9 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
const teamPlan = team?.plan || "free";
// Check feature flags for document links
- const docFeatureFlags = await getFeatureFlags({ teamId: teamId || undefined });
+ const docFeatureFlags = await getFeatureFlags({
+ teamId: teamId || undefined,
+ });
const textSelectionEnabled = docFeatureFlags.textSelection;
const logoOnAccessFormEnabled = docFeatureFlags.logoOnAccessForm;
const hideFooterOnAccessFormEnabled =
@@ -380,15 +382,11 @@ function ViewPageInner({
}
if (frozen) {
- return (
- <NotFound message="This data room has been closed and is no longer available." />
- );
+ return <ViewerNotFound reason="dataroomClosed" />;
}
if (error) {
- return (
- <NotFound message="Sorry, we had trouble loading this link. Please try again in a moment." />
- );
+ return <ViewerNotFound reason="loadErrorRetry" />;
}
const {
@@ -466,15 +464,11 @@ function ViewPageInner({
// If the link is expired, show a 404 page
if (expiresAt && new Date(expiresAt) < new Date()) {
- return (
- <NotFound message="Sorry, the link you're looking for is expired." />
- );
+ return <ViewerNotFound reason="expired" />;
}
if (isArchived) {
- return (
- <NotFound message="Sorry, the link you're looking for is archived." />
- );
+ return <ViewerNotFound reason="archived" />;
}
return (
@@ -550,15 +544,11 @@ function ViewPageInner({
// If the link is expired, show a 404 page
if (expiresAt && new Date(expiresAt) < new Date()) {
- return (
- <NotFound message="Sorry, the link you're looking for is expired." />
- );
+ return <ViewerNotFound reason="expired" />;
}
if (isArchived) {
- return (
- <NotFound message="Sorry, the link you're looking for is archived." />
- );
+ return <ViewerNotFound reason="archived" />;
}
return (
@@ -600,10 +590,7 @@ export default function ViewPage(props: DomainViewPageProps) {
const locale = props.i18n?.locale ?? "en";
const resources = props.i18n?.resources ?? {};
return (
- <ViewerI18nProvider
- locale={locale}
- resources={resources}
- >
+ <ViewerI18nProvider locale={locale} resources={resources}>
<ViewPageInner {...props} />
</ViewerI18nProvider>
);