From 813b0bd5d6c8e2cb6cf80f5af3d826487fbec471 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 20 Nov 2026 14:31:40 -0500 Subject: [PATCH 01/14] Validate MCP document update edit modes (#14678) Co-authored-by: Tom Moor <380914+tommoor@users.noreply.github.com> Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com> --- server/mcp/tools/documents.test.ts | 114 +++++++++++++++++++++++++++++ server/mcp/tools/documents.ts | 34 +++++++++ 2 files changed, 148 insertions(+) diff --git a/server/mcp/tools/documents.test.ts b/server/mcp/tools/documents.test.ts index 6ba4862fa6..bcbf2284ee 100644 --- a/server/mcp/tools/documents.test.ts +++ b/server/mcp/tools/documents.test.ts @@ -734,6 +734,120 @@ describe("create_document", () => { }); describe("update_document", () => { + it.each([ + { input: { findText: "original", text: "replacement" }, field: "findText" }, + { + input: { editMode: "replace", findText: "original", text: "replacement" }, + field: "findText", + }, + { + input: { editMode: "replace", findText: " ", text: "replacement" }, + field: "findText", + }, + { input: { editMode: "patch", findText: "original" }, field: "text" }, + { input: { editMode: "patch", text: "replacement" }, field: "findText" }, + { + input: { editMode: "patch", findText: "", text: "replacement" }, + field: "findText", + }, + { input: { editMode: "append" }, field: "text" }, + { input: { editMode: "append", text: "" }, field: "text" }, + { input: { editMode: "prepend" }, field: "text" }, + { input: { editMode: "prepend", text: "" }, field: "text" }, + ])("rejects invalid edit parameters: $input", async ({ input, field }) => { + const { user, accessToken } = await buildOAuthUser(); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + text: "original content", + }); + const { title, text, revisionCount } = document; + + const res = await callMcpTool(server, accessToken, "update_document", { + id: document.id, + title: "Must not change", + ...input, + }); + + expect(res?.result?.isError).toBe(true); + expect(res?.result?.content?.[0]?.text).toContain(field); + expect(res?.result?.content?.[0]?.text).toContain("editMode"); + + await document.reload(); + expect(document.title).toEqual(title); + expect(document.text).toEqual(text); + expect(document.revisionCount).toEqual(revisionCount); + }); + + it.each([undefined, "replace"])( + "allows an empty findText with editMode %s", + async (editMode) => { + const { user, accessToken } = await buildOAuthUser(); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + text: "original content", + }); + + const res = await callMcpTool(server, accessToken, "update_document", { + id: document.id, + editMode, + findText: "", + text: "replacement content", + }); + + expect(res?.result?.isError).toBeFalsy(); + await document.reload(); + expect(document.text).toEqual("replacement content"); + } + ); + + it.each([ + { editMode: "append", expected: "original contentadded content" }, + { editMode: "prepend", expected: "added contentoriginal content" }, + ])( + "allows findText with $editMode for REST parity", + async ({ editMode, expected }) => { + const { user, accessToken } = await buildOAuthUser(); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + text: "original content", + }); + + const res = await callMcpTool(server, accessToken, "update_document", { + id: document.id, + editMode, + findText: "original", + text: "added content", + }); + + expect(res?.result?.isError).toBeFalsy(); + await document.reload(); + expect(document.text).toEqual(expected); + } + ); + + it("allows empty patch text to delete the matched content", async () => { + const { user, accessToken } = await buildOAuthUser(); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + text: "the original sentence", + }); + + const res = await callMcpTool(server, accessToken, "update_document", { + id: document.id, + editMode: "patch", + findText: "original ", + text: "", + }); + + expect(res?.result?.isError).toBeFalsy(); + await document.reload(); + expect(document.text).toEqual("the sentence"); + }); + it("attributes Markdown mentions to the authenticated editor", async () => { const { user, accessToken } = await buildOAuthUser(); const author = await buildUser({ teamId: user.teamId }); diff --git a/server/mcp/tools/documents.ts b/server/mcp/tools/documents.ts index 1feb16d42a..bd142da4e2 100644 --- a/server/mcp/tools/documents.ts +++ b/server/mcp/tools/documents.ts @@ -694,6 +694,40 @@ export function documentTools(server: McpServer, scopes: string[]) { }, withTracing("update_document", async (input, context) => { try { + if ( + (input.editMode === undefined || + input.editMode === TextEditMode.Replace) && + input.findText + ) { + throw ValidationError( + 'findText cannot be used with replace editMode. Use editMode "patch" instead.' + ); + } + + if ( + (input.editMode === TextEditMode.Append || + input.editMode === TextEditMode.Prepend) && + !input.text + ) { + throw ValidationError( + "text is required when using append, prepend, or editMode" + ); + } + + if (input.editMode === TextEditMode.Patch) { + if (input.text === undefined) { + throw ValidationError( + "text is required when using patch editMode" + ); + } + + if (!input.findText) { + throw ValidationError( + "findText is required when using patch editMode" + ); + } + } + const ctx = buildAPIContext(context); const { user } = ctx.state.auth; From 1bac71114147e89c9450fb5d6f5d7c1bd0706d67 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 20 Nov 2026 15:34:40 -0500 Subject: [PATCH 02/14] fix: Status bar shows header button color on mobile Safari (#14680) --- app/components/Header.tsx | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/app/components/Header.tsx b/app/components/Header.tsx index 830364e668..3cc13751c3 100644 --- a/app/components/Header.tsx +++ b/app/components/Header.tsx @@ -177,8 +177,6 @@ const fadeStops = (height: number) => ) .join(", "); -const headerFadeStops = fadeStops(HeaderFadeHeight); - /** Raised capsule that holds header buttons on mobile, like an iOS toolbar. */ const mobilePill = css` background: ${s("menuBackground")}; @@ -344,38 +342,30 @@ const Wrapper = styled(Flex)` ${(props: WrapperProps & { theme: DefaultTheme }) => !props.$passThrough && ` - background: transparent; + /* iOS reads this color for the status bar. The clip leaves the visible background to the fade. */ + background: ${props.theme.background}; + -webkit-background-clip: text; + background-clip: text; backdrop-filter: none; - /* The blurred background extends past the header and fades out, so content blends under it. */ + /* The background extends past the header and fades out, so content blends under it. */ &::before { content: ""; position: absolute; inset: 0 0 -${HeaderFadeHeight / 2}px; z-index: -1; pointer-events: none; - background: ${transparentize(0.2, props.theme.background)}; + background: ${props.theme.background}; backdrop-filter: blur(20px); - mask-image: linear-gradient(to bottom, ${headerFadeStops}); + mask-image: linear-gradient(to bottom, ${fadeStops(HeaderFadeHeight)}); } /* A stuck tab bar or table header continues the header, so the header is solid above it. */ body:has([data-stuck]) &::before { inset: 0; - background: ${props.theme.background}; backdrop-filter: none; mask-image: none; } - - /* iOS blurs the top of an installed web app unless the sticky header has a solid background. */ - @media (display-mode: standalone) { - background: ${props.theme.background}; - - &::before { - background: ${props.theme.background}; - mask-image: linear-gradient(to bottom, ${fadeStops(HeaderFadeHeight / 2)}); - } - } `} `}; From c88ea4b0d264fe8ed5ce24741a2183703e37f883 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 20 Nov 2026 15:34:45 -0500 Subject: [PATCH 03/14] Lighter menu headers and remove dividers above groups (#14679) * Update menu header style and strip dividers above groups * Reduce font-size * Ignore hidden menu elements when removing the first header margin --- app/components/Menu/MenuFilter.tsx | 5 ++- app/components/Menu/transformer.test.tsx | 33 +++++++++++++++++-- app/components/Menu/transformer.tsx | 14 +++++--- app/components/MouseSafeArea.tsx | 1 + app/components/primitives/components/Menu.tsx | 17 +++++++--- app/hooks/useTemplateMenuActions.tsx | 7 +++- shared/i18n/locales/en_US/translation.json | 17 ++++++++-- 7 files changed, 79 insertions(+), 15 deletions(-) diff --git a/app/components/Menu/MenuFilter.tsx b/app/components/Menu/MenuFilter.tsx index 6fae2db542..b5a01b43d7 100644 --- a/app/components/Menu/MenuFilter.tsx +++ b/app/components/Menu/MenuFilter.tsx @@ -200,7 +200,10 @@ export function MenuFilter({ query, onChange }: Props) { ); return ( - + !!element ); } @@ -47,4 +47,33 @@ describe("toMenuItems", () => { it("returns null when nothing matches", () => { expect(toMenuItems(items, "zzz")).toBeNull(); }); + + it("removes a separator above a group", () => { + const keys = render(undefined, [ + { type: "button", title: "Team", onClick: noop }, + { type: "separator" }, + { + type: "group", + title: "Group", + items: [{ type: "button", title: "Design", onClick: noop }], + }, + ]).map((element) => element.key); + expect(keys).toEqual(["button-0", "group-1"]); + }); + + it("keeps a separator above a group that has no visible items", () => { + const keys = render(undefined, [ + { type: "button", title: "Team", onClick: noop }, + { type: "separator" }, + { + type: "group", + title: "Group", + items: [ + { type: "button", title: "Design", visible: false, onClick: noop }, + ], + }, + { type: "button", title: "Due date", onClick: noop }, + ]).map((element) => element.key); + expect(keys).toEqual(["button-0", "separator-1", "button-2"]); + }); }); diff --git a/app/components/Menu/transformer.tsx b/app/components/Menu/transformer.tsx index 2dadb495ae..852b95cc31 100644 --- a/app/components/Menu/transformer.tsx +++ b/app/components/Menu/transformer.tsx @@ -290,7 +290,7 @@ export function toMobileMenuItems( } return ( -
+
{item.title} {groupItems}
@@ -340,7 +340,11 @@ function matchesQuery(item: MenuItem, query: string): boolean { function filterMenuItems(items: MenuItem[]): MenuItem[] { return items - .filter((item) => item.visible !== false) + .filter( + (item) => + item.visible !== false && + (item.type !== "group" || filterMenuItems(item.items).length > 0) + ) .reduce((acc, item) => { // trim separator when the previous item is also a separator. if ( @@ -352,10 +356,12 @@ function filterMenuItems(items: MenuItem[]): MenuItem[] { return [...acc, item]; }, [] as MenuItem[]) .filter((item, index, arr) => { - // trim when first or last item is a separator. + // trim when first or last item is a separator, or above a group header. if ( item.type === "separator" && - (index === 0 || index === arr.length - 1) + (index === 0 || + index === arr.length - 1 || + arr[index + 1]?.type === "group") ) { return false; } diff --git a/app/components/MouseSafeArea.tsx b/app/components/MouseSafeArea.tsx index 5efe84f25e..bcce555bb2 100644 --- a/app/components/MouseSafeArea.tsx +++ b/app/components/MouseSafeArea.tsx @@ -55,6 +55,7 @@ export const MouseSafeArea = observer(function MouseSafeArea_(props: { return (
*), + [data-menu-hidden]:first-child + &, + [role="group"]:first-child > &:first-child, + [data-menu-hidden]:first-child + [role="group"] > &:first-child { + margin-top: 0; + } + `} `; export const MenuDisclosure = styled(ExpandedIcon)` diff --git a/app/hooks/useTemplateMenuActions.tsx b/app/hooks/useTemplateMenuActions.tsx index ad1545b387..fd55b6a349 100644 --- a/app/hooks/useTemplateMenuActions.tsx +++ b/app/hooks/useTemplateMenuActions.tsx @@ -24,7 +24,8 @@ type Props = { * they are published and organizes them into appropriate sections. * * Collection-specific templates are displayed first, followed by workspace templates - * with a separator in between (if both types exist). + * in a group with a separator in between. Workspace templates are not grouped + * when there are no collection-specific templates. * * @returns An array of Action objects representing templates that can be applied * to the current document. Returns an empty array if no callback is provided. @@ -90,6 +91,10 @@ export function useTemplateMenuActions({ return []; } + if (!collectionTemplatesActions.length) { + return workspaceTemplatesActions; + } + return [ ...collectionTemplatesActions, ActionSeparator, diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 2ddb856713..e29071f852 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integrations", "Back to app": "Back to app", "Installation": "Installation", + "Available on {{ planName }}": "Available on {{ planName }}", "Split pane": "Split pane", "Main pane": "Main pane", "Unstar document": "Unstar document", @@ -896,6 +897,11 @@ "Upload a video": "Upload a video", "Edit video URL": "Edit video URL", "Could not import file": "Could not import file", + "Community": "Community", + "Standard": "Standard", + "Business": "Business", + "Enterprise": "Enterprise", + "Legacy": "Legacy", "Unsubscribed from document": "Unsubscribed from document", "Unsubscribed from collection": "Unsubscribed from collection", "Subscription successful": "Subscription successful", @@ -1466,6 +1472,8 @@ "This color has low contrast against the accent color": "This color has low contrast against the accent color", "Accent color": "Accent color", "Accent text color": "Accent text color", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.", + "View plans": "View plans", "All roles": "All roles", "Admins": "Admins", "Editors": "Editors", @@ -1520,7 +1528,6 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Import a zip file of Markdown documents in the Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Import a JSON data file exported from another {{ appName }} instance", "Import pages from a Confluence instance": "Import pages from a Confluence instance", - "Enterprise": "Enterprise", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.", "Recent imports": "Recent imports", "Configure a variety of integrations with third-party services.": "Configure a variety of integrations with third-party services.", @@ -1677,7 +1684,7 @@ "Failed to save revision": "Failed to save revision", "Invite to document": "Invite to document", "Sorry, invalid embed link": "Sorry, invalid embed link", - "Data Attributes": "Data Attributes", + "Data attributes": "Data attributes", "Edit attribute": "Edit attribute", "Property": "Property", "Yes": "Yes", @@ -1709,7 +1716,7 @@ "Text": "Text", "List": "List", "Could not load events": "Could not load events", - "Audit Log": "Audit Log", + "Audit log": "Audit log", "The audit log details the history of security-related and other events across your knowledge base.": "The audit log details the history of security-related and other events across your knowledge base.", "IP address": "IP address", "Actor": "Actor", @@ -1852,6 +1859,10 @@ "Script name": "Script name", "The name of the script file that Umami uses to track analytics.": "The name of the script file that Umami uses to track analytics.", "An ID that uniquely identifies the website in your Umami instance.": "An ID that uniquely identifies the website in your Umami instance.", + "The audit log details the history of security related and other events across your knowledge base.": "The audit log details the history of security related and other events across your knowledge base.", + "Content": "Content", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Automatically index and search document content from {{appName}} inside Glean in realtime.", "New webhook": "New webhook", "Edit webhook": "Edit webhook", "Delete webhook": "Delete webhook", From ee3c88bc14a6f1bf91ce5230272d0b6d5062db89 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 21 Nov 2026 11:33:02 -0500 Subject: [PATCH 04/14] fix: Standardize media resizing, add aspect ratio lock control (#14677) * fix: Allow PDF embed width and height to change independently Adds an aspect ratio lock toggle to the media dimension toolbar for PDF embeds, renders PDFs at their stored aspect ratio, and keeps that ratio when drag resizing. * feat: Add corner resize handles to PDF embeds and persist aspect ratio lock Stores the lock as an optional attachment attribute, where unset means locked, so side handles change only the width of unlocked PDFs. * feat: Consistent resize handles for images, videos, PDFs and embeds All media get side, bottom and corner handles driven by one lock rule. Images and videos stay locked. PDFs and embeds can be unlocked to resize each axis independently. * feat: Show width, height and lock in the embed toolbar * feat: Start embeds unlocked and step media dimensions with arrow keys Embeds start with an unlocked aspect ratio so full-width embeds can still be made taller, while PDFs start locked. Up and down arrows step the dimension inputs by 1, or 10 with shift. * fix: Align the aspect ratio padlock with the dimension digits * fix: Move the aspect ratio lock closer to the dimension inputs * fix: Show the aspect ratio lock state in its tooltip --- app/components/Icons/UnlockedPadlockIcon.tsx | 41 +++ .../components/AspectRatioLockButton.tsx | 46 +++ app/editor/components/MediaDimension.tsx | 347 +++++++++++------- app/editor/components/MediaLinkEditor.tsx | 19 + app/editor/components/ToolbarMenu.tsx | 32 +- .../commands/toggleAspectRatioLock.test.ts | 80 ++++ .../editor/commands/toggleAspectRatioLock.ts | 35 ++ shared/editor/components/Embed.tsx | 49 ++- shared/editor/components/Image.tsx | 43 +-- shared/editor/components/PDF.tsx | 47 +-- shared/editor/components/ResizeHandle.tsx | 123 +++++-- shared/editor/components/Video.tsx | 20 +- .../editor/components/hooks/useDragResize.ts | 207 ++++++----- shared/editor/lib/pdf.test.ts | 24 ++ shared/editor/nodes/Attachment.tsx | 14 +- shared/editor/nodes/Embed.tsx | 46 ++- shared/editor/queries/isAspectRatioLocked.ts | 26 ++ shared/i18n/locales/en_US/translation.json | 3 + 18 files changed, 841 insertions(+), 361 deletions(-) create mode 100644 app/components/Icons/UnlockedPadlockIcon.tsx create mode 100644 app/editor/components/AspectRatioLockButton.tsx create mode 100644 shared/editor/commands/toggleAspectRatioLock.test.ts create mode 100644 shared/editor/commands/toggleAspectRatioLock.ts create mode 100644 shared/editor/lib/pdf.test.ts create mode 100644 shared/editor/queries/isAspectRatioLocked.ts diff --git a/app/components/Icons/UnlockedPadlockIcon.tsx b/app/components/Icons/UnlockedPadlockIcon.tsx new file mode 100644 index 0000000000..18a90ca384 --- /dev/null +++ b/app/components/Icons/UnlockedPadlockIcon.tsx @@ -0,0 +1,41 @@ +type Props = { + /** The size of the icon, 24px is default to match standard icons */ + size?: number; + /** The color of the icon, defaults to the current text color */ + color?: string; +}; + +/** + * A padlock with an open shackle, the unlocked variant of PadlockIcon. + * + * @param props the icon props. + * @returns the icon element. + */ +export function UnlockedPadlockIcon({ + size = 24, + color = "currentColor", + ...rest +}: Props) { + return ( + + + + + ); +} diff --git a/app/editor/components/AspectRatioLockButton.tsx b/app/editor/components/AspectRatioLockButton.tsx new file mode 100644 index 0000000000..fde8f96223 --- /dev/null +++ b/app/editor/components/AspectRatioLockButton.tsx @@ -0,0 +1,46 @@ +import { PadlockIcon } from "outline-icons"; +import type * as React from "react"; +import { useTranslation } from "react-i18next"; +import styled, { useTheme } from "styled-components"; +import { UnlockedPadlockIcon } from "~/components/Icons/UnlockedPadlockIcon"; +import ToolbarButton from "./ToolbarButton"; + +interface Props extends React.ComponentProps { + /** Whether the aspect ratio is locked. */ + isLocked: boolean; +} + +/** + * A toolbar button that shows and toggles whether media keeps its aspect ratio. + * + * @param props - the component props. + * @returns the button. + */ +export function AspectRatioLockButton({ isLocked, ...rest }: Props) { + const { t } = useTranslation(); + const theme = useTheme(); + + return ( + + {isLocked ? ( + + ) : ( + + )} + + ); +} + +const LockButton = styled(ToolbarButton)` + justify-content: center; + margin-left: -6px; + + /* The padlock glyph sits above its box center, so align it with the digits. */ + svg { + transform: translateY(1px); + } +`; diff --git a/app/editor/components/MediaDimension.tsx b/app/editor/components/MediaDimension.tsx index e216a723dd..4201326d60 100644 --- a/app/editor/components/MediaDimension.tsx +++ b/app/editor/components/MediaDimension.tsx @@ -1,13 +1,23 @@ import type { NodeSelection } from "prosemirror-state"; -import { useCallback, useEffect, useRef, useState } from "react"; +import * as Toolbar from "@radix-ui/react-toolbar"; +import { clamp } from "es-toolkit"; +import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import styled from "styled-components"; import Flex from "@shared/components/Flex"; import Text from "@shared/components/Text"; +import { embedDefaultHeight } from "@shared/editor/components/Embed"; import { contentWidth } from "@shared/editor/lib/contentWidth"; -import { resolvePDFDimensions } from "@shared/editor/lib/pdf"; +import { isAspectRatioLocked } from "@shared/editor/queries/isAspectRatioLocked"; +import { + pdfNaturalHeight, + pdfNaturalWidth, + resolvePDFDimensions, +} from "@shared/editor/lib/pdf"; import { extraArea } from "@shared/styles"; import Input, { NativeInput, Outline } from "~/components/Input"; import { useEditor } from "./EditorContext"; +import { AspectRatioLockButton } from "./AspectRatioLockButton"; +import Tooltip from "./Tooltip"; import { useTranslation } from "react-i18next"; type Dimension = { @@ -16,15 +26,20 @@ type Dimension = { changed: "width" | "height" | "none"; }; -export function MediaDimension() { +interface Props { + /** Tooltip shown when the dimension inputs are hovered. */ + tooltip?: string; +} + +/** + * Toolbar inputs to change the width and height of the selected media node. + * + * @param props - the component props. + * @returns the dimension inputs. + */ +export function MediaDimension({ tooltip }: Props) { const isDraggingRef = useRef(false); - const boundsRef = useRef< - | { - width: { min: number; max: number }; - height: { min: number; max: number }; - } - | undefined - >(undefined); + const isSteppingRef = useRef(false); const { t } = useTranslation(); const { view, commands } = useEditor(); const { state } = view; @@ -35,10 +50,26 @@ export function MediaDimension() { const nodeType = node.type.name; const nodeWidth = node.attrs.width as number | null | undefined; const nodeHeight = node.attrs.height as number | null | undefined; + const [maxWidth] = useState(() => contentWidth(view.dom)); + + // Embeds without a stored size fill the editor width at their default height. const { width, height } = nodeType === "attachment" ? resolvePDFDimensions(nodeWidth, nodeHeight) - : { width: nodeWidth ?? 0, height: nodeHeight ?? 0 }; + : nodeType === "embed" + ? { + width: nodeWidth || maxWidth, + height: nodeHeight ?? embedDefaultHeight, + } + : { width: nodeWidth ?? 0, height: nodeHeight ?? 0 }; + + // Only PDFs and embeds can be unlocked, images and videos keep their natural aspect ratio. + const canUnlock = nodeType === "attachment" || nodeType === "embed"; + const isLocked = !canUnlock || isAspectRatioLocked(node); + + // Full-width images store their natural width, so the editor width gives their + // aspect ratio. PDFs and embeds always store dimensions with a matching ratio. + const ratioWidth = canUnlock ? width : Math.min(width, maxWidth); const [localDimension, setLocalDimension] = useState(() => ({ width: width ? String(width) : "", @@ -50,17 +81,17 @@ export function MediaDimension() { height: false, }); - if (!boundsRef.current) { - const maxWidth = contentWidth(view.dom); - const constrainedWidth = Math.min(width, maxWidth); // Ensure media width does not exceed the max width of the editor. - const aspectRatio = height / constrainedWidth; + const bounds = useMemo(() => { + // Unlocked height does not change the width, so limit it to a full-width page. + const aspectRatio = isLocked + ? height / ratioWidth + : pdfNaturalHeight / pdfNaturalWidth; - const maxHeight = Math.round(maxWidth * aspectRatio); - boundsRef.current = { + return { width: { min: 50, max: maxWidth }, - height: { min: 50, max: maxHeight }, + height: { min: 50, max: Math.round(maxWidth * aspectRatio) }, }; - } + }, [height, ratioWidth, maxWidth, isLocked]); const reset = useCallback(() => { setLocalDimension({ @@ -72,14 +103,9 @@ export function MediaDimension() { }, [width, height]); const isOutsideBounds = useCallback( - (type: "width" | "height", value: number) => { - const bounds = boundsRef.current; - if (!bounds) { - return false; - } - return value < bounds[type].min || value > bounds[type].max; - }, - [] + (type: "width" | "height", value: number) => + value < bounds[type].min || value > bounds[type].max, + [bounds] ); const handleChange = useCallback( @@ -116,86 +142,139 @@ export function MediaDimension() { [] ); - const handleBlur = useCallback(() => { - const localWidthAsNumber = localDimension.width - ? parseInt(localDimension.width, 10) - : undefined, - localHeightAsNumber = localDimension.height - ? parseInt(localDimension.height, 10) - : undefined; + const commit = useCallback( + (dimension: Dimension, hasError: boolean) => { + const localWidthAsNumber = dimension.width + ? parseInt(dimension.width, 10) + : undefined, + localHeightAsNumber = dimension.height + ? parseInt(dimension.height, 10) + : undefined; - const isUnchanged = - !localWidthAsNumber || - !localHeightAsNumber || - (localWidthAsNumber === width && localHeightAsNumber === height); + const isUnchanged = + !localWidthAsNumber || + !localHeightAsNumber || + (localWidthAsNumber === width && localHeightAsNumber === height); - const isError = - error.width || - error.height || - (localDimension.changed === "width" && - localWidthAsNumber && - isOutsideBounds("width", localWidthAsNumber)); // check width bounds here since 'onChange' error checker is debounced. + // Check bounds here since the 'onChange' error checker is debounced. + const isError = + hasError || + (dimension.changed === "width" && + localWidthAsNumber && + isOutsideBounds("width", localWidthAsNumber)) || + (dimension.changed === "height" && + localHeightAsNumber && + isOutsideBounds("height", localHeightAsNumber)); - if (isUnchanged || isError || !boundsRef.current) { - reset(); - return; - } - - const maxWidth = boundsRef.current.width.max; - // For images resized to the full width of the editor, natural width will be shown in the toolbar. - // So, we constrain it here for computing aspect ratio. - const constrainedWidth = Math.min(width, maxWidth); - - const aspectRatio = - localDimension.changed === "width" - ? height / constrainedWidth - : constrainedWidth / height; - - const finalWidth = - localDimension.changed === "width" - ? localWidthAsNumber - : Math.round(aspectRatio * localHeightAsNumber); - const finalHeight = - localDimension.changed === "height" - ? localHeightAsNumber - : Math.round(aspectRatio * localWidthAsNumber); - - if (nodeType === "image") { - commands["resizeImage"]({ - width: finalWidth, - height: finalHeight, - }); - } else if (nodeType === "attachment") { - commands["resizeAttachment"]({ - width: finalWidth, - height: finalHeight, - }); - } else if (nodeType === "video") { - commands["resizeVideo"]({ - width: finalWidth, - height: finalHeight, - }); - } - }, [ - commands, - width, - height, - localDimension, - nodeType, - error, - reset, - isOutsideBounds, - ]); - - const handleKeyDown = useCallback( - (e: React.KeyboardEvent) => { - if (e.key === "Enter") { - handleBlur(); - } else if (e.key === "Escape") { + if (isUnchanged || isError) { reset(); + return; + } + + const aspectRatio = + dimension.changed === "width" + ? height / ratioWidth + : ratioWidth / height; + + const isIndependent = canUnlock && !isLocked; + const finalWidth = + isIndependent || dimension.changed === "width" + ? localWidthAsNumber + : Math.round(aspectRatio * localHeightAsNumber); + const finalHeight = + isIndependent || dimension.changed === "height" + ? localHeightAsNumber + : Math.round(aspectRatio * localWidthAsNumber); + + if (nodeType === "image") { + commands["resizeImage"]({ + width: finalWidth, + height: finalHeight, + }); + } else if (nodeType === "attachment") { + commands["resizeAttachment"]({ + width: finalWidth, + height: finalHeight, + }); + } else if (nodeType === "video") { + commands["resizeVideo"]({ + width: finalWidth, + height: finalHeight, + }); + } else if (nodeType === "embed") { + commands["resizeEmbed"]({ + width: finalWidth, + height: finalHeight, + }); } }, - [handleBlur, reset] + [ + commands, + width, + height, + nodeType, + reset, + isOutsideBounds, + ratioWidth, + canUnlock, + isLocked, + ] + ); + + const handleBlur = useCallback(() => { + if (isSteppingRef.current) { + return; + } + commit(localDimension, error.width || error.height); + }, [commit, localDimension, error]); + + const handleToggleLock = useCallback(() => { + commands[ + nodeType === "embed" + ? "toggleEmbedAspectRatioLock" + : "toggleAttachmentAspectRatioLock" + ](); + setError({ width: false, height: false }); + }, [commands, nodeType]); + + const handleKeyDown = useCallback( + (type: "width" | "height") => + (e: React.KeyboardEvent) => { + if (e.key === "Enter") { + handleBlur(); + } else if (e.key === "Escape") { + reset(); + } else if (e.key === "ArrowUp" || e.key === "ArrowDown") { + e.preventDefault(); + + // Shift steps by 10, like number inputs in design tools. + const step = (e.shiftKey ? 10 : 1) * (e.key === "ArrowUp" ? 1 : -1); + const current = + parseInt(localDimension[type], 10) || + (type === "width" ? width : height); + const next = clamp( + current + step, + bounds[type].min, + bounds[type].max + ); + const dimension: Dimension = { + ...localDimension, + [type]: String(next), + changed: type, + }; + + setError({ width: false, height: false }); + setLocalDimension(dimension); + + // Editor commands focus the editor, so return focus to keep stepping. + const input = e.currentTarget; + isSteppingRef.current = true; + commit(dimension, false); + input.focus(); + isSteppingRef.current = false; + } + }, + [handleBlur, reset, commit, localDimension, width, height, bounds] ); // Sync dimension changes from outside, without clobbering in-progress edits @@ -233,7 +312,7 @@ export function MediaDimension() { const dimensions = nodeType === "attachment" - ? resolvePDFDimensions(newWidth) + ? resolvePDFDimensions(newWidth, newHeight) : { width: newWidth, height: newHeight }; setLocalDimension({ @@ -274,29 +353,47 @@ export function MediaDimension() { return ( - - - × - - + + + + + × + + + + + {canUnlock && ( + + + + + + )} ); } diff --git a/app/editor/components/MediaLinkEditor.tsx b/app/editor/components/MediaLinkEditor.tsx index 76ae8c1965..1908eab9e2 100644 --- a/app/editor/components/MediaLinkEditor.tsx +++ b/app/editor/components/MediaLinkEditor.tsx @@ -7,7 +7,10 @@ import { useTranslation } from "react-i18next"; import styled from "styled-components"; import Flex from "~/components/Flex"; import Tooltip from "~/components/Tooltip"; +import * as Toolbar from "@radix-ui/react-toolbar"; import Input from "~/editor/components/Input"; +import { MediaDimension } from "./MediaDimension"; +import ToolbarSeparator from "./ToolbarSeparator"; import ToolbarButton from "./ToolbarButton"; import useOnClickOutside from "~/hooks/useOnClickOutside"; @@ -115,6 +118,17 @@ export function MediaLinkEditor({ onKeyDown={handleKeyDown} readOnly={!view.editable} /> + {view.editable && node.type.name === "embed" && ( + <> + + + + + + + + + )} @@ -139,6 +153,11 @@ export function MediaLinkEditor({ ); } +const DimensionGroup = styled.div` + display: flex; + align-items: center; +`; + const Wrapper = styled(Flex)` pointer-events: all; gap: 6px; diff --git a/app/editor/components/ToolbarMenu.tsx b/app/editor/components/ToolbarMenu.tsx index fa67f235d0..70def9b64b 100644 --- a/app/editor/components/ToolbarMenu.tsx +++ b/app/editor/components/ToolbarMenu.tsx @@ -198,28 +198,28 @@ function ToolbarMenu(props: Props) { ); } + if (item.name === "dimensions") { + return ; + } + return ( - {item.name === "dimensions" ? ( - - ) : ( - - - {item.label && } - {item.icon} - - - )} + + + {item.label && } + {item.icon} + + ); })} diff --git a/shared/editor/commands/toggleAspectRatioLock.test.ts b/shared/editor/commands/toggleAspectRatioLock.test.ts new file mode 100644 index 0000000000..dc58e6d706 --- /dev/null +++ b/shared/editor/commands/toggleAspectRatioLock.test.ts @@ -0,0 +1,80 @@ +import { NodeSelection } from "prosemirror-state"; +import type { EditorState } from "prosemirror-state"; +import { createEditorState, p, schema } from "@shared/test/editor"; +import { isAspectRatioLocked } from "../queries/isAspectRatioLocked"; +import { toggleAspectRatioLock } from "./toggleAspectRatioLock"; + +const { embed, attachment } = schema.nodes; + +/** + * Creates a state with an embed node selected. + * + * @param attrs - the embed attributes. + * @returns the editor state. + */ +function selectedEmbed(attrs: Record = {}) { + const state = createEditorState( + schema.nodes.doc.create(null, [ + embed.create({ href: "https://example.com", ...attrs }), + p(""), + ]) + ); + return state.apply(state.tr.setSelection(NodeSelection.create(state.doc, 0))); +} + +/** + * Runs the command and returns the resulting state. + * + * @param state - the editor state. + * @returns the state after the command, or undefined if it did not apply. + */ +function toggle(state: EditorState) { + let next: EditorState | undefined; + toggleAspectRatioLock(embed)(state, (tr) => { + next = state.apply(tr); + }); + return next; +} + +describe("toggleAspectRatioLock", () => { + it("starts embeds unlocked", () => { + const node = selectedEmbed().doc.child(0); + expect(node.attrs.lockAspectRatio).toBeNull(); + expect(isAspectRatioLocked(node)).toBe(false); + }); + + it("locks an unlocked embed and keeps it selected", () => { + const next = toggle(selectedEmbed()); + expect(next?.doc.firstChild?.attrs.lockAspectRatio).toBe(true); + expect(next?.selection).toBeInstanceOf(NodeSelection); + }); + + it("clears the attribute when returning to the type default", () => { + const next = toggle(selectedEmbed({ lockAspectRatio: true })); + expect(next?.doc.firstChild?.attrs.lockAspectRatio).toBeNull(); + }); + + it("starts attachments locked and stores false when unlocked", () => { + const state = createEditorState( + schema.nodes.doc.create(null, [ + attachment.create({ title: "file.pdf", preview: true }), + p(""), + ]) + ); + const selected = state.apply( + state.tr.setSelection(NodeSelection.create(state.doc, 0)) + ); + expect(isAspectRatioLocked(selected.doc.child(0))).toBe(true); + + let next: EditorState | undefined; + toggleAspectRatioLock(attachment)(selected, (tr) => { + next = selected.apply(tr); + }); + expect(next?.doc.firstChild?.attrs.lockAspectRatio).toBe(false); + }); + + it("does not apply to other node types", () => { + const state = createEditorState(schema.nodes.doc.create(null, [p("text")])); + expect(toggleAspectRatioLock(embed)(state)).toBe(false); + }); +}); diff --git a/shared/editor/commands/toggleAspectRatioLock.ts b/shared/editor/commands/toggleAspectRatioLock.ts new file mode 100644 index 0000000000..a813b8f7eb --- /dev/null +++ b/shared/editor/commands/toggleAspectRatioLock.ts @@ -0,0 +1,35 @@ +import type { NodeType } from "prosemirror-model"; +import type { Command } from "prosemirror-state"; +import { NodeSelection } from "prosemirror-state"; +import { + isAspectRatioLocked, + isAspectRatioLockedByDefault, +} from "../queries/isAspectRatioLocked"; + +/** + * Toggles whether a selected node of the given type keeps its aspect ratio when + * resized. The attribute is cleared when the new state is the type default. + * + * @param type - the node type that stores the lock. + * @returns the command. + */ +export function toggleAspectRatioLock(type: NodeType): Command { + return (state, dispatch) => { + const { selection } = state; + if (!(selection instanceof NodeSelection) || selection.node.type !== type) { + return false; + } + + const isLocked = !isAspectRatioLocked(selection.node); + const transaction = state.tr + .setNodeMarkup(selection.from, undefined, { + ...selection.node.attrs, + lockAspectRatio: + isLocked === isAspectRatioLockedByDefault(type) ? null : isLocked, + }) + .setMeta("addToHistory", true); + const $pos = transaction.doc.resolve(selection.from); + dispatch?.(transaction.setSelection(new NodeSelection($pos))); + return true; + }; +} diff --git a/shared/editor/components/Embed.tsx b/shared/editor/components/Embed.tsx index 7d42a2eea6..2f4d30a473 100644 --- a/shared/editor/components/Embed.tsx +++ b/shared/editor/components/Embed.tsx @@ -2,12 +2,16 @@ import * as React from "react"; import styled from "styled-components"; import type { EmbedDescriptor } from "../embeds"; import { getMatchingEmbed } from "../lib/embeds"; +import { isAspectRatioLocked } from "../queries/isAspectRatioLocked"; import type { ComponentProps } from "../types"; import DisabledEmbed from "./DisabledEmbed"; import Frame from "./Frame"; -import { ResizeBottom, ResizeLeft, ResizeRight } from "./ResizeHandle"; +import { ResizeHandles, ResizeLeft, ResizeRight } from "./ResizeHandle"; import useDragResize from "./hooks/useDragResize"; +/** The height of an embed that has not been resized. */ +export const embedDefaultHeight = 400; + type Props = ComponentProps & { embeds: EmbedDescriptor[]; embedsDisabled?: boolean; @@ -19,35 +23,40 @@ const Embed = (props: Props) => { const ref = React.useRef(null); const { node, isEditable, embedsDisabled, onChangeSize } = props; const naturalWidth = 0; - const naturalHeight = 400; + const naturalHeight = embedDefaultHeight; const isResizable = !!onChangeSize && !embedsDisabled; - const { width, height, handlePointerDown, dragging } = useDragResize({ - width: node.attrs.width ?? naturalWidth, - height: node.attrs.height ?? naturalHeight, - naturalWidth, - naturalHeight, - onChangeSize, - ref, - }); + const { width, height, handlePointerDown, handleDoubleClick, dragging } = + useDragResize({ + width: node.attrs.width ?? naturalWidth, + height: node.attrs.height ?? naturalHeight, + naturalWidth, + naturalHeight, + isLocked: isAspectRatioLocked(node), + onChangeSize, + ref, + }); const style: React.CSSProperties = { - width: width || "100%", - height: height || 400, - maxWidth: "100%", + width: "100%", + height: height || embedDefaultHeight, pointerEvents: dragging ? "none" : "all", }; + // The wrapper takes the width so the resize handles sit on the frame edges. return ( - + {isEditable && isResizable && ( - <> - - + )} ); diff --git a/shared/editor/components/Image.tsx b/shared/editor/components/Image.tsx index 7fb6b2e849..d08be35324 100644 --- a/shared/editor/components/Image.tsx +++ b/shared/editor/components/Image.tsx @@ -10,14 +10,7 @@ import { isExternalUrl, sanitizeImageSrc, sanitizeUrl } from "../../utils/urls"; import { getDisplayUrl } from "../lib/uploadPlaceholder"; import { EditorStyleHelper } from "../styles/EditorStyleHelper"; import type { ComponentProps } from "../types"; -import { - ResizeLeft, - ResizeRight, - ResizeTopLeft, - ResizeTopRight, - ResizeBottomLeft, - ResizeBottomRight, -} from "./ResizeHandle"; +import { ResizeHandles, ResizeLeft, ResizeRight } from "./ResizeHandle"; import useDragResize from "./hooks/useDragResize"; type Props = ComponentProps & { @@ -290,35 +283,10 @@ const Image = (props: Props) => { )} {isEditable && !isFullWidth && isResizable && ( <> - - - - - - )} @@ -432,8 +400,7 @@ const ImageWrapper = styled.div<{ isFullWidth: boolean; $dragging: boolean }>` opacity: 0.9; } - ${ResizeLeft}, ${ResizeRight}, - ${ResizeTopLeft}, ${ResizeTopRight}, ${ResizeBottomLeft}, ${ResizeBottomRight} { + ${ResizeLeft}, ${ResizeRight} { opacity: 1; } } diff --git a/shared/editor/components/PDF.tsx b/shared/editor/components/PDF.tsx index 7419437182..0c900b9f4b 100644 --- a/shared/editor/components/PDF.tsx +++ b/shared/editor/components/PDF.tsx @@ -2,7 +2,7 @@ import React, { useCallback, useRef } from "react"; import { useMergeRefs } from "react-merge-refs"; import styled from "styled-components"; import useDragResize from "./hooks/useDragResize"; -import { ResizeLeft, ResizeRight } from "./ResizeHandle"; +import { ResizeHandles, ResizeLeft, ResizeRight } from "./ResizeHandle"; import type { ComponentProps } from "../types"; import { isFirefox } from "../../utils/browser"; import { sanitizeUrl } from "../../utils/urls"; @@ -10,7 +10,12 @@ import Flex from "../../components/Flex"; import { s } from "../../styles"; import { Preview, Subtitle, Title } from "./Widget"; import { EditorStyleHelper } from "../styles/EditorStyleHelper"; -import { pdfNaturalHeight, pdfNaturalWidth } from "../lib/pdf"; +import { isAspectRatioLocked } from "../queries/isAspectRatioLocked"; +import { + pdfNaturalHeight, + pdfNaturalWidth, + resolvePDFDimensions, +} from "../lib/pdf"; type Props = ComponentProps & { /** Icon to display on the left side of the widget */ @@ -29,15 +34,19 @@ export default function PdfViewer(props: Props) { const ref = useRef(null); const embedRef = useRef(null); const debounceTimerRef = useRef(null); + const dimensions = resolvePDFDimensions(node.attrs.width, node.attrs.height); - const { width, handlePointerDown, dragging } = useDragResize({ - width: node.attrs.width, - height: node.attrs.height, - naturalWidth: pdfNaturalWidth, - naturalHeight: pdfNaturalHeight, - onChangeSize, - ref, - }); + const { width, height, handlePointerDown, handleDoubleClick, dragging } = + useDragResize({ + width: node.attrs.width, + height: dimensions.height, + naturalWidth: pdfNaturalWidth, + naturalHeight: pdfNaturalHeight, + aspectRatio: dimensions.height / dimensions.width, + isLocked: isAspectRatioLocked(node), + onChangeSize, + ref, + }); // force embed to reload, so the content fits the new size. const observeRef = useCallback( @@ -109,23 +118,19 @@ export default function PdfViewer(props: Props) { style={{ width: "100%", height: "auto", - aspectRatio: `${pdfNaturalWidth} / ${pdfNaturalHeight}`, + aspectRatio: `${width ?? dimensions.width} / ${height ?? dimensions.height}`, pointerEvents: !isEditable || (isSelected && !dragging) ? "initial" : "none", marginTop: 6, }} /> {isEditable && !!props.onChangeSize && ( - <> - - - + )} ); diff --git a/shared/editor/components/ResizeHandle.tsx b/shared/editor/components/ResizeHandle.tsx index f819e1925a..fdab55360f 100644 --- a/shared/editor/components/ResizeHandle.tsx +++ b/shared/editor/components/ResizeHandle.tsx @@ -1,5 +1,74 @@ +import type * as React from "react"; import styled from "styled-components"; import { s } from "../../styles"; +import type { DragDirection } from "./hooks/useDragResize"; + +interface ResizeHandlesProps { + /** Returns the pointer down handler for a resize direction. */ + onPointerDown: ( + direction: DragDirection + ) => (event: React.PointerEvent) => void; + /** Callback triggered when a handle is double-clicked. */ + onDoubleClick?: () => void; + /** Whether the side handles are visible without hover. */ + isVisible: boolean; + /** Whether the handles sit inside the edges, for wrappers that clip overflow. */ + isInset?: boolean; +} + +/** + * The full set of resize handles for a media node: visible side handles, and + * invisible bottom and corner handles. + * + * @param props - the component props. + * @returns the resize handles. + */ +export function ResizeHandles({ + onPointerDown, + onDoubleClick, + isVisible, + isInset = false, +}: ResizeHandlesProps) { + return ( + <> + + + + + + + + + ); +} export const ResizeLeft = styled.div<{ $dragging: boolean }>` cursor: ew-resize; @@ -42,35 +111,35 @@ export const ResizeRight = styled(ResizeLeft)` } `; -export const ResizeBottom = styled(ResizeLeft)` - cursor: ns-resize; - left: 30%; - right: 30%; - top: initial; - bottom: 8px; - width: auto; - height: 8px; +interface EdgeProps { + $inset: boolean; +} - &:after { - left: 50%; - bottom: 8px; - transform: translateX(-50%); - width: 25%; - height: 6px; - min-width: 20px; - min-height: 0; +/** Offsets an invisible handle by half its size, or keeps it inside the edge. */ +const edgeOffset = (props: EdgeProps) => (props.$inset ? "0" : "-4px"); + +export const ResizeBottom = styled.div` + cursor: ns-resize; + position: absolute; + left: 8px; + right: 8px; + bottom: ${edgeOffset}; + height: 8px; + z-index: 9; + user-select: none; + + @media print { + display: none; } `; -export const ResizeCorner = styled.div<{ $dragging: boolean }>` +export const ResizeCorner = styled.div` position: absolute; width: 8px; height: 8px; border-radius: 50%; z-index: 10; user-select: none; - opacity: ${(props) => (props.$dragging ? 1 : 0)}; - transition: opacity 150ms ease-in-out; @media print { display: none; @@ -79,24 +148,24 @@ export const ResizeCorner = styled.div<{ $dragging: boolean }>` export const ResizeTopLeft = styled(ResizeCorner)` cursor: nwse-resize; - top: -4px; - left: -4px; + top: ${edgeOffset}; + left: ${edgeOffset}; `; export const ResizeTopRight = styled(ResizeCorner)` cursor: nesw-resize; - top: -4px; - right: -4px; + top: ${edgeOffset}; + right: ${edgeOffset}; `; export const ResizeBottomLeft = styled(ResizeCorner)` cursor: nesw-resize; - bottom: -4px; - left: -4px; + bottom: ${edgeOffset}; + left: ${edgeOffset}; `; export const ResizeBottomRight = styled(ResizeCorner)` cursor: nwse-resize; - bottom: -4px; - right: -4px; + bottom: ${edgeOffset}; + right: ${edgeOffset}; `; diff --git a/shared/editor/components/Video.tsx b/shared/editor/components/Video.tsx index fc8a37a450..1f1a7a9a3d 100644 --- a/shared/editor/components/Video.tsx +++ b/shared/editor/components/Video.tsx @@ -5,7 +5,7 @@ import { sanitizeUrl } from "../../utils/urls"; import { getDisplayUrl } from "../lib/uploadPlaceholder"; import { EditorStyleHelper } from "../styles/EditorStyleHelper"; import type { ComponentProps } from "../types"; -import { ResizeLeft, ResizeRight } from "./ResizeHandle"; +import { ResizeHandles, ResizeLeft, ResizeRight } from "./ResizeHandle"; import useDragResize from "./hooks/useDragResize"; type Props = ComponentProps & { @@ -80,18 +80,12 @@ export default function Video(props: Props) { controls={!dragging} /> {isEditable && isResizable && ( - <> - - - + )} {children} diff --git a/shared/editor/components/hooks/useDragResize.ts b/shared/editor/components/hooks/useDragResize.ts index 3b617c405c..46b0671b55 100644 --- a/shared/editor/components/hooks/useDragResize.ts +++ b/shared/editor/components/hooks/useDragResize.ts @@ -2,7 +2,8 @@ import * as React from "react"; import { contentWidth } from "../../lib/contentWidth"; import { EditorStyleHelper } from "../../styles/EditorStyleHelper"; -type DragDirection = +/** A side or corner of an element that can be dragged to resize it. */ +export type DragDirection = | "left" | "right" | "bottom" @@ -74,8 +75,19 @@ type Params = { ref: React.RefObject; /** Whether the element should scale symmetrically from the center. Defaults to true. */ isCentered?: boolean; + /** Whether resizing keeps the aspect ratio. Defaults to true. */ + isLocked?: boolean; + /** The height to width ratio kept while locked. Defaults to the natural ratio, then the ratio at drag start. */ + aspectRatio?: number; }; +const cornerDirections: DragDirection[] = [ + "topLeft", + "topRight", + "bottomLeft", + "bottomRight", +]; + export default function useDragResize(props: Params): ReturnValue { const { onChangeSize, @@ -85,7 +97,11 @@ export default function useDragResize(props: Params): ReturnValue { minHeight, ref, isCentered = true, + isLocked = true, } = props; + const aspectRatio = + props.aspectRatio ?? + (naturalWidth && naturalHeight ? naturalHeight / naturalWidth : undefined); // The committed size passed in through props is the source of truth. `draft` // holds the size being previewed while resizing and is released once the @@ -102,6 +118,7 @@ export default function useDragResize(props: Params): ReturnValue { width: props.width, height: props.height, }); + const [ratioAtDragStart, setRatioAtDragStart] = React.useState(); const [dragging, setDragging] = React.useState(); const isResizable = !!onChangeSize; @@ -136,116 +153,107 @@ export default function useDragResize(props: Params): ReturnValue { const handlePointerMove = React.useCallback( (event: PointerEvent) => { event.preventDefault(); - - let diffX = 0; - let diffY = 0; - if (dragging === "left") { - diffX = offset.x - event.pageX; - } else if (dragging === "right") { - diffX = event.pageX - offset.x; - } else if (dragging === "bottom") { - diffY = event.pageY - offset.y; - } else if (dragging === "topLeft") { - diffX = offset.x - event.pageX; - diffY = offset.y - event.pageY; - } else if (dragging === "topRight") { - diffX = event.pageX - offset.x; - diffY = offset.y - event.pageY; - } else if (dragging === "bottomLeft") { - diffX = offset.x - event.pageX; - diffY = event.pageY - offset.y; - } else if (dragging === "bottomRight") { - diffX = event.pageX - offset.x; - diffY = event.pageY - offset.y; + if (!dragging) { + return; } - const isCorner = [ - "topLeft", - "topRight", - "bottomLeft", - "bottomRight", - ].includes(dragging || ""); + const isCorner = cornerDirections.includes(dragging); + const isLeft = + dragging === "left" || + dragging === "topLeft" || + dragging === "bottomLeft"; + const isTop = dragging === "topLeft" || dragging === "topRight"; + const movesX = dragging !== "bottom"; + const movesY = dragging === "bottom" || isCorner; + const diffX = movesX + ? isLeft + ? offset.x - event.pageX + : event.pageX - offset.x + : 0; + const diffY = movesY + ? isTop + ? offset.y - event.pageY + : event.pageY - offset.y + : 0; + const factor = isCentered ? 2 : 1; + const startWidth = sizeAtDragStart.width; - if (isCorner && naturalHeight && naturalWidth) { - const aspectRatio = naturalHeight / naturalWidth; - const hFactor = isCentered ? 0.5 : 1; - const factor = isCentered ? 2 : 1; - const dW = - (diffX * hFactor + diffY * aspectRatio) / - (hFactor * hFactor + aspectRatio * aspectRatio); - diffX = dW / factor; - } + // When dragged to or beyond the editor edge, store the natural width as a + // sentinel for "full width" so the element stays responsive. Only do this + // when the natural width actually exceeds the editor — otherwise constrain + // to the editor edge rather than snapping a smaller image back down to its + // natural size. + const toWidth = (newWidth: number) => { + const constrained = constrainWidth(newWidth, maxWidth); + return { + stored: + newWidth >= maxWidth && naturalWidth >= maxWidth + ? naturalWidth + : constrained, + }; + }; - if (diffX && sizeAtDragStart.width) { - const factor = isCentered ? 2 : 1; - const newWidth = sizeAtDragStart.width + diffX * factor; - const constrainedWidth = constrainWidth(newWidth, maxWidth); - const aspectRatio = naturalHeight / naturalWidth; + let nextState: SizeState; - // When dragged to or beyond the editor edge, store the natural width as a - // sentinel for "full width" so the element stays responsive. Only do this - // when the natural width actually exceeds the editor — otherwise constrain - // to the editor edge rather than snapping a smaller image back down to its - // natural size. - const nextWidth = - newWidth >= maxWidth && naturalWidth >= maxWidth - ? naturalWidth - : constrainedWidth; - const nextHeight = isCorner - ? naturalWidth - ? Math.round(constrainedWidth * aspectRatio) - : undefined - : sizeAtDragStart.height; + if (isLocked && ratioAtDragStart) { + const ratio = ratioAtDragStart; + let newWidth = startWidth + diffX * factor; - setDraft({ - width: nextWidth, - height: nextHeight, - }); + if (dragging === "bottom") { + newWidth = startWidth + diffY / ratio; + } else if (isCorner) { + // Project the pointer movement onto the diagonal of the aspect ratio. + const hFactor = 1 / factor; + newWidth = + startWidth + + (diffX * hFactor + diffY * ratio) / + (hFactor * hFactor + ratio * ratio); + } - window.dispatchEvent( - new CustomEvent("media-drag-resize", { - detail: { - width: nextWidth, - height: nextHeight, - isDragging: true, - }, - }) - ); - } + const { stored } = toWidth(newWidth); + nextState = { + width: stored, + height: Math.round(stored * ratio), + }; + } else { + let nextHeight = sizeAtDragStart.height; + if (movesY && sizeAtDragStart.height) { + const gridHeight = gridHeightSnap ?? 10; + const newHeight = sizeAtDragStart.height + diffY; + const heightOnGrid = Math.round(newHeight / gridHeight) * gridHeight; + nextHeight = Math.max(heightOnGrid, minHeight ?? 50); + } - if (diffY && sizeAtDragStart.height && !isCorner) { - const gridHeight = gridHeightSnap ?? 10; - const newHeight = sizeAtDragStart.height + diffY; - const heightOnGrid = Math.round(newHeight / gridHeight) * gridHeight; - const nextHeight = Math.max(heightOnGrid, minHeight ?? 50); - - // Vertical-only drags never adjust the width, so it is carried over - // from the current size rather than recomputed. - const nextState = { - width: sizeRef.current.width, + nextState = { + // Vertical-only drags never adjust the width, so it is carried over + // from the current size rather than recomputed. + width: movesX + ? toWidth(startWidth + diffX * factor).stored + : sizeRef.current.width, height: nextHeight, }; - - setDraft(nextState); - - window.dispatchEvent( - new CustomEvent("media-drag-resize", { - detail: { - ...nextState, - isDragging: true, - }, - }) - ); } + + setDraft(nextState); + + window.dispatchEvent( + new CustomEvent("media-drag-resize", { + detail: { + ...nextState, + isDragging: true, + }, + }) + ); }, [ dragging, offset, sizeAtDragStart, + ratioAtDragStart, maxWidth, gridHeightSnap, naturalWidth, - naturalHeight, + isLocked, minHeight, constrainWidth, isCentered, @@ -318,12 +326,15 @@ export default function useDragResize(props: Params): ReturnValue { // Calculate constraints once at the start of dragging as it's relatively expensive operation const max = ref.current ? contentWidth(ref.current) : Infinity; setMaxWidth(max); - setSizeAtDragStart({ - // When no width has been set yet the element is displayed at full width, - // so begin resizing from the maximum width rather than the minimum. - width: constrainWidth(size.width || max, max), - height: size.height, - }); + + // When no width has been set yet the element is displayed at full width, + // so begin resizing from the maximum width rather than the minimum. + const startWidth = constrainWidth(size.width || max, max); + setSizeAtDragStart({ width: startWidth, height: size.height }); + setRatioAtDragStart( + aspectRatio ?? + (size.height && startWidth ? size.height / startWidth : undefined) + ); setOffset({ x: event.pageX, y: event.pageY, diff --git a/shared/editor/lib/pdf.test.ts b/shared/editor/lib/pdf.test.ts new file mode 100644 index 0000000000..2ddf5baeca --- /dev/null +++ b/shared/editor/lib/pdf.test.ts @@ -0,0 +1,24 @@ +import { pdfNaturalHeight, pdfNaturalWidth, resolvePDFDimensions } from "./pdf"; + +describe("resolvePDFDimensions", () => { + it("returns the natural dimensions when none are stored", () => { + expect(resolvePDFDimensions(null, null)).toEqual({ + width: pdfNaturalWidth, + height: pdfNaturalHeight, + }); + }); + + it("keeps stored dimensions that do not match the natural ratio", () => { + expect(resolvePDFDimensions(700, 400)).toEqual({ + width: 700, + height: 400, + }); + }); + + it("derives a missing height from the natural ratio", () => { + expect(resolvePDFDimensions(384)).toEqual({ + width: 384, + height: pdfNaturalHeight / 2, + }); + }); +}); diff --git a/shared/editor/nodes/Attachment.tsx b/shared/editor/nodes/Attachment.tsx index fa2b9edbf8..7bbf9279aa 100644 --- a/shared/editor/nodes/Attachment.tsx +++ b/shared/editor/nodes/Attachment.tsx @@ -12,6 +12,7 @@ import type { Primitive } from "utility-types"; import { bytesToHumanReadable, getEventFiles } from "../../utils/files"; import { sanitizeUrl } from "../../utils/urls"; import insertFiles from "../commands/insertFiles"; +import { toggleAspectRatioLock } from "../commands/toggleAspectRatioLock"; import toggleWrap from "../commands/toggleWrap"; import FileExtension from "../components/FileExtension"; import Widget from "../components/Widget"; @@ -54,6 +55,11 @@ export default class Attachment extends Node { height: { default: null, }, + // Unset means the default for the node type, see isAspectRatioLocked. + lockAspectRatio: { + default: null, + validate: "boolean|null", + }, contentType: { default: null, validate: "string|null", @@ -111,7 +117,7 @@ export default class Attachment extends Node { node: ProsemirrorNode; getPos: () => number | undefined; }) => - ({ width }: { width: number; height?: number }) => { + ({ width, height }: { width: number; height?: number }) => { if (!node.attrs.preview) { return; } @@ -125,7 +131,7 @@ export default class Attachment extends Node { } const $pos = doc.resolve(pos); - const dimensions = resolvePDFDimensions(width); + const dimensions = resolvePDFDimensions(width, height); view.dispatch(tr.setSelection(new NodeSelection($pos))); commands["resizeAttachment"](dimensions); @@ -268,6 +274,10 @@ export default class Attachment extends Node { dispatch?.(transaction.setSelection(new NodeSelection($pos))); return true; }, + toggleAttachmentAspectRatioLock: (): Command => (state, dispatch) => + state.selection instanceof NodeSelection && + !!state.selection.node.attrs.preview && + toggleAspectRatioLock(type)(state, dispatch), resizeAttachment: ({ width, height }: { width: number; height?: number }): Command => (state, dispatch) => { diff --git a/shared/editor/nodes/Embed.tsx b/shared/editor/nodes/Embed.tsx index b2145b9610..a84f7e40a8 100644 --- a/shared/editor/nodes/Embed.tsx +++ b/shared/editor/nodes/Embed.tsx @@ -11,6 +11,8 @@ import { NodeSelection, TextSelection } from "prosemirror-state"; import * as React from "react"; import type { Primitive } from "utility-types"; import { sanitizeUrl } from "../../utils/urls"; +import { contentWidth } from "../lib/contentWidth"; +import { toggleAspectRatioLock } from "../commands/toggleAspectRatioLock"; import EmbedComponent from "../components/Embed"; import defaultEmbeds from "../embeds"; import { getMatchingEmbed, transformListToEmbeds } from "../lib/embeds"; @@ -41,6 +43,11 @@ export default class Embed extends Node { height: { default: null, }, + // Unset means the default for the node type, see isAspectRatioLocked. + lockAspectRatio: { + default: null, + validate: "boolean|null", + }, }, parseDOM: [ { @@ -120,7 +127,7 @@ export default class Embed extends Node { const transaction = tr .setNodeMarkup(pos, undefined, { ...node.attrs, - width, + width: this.storedWidth(width), height, }) .setMeta("addToHistory", true); @@ -143,6 +150,32 @@ export default class Embed extends Node { commands({ type }: { type: NodeType }) { return { + toggleEmbedAspectRatioLock: (): Command => toggleAspectRatioLock(type), + resizeEmbed: + ({ width, height }: { width: number; height: number }): Command => + (state, dispatch) => { + const { selection } = state; + if ( + !(selection instanceof NodeSelection) || + selection.node.type !== type + ) { + return false; + } + + const transaction = state.tr + .setNodeMarkup(selection.from, undefined, { + ...selection.node.attrs, + width: this.storedWidth(width), + height, + }) + .setMeta("addToHistory", true); + dispatch?.( + transaction.setSelection( + NodeSelection.create(transaction.doc, selection.from) + ) + ); + return true; + }, embed: (attrs: Record): Command => (state, dispatch) => { @@ -216,4 +249,15 @@ export default class Embed extends Node { }), }; } + + /** + * Returns the width to store, where no width or a width at the editor edge + * is stored as unset so the embed stays full width. + * + * @param width - the resized width. + * @returns the width to store. + */ + private storedWidth(width: number) { + return !width || width >= contentWidth(this.editor.view.dom) ? null : width; + } } diff --git a/shared/editor/queries/isAspectRatioLocked.ts b/shared/editor/queries/isAspectRatioLocked.ts new file mode 100644 index 0000000000..79adaefa31 --- /dev/null +++ b/shared/editor/queries/isAspectRatioLocked.ts @@ -0,0 +1,26 @@ +import type { Node, NodeType } from "prosemirror-model"; + +/** + * Returns whether nodes of the given type keep their aspect ratio until the + * user changes it. Embeds start unlocked, other media start locked. + * + * @param type - the node type. + * @returns true if the type is locked by default. + */ +export function isAspectRatioLockedByDefault(type: NodeType): boolean { + return type.name !== "embed"; +} + +/** + * Returns whether a node keeps its aspect ratio when resized. An unset + * `lockAspectRatio` attribute means the default for the node type. + * + * @param node - the media node. + * @returns true if the aspect ratio is locked. + */ +export function isAspectRatioLocked(node: Node): boolean { + const value: unknown = node.attrs.lockAspectRatio; + return typeof value === "boolean" + ? value + : isAspectRatioLockedByDefault(node.type); +} diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index e29071f852..038c423317 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -779,6 +779,7 @@ "Last seen": "Last seen", "{{ time }} local time": "{{ time }} local time", "Your import completed": "Your import completed", + "Lock aspect ratio": "Lock aspect ratio", "Templates": "Templates", "View comment thread": "View comment thread", "Previous match": "Previous match", @@ -799,6 +800,8 @@ "Width": "Width", "Image height": "Image height", "Height": "Height", + "Aspect ratio locked": "Aspect ratio locked", + "Aspect ratio unlocked": "Aspect ratio unlocked", "Paste a link": "Paste a link", "Delete embed": "Delete embed", "Delete video": "Delete video", From d624a240bc96c04ee46e5709d645221e20a80718 Mon Sep 17 00:00:00 2001 From: Translate-O-Tron <75237327+outline-translations@users.noreply.github.com> Date: Mon, 23 Nov 2026 04:16:24 -0500 Subject: [PATCH 05/14] New Crowdin updates (#14642) * fix: New Hungarian translations * fix: New Italian translations * fix: New Japanese translations * fix: New Korean translations * fix: New Dutch translations * fix: New Polish translations * fix: New Portuguese translations * fix: New Swedish translations * fix: New Turkish translations * fix: New Ukrainian translations * fix: New Chinese Simplified translations * fix: New Chinese Traditional translations * fix: New Vietnamese translations * fix: New Portuguese, Brazilian translations * fix: New Indonesian translations * fix: New Persian translations * fix: New Thai translations * fix: New English, United Kingdom translations * fix: New Norwegian Bokmal translations * fix: New Greek translations * fix: New French translations * fix: New Spanish translations * fix: New Catalan translations * fix: New Czech translations * fix: New Danish translations * fix: New German translations * fix: New Hebrew translations * fix: New Hungarian translations * fix: New Greek translations * fix: New Italian translations * fix: New Japanese translations * fix: New Korean translations * fix: New Dutch translations * fix: New Polish translations * fix: New Portuguese translations * fix: New Swedish translations * fix: New Turkish translations * fix: New Ukrainian translations * fix: New Chinese Simplified translations * fix: New Chinese Traditional translations * fix: New Vietnamese translations * fix: New Portuguese, Brazilian translations * fix: New Indonesian translations * fix: New Persian translations * fix: New Thai translations * fix: New Norwegian Bokmal translations * fix: New French translations * fix: New Spanish translations * fix: New Catalan translations * fix: New Czech translations * fix: New Danish translations * fix: New German translations * fix: New Hebrew translations * fix: New Hungarian translations * fix: New Italian translations * fix: New Japanese translations * fix: New Korean translations * fix: New Dutch translations * fix: New Polish translations * fix: New Portuguese translations * fix: New Swedish translations * fix: New Turkish translations * fix: New Ukrainian translations * fix: New Chinese Simplified translations * fix: New Chinese Traditional translations * fix: New Vietnamese translations * fix: New Portuguese, Brazilian translations * fix: New Indonesian translations * fix: New Persian translations * fix: New Thai translations * fix: New English, United Kingdom translations * fix: New Norwegian Bokmal translations * fix: New Greek translations * fix: New French translations * fix: New Spanish translations * fix: New Catalan translations * fix: New Czech translations * fix: New Danish translations * fix: New German translations * fix: New Hebrew translations * fix: New Hungarian translations * fix: New Italian translations * fix: New Japanese translations * fix: New Korean translations * fix: New Dutch translations * fix: New Polish translations * fix: New Portuguese translations * fix: New Swedish translations * fix: New Turkish translations * fix: New Ukrainian translations * fix: New Chinese Simplified translations * fix: New Chinese Traditional translations * fix: New Vietnamese translations * fix: New Portuguese, Brazilian translations * fix: New Indonesian translations * fix: New Persian translations * fix: New Thai translations * fix: New English, United Kingdom translations * fix: New Norwegian Bokmal translations * fix: New Greek translations * fix: New French translations * fix: New Spanish translations * fix: New Czech translations * fix: New Danish translations * fix: New German translations * fix: New Hebrew translations * fix: New Hungarian translations * fix: New Italian translations * fix: New Japanese translations * fix: New Korean translations * fix: New Dutch translations * fix: New Polish translations * fix: New Portuguese translations * fix: New Swedish translations * fix: New Turkish translations * fix: New Ukrainian translations * fix: New Vietnamese translations * fix: New Portuguese, Brazilian translations * fix: New Indonesian translations * fix: New Persian translations * fix: New Thai translations * fix: New Norwegian Bokmal translations * fix: New French translations * fix: New Spanish translations * fix: New Catalan translations * fix: New Czech translations * fix: New Danish translations * fix: New German translations * fix: New Hebrew translations * fix: New Hungarian translations * fix: New Italian translations * fix: New Japanese translations * fix: New Korean translations * fix: New Dutch translations * fix: New Polish translations * fix: New Portuguese translations * fix: New Swedish translations * fix: New Turkish translations * fix: New Ukrainian translations * fix: New Chinese Simplified translations * fix: New Chinese Traditional translations * fix: New Vietnamese translations * fix: New Portuguese, Brazilian translations * fix: New Indonesian translations * fix: New Persian translations * fix: New Thai translations * fix: New English, United Kingdom translations * fix: New Norwegian Bokmal translations * fix: New Greek translations * fix: New French translations * fix: New Spanish translations * fix: New Hebrew translations * fix: New Hungarian translations * fix: New Italian translations * fix: New Japanese translations * fix: New Korean translations * fix: New Polish translations * fix: New Portuguese translations * fix: New Swedish translations * fix: New Turkish translations * fix: New Ukrainian translations * fix: New Vietnamese translations * fix: New French translations * fix: New Spanish translations * fix: New Catalan translations * fix: New Czech translations * fix: New Danish translations * fix: New German translations * fix: New Hebrew translations * fix: New Hungarian translations * fix: New Italian translations * fix: New Japanese translations * fix: New Korean translations * fix: New Dutch translations * fix: New Polish translations * fix: New Portuguese translations * fix: New Swedish translations * fix: New Turkish translations * fix: New Ukrainian translations * fix: New Chinese Simplified translations * fix: New Chinese Traditional translations * fix: New Vietnamese translations * fix: New Portuguese, Brazilian translations * fix: New Indonesian translations * fix: New Persian translations * fix: New Thai translations * fix: New English, United Kingdom translations * fix: New Norwegian Bokmal translations * fix: New Greek translations * fix: New French translations * fix: New Spanish translations * fix: New Catalan translations * fix: New Czech translations * fix: New Danish translations * fix: New German translations * fix: New Hebrew translations * fix: New Hungarian translations * fix: New Italian translations * fix: New Japanese translations * fix: New Korean translations * fix: New Dutch translations * fix: New Polish translations * fix: New Portuguese translations * fix: New Swedish translations * fix: New Turkish translations * fix: New Ukrainian translations * fix: New Chinese Simplified translations * fix: New Chinese Traditional translations * fix: New Vietnamese translations * fix: New Portuguese, Brazilian translations * fix: New Indonesian translations * fix: New Persian translations * fix: New Thai translations * fix: New English, United Kingdom translations * fix: New Norwegian Bokmal translations * fix: New Greek translations * fix: New French translations * fix: New Spanish translations * fix: New Catalan translations * fix: New Czech translations * fix: New Danish translations * fix: New German translations * fix: New Hebrew translations * fix: New Hungarian translations * fix: New Italian translations * fix: New Japanese translations * fix: New Korean translations * fix: New Dutch translations * fix: New Polish translations * fix: New Portuguese translations * fix: New Swedish translations * fix: New Turkish translations * fix: New Ukrainian translations * fix: New Chinese Simplified translations * fix: New Chinese Traditional translations * fix: New Vietnamese translations * fix: New Portuguese, Brazilian translations * fix: New Indonesian translations * fix: New Persian translations * fix: New Thai translations * fix: New English, United Kingdom translations * fix: New Norwegian Bokmal translations * fix: New Greek translations * fix: New French translations * fix: New Spanish translations * fix: New Italian translations * fix: New Swedish translations * fix: New Turkish translations * fix: New Ukrainian translations * fix: New Vietnamese translations --- shared/i18n/locales/ca_ES/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/cs_CZ/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/da_DK/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/de_DE/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/el_GR/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/en_GB/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/es_ES/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/fa_IR/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/fr_FR/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/he_IL/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/hu_HU/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/id_ID/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/it_IT/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/ja_JP/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/ko_KR/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/nb_NO/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/nl_NL/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/pl_PL/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/pt_BR/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/pt_PT/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/sv_SE/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/th_TH/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/tr_TR/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/uk_UA/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/vi_VN/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/zh_CN/translation.json | 100 ++++++++++++++++----- shared/i18n/locales/zh_TW/translation.json | 100 ++++++++++++++++----- 27 files changed, 2052 insertions(+), 648 deletions(-) diff --git a/shared/i18n/locales/ca_ES/translation.json b/shared/i18n/locales/ca_ES/translation.json index 689731fcdc..5a896896b9 100644 --- a/shared/i18n/locales/ca_ES/translation.json +++ b/shared/i18n/locales/ca_ES/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integracions", "Back to app": "Torna a l'aplicació", "Installation": "Instal·lació", + "Available on {{ planName }}": "Disponible al pla {{ planName }}", "Split pane": "Subfinestra dividida", "Main pane": "Subfinestra principal", "Unstar document": "Desvalora el document", @@ -778,6 +779,7 @@ "Last seen": "Vist per última vegada", "{{ time }} local time": "{{ time }} hora local", "Your import completed": "S'ha completat la importació", + "Lock aspect ratio": "Bloqueja la relació d'aspecte", "Templates": "Plantilles", "View comment thread": "Mostra el fil de comentaris", "Previous match": "Coincidència anterior", @@ -798,10 +800,13 @@ "Width": "Amplada", "Image height": "Alçada d'imatge", "Height": "Alçada", + "Aspect ratio locked": "Relació d'aspecte bloquejada", + "Aspect ratio unlocked": "Relació d'aspecte desbloquejada", "Paste a link": "Enganxa un enllaç", "Delete embed": "Elimina l'incrustació", "Delete video": "Elimina el vídeo", "Delete image": "Elimina la imatge", + "Display options": "Opcions de visualització", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} no rebrà cap notificació, ja que no té accés a aquest document", "Members of “{{ groupName }}” with access to this document will be notified": "Es notificarà als membres de “{{ groupName }}” que tinguin accés a aquest document", "Keep as link": "Manté com un enllaç", @@ -813,6 +818,25 @@ "Upload file": "Penja el fitxer", "Paste a link from {{service}}…": "Enganxa un enllaç de {{service}}…", "Suggestions": "Suggeriments", + "Showing all rows": "Es mostren totes les files", + "Showing {{ visible }} of {{ count }} rows": "Es mostra {{ visible }} de {{ count }} fila", + "Showing {{ visible }} of {{ count }} rows_plural": "Es mostren {{ visible }} de {{ count }} files", + "Filter {{ columnName }}": "Filtra {{ columnName }}", + "Is": "És", + "Is not": "No és", + "Contains": "Conté", + "Does not contain": "No conté", + "Is empty": "És buit", + "Is not empty": "No és buit", + "Condition": "Condició", + "Search values": "Cerca valors", + "Values": "Valors", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Es mostren {{ shown }} de {{ total }} valors. Feu una cerca per trobar-ne més.", + "No values match your search.": "Cap valor no coincideix amb la cerca.", + "This column has no values": "Aquesta columna no té valors", + "{{ visible }} of {{ count }} rows": "{{ visible }} de {{ count }} fila", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} de {{ count }} files", + "Clear": "Esborra", "More options": "Més opcions", "Type '/' to insert": "Escriviu «/» per inserir", "Keep typing to filter": "Segueix escrivint per filtrar", @@ -855,6 +879,8 @@ "Edit image URL": "Edita l'URL de la imatge", "Create a new doc": "Crea un document", "Create a nested doc": "Crea un document niat", + "Display as mention": "Mostra com a menció", + "Display as card": "Mostra com a targeta", "Default width": "Amplada predeterminada", "Distribute columns": "Distribueix les columnes", "Export as CSV": "Exporta com a CSV", @@ -874,6 +900,11 @@ "Upload a video": "Penja un vídeo", "Edit video URL": "Edita l'URL del vídeo", "Could not import file": "No s'ha pogut importar el fitxer", + "Community": "Comunitat", + "Standard": "Estàndard", + "Business": "Empresa", + "Enterprise": "Empresarial", + "Legacy": "Heretat", "Unsubscribed from document": "S'ha cancel·lat la subscripció del document", "Unsubscribed from collection": "S'ha cancel·lat la subscripció de la col·lecció", "Subscription successful": "Subscripció amb èxit", @@ -894,6 +925,8 @@ "Developer": "Desenvolupador", "Applications": "Aplicacions", "API key": "Clau API", + "Reconnect": "Torna a connectar", + "Connected": "Connectat", "Show path to document": "Mostra el camí al document", "Comment options": "Opcions del comentari", "Enable viewer insights": "Activa les estadístiques de visualització", @@ -916,6 +949,7 @@ "Trash options": "Opcions de la paperera", "User options": "Opcions d'usuari", "document": "document", + "All collections": "Totes les col·leccions", "Export complete": "S'ha completat l'exportació", "Export failed": "Ha fallat l'exportació", "An unexpected error occurred": "S'ha produït un error inesperat", @@ -931,9 +965,13 @@ "invited you to": "us ha convidat a", "added you to the group": "t'ha afegit al grup", "removed you from the group": "t'ha eliminat del grup", + "export completed": "s'ha completat l'exportació", + "export failed": "ha fallat l'exportació", + "export is no longer available": "l'exportació ja no està disponible", "was granted access to": "se li va concedir accés a", "requested access to": "ha sol·licitat accés a", "is requesting access to": "està sol·licitant accés a", + "Your": "La vostra", "a document": "un document", "a collection": "una col·lecció", "a group": "un grup", @@ -1031,10 +1069,10 @@ "Document title": "Títol del document", "Last updated": "Darrera actualització", "Type '/' to insert, or start writing…": "Escriu '/' per inserir, o comença a escriure…", + "Save draft": "Desa l'esborrany", "Hide contents": "Amaga els continguts", "Show contents": "Mostra els continguts", "available when headings are added": "disponible quan s'afegeixin encapçalaments", - "Save draft": "Desa l'esborrany", "Restore version": "Restaurar versió", "{{userName}} archived": "{{userName}} arxivat", "{{userName}} restored": "{{userName}} restaurat", @@ -1306,7 +1344,6 @@ "Sign in": "Inicia la sessió", "Allow members to sign in with {{ authProvider }}": "Permet als membres iniciar la sessió amb {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Connecteu {{ authProvider }} per permetre que els membres iniciïn la sessió", - "Connected": "Connectat", "Disabled": "Deshabilitat", "Connect": "Connectar", "Group sync": "Sincronització de grup", @@ -1365,7 +1402,6 @@ "Processing": "Processant", "Completed": "Completat", "Failed": "Ha fallat", - "All collections": "Totes les col·leccions", "Import deleted": "Importació eliminada", "Export deleted": "Exportació eliminada", "Are you sure you want to delete this import?": "Esteu segur que voleu eliminar aquesta importació?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Aquest color té poc contrast amb el color d’accent", "Accent color": "Color primari", "Accent text color": "Color del text primari", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Aquesta funció està inclosa a {{planName}} i als plans superiors. Actualitzeu l'espai de treball per desbloquejar-la per al vostre equip.", + "View plans": "Mostra els plans", "All roles": "Tots els rols", "Admins": "Administradors", "Editors": "Editors", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Importa un fitxer ZIP de documents Markdown en el format de coneixement obert", "Import a JSON data file exported from another {{ appName }} instance": "Importa un fitxer de dades JSON exportat des d'una altra instància {{ appName }}", "Import pages from a Confluence instance": "Importa les pàgines des d'una instància de Confluence", - "Enterprise": "Empresarial", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Transferiu ràpidament els vostres documents, pàgines i fitxers existents d'altres eines i serveis a {{appName}}. També pots arrossegar i deixar anar qualsevol document HTML, Markdown i text directament a Col·leccions a l'aplicació.", "Recent imports": "Importacions recents", "Configure a variety of integrations with third-party services.": "Configura una varietat d'integracions amb serveis de tercers.", + "Documents that are published, updated, or shared with you, and access requests": "Documents publicats, actualitzats o compartits amb tu, i sol·licituds d’accés", "Receive a notification whenever a new document is published": "Rep una notificació cada vegada que es publiqui un document nou", "Document updated": "Document actualitzat", "Receive a notification when a document you are subscribed to is edited": "Rep una notificació quan s'edita un document al qual esteu subscrit", + "Invited to document": "Convidat al document", + "Receive a notification when a document is shared with you": "Rep una notificació quan es comparteixi un document amb tu", + "Document access requested": "Accés al document sol·licitat", + "Receive a notification when a user requests access to a document you manage": "Rep una notificació quan un usuari sol·licita accés a un document que gestioneu", + "New collections and access to collections": "Noves col·leccions i accés a col·leccions", + "Collection created": "Col·lecció creada", + "Receive a notification whenever a new collection is created": "Rep una notificació cada vegada que es crea una nova col·lecció", + "Invited to collection": "Convidat a la col·lecció", + "Receive a notification when you are given access to a collection": "Rep una notificació quan se us doni accés a una col·lecció", + "Comments and mentions": "Comentaris i mencions", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Comentaris nous, mencions teves o dels teus grups, fils resolts i reaccions", "Comment posted": "Comentari publicat", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Rep una notificació quan un document al qual esteu subscrit o un fil al qual heu participat rebi un comentari", "Mentioned": "Mencionat", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Rep una notificació quan es resolgui un fil de comentari en el qual esteu involucrat", "Reaction added": "Reacció afegida", "Receive a notification when someone reacts to your comment": "Rep una notificació quan algú reaccioni al teu comentari", - "Collection created": "Col·lecció creada", - "Receive a notification whenever a new collection is created": "Rep una notificació cada vegada que es crea una nova col·lecció", - "Invite accepted": "Invitació acceptada", - "Receive a notification when someone you invited creates an account": "Rep una notificació quan algú convidat crea un compte", - "Invited to document": "Convidat al document", - "Receive a notification when a document is shared with you": "Rep una notificació quan es comparteixi un document amb tu", - "Invited to collection": "Convidat a la col·lecció", - "Receive a notification when you are given access to a collection": "Rep una notificació quan se us doni accés a una col·lecció", + "Group membership, accepted invites, and completed exports": "Pertinença a grups, invitacions acceptades i exportacions completades", "Group membership": "Pertinença al grup", "Receive a notification when you are added to or removed from a group": "Rep una notificació quan t'afegeixin a un grup o te'n treguin", + "Invite accepted": "Invitació acceptada", + "Receive a notification when someone you invited creates an account": "Rep una notificació quan algú convidat crea un compte", "Export completed": "S'ha completat l'exportació", "Receive a notification when an export you requested has been completed": "Rebre una notificació quan s'hagi completat una exportació que hagis sol·licitat", - "Document access requested": "Accés al document sol·licitat", - "Receive a notification when a user requests access to a document you manage": "Rep una notificació quan un usuari sol·licita accés a un document que gestioneu", + "Product updates": "Actualitzacions del producte", + "Tips on getting started and announcements of new features": "Consells per començar i anuncis de funcions noves", "Getting started": "Primeres passes", "Tips on getting started with features and functionality": "Consells per començar amb les característiques i la funcionalitat", "New features": "Noves característiques", @@ -1643,7 +1687,7 @@ "Failed to save revision": "No s'ha pogut desar la revisió", "Invite to document": "Convida al document", "Sorry, invalid embed link": "L'enllaç d'incrustació no és vàlid", - "Data Attributes": "Atributs de dades", + "Data attributes": "Atributs de dades", "Edit attribute": "Edita l'atribut", "Property": "Propietat", "Yes": "Sí", @@ -1675,7 +1719,7 @@ "Text": "Text", "List": "Llista", "Could not load events": "No s'han pogut carregar els esdeveniments", - "Audit Log": "Registre d'auditoria", + "Audit log": "Registre d'auditoria", "The audit log details the history of security-related and other events across your knowledge base.": "El registre d'auditoria detalla l'historial d'esdeveniments relacionats amb la seguretat i d'altres esdeveniments de tota la vostra base de coneixement.", "IP address": "Adreça IP", "Actor": "Actor", @@ -1818,6 +1862,10 @@ "Script name": "Nom de l'script", "The name of the script file that Umami uses to track analytics.": "El nom del fitxer de script que Umami utilitza per fer el seguiment d'analítiques.", "An ID that uniquely identifies the website in your Umami instance.": "Un identificador que identifica de manera única el lloc web en la vostra instància Umami.", + "The audit log details the history of security related and other events across your knowledge base.": "El registre d'auditoria detalla l'historial d'esdeveniments relacionats amb la seguretat i altres esdeveniments a través de la vostra base de coneixement.", + "Content": "Contingut", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Gestiona els permisos i la configuració de totes les col·leccions de la base de coneixement. Com a administrador d'espais de treball també pots administrar col·leccions privades.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Indexa i cerca automàticament el contingut del document de {{appName}} dins de Glean en temps real.", "New webhook": "Nou webhook", "Edit webhook": "Edita el webhook", "Delete webhook": "Elimina el webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} ha esmentat el grup «{{ groupName }}» en el document «{{ documentTitle }}».", "Your group was mentioned": "S'ha esmentat el vostre grup", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} ha esmentat el grup “{{ groupName }}” al document", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} s'ha unit a l'equip de {{ appName }}", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} s'ha unit al vostre espai de treball de {{ appName }}", "Great news, {{ invitedName }} accepted your invitation": "Bones notícies: {{ invitedName }} ha acceptat la invitació", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Bones notícies, {{ invitedName }} acaba d'acceptar la vostra invitació i ha creat un compte. Ja podeu començar a col·laborar en documents.", "Open {{ appName }}": "Obre {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} s'ha unit al vostre equip", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} s'ha unit al vostre espai de treball", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} us ha convidat a unir-vos a l'espai de treball {{ teamName }}", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} és un lloc perquè el vostre equip construeixi i comparteixi coneixements.", "Join {{ teamName }} on {{ appName }}": "Uneix-te a {{ teamName }} a {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "us ha convidat a unir-vos a {{ appName }}, un lloc perquè el vostre equip construeixi i comparteixi coneixements.", "Join now": "Uneix-te ara", "Reminder": "Recordatori", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "Això és només un recordatori ràpid que {{ actorName }} {{ actorEmail }} us ha convidat a unir-vos a l'equip {{ teamName }} a {{ appName }}, un lloc perquè el vostre equip construeixi i comparteixi coneixements.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Això és només un recordatori ràpid que {{ actorName }} {{ actorEmail }} us ha convidat a unir-vos al seu espai de treball {{ teamName }} a {{ appName }}, un lloc perquè el vostre equip construeixi i comparteixi coneixements.", "We only send a reminder once.": "Només enviem un recordatori una vegada.", "If you haven’t signed up yet, you can do so here": "Si encara no us heu registrat, podeu fer-ho aquí", "“{{ documentTitle }}” updated": "“{{ documentTitle }}” actualitzat", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Codi de verificació d'inici de sessió", "Here’s your link to sign in to {{ appName }}.": "Aquí teniu l'enllaç per iniciar la sessió a {{ appName }}.", "Use the link below to sign in": "Utilitzeu l'enllaç següent per iniciar la sessió", - "If the link expired, you can request a new one from your team’s sign-in page at": "Si l'enllaç ha caducat, podeu sol·licitar-ne un de nou a la pàgina d'inici de sessió del vostre equip a", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Si l'enllaç ha caducat, podeu sol·licitar-ne un de nou a la pàgina d'inici de sessió del vostre espai de treball a", "Enter this verification code": "Introduïu aquest codi de verificació", - "If the code expired, you can request a new one from your team’s sign-in page at": "Si el codi ha caducat, podeu sol·licitar-ne un de nou a la pàgina d'inici de sessió del vostre equip a", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Si el codi ha caducat, podeu sol·licitar-ne un de nou a la pàgina d'inici de sessió del vostre espai de treball a", "Click the button below to sign in to {{ appName }}.": "Feu clic al botó de sota per iniciar la sessió a {{ appName }}.", "Sign-in Code": "Codi d'inici de sessió", - "Enter this code on your team’s sign-in page to continue.": "Introduïu aquest codi a la pàgina d'inici de sessió de l'equip per continuar.", + "Enter this code on your workspace’s sign-in page to continue.": "Introduïu aquest codi a la pàgina d'inici de sessió del vostre espai de treball per continuar.", "Webhook disabled": "Webhook desactivat", "Your webhook ({{ webhookName }}) has been disabled": "El vostre webhook ({{ webhookName }}) ha estat desactivat", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "El vostre webhook ({{ webhookName }}) s'ha desactivat automàticament a causa d'una taxa elevada d'errors en els intents de lliurament recents. Podeu tornar-lo a activar editant el webhook.", @@ -2007,10 +2055,14 @@ "Hide completed": "Amaga els completats", "Sorry, the link could not be copied": "Ho sentim, no s'ha pogut copiar l'enllaç", "Write a caption": "Escriu una llegenda", - "Display as mention": "Mostra com a menció", - "Display as card": "Mostra com a targeta", "Add title": "Afegeix un títol", "Add content": "Afegeix contingut", + "Change column filter": "Canvia el filtre de columna", + "Filter column": "Filtra la columna", + "{{ count }} filter applied": "{{ count }} filtre aplicat", + "{{ count }} filter applied_plural": "{{ count }} filtres aplicats", + "Filters cleared for you": "S'han esborrat els vostres filtres", + "Save for everyone": "Desa per a tothom", "Tomorrow": "Demà", "Group admin": "Administrador del grup", "Member": "Membre" diff --git a/shared/i18n/locales/cs_CZ/translation.json b/shared/i18n/locales/cs_CZ/translation.json index 0136bda92e..40df0816c2 100644 --- a/shared/i18n/locales/cs_CZ/translation.json +++ b/shared/i18n/locales/cs_CZ/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integrace", "Back to app": "Zpět do aplikace", "Installation": "Instalace", + "Available on {{ planName }}": "K dispozici v tarifu {{ planName }}", "Split pane": "Vedlejší panel", "Main pane": "Hlavní panel", "Unstar document": "Odebrat dokument z oblíbených", @@ -778,6 +779,7 @@ "Last seen": "Naposledy viděn", "{{ time }} local time": "{{ time }} místního času", "Your import completed": "Import byl dokončen", + "Lock aspect ratio": "Zamknout poměr stran", "Templates": "Šablony", "View comment thread": "Zobrazit vlákno komentářů", "Previous match": "Předchozí shoda", @@ -798,10 +800,13 @@ "Width": "Šířka", "Image height": "Výška obrázku", "Height": "Výška", + "Aspect ratio locked": "Poměr stran zamknut", + "Aspect ratio unlocked": "Poměr stran odemknut", "Paste a link": "Vložit odkaz", "Delete embed": "Odstranit vložený prvek", "Delete video": "Odstranit video", "Delete image": "Odstranit obrázek", + "Display options": "Možnosti zobrazení", "{{ userName }} won’t be notified, as they do not have access to this document": "Uživatel {{ userName }} nebude upozorněn, protože nemá k dokumentu přístup.", "Members of “{{ groupName }}” with access to this document will be notified": "Členové skupiny „{{ groupName }}“, kteří mají k tomuto dokumentu přístup, budou upozorněni", "Keep as link": "Ponechat jako odkaz", @@ -813,6 +818,25 @@ "Upload file": "Nahrát soubor", "Paste a link from {{service}}…": "Vložte odkaz ze služby {{service}}…", "Suggestions": "Návrhy", + "Showing all rows": "Zobrazeny všechny řádky", + "Showing {{ visible }} of {{ count }} rows": "Zobrazeno {{ visible }} z {{ count }} řádku", + "Showing {{ visible }} of {{ count }} rows_plural": "Zobrazeno {{ visible }} z {{ count }} řádků", + "Filter {{ columnName }}": "Filtrovat {{ columnName }}", + "Is": "Je rovno", + "Is not": "Není rovno", + "Contains": "Obsahuje", + "Does not contain": "Neobsahuje", + "Is empty": "Je prázdné", + "Is not empty": "Není prázdné", + "Condition": "Podmínka", + "Search values": "Hledat hodnoty", + "Values": "Hodnoty", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Zobrazeno {{ shown }} z {{ total }} hodnot. Další najdete pomocí vyhledávání.", + "No values match your search.": "Vašemu hledání neodpovídají žádné hodnoty.", + "This column has no values": "Tento sloupec nemá žádné hodnoty", + "{{ visible }} of {{ count }} rows": "{{ visible }} z {{ count }} řádku", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} z {{ count }} řádků", + "Clear": "Vymazat", "More options": "Další možnosti", "Type '/' to insert": "Pro vložení stiskněte „/“", "Keep typing to filter": "Psaním filtrujte…", @@ -855,6 +879,8 @@ "Edit image URL": "Upravit URL obrázku", "Create a new doc": "Vytvořit nový dokument", "Create a nested doc": "Vytvořit zanořený dokument", + "Display as mention": "Zobrazit jako zmínku", + "Display as card": "Zobrazit jako kartu", "Default width": "Výchozí šířka", "Distribute columns": "Rozložit sloupce", "Export as CSV": "Exportovat do CSV", @@ -874,6 +900,11 @@ "Upload a video": "Nahrát video", "Edit video URL": "Upravit URL videa", "Could not import file": "Soubor se nepodařilo importovat", + "Community": "Komunitní", + "Standard": "Standardní", + "Business": "Podnikový", + "Enterprise": "Pro firmy", + "Legacy": "Starší", "Unsubscribed from document": "Odběr upozornění na dokument byl zrušen", "Unsubscribed from collection": "Odběr upozornění na kolekci byl zrušen", "Subscription successful": "Přihlášení k odběr bylo úspěšné", @@ -894,6 +925,8 @@ "Developer": "Vývojář", "Applications": "Aplikace", "API key": "API klíč", + "Reconnect": "Znovu připojit", + "Connected": "Připojeno", "Show path to document": "Zobrazit cestu k dokumentu", "Comment options": "Možnosti komentáře", "Enable viewer insights": "Povolit analytiku zobrazení", @@ -916,6 +949,7 @@ "Trash options": "Možnosti koše", "User options": "Možnosti uživatele", "document": "dokument", + "All collections": "Všechny kolekce", "Export complete": "Export byl dokončen", "Export failed": "Export se nezdařil", "An unexpected error occurred": "Došlo k neočekávané chybě.", @@ -931,9 +965,13 @@ "invited you to": "vás pozval do", "added you to the group": "vás přidal do skupiny", "removed you from the group": "vás odebral ze skupiny", + "export completed": "export byl dokončen", + "export failed": "export se nezdařil", + "export is no longer available": "export již není k dispozici", "was granted access to": "získal přístup k", "requested access to": "požádal o přístup k", "is requesting access to": "žádá o přístup k", + "Your": "Vaše", "a document": "dokument", "a collection": "kolekci", "a group": "skupinu", @@ -1031,10 +1069,10 @@ "Document title": "Název dokumentu", "Last updated": "Poslední aktualizace", "Type '/' to insert, or start writing…": "Pro vložení stiskněte „/“ nebo začněte psát…", + "Save draft": "Uložit koncept", "Hide contents": "Skrýt obsah", "Show contents": "Zobrazit obsah", "available when headings are added": "k dispozici po přidání nadpisů", - "Save draft": "Uložit koncept", "Restore version": "Obnovit verzi", "{{userName}} archived": "{{userName}} archivoval", "{{userName}} restored": "{{userName}} obnovil", @@ -1306,7 +1344,6 @@ "Sign in": "Přihlásit se", "Allow members to sign in with {{ authProvider }}": "Povolit členům přihlášení přes {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Připojte {{ authProvider }} a umožněte členům přihlášení.", - "Connected": "Připojeno", "Disabled": "Zakázáno", "Connect": "Připojit", "Group sync": "Skupinová synchronizace", @@ -1365,7 +1402,6 @@ "Processing": "Zpracovávání…", "Completed": "Dokončeno", "Failed": "Selhalo", - "All collections": "Všechny kolekce", "Import deleted": "Import byl odstraněn", "Export deleted": "Export byl odstraněn", "Are you sure you want to delete this import?": "Opravdu chcete import odstranit?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Tato barva má nízký kontrast vůči barvě zvýraznění", "Accent color": "Barva zvýraznění", "Accent text color": "Barva zvýrazněného textu", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Tato funkce je součástí tarifu {{planName}} a vyšších. Upgradujte svůj pracovní prostor, abyste ji zpřístupnili svému týmu.", + "View plans": "Zobrazit tarify", "All roles": "Všechny role", "Admins": "Správci", "Editors": "Editoři", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Importovat soubor ZIP s dokumenty ve formátu Markdown ve formátu Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Importovat datový soubor JSON vyexportovaný z jiné instance {{ appName }}.", "Import pages from a Confluence instance": "Importovat stránky z Confluence.", - "Enterprise": "Pro firmy", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Přeneste dokumenty, stránky a soubory z jiných služeb do {{appName}}. Dokumenty ve formátu HTML, Markdown nebo prostý text můžete také přetáhnout přímo do kolekcí.", "Recent imports": "Nedávné importy", "Configure a variety of integrations with third-party services.": "Konfigurujte integrace se službami třetích stran.", + "Documents that are published, updated, or shared with you, and access requests": "Dokumenty, které jsou publikovány, aktualizovány nebo s vámi sdíleny, a žádosti o přístup", "Receive a notification whenever a new document is published": "Dostávat upozornění na každý nově zveřejněný dokument", "Document updated": "Dokument byl aktualizován", "Receive a notification when a document you are subscribed to is edited": "Dostávat upozornění na úpravu odebíraného dokumentu", + "Invited to document": "Pozván do dokumentu", + "Receive a notification when a document is shared with you": "Dostávat upozornění, když s vámi někdo nasdílí dokument", + "Document access requested": "Byl vyžádán přístup k dokumentu", + "Receive a notification when a user requests access to a document you manage": "Dostávat upozornění, když uživatel požádá o přístup k dokumentu, který spravujete", + "New collections and access to collections": "Nové kolekce a přístup ke kolekcím", + "Collection created": "Kolekce byla vytvořena", + "Receive a notification whenever a new collection is created": "Dostávat upozornění na vytvoření každé nové kolekce", + "Invited to collection": "Pozvání do kolekce", + "Receive a notification when you are given access to a collection": "Dostávat upozornění, když získáte přístup ke kolekci", + "Comments and mentions": "Komentáře a zmínky", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Nové komentáře, zmínky o vás nebo vašich skupinách, vyřešená vlákna a reakce", "Comment posted": "Komentář byl přidán", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Dostávat upozornění na nové komentáře v odebíraných dokumentech nebo ve vláknech, do kterých jste se zapojili", "Mentioned": "Zmínky", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Dostávat upozornění na vyřešení vlákna komentářů, do kterého jste se zapojili", "Reaction added": "Reakce byla přidána", "Receive a notification when someone reacts to your comment": "Dostávat upozornění na reakce k vašim komentářům", - "Collection created": "Kolekce byla vytvořena", - "Receive a notification whenever a new collection is created": "Dostávat upozornění na vytvoření každé nové kolekce", - "Invite accepted": "Pozvánka byla přijata", - "Receive a notification when someone you invited creates an account": "Dostávat upozornění, když si vámi pozvaný uživatel vytvoří účet", - "Invited to document": "Pozván do dokumentu", - "Receive a notification when a document is shared with you": "Dostávat upozornění, když s vámi někdo nasdílí dokument", - "Invited to collection": "Pozvání do kolekce", - "Receive a notification when you are given access to a collection": "Dostávat upozornění, když získáte přístup ke kolekci", + "Group membership, accepted invites, and completed exports": "Členství ve skupinách, přijaté pozvánky a dokončené exporty", "Group membership": "Členství ve skupině", "Receive a notification when you are added to or removed from a group": "Dostávat upozornění při přidání do skupiny nebo odebrání z ní", + "Invite accepted": "Pozvánka byla přijata", + "Receive a notification when someone you invited creates an account": "Dostávat upozornění, když si vámi pozvaný uživatel vytvoří účet", "Export completed": "Export byl dokončen", "Receive a notification when an export you requested has been completed": "Dostávat upozornění na dokončení požadovaného exportu", - "Document access requested": "Byl vyžádán přístup k dokumentu", - "Receive a notification when a user requests access to a document you manage": "Dostávat upozornění, když uživatel požádá o přístup k dokumentu, který spravujete", + "Product updates": "Aktualizace produktu", + "Tips on getting started and announcements of new features": "Tipy pro začátek práce a oznámení o nových funkcích", "Getting started": "Začínáme", "Tips on getting started with features and functionality": "Tipy, jak začít pracovat s funkcemi aplikace", "New features": "Nové funkce", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Revizi se nepodařilo uložit", "Invite to document": "Pozvat k dokumentu", "Sorry, invalid embed link": "Neplatný odkaz pro vložení.", - "Data Attributes": "Datové atributy", + "Data attributes": "Datové atributy", "Edit attribute": "Upravit atribut", "Property": "Vlastnost", "Yes": "Ano", @@ -1675,7 +1719,7 @@ "Text": "Text", "List": "Seznam", "Could not load events": "Události se nepodařilo načíst", - "Audit Log": "Protokol auditu", + "Audit log": "Protokol auditu", "The audit log details the history of security-related and other events across your knowledge base.": "Protokol auditu zachycuje historii bezpečnostních a dalších událostí v celé vaší znalostní bázi.", "IP address": "IP adresa", "Actor": "Původce", @@ -1818,6 +1862,10 @@ "Script name": "Název skriptu", "The name of the script file that Umami uses to track analytics.": "Název skriptu, který Umami používá pro měření analytiky.", "An ID that uniquely identifies the website in your Umami instance.": "Jedinečné ID webu v instanci Umami.", + "The audit log details the history of security related and other events across your knowledge base.": "Protokol auditu zachycuje bezpečnostní i další události ve znalostní bázi.", + "Content": "Obsah", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Správa oprávnění a nastavení všech kolekcí. Jako správce pracovního prostoru můžete spravovat i soukromé kolekce.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Automaticky indexujte a prohledávejte obsah dokumentů z {{appName}} ve službě Glean v reálném čase.", "New webhook": "Nový webhook", "Edit webhook": "Upravit webhook", "Delete webhook": "Odstranit webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} zmínil skupinu „{{ groupName }}“ v dokumentu „{{ documentTitle }}“.", "Your group was mentioned": "Vaše skupina byla zmíněna", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} zmínil skupinu „{{ groupName }}“ v dokumentu", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} se připojil k vašemu týmu v {{ appName }}", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} se připojil(a) k vašemu pracovnímu prostoru v {{ appName }}", "Great news, {{ invitedName }} accepted your invitation": "Skvělá zpráva, {{ invitedName }} přijal vaši pozvánku", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Skvělá zpráva – {{ invitedName }} přijal vaši pozvánku a vytvořil si účet. Nyní můžete začít spolupracovat na dokumentech.", "Open {{ appName }}": "Otevřít {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} se připojil k vašemu týmu", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} se připojil(a) k vašemu pracovnímu prostoru", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} vás pozval do pracovního prostoru týmu {{ teamName }}", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} je místo, kde váš tým tvoří a sdílí znalosti.", "Join {{ teamName }} on {{ appName }}": "Připojte se k {{ teamName }} v {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "vás pozval do {{ appName }} – místa, kde váš tým tvoří a sdílí znalosti.", "Join now": "Připojit se", "Reminder": "Připomenutí", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "Připomínáme, že {{ actorName }} ({{ actorEmail }}) vás pozval do týmu {{ teamName }} v {{ appName }} – místě, kde váš tým tvoří a sdílí znalosti.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Jen připomínáme, že {{ actorName }} {{ actorEmail }} vás pozval(a) k připojení do pracovního prostoru {{ teamName }} v {{ appName }}, kde váš tým může tvořit a sdílet znalosti.", "We only send a reminder once.": "Připomínku odesíláme pouze jednou.", "If you haven’t signed up yet, you can do so here": "Pokud jste se ještě nezaregistrovali, můžete tak učinit zde", "“{{ documentTitle }}” updated": "Dokument „{{ documentTitle }}“ byl aktualizován", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Ověřovací kód přihlášení", "Here’s your link to sign in to {{ appName }}.": "Zde je váš odkaz pro přihlášení do {{ appName }}.", "Use the link below to sign in": "Pro přihlášení použijte níže uvedený odkaz", - "If the link expired, you can request a new one from your team’s sign-in page at": "Pokud platnost odkazu vypršela, můžete požádat o nový na přihlašovací stránce svého týmu na", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Pokud platnost odkazu vypršela, můžete si vyžádat nový na přihlašovací stránce svého pracovního prostoru na", "Enter this verification code": "Zadejte následující ověřovací kód", - "If the code expired, you can request a new one from your team’s sign-in page at": "Pokud platnost kódu vypršela, můžete požádat o nový na přihlašovací stránce svého týmu na", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Pokud platnost kódu vypršela, můžete si vyžádat nový na přihlašovací stránce svého pracovního prostoru na", "Click the button below to sign in to {{ appName }}.": "Klikněte na tlačítko níže pro přihlášení do {{ appName }}.", "Sign-in Code": "Přihlašovací kód", - "Enter this code on your team’s sign-in page to continue.": "Chcete-li pokračovat, zadejte tento kód na přihlašovací stránce svého týmu.", + "Enter this code on your workspace’s sign-in page to continue.": "Chcete-li pokračovat, zadejte tento kód na přihlašovací stránce svého pracovního prostoru.", "Webhook disabled": "Webhook byl zakázán", "Your webhook ({{ webhookName }}) has been disabled": "Váš webhook ({{ webhookName }}) byl zakázán", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Váš webhook ({{ webhookName }}) byl automaticky zakázán kvůli vysoké míře selhání při nedávných pokusech o doručení. Úpravou webhooku jej můžete znovu povolit.", @@ -2007,10 +2055,14 @@ "Hide completed": "Skrýt dokončené", "Sorry, the link could not be copied": "Odkaz se nepodařilo zkopírovat.", "Write a caption": "Napsat popisek", - "Display as mention": "Zobrazit jako zmínku", - "Display as card": "Zobrazit jako kartu", "Add title": "Přidat titulek", "Add content": "Přidat obsah", + "Change column filter": "Změnit filtr sloupce", + "Filter column": "Filtrovat sloupec", + "{{ count }} filter applied": "{{ count }} použitý filtr", + "{{ count }} filter applied_plural": "{{ count }} použitých filtrů", + "Filters cleared for you": "Filtry pro vás byly vymazány", + "Save for everyone": "Uložit pro všechny", "Tomorrow": "Zítra", "Group admin": "Správce skupiny", "Member": "Člen" diff --git a/shared/i18n/locales/da_DK/translation.json b/shared/i18n/locales/da_DK/translation.json index 8d929408aa..8f5bb49c49 100644 --- a/shared/i18n/locales/da_DK/translation.json +++ b/shared/i18n/locales/da_DK/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integrationer", "Back to app": "Tilbage til appen", "Installation": "Installation", + "Available on {{ planName }}": "Tilgængelig på {{ planName }}", "Split pane": "Opdelt rude", "Main pane": "Hovedrude", "Unstar document": "Fjern stjerne fra dokument", @@ -778,6 +779,7 @@ "Last seen": "Senest set", "{{ time }} local time": "{{ time }} lokal tid", "Your import completed": "Din import er gennemført", + "Lock aspect ratio": "Lås billedformat", "Templates": "Skabeloner", "View comment thread": "Vis kommentartråd", "Previous match": "Forrige match", @@ -798,10 +800,13 @@ "Width": "Bredde", "Image height": "Billedhøjde", "Height": "Højde", + "Aspect ratio locked": "Billedformat låst", + "Aspect ratio unlocked": "Billedformat ulåst", "Paste a link": "Indsæt et link", "Delete embed": "Slet indlejring", "Delete video": "Slet video", "Delete image": "Slet billede", + "Display options": "Visningsindstillinger", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} bliver ikke underrettet, da vedkommende ikke har adgang til dette dokument", "Members of “{{ groupName }}” with access to this document will be notified": "Medlemmer af “{{ groupName }}” med adgang til dette dokument bliver underrettet", "Keep as link": "Behold som link", @@ -813,6 +818,25 @@ "Upload file": "Upload fil", "Paste a link from {{service}}…": "Indsæt et link fra {{service}}…", "Suggestions": "Forslag", + "Showing all rows": "Viser alle rækker", + "Showing {{ visible }} of {{ count }} rows": "Viser {{ visible }} af {{ count }} række", + "Showing {{ visible }} of {{ count }} rows_plural": "Viser {{ visible }} af {{ count }} rækker", + "Filter {{ columnName }}": "Filtrér {{ columnName }}", + "Is": "Er", + "Is not": "Er ikke", + "Contains": "Indeholder", + "Does not contain": "Indeholder ikke", + "Is empty": "Er tom", + "Is not empty": "Er ikke tom", + "Condition": "Betingelse", + "Search values": "Søg efter værdier", + "Values": "Værdier", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Viser {{ shown }} af {{ total }} værdier. Søg for at finde flere.", + "No values match your search.": "Ingen værdier matcher din søgning.", + "This column has no values": "Denne kolonne har ingen værdier", + "{{ visible }} of {{ count }} rows": "{{ visible }} af {{ count }} række", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} af {{ count }} rækker", + "Clear": "Ryd", "More options": "Flere indstillinger", "Type '/' to insert": "Indtast '/' for at indsætte", "Keep typing to filter": "Fortsæt med at skrive for at filtrere", @@ -855,6 +879,8 @@ "Edit image URL": "Redigér billede URL", "Create a new doc": "Opret et nyt dokument", "Create a nested doc": "Opret et indlejret dokument", + "Display as mention": "Vis som omtale", + "Display as card": "Vis som kort", "Default width": "Standardbredde", "Distribute columns": "Fordel kolonner", "Export as CSV": "Eksportér som CSV", @@ -874,6 +900,11 @@ "Upload a video": "Upload en video", "Edit video URL": "Redigér video-URL", "Could not import file": "Kunne ikke importere fil", + "Community": "Fællesskab", + "Standard": "Standard", + "Business": "Virksomhed", + "Enterprise": "Virksomhed", + "Legacy": "Ældre", "Unsubscribed from document": "Afmeldt dokumentet", "Unsubscribed from collection": "Afmeldt samlingen", "Subscription successful": "Abonnementet er gennemført", @@ -894,6 +925,8 @@ "Developer": "Udvikler", "Applications": "Applikationer", "API key": "API-nøgle", + "Reconnect": "Genopret forbindelse", + "Connected": "Forbundet", "Show path to document": "Vis sti til dokument", "Comment options": "Kommentarindstillinger", "Enable viewer insights": "Aktiver seerindsigter", @@ -916,6 +949,7 @@ "Trash options": "Indstillinger for papirkurv", "User options": "Brugerindstillinger", "document": "dokument", + "All collections": "Alle samlinger", "Export complete": "Eksport fuldført", "Export failed": "Eksport mislykkedes", "An unexpected error occurred": "Der opstod en uventet fejl", @@ -931,9 +965,13 @@ "invited you to": "inviterede dig til", "added you to the group": "føjede dig til gruppen", "removed you from the group": "fjernede dig fra gruppen", + "export completed": "eksport gennemført", + "export failed": "eksport mislykkedes", + "export is no longer available": "eksport er ikke længere tilgængelig", "was granted access to": "fik adgang til", "requested access to": "anmodede om adgang til", "is requesting access to": "anmoder om adgang til", + "Your": "Din", "a document": "et dokument", "a collection": "en samling", "a group": "en gruppe", @@ -1031,10 +1069,10 @@ "Document title": "Dokumenttitel", "Last updated": "Senest opdateret", "Type '/' to insert, or start writing…": "Skriv '/' for at indsætte, eller begynd at skrive…", + "Save draft": "Gem kladde", "Hide contents": "Skjul indhold", "Show contents": "Vis indhold", "available when headings are added": "tilgængelig, når der er tilføjet overskrifter", - "Save draft": "Gem kladde", "Restore version": "Gendan version", "{{userName}} archived": "{{userName}} arkiveret", "{{userName}} restored": "{{userName}} gendannet", @@ -1306,7 +1344,6 @@ "Sign in": "Log ind", "Allow members to sign in with {{ authProvider }}": "Tillad medlemmer at logge ind med {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Forbind {{ authProvider }} for at tillade medlemmer at logge ind", - "Connected": "Forbundet", "Disabled": "Deaktiveret", "Connect": "Opret forbindelse", "Group sync": "Gruppesynkronisering", @@ -1365,7 +1402,6 @@ "Processing": "Behandler", "Completed": "Gennemført", "Failed": "Mislykkedes", - "All collections": "Alle samlinger", "Import deleted": "Import slettet", "Export deleted": "Eksport slettet", "Are you sure you want to delete this import?": "Er du sikker på, at du vil slette denne import?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Denne farve har lav kontrast i forhold til accentfarven", "Accent color": "Accentfarve", "Accent text color": "Accenttekstfarve", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Denne funktion er inkluderet i {{planName}} og højere. Opgrader dit arbejdsområde for at låse den op for dit team.", + "View plans": "Se planer", "All roles": "Alle roller", "Admins": "Administratorer", "Editors": "Redaktører", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Importér en zip-fil med Markdown-dokumenter i Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Importér en JSON-datafil eksporteret fra en anden {{ appName }}-instans", "Import pages from a Confluence instance": "Importér sider fra en Confluence-instans", - "Enterprise": "Virksomhed", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Overfør hurtigt dine eksisterende dokumenter, sider og filer fra andre værktøjer og tjenester til {{appName}}. Du kan også trække og slippe HTML-, Markdown- og tekstdokumenter direkte i samlinger i appen.", "Recent imports": "Seneste importer", "Configure a variety of integrations with third-party services.": "Konfigurér en række integrationer med tredjepartstjenester.", + "Documents that are published, updated, or shared with you, and access requests": "Dokumenter, der publiceres, opdateres eller deles med dig, og adgangsanmodninger", "Receive a notification whenever a new document is published": "Modtag en notifikation, hver gang et nyt dokument udgives", "Document updated": "Dokument opdateret", "Receive a notification when a document you are subscribed to is edited": "Modtag en notifikation, når et dokument, du abonnerer på, redigeres", + "Invited to document": "Inviteret til dokument", + "Receive a notification when a document is shared with you": "Modtag en notifikation, når et dokument deles med dig", + "Document access requested": "Der er anmodet om adgang til dokumentet", + "Receive a notification when a user requests access to a document you manage": "Modtag en notifikation, når en bruger anmoder om adgang til et dokument, du administrerer", + "New collections and access to collections": "Nye samlinger og adgang til samlinger", + "Collection created": "Samling oprettet", + "Receive a notification whenever a new collection is created": "Modtag en notifikation, hver gang en ny samling oprettes", + "Invited to collection": "Inviteret til samling", + "Receive a notification when you are given access to a collection": "Modtag en notifikation, når du får adgang til en samling", + "Comments and mentions": "Kommentarer og omtaler", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Nye kommentarer, omtaler af dig eller dine grupper, løste tråde og reaktioner", "Comment posted": "Kommentar sendt", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Modtag en notifikation, når et dokument, du abonnerer på, eller en tråd, du har deltaget i, modtager en kommentar", "Mentioned": "Nævnt", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Modtag en notifikation, når en kommentartråd, du var involveret i, løses", "Reaction added": "Reaktion tilføjet", "Receive a notification when someone reacts to your comment": "Modtag en notifikation, når nogen reagerer på din kommentar", - "Collection created": "Samling oprettet", - "Receive a notification whenever a new collection is created": "Modtag en notifikation, hver gang en ny samling oprettes", - "Invite accepted": "Invitation accepteret", - "Receive a notification when someone you invited creates an account": "Modtag en notifikation, når en person, du har inviteret, opretter en konto", - "Invited to document": "Inviteret til dokument", - "Receive a notification when a document is shared with you": "Modtag en notifikation, når et dokument deles med dig", - "Invited to collection": "Inviteret til samling", - "Receive a notification when you are given access to a collection": "Modtag en notifikation, når du får adgang til en samling", + "Group membership, accepted invites, and completed exports": "Gruppemedlemskab, accepterede invitationer og fuldførte eksporter", "Group membership": "Gruppemedlemskab", "Receive a notification when you are added to or removed from a group": "Modtag en notifikation, når du føjes til eller fjernes fra en gruppe", + "Invite accepted": "Invitation accepteret", + "Receive a notification when someone you invited creates an account": "Modtag en notifikation, når en person, du har inviteret, opretter en konto", "Export completed": "Eksport gennemført", "Receive a notification when an export you requested has been completed": "Modtag en notifikation, når en eksport, du har anmodet om, er gennemført", - "Document access requested": "Der er anmodet om adgang til dokumentet", - "Receive a notification when a user requests access to a document you manage": "Modtag en notifikation, når en bruger anmoder om adgang til et dokument, du administrerer", + "Product updates": "Produktopdateringer", + "Tips on getting started and announcements of new features": "Tips til at komme i gang og meddelelser om nye funktioner", "Getting started": "Kom godt i gang", "Tips on getting started with features and functionality": "Tips til at komme i gang med funktioner og funktionalitet", "New features": "Nye funktioner", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Kunne ikke gemme revision", "Invite to document": "Invitér til dokument", "Sorry, invalid embed link": "Beklager, ugyldigt indlejringslink", - "Data Attributes": "Dataegenskaber", + "Data attributes": "Dataegenskaber", "Edit attribute": "Rediger egenskab", "Property": "Egenskab", "Yes": "Ja", @@ -1675,7 +1719,7 @@ "Text": "Tekst", "List": "Liste", "Could not load events": "Kunne ikke indlæse hændelser", - "Audit Log": "Audit Log", + "Audit log": "Revisionslog", "The audit log details the history of security-related and other events across your knowledge base.": "Revisionsloggen beskriver historikken for sikkerhedsrelaterede og andre hændelser på tværs af din vidensbase.", "IP address": "IP-adresse", "Actor": "Aktør", @@ -1818,6 +1862,10 @@ "Script name": "Script navn", "The name of the script file that Umami uses to track analytics.": "Navnet på scriptfilen som Umami bruger til at spore analytik.", "An ID that uniquely identifies the website in your Umami instance.": "Et ID, der entydigt identificerer hjemmesiden i din Umami instans.", + "The audit log details the history of security related and other events across your knowledge base.": "Auditloggen beskriver historien om sikkerhedsrelaterede- og andre begivenheder på tværs af din vidensbase.", + "Content": "Indhold", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Administrer tilladelser og indstillinger for alle samlinger i vidensbasen. Som arbejdsområde administrator kan du også administrere private samlinger.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Indekser og søg automatisk dokumentindhold fra {{appName}} i Glean i realtid.", "New webhook": "Nyt webhook", "Edit webhook": "Redigér webhook", "Delete webhook": "Slet webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} nævnte gruppen “{{ groupName }}” i dokumentet “{{ documentTitle }}”.", "Your group was mentioned": "Din gruppe blev nævnt", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} nævnte gruppen “{{ groupName }}” i dokumentet", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} er blevet medlem af dit {{ appName }}-team", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} er blevet medlem af dit {{ appName }}-arbejdsområde", "Great news, {{ invitedName }} accepted your invitation": "Gode nyheder, {{ invitedName }} accepterede din invitation", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Gode nyheder, {{ invitedName }} har netop accepteret din invitation og oprettet en konto. I kan nu begynde at samarbejde om dokumenter.", "Open {{ appName }}": "Åbn {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} er blevet medlem af dit team", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} er blevet medlem af dit arbejdsområde", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} inviterede dig til at deltage i {{ teamName }}'s arbejdsområde", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} er et sted, hvor dit team kan opbygge og dele viden.", "Join {{ teamName }} on {{ appName }}": "Deltag i {{ teamName }} på {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "har inviteret dig til at deltage i {{ appName }}, et sted, hvor dit team kan opbygge og dele viden.", "Join now": "Deltag nu", "Reminder": "Påmindelse", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "Dette er blot en hurtig påmindelse om, at {{ actorName }} {{ actorEmail }} inviterede dig til at deltage i teamet {{ teamName }} på {{ appName }}, et sted, hvor dit team kan opbygge og dele viden.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Dette er blot en hurtig påmindelse om, at {{ actorName }} {{ actorEmail }} har inviteret dig til at deltage i {{ teamName }}-arbejdsområdet på {{ appName }}, et sted, hvor dit team kan opbygge og dele viden.", "We only send a reminder once.": "Vi sender kun én påmindelse.", "If you haven’t signed up yet, you can do so here": "Hvis du ikke har tilmeldt dig endnu, kan du gøre det her", "“{{ documentTitle }}” updated": "“{{ documentTitle }}” opdateret", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Bekræftelseskode til logon", "Here’s your link to sign in to {{ appName }}.": "Her er dit link til at logge ind på {{ appName }}.", "Use the link below to sign in": "Brug linket nedenfor til at logge ind", - "If the link expired, you can request a new one from your team’s sign-in page at": "Hvis linket er udløbet, kan du anmode om et nyt fra dit teams login-side på", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Hvis linket er udløbet, kan du anmode om et nyt fra dit arbejdsområdes loginside på", "Enter this verification code": "Indtast denne bekræftelseskode", - "If the code expired, you can request a new one from your team’s sign-in page at": "Hvis koden er udløbet, kan du anmode om en ny fra dit teams login-side på", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Hvis koden er udløbet, kan du anmode om en ny fra dit arbejdsområdes loginside på", "Click the button below to sign in to {{ appName }}.": "Klik på knappen nedenfor for at logge ind på {{ appName }}.", "Sign-in Code": "Login-kode", - "Enter this code on your team’s sign-in page to continue.": "Indtast denne kode på dit teams login-side for at fortsætte.", + "Enter this code on your workspace’s sign-in page to continue.": "Indtast denne kode på dit arbejdsområdes loginside for at fortsætte.", "Webhook disabled": "Webhook deaktiveret", "Your webhook ({{ webhookName }}) has been disabled": "Din webhook ({{ webhookName }}) er blevet deaktiveret", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Din webhook ({{ webhookName }}) er automatisk blevet deaktiveret på grund af en høj fejlrate ved de seneste leveringsforsøg. Du kan genaktivere den ved at redigere webhooken.", @@ -2007,10 +2055,14 @@ "Hide completed": "Skjul fuldførte", "Sorry, the link could not be copied": "Beklager, linket kunne ikke kopieres", "Write a caption": "Skriv en tekst", - "Display as mention": "Vis som omtale", - "Display as card": "Vis som kort", "Add title": "Tilføj titel", "Add content": "Tilføj indhold", + "Change column filter": "Skift kolonnefilter", + "Filter column": "Filtrer kolonne", + "{{ count }} filter applied": "{{ count }} filter anvendt", + "{{ count }} filter applied_plural": "{{ count }} filtre anvendt", + "Filters cleared for you": "Filtre ryddet for dig", + "Save for everyone": "Gem for alle", "Tomorrow": "I morgen", "Group admin": "Gruppeadministrator", "Member": "Medlem" diff --git a/shared/i18n/locales/de_DE/translation.json b/shared/i18n/locales/de_DE/translation.json index 6759972a5a..83362693ae 100644 --- a/shared/i18n/locales/de_DE/translation.json +++ b/shared/i18n/locales/de_DE/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integrationen", "Back to app": "Zurück zur App", "Installation": "Installation", + "Available on {{ planName }}": "Verfügbar mit {{ planName }}", "Split pane": "Geteilter Bereich", "Main pane": "Hauptbereich", "Unstar document": "Favorisierung entfernen", @@ -778,6 +779,7 @@ "Last seen": "Zuletzt gesehen", "{{ time }} local time": "{{ time }} Ortszeit", "Your import completed": "Ihr Import ist abgeschlossen", + "Lock aspect ratio": "Seitenverhältnis sperren", "Templates": "Vorlagen", "View comment thread": "Kommentarthread anzeigen", "Previous match": "Vorheriger Treffer", @@ -798,10 +800,13 @@ "Width": "Breite", "Image height": "Bildhöhe", "Height": "Höhe", + "Aspect ratio locked": "Seitenverhältnis gesperrt", + "Aspect ratio unlocked": "Seitenverhältnis entsperrt", "Paste a link": "Link einfügen", "Delete embed": "Einbindung löschen", "Delete video": "Video löschen", "Delete image": "Bild löschen", + "Display options": "Anzeigeoptionen", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} wird nicht benachrichtigt, da kein Zugriff auf dieses Dokument besteht", "Members of “{{ groupName }}” with access to this document will be notified": "Mitglieder von „{{ groupName }}“, die Zugriff auf dieses Dokument haben, werden benachrichtigt", "Keep as link": "Als Link beibehalten", @@ -813,6 +818,25 @@ "Upload file": "Datei hochladen", "Paste a link from {{service}}…": "Füge einen Link von {{service}} ein …", "Suggestions": "Vorschläge", + "Showing all rows": "Alle Zeilen werden angezeigt", + "Showing {{ visible }} of {{ count }} rows": "{{ visible }} von {{ count }} Zeile werden angezeigt", + "Showing {{ visible }} of {{ count }} rows_plural": "{{ visible }} von {{ count }} Zeilen werden angezeigt", + "Filter {{ columnName }}": "{{ columnName }} filtern", + "Is": "Ist gleich", + "Is not": "Ist nicht gleich", + "Contains": "Enthält", + "Does not contain": "Enthält nicht", + "Is empty": "Ist leer", + "Is not empty": "Ist nicht leer", + "Condition": "Bedingung", + "Search values": "Werte suchen", + "Values": "Werte", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "{{ shown }} von {{ total }} Werten werden angezeigt. Suchen Sie, um weitere zu finden.", + "No values match your search.": "Keine Werte entsprechen Ihrer Suche.", + "This column has no values": "Diese Spalte enthält keine Werte", + "{{ visible }} of {{ count }} rows": "{{ visible }} von {{ count }} Zeile", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} von {{ count }} Zeilen", + "Clear": "Zurücksetzen", "More options": "Weitere Optionen", "Type '/' to insert": "Gib '/' zum Suchen ein", "Keep typing to filter": "Tippen Sie weiter um zu filtern", @@ -855,6 +879,8 @@ "Edit image URL": "Bild-URL bearbeiten", "Create a new doc": "Neues Dokument erstellen", "Create a nested doc": "Neues untergeordnetes Dokument erstellen", + "Display as mention": "Als Erwähnung anzeigen", + "Display as card": "Als Karte anzeigen", "Default width": "Standardbreite", "Distribute columns": "Spalten teilen", "Export as CSV": "Exportiere als CSV", @@ -874,6 +900,11 @@ "Upload a video": "Ein Video hochladen", "Edit video URL": "Video-URL bearbeiten", "Could not import file": "Datei konnte nicht importiert werden", + "Community": "Community", + "Standard": "Standard", + "Business": "Business", + "Enterprise": "Unternehmen", + "Legacy": "Legacy", "Unsubscribed from document": "Dokument nicht abonniert", "Unsubscribed from collection": "Von der Sammlung abgemeldet", "Subscription successful": "Abonnement erfolgreich", @@ -894,6 +925,8 @@ "Developer": "Entwickler", "Applications": "Anwendungen", "API key": "API Key", + "Reconnect": "Erneut verbinden", + "Connected": "Verbunden", "Show path to document": "Pfad zum Dokument anzeigen", "Comment options": "Kommentar Optionen", "Enable viewer insights": "Leserstatistiken aktivieren", @@ -916,6 +949,7 @@ "Trash options": "Papierkorboptionen", "User options": "Nutzer-Einstellungen", "document": "Dokument", + "All collections": "Alle Sammlungen", "Export complete": "Export abgeschlossen", "Export failed": "Exportieren fehlgeschlagen", "An unexpected error occurred": "Es ist ein unerwarteter Fehler aufgetreten", @@ -931,9 +965,13 @@ "invited you to": "hat dich eingeladen zu", "added you to the group": "hat Sie zur Gruppe hinzugefügt", "removed you from the group": "hat Sie aus der Gruppe entfernt", + "export completed": "Export abgeschlossen", + "export failed": "Export fehlgeschlagen", + "export is no longer available": "Export ist nicht mehr verfügbar", "was granted access to": "wurde Zugriff gewährt auf", "requested access to": "bittet um Zugriff auf", "is requesting access to": "bittet um Zugriff auf", + "Your": "Ihr", "a document": "ein Dokument", "a collection": "eine Sammlung", "a group": "eine Gruppe", @@ -1031,10 +1069,10 @@ "Document title": "Dokumenttitel", "Last updated": "Zuletzt aktualisiert", "Type '/' to insert, or start writing…": "Tippe '/' zum Einfügen, oder beginne mit dem Schreiben…", + "Save draft": "Entwurf speichern", "Hide contents": "Inhalt ausblenden", "Show contents": "Inhalt anzeigen", "available when headings are added": "verfügbar, wenn Überschriften hinzugefügt werden", - "Save draft": "Entwurf speichern", "Restore version": "Version wiederherstellen", "{{userName}} archived": "{{userName}} archivierte", "{{userName}} restored": "{{userName}} stellte wieder her", @@ -1306,7 +1344,6 @@ "Sign in": "Anmelden", "Allow members to sign in with {{ authProvider }}": "Mitgliedern erlauben, sich mit {{ authProvider }} anzumelden", "Connect {{ authProvider }} to allow members to sign in": "Verbinde {{ authProvider }}, damit sich Mitglieder anmelden können", - "Connected": "Verbunden", "Disabled": "Deaktiviert", "Connect": "Verbinden", "Group sync": "Gruppen-Sync", @@ -1365,7 +1402,6 @@ "Processing": "Wird ausgeführt", "Completed": "Erledigt", "Failed": "Fehlgeschlagen", - "All collections": "Alle Sammlungen", "Import deleted": "Import gelöscht", "Export deleted": "Export gelöscht", "Are you sure you want to delete this import?": "Bist du sicher, dass du diesen Import löschen willst?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Diese Farbe hat im Vergleich zur Akzentfarbe einen geringen Kontrast", "Accent color": "Akzentfarbe", "Accent text color": "Akzent-Textfarbe", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Diese Funktion ist in {{planName}} und höheren Tarifen enthalten. Führen Sie ein Upgrade Ihres Arbeitsbereichs durch, um sie für Ihr Team freizuschalten.", + "View plans": "Tarife anzeigen", "All roles": "Alle Rollen", "Admins": "Admins", "Editors": "Redakteure", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Eine ZIP-Datei mit Markdown-Dokumenten im Open Knowledge Format importieren", "Import a JSON data file exported from another {{ appName }} instance": "Importiere eine JSON-Datendatei, die von einer anderen {{ appName }} Instanz exportiert wird", "Import pages from a Confluence instance": "Importieren Sie Seiten aus einer Confluence-Instanz", - "Enterprise": "Unternehmen", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Übertrage unkompliziert bestehende Dokumente, Seiten und Dateien aus anderen Tools und Diensten nach {{appName}}. Ebenso kannst du per Drag-and-Drop beliebige HTML-, Markdown- oder Textdateien direkt in Sammlungen innerhalb der Anwendungen ziehen.", "Recent imports": "Neueste Importe", "Configure a variety of integrations with third-party services.": "Konfigurieren Sie verschiedene Integrationen mit Drittanbieterdiensten.", + "Documents that are published, updated, or shared with you, and access requests": "Dokumente, die veröffentlicht, aktualisiert oder für dich freigegeben werden, sowie Zugriffsanfragen", "Receive a notification whenever a new document is published": "Erhalten Sie eine Benachrichtigung, wenn ein neues Dokument veröffentlicht wird", "Document updated": "Dokument aktualisiert", "Receive a notification when a document you are subscribed to is edited": "Benachrichtigung erhalten, wenn ein Dokument, das Sie abonniert haben, bearbeitet wird", + "Invited to document": "Zum Dokument eingeladen", + "Receive a notification when a document is shared with you": "Benachrichtigen, wenn ein Dokument mit Ihnen geteilt wird", + "Document access requested": "Dokumentzugriff angefordert", + "Receive a notification when a user requests access to a document you manage": "Benachrichtigung erhalten, wenn ein Benutzer den Zugriff auf ein Dokument anfordert, das Sie verwalten", + "New collections and access to collections": "Neue Sammlungen und Zugriff auf Sammlungen", + "Collection created": "Sammlung erstellt", + "Receive a notification whenever a new collection is created": "Erhalten Sie eine Benachrichtigung, wenn eine neue Sammlung erstellt wird", + "Invited to collection": "Zur Sammlung eingeladen", + "Receive a notification when you are given access to a collection": "Benachrichtigen, wenn Sie Zugriff auf eine Sammlung erhalten", + "Comments and mentions": "Kommentare und Erwähnungen", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Neue Kommentare, Erwähnungen von dir oder deinen Gruppen, gelöste Threads und Reaktionen", "Comment posted": "Kommentar veröffentlicht", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Erhalten Sie eine Benachrichtigung, wenn ein Dokument, das Sie abonniert haben oder eine Diskussion an der Sie teilgenommen haben, einen Kommentar erhält", "Mentioned": "Erwähnt", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Benachrichtigung erhalten, wenn ein Kommentar-Thread, an dem Sie beteiligt waren, gelöst wurde", "Reaction added": "Reaktion hinzugefügt", "Receive a notification when someone reacts to your comment": "Erhalten Sie eine Benachrichtigung, wenn jemand Sie in einem Kommentar erwähnt", - "Collection created": "Sammlung erstellt", - "Receive a notification whenever a new collection is created": "Erhalten Sie eine Benachrichtigung, wenn eine neue Sammlung erstellt wird", - "Invite accepted": "Einladung angenommen", - "Receive a notification when someone you invited creates an account": "Erhalten Sie eine Benachrichtigung, wenn jemand, den Sie eingeladen haben, ein Konto erstellt", - "Invited to document": "Zum Dokument eingeladen", - "Receive a notification when a document is shared with you": "Benachrichtigen, wenn ein Dokument mit Ihnen geteilt wird", - "Invited to collection": "Zur Sammlung eingeladen", - "Receive a notification when you are given access to a collection": "Benachrichtigen, wenn Sie Zugriff auf eine Sammlung erhalten", + "Group membership, accepted invites, and completed exports": "Gruppenmitgliedschaft, angenommene Einladungen und abgeschlossene Exporte", "Group membership": "Gruppenmitgliedschaft", "Receive a notification when you are added to or removed from a group": "Erhalten Sie eine Benachrichtigung, wenn Sie zu einer Gruppe hinzugefügt oder aus einer Gruppe entfernt werden", + "Invite accepted": "Einladung angenommen", + "Receive a notification when someone you invited creates an account": "Erhalten Sie eine Benachrichtigung, wenn jemand, den Sie eingeladen haben, ein Konto erstellt", "Export completed": "Export abgeschlossen", "Receive a notification when an export you requested has been completed": "Erhalten Sie eine Benachrichtigung, wenn ein von Ihnen angeforderter Export abgeschlossen ist", - "Document access requested": "Dokumentzugriff angefordert", - "Receive a notification when a user requests access to a document you manage": "Benachrichtigung erhalten, wenn ein Benutzer den Zugriff auf ein Dokument anfordert, das Sie verwalten", + "Product updates": "Produktneuigkeiten", + "Tips on getting started and announcements of new features": "Tipps für den Einstieg und Ankündigungen neuer Funktionen", "Getting started": "Erste Schritte", "Tips on getting started with features and functionality": "Tipps zum Einstieg über die Features und Funktionen", "New features": "Neue Funktionen", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Fehler beim Speichern der Version", "Invite to document": "Zum Dokument einladen", "Sorry, invalid embed link": "Entschuldigung, ungültiger Einbindungslink", - "Data Attributes": "Dateneigenschaften", + "Data attributes": "Dateneigenschaften", "Edit attribute": "Attribut bearbeiten", "Property": "Eigenschaft", "Yes": "Ja", @@ -1675,7 +1719,7 @@ "Text": "Text", "List": "Liste", "Could not load events": "Konnte Ereignisse nicht laden", - "Audit Log": "Audit-Log", + "Audit log": "Audit-Log", "The audit log details the history of security-related and other events across your knowledge base.": "Das Audit-Protokoll enthält die Historie sicherheitsrelevanter und anderer Ereignisse in Ihrer Wissensdatenbank.", "IP address": "IP-Adresse", "Actor": "Akteur", @@ -1818,6 +1862,10 @@ "Script name": "Skript-Name", "The name of the script file that Umami uses to track analytics.": "Der Name der Skriptdatei, die Umami zur Verfolgung von Analysen verwendet.", "An ID that uniquely identifies the website in your Umami instance.": "Eine ID, die die Website in Ihrer Umami-Instanz eindeutig identifiziert.", + "The audit log details the history of security related and other events across your knowledge base.": "Das Audit-Log protokolliert die Historie von sicherheitsrelevanten und anderen Ereignissen in Ihrer Wissensdatenbank.", + "Content": "Inhalt", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Verwalten Sie die Berechtigungen und Einstellungen aller Sammlungen in der Wissensdatenbank. Als Workspace-Administrator können Sie auch private Sammlungen verwalten.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Dokumenteninhalte von {{appName}} automatisch in Glean in Echtzeit indizieren und durchsuchen.", "New webhook": "Neuer Webhook", "Edit webhook": "Webhook bearbeiten", "Delete webhook": "Webhook löschen", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} erwähnte die “{{ groupName }}” Gruppe im Dokument “{{ documentTitle }}”.", "Your group was mentioned": "Ihre Gruppe wurde erwähnt", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} hat die Gruppe „{{ groupName }}“ im Dokument erwähnt", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} ist Ihrem {{ appName }} Team beigetreten", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} ist Ihrem {{ appName }}-Workspace beigetreten", "Great news, {{ invitedName }} accepted your invitation": "Gute Nachrichten: {{ invitedName }} hat deine Einladung angenommen", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Gute Nachrichten, {{ invitedName }} hat Ihre Einladung angenommen und ein Konto erstellt. Sie können jetzt anfangen, an Dokumenten zu arbeiten.", "Open {{ appName }}": "Öffne {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} ist Ihrem Team beigetreten", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} ist Ihrem Workspace beigetreten", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} hat Sie eingeladen, dem Arbeitsbereich von {{ teamName }} beizutreten", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} ist ein Ort für Ihr Team, um Wissen aufzubauen und zu teilen.", "Join {{ teamName }} on {{ appName }}": "{{ teamName }} bei {{ appName }} beitreten", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "hat Sie eingeladen {{ appName }} beizutreten - ein Ort für Ihr Team, Wissen zu schaffen und zu teilen.", "Join now": "Jetzt beitreten", "Reminder": "Erinnerung", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "Dies ist nur eine kurze Erinnerung, dass {{ actorName }} {{ actorEmail }} Sie eingeladen hat, sich dem {{ teamName }} Team am {{ appName }} anzuschließen, ein Platz für Ihr Team, um Wissen aufzubauen und zu teilen.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Dies ist nur eine kurze Erinnerung daran, dass {{ actorName }} {{ actorEmail }} Sie eingeladen hat, dem {{ teamName }}-Workspace auf {{ appName }} beizutreten – einem Ort, an dem Ihr Team Wissen aufbauen und teilen kann.", "We only send a reminder once.": "Wir senden eine Erinnerung nur einmal zu.", "If you haven’t signed up yet, you can do so here": "Wenn du dich noch nicht registriert hast, kannst du das hier tun", "“{{ documentTitle }}” updated": "„{{ documentTitle }}“ aktualisiert", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Anmeldebestätigungscode", "Here’s your link to sign in to {{ appName }}.": "Hier ist dein Link zur Anmeldung bei {{ appName }}.", "Use the link below to sign in": "Verwenden Sie den Link unterhalb, um sich einzuloggen", - "If the link expired, you can request a new one from your team’s sign-in page at": "Wenn der Link abgelaufen ist, können Sie auf der Anmeldeseite Ihres Teams unter folgender Adresse einen neuen anfordern", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Wenn der Link abgelaufen ist, können Sie auf der Anmeldeseite Ihres Workspaces unter", "Enter this verification code": "Geben Sie den Verifizierungscode ein", - "If the code expired, you can request a new one from your team’s sign-in page at": "Wenn der Code abgelaufen ist, können Sie auf der Anmeldeseite Ihres Teams unter folgender Adresse einen neuen anfordern", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Wenn der Code abgelaufen ist, können Sie auf der Anmeldeseite Ihres Arbeitsbereichs unter einen neuen anfordern", "Click the button below to sign in to {{ appName }}.": "Klicken Sie auf die Schaltfläche unterhalb, um sich bei {{ appName }} anzumelden.", "Sign-in Code": "Anmeldecode", - "Enter this code on your team’s sign-in page to continue.": "Gib diesen Code auf der Anmeldeseite deines Teams ein, um fortzufahren.", + "Enter this code on your workspace’s sign-in page to continue.": "Geben Sie diesen Code auf der Anmeldeseite Ihres Arbeitsbereichs ein, um fortzufahren.", "Webhook disabled": "Webhook deaktiviert", "Your webhook ({{ webhookName }}) has been disabled": "Ihr Webhook ({{ webhookName }}) wurde deaktiviert", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Ihr Webhook ({{ webhookName }}) wurde aufgrund einer hohen Fehlerquote bei den letzten Zustellversuchen automatisch deaktiviert. Sie können ihn wieder aktivieren, indem Sie den Webhook bearbeiten.", @@ -2007,10 +2055,14 @@ "Hide completed": "Abgeschlossene ausblenden", "Sorry, the link could not be copied": "Der Link konnte leider nicht kopiert werden", "Write a caption": "Untertitel schreiben", - "Display as mention": "Als Erwähnung anzeigen", - "Display as card": "Als Karte anzeigen", "Add title": "Titel hinzufügen", "Add content": "Inhalte hinzufügen", + "Change column filter": "Spaltenfilter ändern", + "Filter column": "Spalte filtern", + "{{ count }} filter applied": "{{ count }} Filter angewendet", + "{{ count }} filter applied_plural": "{{ count }} Filter angewendet", + "Filters cleared for you": "Filter wurden für Sie gelöscht", + "Save for everyone": "Für alle speichern", "Tomorrow": "Morgen", "Group admin": "Admin Gruppe", "Member": "Mitglied" diff --git a/shared/i18n/locales/el_GR/translation.json b/shared/i18n/locales/el_GR/translation.json index c0acc1ce46..6ff051705c 100644 --- a/shared/i18n/locales/el_GR/translation.json +++ b/shared/i18n/locales/el_GR/translation.json @@ -733,6 +733,7 @@ "Integrations": "Ενσωματώσεις", "Back to app": "Πίσω στην εφαρμογή", "Installation": "Εγκατάσταση", + "Available on {{ planName }}": "Διαθέσιμο στο {{ planName }}", "Split pane": "Δευτερεύον πλαίσιο", "Main pane": "Κύριο πλαίσιο", "Unstar document": "Αφαίρεση εγγράφου από τα αγαπημένα", @@ -778,6 +779,7 @@ "Last seen": "Τελευταία εμφάνιση", "{{ time }} local time": "{{ time }} τοπική ώρα", "Your import completed": "Η εισαγωγή σας ολοκληρώθηκε", + "Lock aspect ratio": "Κλείδωμα αναλογίας διαστάσεων", "Templates": "Πρότυπα", "View comment thread": "Προβολή συζήτησης σχολίων", "Previous match": "Προηγούμενη αντιστοιχία", @@ -798,10 +800,13 @@ "Width": "Πλάτος", "Image height": "Ύψος εικόνας", "Height": "Ύψος", + "Aspect ratio locked": "Η αναλογία διαστάσεων είναι κλειδωμένη", + "Aspect ratio unlocked": "Η αναλογία διαστάσεων είναι ξεκλείδωτη", "Paste a link": "Επικολλήστε σύνδεσμο", "Delete embed": "Διαγραφή ενσωμάτωσης", "Delete video": "Διαγραφή βίντεο", "Delete image": "Διαγραφή εικόνας", + "Display options": "Επιλογές εμφάνισης", "{{ userName }} won’t be notified, as they do not have access to this document": "Ο/Η {{ userName }} δεν θα ειδοποιηθεί, επειδή δεν έχει πρόσβαση σε αυτό το έγγραφο", "Members of “{{ groupName }}” with access to this document will be notified": "Τα μέλη της ομάδας “{{ groupName }}” με πρόσβαση σε αυτό το έγγραφο θα ειδοποιηθούν", "Keep as link": "Διατήρηση ως σύνδεσμος", @@ -813,6 +818,25 @@ "Upload file": "Μεταφόρτωση αρχείου", "Paste a link from {{service}}…": "Επικολλήστε έναν σύνδεσμο από το {{service}}…", "Suggestions": "Προτάσεις", + "Showing all rows": "Εμφάνιση όλων των γραμμών", + "Showing {{ visible }} of {{ count }} rows": "Εμφάνιση {{ visible }} από {{ count }} γραμμή", + "Showing {{ visible }} of {{ count }} rows_plural": "Εμφάνιση {{ visible }} από {{ count }} γραμμές", + "Filter {{ columnName }}": "Φιλτράρισμα {{ columnName }}", + "Is": "Είναι", + "Is not": "Δεν είναι", + "Contains": "Περιέχει", + "Does not contain": "Δεν περιέχει", + "Is empty": "Είναι κενό", + "Is not empty": "Δεν είναι κενό", + "Condition": "Συνθήκη", + "Search values": "Αναζήτηση τιμών", + "Values": "Τιμές", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Εμφανίζονται {{ shown }} από {{ total }} τιμές. Κάντε αναζήτηση για να βρείτε περισσότερες.", + "No values match your search.": "Καμία τιμή δεν ταιριάζει με την αναζήτησή σας.", + "This column has no values": "Αυτή η στήλη δεν έχει τιμές", + "{{ visible }} of {{ count }} rows": "{{ visible }} από {{ count }} γραμμή", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} από {{ count }} γραμμές", + "Clear": "Εκκαθάριση", "More options": "Περισσότερες επιλογές", "Type '/' to insert": "Πληκτρολογήστε '/' για εισαγωγή", "Keep typing to filter": "Συνεχίστε να πληκτρολογείτε για φιλτράρισμα", @@ -855,6 +879,8 @@ "Edit image URL": "Επεξεργασία URL εικόνας", "Create a new doc": "Δημιουργία νέου εγγράφου", "Create a nested doc": "Δημιουργία ένθετου εγγράφου", + "Display as mention": "Εμφάνιση ως αναφορά", + "Display as card": "Εμφάνιση ως κάρτα", "Default width": "Προεπιλεγμένο πλάτος", "Distribute columns": "Ομοιόμορφη κατανομή στηλών", "Export as CSV": "Εξαγωγή ως CSV", @@ -874,6 +900,11 @@ "Upload a video": "Μεταφόρτωση βίντεο", "Edit video URL": "Επεξεργασία URL βίντεο", "Could not import file": "Δεν ήταν δυνατή η εισαγωγή του αρχείου", + "Community": "Κοινότητα", + "Standard": "Τυπικό", + "Business": "Επιχειρήσεις", + "Enterprise": "Εταιρικό", + "Legacy": "Παρωχημένο", "Unsubscribed from document": "Καταργήθηκε η εγγραφή από το έγγραφο", "Unsubscribed from collection": "Καταργήθηκε η εγγραφή από τη συλλογή", "Subscription successful": "Η εγγραφή ολοκληρώθηκε", @@ -894,6 +925,8 @@ "Developer": "Προγραμματιστής", "Applications": "Εφαρμογές", "API key": "Κλειδί API", + "Reconnect": "Επανασύνδεση", + "Connected": "Συνδεδεμένο", "Show path to document": "Εμφάνιση διαδρομής προς το έγγραφο", "Comment options": "Επιλογές σχολίου", "Enable viewer insights": "Ενεργοποίηση στατιστικών αναγνωστών", @@ -916,6 +949,7 @@ "Trash options": "Επιλογές κάδου", "User options": "Επιλογές χρήστη", "document": "έγγραφο", + "All collections": "Όλες οι συλλογές", "Export complete": "Η εξαγωγή ολοκληρώθηκε", "Export failed": "Η εξαγωγή απέτυχε", "An unexpected error occurred": "Προέκυψε απρόσμενο σφάλμα", @@ -931,9 +965,13 @@ "invited you to": "σας προσκάλεσε στο", "added you to the group": "σας πρόσθεσε στην ομάδα", "removed you from the group": "σας αφαίρεσε από την ομάδα", + "export completed": "η εξαγωγή ολοκληρώθηκε", + "export failed": "η εξαγωγή απέτυχε", + "export is no longer available": "η εξαγωγή δεν είναι πλέον διαθέσιμη", "was granted access to": "απέκτησε πρόσβαση στο", "requested access to": "ζήτησε πρόσβαση στο", "is requesting access to": "ζητά πρόσβαση στο", + "Your": "Σας", "a document": "ένα έγγραφο", "a collection": "μια συλλογή", "a group": "μια ομάδα", @@ -1031,10 +1069,10 @@ "Document title": "Τίτλος εγγράφου", "Last updated": "Τελευταία ενημέρωση", "Type '/' to insert, or start writing…": "Πληκτρολογήστε '/' για εισαγωγή ή αρχίστε να γράφετε…", + "Save draft": "Αποθήκευση προχείρου", "Hide contents": "Απόκρυψη περιεχομένων", "Show contents": "Εμφάνιση περιεχομένων", "available when headings are added": "διαθέσιμο όταν προστεθούν επικεφαλίδες", - "Save draft": "Αποθήκευση προχείρου", "Restore version": "Επαναφορά έκδοσης", "{{userName}} archived": "Ο/Η {{userName}} αρχειοθέτησε", "{{userName}} restored": "Ο/Η {{userName}} επανέφερε", @@ -1306,7 +1344,6 @@ "Sign in": "Σύνδεση", "Allow members to sign in with {{ authProvider }}": "Να επιτρέπεται στα μέλη η σύνδεση με {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Συνδέστε το {{ authProvider }} για να επιτρέψετε στα μέλη να συνδέονται", - "Connected": "Συνδεδεμένο", "Disabled": "Ανενεργό", "Connect": "Σύνδεση", "Group sync": "Συγχρονισμός ομάδων", @@ -1365,7 +1402,6 @@ "Processing": "Σε επεξεργασία", "Completed": "Ολοκληρώθηκε", "Failed": "Απέτυχε", - "All collections": "Όλες οι συλλογές", "Import deleted": "Η εισαγωγή διαγράφηκε", "Export deleted": "Η εξαγωγή διαγράφηκε", "Are you sure you want to delete this import?": "Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτή την εισαγωγή;", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Αυτό το χρώμα έχει χαμηλή αντίθεση σε σχέση με το χρώμα έμφασης", "Accent color": "Χρώμα έμφασης", "Accent text color": "Χρώμα κειμένου έμφασης", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Αυτή η δυνατότητα περιλαμβάνεται στο {{planName}} και σε ανώτερα προγράμματα. Αναβαθμίστε τον χώρο εργασίας σας για να την ξεκλειδώσετε για την ομάδα σας.", + "View plans": "Προβολή προγραμμάτων", "All roles": "Όλοι οι ρόλοι", "Admins": "Διαχειριστές", "Editors": "Συντάκτες", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Εισαγωγή αρχείου zip με έγγραφα Markdown σε Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Εισαγωγή αρχείου δεδομένων JSON που εξήχθη από άλλη εγκατάσταση {{ appName }}", "Import pages from a Confluence instance": "Εισαγωγή σελίδων από εγκατάσταση Confluence", - "Enterprise": "Εταιρικό", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Μεταφέρετε γρήγορα τα υπάρχοντα έγγραφα, σελίδες και αρχεία σας από άλλα εργαλεία και υπηρεσίες στο {{appName}}. Μπορείτε επίσης να σύρετε και να αφήσετε έγγραφα HTML, Markdown και κειμένου απευθείας σε Συλλογές μέσα στην εφαρμογή.", "Recent imports": "Πρόσφατες εισαγωγές", "Configure a variety of integrations with third-party services.": "Ρυθμίστε διάφορες ενσωματώσεις με εξωτερικές υπηρεσίες.", + "Documents that are published, updated, or shared with you, and access requests": "Έγγραφα που δημοσιεύονται, ενημερώνονται ή κοινοποιούνται σε εσάς και αιτήματα πρόσβασης", "Receive a notification whenever a new document is published": "Λάβετε ειδοποίηση κάθε φορά που δημοσιεύεται νέο έγγραφο", "Document updated": "Το έγγραφο ενημερώθηκε", "Receive a notification when a document you are subscribed to is edited": "Λάβετε ειδοποίηση όταν επεξεργάζεται ένα έγγραφο στο οποίο έχετε εγγραφεί", + "Invited to document": "Πρόσκληση σε έγγραφο", + "Receive a notification when a document is shared with you": "Λάβετε ειδοποίηση όταν ένα έγγραφο κοινοποιείται σε εσάς", + "Document access requested": "Αίτημα πρόσβασης σε έγγραφο", + "Receive a notification when a user requests access to a document you manage": "Λάβετε ειδοποίηση όταν ένας χρήστης ζητά πρόσβαση σε έγγραφο που διαχειρίζεστε", + "New collections and access to collections": "Νέες συλλογές και πρόσβαση σε συλλογές", + "Collection created": "Δημιουργήθηκε συλλογή", + "Receive a notification whenever a new collection is created": "Λάβετε ειδοποίηση κάθε φορά που δημιουργείται νέα συλλογή", + "Invited to collection": "Πρόσκληση σε συλλογή", + "Receive a notification when you are given access to a collection": "Λάβετε ειδοποίηση όταν σας δίνεται πρόσβαση σε συλλογή", + "Comments and mentions": "Σχόλια και αναφορές", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Νέα σχόλια, αναφορές σε εσάς ή στις ομάδες σας, επιλυμένες συζητήσεις και αντιδράσεις", "Comment posted": "Δημοσιεύτηκε σχόλιο", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Λάβετε ειδοποίηση όταν ένα έγγραφο στο οποίο έχετε εγγραφεί ή μια συζήτηση στην οποία συμμετείχατε λαμβάνει σχόλιο", "Mentioned": "Αναφορά σε εσάς", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Λάβετε ειδοποίηση όταν επιλύεται μια συζήτηση σχολίων στην οποία συμμετείχατε", "Reaction added": "Προστέθηκε αντίδραση", "Receive a notification when someone reacts to your comment": "Λάβετε ειδοποίηση όταν κάποιος αντιδρά στο σχόλιό σας", - "Collection created": "Δημιουργήθηκε συλλογή", - "Receive a notification whenever a new collection is created": "Λάβετε ειδοποίηση κάθε φορά που δημιουργείται νέα συλλογή", - "Invite accepted": "Η πρόσκληση έγινε αποδεκτή", - "Receive a notification when someone you invited creates an account": "Λάβετε ειδοποίηση όταν κάποιος που προσκαλέσατε δημιουργεί λογαριασμό", - "Invited to document": "Πρόσκληση σε έγγραφο", - "Receive a notification when a document is shared with you": "Λάβετε ειδοποίηση όταν ένα έγγραφο κοινοποιείται σε εσάς", - "Invited to collection": "Πρόσκληση σε συλλογή", - "Receive a notification when you are given access to a collection": "Λάβετε ειδοποίηση όταν σας δίνεται πρόσβαση σε συλλογή", + "Group membership, accepted invites, and completed exports": "Συμμετοχή σε ομάδες, αποδεκτές προσκλήσεις και ολοκληρωμένες εξαγωγές", "Group membership": "Συμμετοχή σε ομάδες", "Receive a notification when you are added to or removed from a group": "Λάβετε ειδοποίηση όταν προστίθεστε ή αφαιρείστε από ομάδα", + "Invite accepted": "Η πρόσκληση έγινε αποδεκτή", + "Receive a notification when someone you invited creates an account": "Λάβετε ειδοποίηση όταν κάποιος που προσκαλέσατε δημιουργεί λογαριασμό", "Export completed": "Η εξαγωγή ολοκληρώθηκε", "Receive a notification when an export you requested has been completed": "Λάβετε ειδοποίηση όταν ολοκληρωθεί μια εξαγωγή που ζητήσατε", - "Document access requested": "Αίτημα πρόσβασης σε έγγραφο", - "Receive a notification when a user requests access to a document you manage": "Λάβετε ειδοποίηση όταν ένας χρήστης ζητά πρόσβαση σε έγγραφο που διαχειρίζεστε", + "Product updates": "Ενημερώσεις προϊόντος", + "Tips on getting started and announcements of new features": "Συμβουλές για να ξεκινήσετε και ανακοινώσεις νέων λειτουργιών", "Getting started": "Πρώτα βήματα", "Tips on getting started with features and functionality": "Συμβουλές για να ξεκινήσετε με τις λειτουργίες και τις δυνατότητες", "New features": "Νέες λειτουργίες", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Αποτυχία αποθήκευσης έκδοσης", "Invite to document": "Πρόσκληση στο έγγραφο", "Sorry, invalid embed link": "Λυπούμαστε, μη έγκυρος σύνδεσμος ενσωμάτωσης", - "Data Attributes": "Χαρακτηριστικά δεδομένων", + "Data attributes": "Χαρακτηριστικά δεδομένων", "Edit attribute": "Επεξεργασία χαρακτηριστικού", "Property": "Ιδιότητα", "Yes": "Ναι", @@ -1675,7 +1719,7 @@ "Text": "Κείμενο", "List": "Λίστα", "Could not load events": "Δεν ήταν δυνατή η φόρτωση των συμβάντων", - "Audit Log": "Αρχείο ελέγχου", + "Audit log": "Αρχείο ελέγχου", "The audit log details the history of security-related and other events across your knowledge base.": "Το αρχείο καταγραφής ελέγχου περιγράφει λεπτομερώς το ιστορικό συμβάντων που σχετίζονται με την ασφάλεια και άλλων συμβάντων στη βάση γνώσεών σας.", "IP address": "Διεύθυνση IP", "Actor": "Χρήστης", @@ -1818,6 +1862,10 @@ "Script name": "Όνομα script", "The name of the script file that Umami uses to track analytics.": "Το όνομα του αρχείου script που χρησιμοποιεί το Umami για την καταγραφή των analytics.", "An ID that uniquely identifies the website in your Umami instance.": "Ένα ID που προσδιορίζει μοναδικά τον ιστότοπο στην εγκατάσταση Umami.", + "The audit log details the history of security related and other events across your knowledge base.": "Το αρχείο ελέγχου περιγράφει λεπτομερώς το ιστορικό συμβάντων που σχετίζονται με την ασφάλεια και άλλων συμβάντων σε όλη τη βάση γνώσεων σας.", + "Content": "Περιεχόμενο", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Διαχειριστείτε τα δικαιώματα και τις ρυθμίσεις όλων των συλλογών στη βάση γνώσεων. Ως διαχειριστής χώρου εργασίας, μπορείτε επίσης να διαχειρίζεστε ιδιωτικές συλλογές.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Δημιουργήστε αυτόματα ευρετήριο και αναζητήστε περιεχόμενο εγγράφων από το {{appName}} στο Glean σε πραγματικό χρόνο.", "New webhook": "Νέο webhook", "Edit webhook": "Επεξεργασία webhook", "Delete webhook": "Διαγραφή webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "Ο/Η {{ actorName }} ανέφερε την ομάδα «{{ groupName }}» στο έγγραφο «{{ documentTitle }}».", "Your group was mentioned": "Η ομάδα σας αναφέρθηκε", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "Ο/Η {{ actorName }} ανέφερε την ομάδα «{{ groupName }}» στο έγγραφο", - "{{ invitedName }} has joined your {{ appName }} team": "Ο/Η {{ invitedName }} εντάχθηκε στην ομάδα σας στο {{ appName }}", + "{{ invitedName }} has joined your {{ appName }} workspace": "Ο/Η {{ invitedName }} εντάχθηκε στον χώρο εργασίας σας στο {{ appName }}", "Great news, {{ invitedName }} accepted your invitation": "Καλά νέα, ο/η {{ invitedName }} αποδέχτηκε την πρόσκλησή σας", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Καλά νέα, ο/η {{ invitedName }} μόλις αποδέχτηκε την πρόσκλησή σας και δημιούργησε λογαριασμό. Μπορείτε πλέον να συνεργάζεστε σε έγγραφα.", "Open {{ appName }}": "Άνοιγμα {{ appName }}", - "{{ invitedName }} has joined your team": "Ο/Η {{ invitedName }} εντάχθηκε στην ομάδα σας", + "{{ invitedName }} has joined your workspace": "Ο/Η {{ invitedName }} εντάχθηκε στον χώρο εργασίας σας", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "Ο/Η {{ actorName }} σας προσκάλεσε στον χώρο εργασίας {{ teamName }}", "{{ appName }} is a place for your team to build and share knowledge.": "Το {{ appName }} είναι ο χώρος όπου η ομάδα σας δημιουργεί και μοιράζεται γνώση.", "Join {{ teamName }} on {{ appName }}": "Συμμετοχή στο {{ teamName }} στο {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "σας προσκάλεσε στο {{ appName }}, τον χώρο όπου η ομάδα σας δημιουργεί και μοιράζεται γνώση.", "Join now": "Συμμετοχή τώρα", "Reminder": "Υπενθύμιση", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "Μια σύντομη υπενθύμιση ότι ο/η {{ actorName }} {{ actorEmail }} σας προσκάλεσε στην ομάδα {{ teamName }} στο {{ appName }}, τον χώρο όπου η ομάδα σας δημιουργεί και μοιράζεται γνώση.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Μια σύντομη υπενθύμιση ότι ο/η {{ actorName }} {{ actorEmail }} σας προσκάλεσε να συμμετάσχετε στον χώρο εργασίας {{ teamName }} στο {{ appName }}, έναν χώρο όπου η ομάδα σας δημιουργεί και μοιράζεται γνώση.", "We only send a reminder once.": "Στέλνουμε υπενθύμιση μόνο μία φορά.", "If you haven’t signed up yet, you can do so here": "Αν δεν έχετε εγγραφεί ακόμη, μπορείτε να το κάνετε εδώ", "“{{ documentTitle }}” updated": "Το «{{ documentTitle }}» ενημερώθηκε", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Κωδικός επαλήθευσης σύνδεσης", "Here’s your link to sign in to {{ appName }}.": "Ακολουθεί ο σύνδεσμός σας για σύνδεση στο {{ appName }}.", "Use the link below to sign in": "Χρησιμοποιήστε τον παρακάτω σύνδεσμο για να συνδεθείτε", - "If the link expired, you can request a new one from your team’s sign-in page at": "Αν ο σύνδεσμος έχει λήξει, μπορείτε να ζητήσετε νέο από τη σελίδα σύνδεσης της ομάδας σας στη διεύθυνση", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Αν ο σύνδεσμος έχει λήξει, μπορείτε να ζητήσετε νέο από τη σελίδα σύνδεσης του χώρου εργασίας σας στη διεύθυνση", "Enter this verification code": "Εισαγάγετε αυτόν τον κωδικό επαλήθευσης", - "If the code expired, you can request a new one from your team’s sign-in page at": "Αν ο κωδικός έχει λήξει, μπορείτε να ζητήσετε νέο από τη σελίδα σύνδεσης της ομάδας σας στη διεύθυνση", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Αν ο κωδικός έχει λήξει, μπορείτε να ζητήσετε νέο από τη σελίδα σύνδεσης του χώρου εργασίας σας στη διεύθυνση", "Click the button below to sign in to {{ appName }}.": "Κάντε κλικ στο παρακάτω κουμπί για να συνδεθείτε στο {{ appName }}.", "Sign-in Code": "Κωδικός σύνδεσης", - "Enter this code on your team’s sign-in page to continue.": "Εισαγάγετε αυτόν τον κωδικό στη σελίδα σύνδεσης της ομάδας σας για να συνεχίσετε.", + "Enter this code on your workspace’s sign-in page to continue.": "Εισαγάγετε αυτόν τον κωδικό στη σελίδα σύνδεσης του χώρου εργασίας σας για να συνεχίσετε.", "Webhook disabled": "Το webhook απενεργοποιήθηκε", "Your webhook ({{ webhookName }}) has been disabled": "Το webhook σας ({{ webhookName }}) απενεργοποιήθηκε", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Το webhook σας ({{ webhookName }}) απενεργοποιήθηκε αυτόματα λόγω υψηλού ποσοστού αποτυχιών στις πρόσφατες προσπάθειες παράδοσης. Μπορείτε να το ενεργοποιήσετε ξανά επεξεργαζόμενοι το webhook.", @@ -2007,10 +2055,14 @@ "Hide completed": "Απόκρυψη ολοκληρωμένων", "Sorry, the link could not be copied": "Λυπούμαστε, δεν ήταν δυνατή η αντιγραφή του συνδέσμου", "Write a caption": "Γράψτε λεζάντα", - "Display as mention": "Εμφάνιση ως αναφορά", - "Display as card": "Εμφάνιση ως κάρτα", "Add title": "Προσθήκη τίτλου", "Add content": "Προσθήκη περιεχομένου", + "Change column filter": "Αλλαγή φίλτρου στήλης", + "Filter column": "Φιλτράρισμα στήλης", + "{{ count }} filter applied": "{{ count }} φίλτρο εφαρμόστηκε", + "{{ count }} filter applied_plural": "{{ count }} φίλτρα εφαρμόστηκαν", + "Filters cleared for you": "Τα φίλτρα καταργήθηκαν για εσάς", + "Save for everyone": "Αποθήκευση για όλους", "Tomorrow": "Αύριο", "Group admin": "Διαχειριστής ομάδας", "Member": "Μέλος" diff --git a/shared/i18n/locales/en_GB/translation.json b/shared/i18n/locales/en_GB/translation.json index 25849a9c8d..f879849d3e 100644 --- a/shared/i18n/locales/en_GB/translation.json +++ b/shared/i18n/locales/en_GB/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integrations", "Back to app": "Back to app", "Installation": "Installation", + "Available on {{ planName }}": "Available on {{ planName }}", "Split pane": "Split pane", "Main pane": "Main pane", "Unstar document": "Unstar document", @@ -778,6 +779,7 @@ "Last seen": "Last seen", "{{ time }} local time": "{{ time }} local time", "Your import completed": "Your import completed", + "Lock aspect ratio": "Lock the aspect ratio", "Templates": "Templates", "View comment thread": "View comment thread", "Previous match": "Previous match", @@ -798,10 +800,13 @@ "Width": "Width", "Image height": "Image height", "Height": "Height", + "Aspect ratio locked": "The aspect ratio is locked", + "Aspect ratio unlocked": "The aspect ratio is unlocked", "Paste a link": "Paste a link", "Delete embed": "Delete embed", "Delete video": "Delete video", "Delete image": "Delete image", + "Display options": "Display options", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} won’t be notified, as they do not have access to this document", "Members of “{{ groupName }}” with access to this document will be notified": "Members of “{{ groupName }}” who have access to this document will be notified", "Keep as link": "Keep as link", @@ -813,6 +818,25 @@ "Upload file": "Upload file", "Paste a link from {{service}}…": "Paste a link from {{service}}...", "Suggestions": "Suggestions", + "Showing all rows": "Showing all rows", + "Showing {{ visible }} of {{ count }} rows": "Showing {{ visible }} of {{ count }} row", + "Showing {{ visible }} of {{ count }} rows_plural": "Showing {{ visible }} of {{ count }} rows", + "Filter {{ columnName }}": "Filter {{ columnName }}", + "Is": "Is", + "Is not": "Is not", + "Contains": "Contains", + "Does not contain": "Does not contain", + "Is empty": "Is empty", + "Is not empty": "Is not empty", + "Condition": "Condition", + "Search values": "Search values", + "Values": "Values", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Showing {{ shown }} of {{ total }} values. Search to find more.", + "No values match your search.": "No values match your search.", + "This column has no values": "This column has no values", + "{{ visible }} of {{ count }} rows": "{{ visible }} of {{ count }} row", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} of {{ count }} rows", + "Clear": "Clear", "More options": "More options", "Type '/' to insert": "Type '/' to insert", "Keep typing to filter": "Keep typing to filter", @@ -855,6 +879,8 @@ "Edit image URL": "Edit image URL", "Create a new doc": "Create a new doc", "Create a nested doc": "Create a nested doc", + "Display as mention": "Display as mention", + "Display as card": "Display as card", "Default width": "Default width", "Distribute columns": "Distribute columns", "Export as CSV": "Export as CSV", @@ -874,6 +900,11 @@ "Upload a video": "Upload a video", "Edit video URL": "Edit video URL", "Could not import file": "Could not import file", + "Community": "Community", + "Standard": "Standard", + "Business": "Business", + "Enterprise": "Enterprise", + "Legacy": "Legacy", "Unsubscribed from document": "Unsubscribed from document", "Unsubscribed from collection": "Unsubscribed from collection", "Subscription successful": "Subscription successful", @@ -894,6 +925,8 @@ "Developer": "Developer", "Applications": "Applications", "API key": "API key", + "Reconnect": "Reconnect", + "Connected": "Connected", "Show path to document": "Show path to document", "Comment options": "Comment options", "Enable viewer insights": "Enable viewer insights", @@ -916,6 +949,7 @@ "Trash options": "Trash options", "User options": "User options", "document": "document", + "All collections": "All collections", "Export complete": "Export complete", "Export failed": "Export failed", "An unexpected error occurred": "An unexpected error occurred", @@ -931,9 +965,13 @@ "invited you to": "invited you to", "added you to the group": "has added you to the group", "removed you from the group": "has removed you from the group", + "export completed": "Export completed", + "export failed": "Export failed", + "export is no longer available": "Export is no longer available", "was granted access to": "was granted access to", "requested access to": "requested access to", "is requesting access to": "is requesting access to", + "Your": "Your", "a document": "one document", "a collection": "one collection", "a group": "a group", @@ -1031,10 +1069,10 @@ "Document title": "Document title", "Last updated": "Last updated", "Type '/' to insert, or start writing…": "Type '/' to insert, or start writing…", + "Save draft": "Save draft", "Hide contents": "Hide contents", "Show contents": "Show contents", "available when headings are added": "available when headings are added", - "Save draft": "Save draft", "Restore version": "Restore version", "{{userName}} archived": "{{userName}} archived", "{{userName}} restored": "{{userName}} restored", @@ -1306,7 +1344,6 @@ "Sign in": "Log in to your account.", "Allow members to sign in with {{ authProvider }}": "Allow members to sign in with {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Connect {{ authProvider }} to allow members to sign in", - "Connected": "Connected", "Disabled": "Disabled", "Connect": "Connect", "Group sync": "Group sync", @@ -1365,7 +1402,6 @@ "Processing": "Processing", "Completed": "Completed", "Failed": "Failed", - "All collections": "All collections", "Import deleted": "Import deleted", "Export deleted": "Export deleted", "Are you sure you want to delete this import?": "Are you sure you want to delete this import?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "This colour has low contrast against the accent colour", "Accent color": "Accent colour", "Accent text color": "Accent text colour", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.", + "View plans": "View plans", "All roles": "All roles", "Admins": "Admins", "Editors": "Editors", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Import a ZIP file of Markdown documents in the Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Import a JSON data file exported from another {{ appName }} instance", "Import pages from a Confluence instance": "Import pages from a Confluence instance", - "Enterprise": "Enterprise", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.", "Recent imports": "Recent imports", "Configure a variety of integrations with third-party services.": "Configure a variety of integrations with third-party services.", + "Documents that are published, updated, or shared with you, and access requests": "Documents published, updated or shared with you, and access requests", "Receive a notification whenever a new document is published": "Receive a notification whenever a new document is published", "Document updated": "Document updated", "Receive a notification when a document you are subscribed to is edited": "Receive a notification when a document you are subscribed to is edited", + "Invited to document": "Invited to document", + "Receive a notification when a document is shared with you": "Receive a notification when a document is shared with you", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "New collections and access to collections": "New collections and access to collections", + "Collection created": "Collection created", + "Receive a notification whenever a new collection is created": "Receive a notification whenever a new collection is created", + "Invited to collection": "Invited to collection", + "Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection", + "Comments and mentions": "Comments and mentions", + "New comments, mentions of you or your groups, resolved threads, and reactions": "New comments, mentions of you or your groups, resolved threads and reactions", "Comment posted": "Comment posted", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment", "Mentioned": "Mentioned", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Reaction added": "Reaction added", "Receive a notification when someone reacts to your comment": "Receive a notification when someone reacts to your comment", - "Collection created": "Collection created", - "Receive a notification whenever a new collection is created": "Receive a notification whenever a new collection is created", - "Invite accepted": "Invite accepted", - "Receive a notification when someone you invited creates an account": "Receive a notification when someone you invited creates an account", - "Invited to document": "Invited to document", - "Receive a notification when a document is shared with you": "Receive a notification when a document is shared with you", - "Invited to collection": "Invited to collection", - "Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection", + "Group membership, accepted invites, and completed exports": "Group membership, accepted invitations, and completed exports", "Group membership": "Membership of groups", "Receive a notification when you are added to or removed from a group": "Receive a notification whenever you are added to or removed from a group", + "Invite accepted": "Invite accepted", + "Receive a notification when someone you invited creates an account": "Receive a notification when someone you invited creates an account", "Export completed": "Export completed", "Receive a notification when an export you requested has been completed": "Receive a notification when an export you requested has been completed", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Product updates": "Product updates", + "Tips on getting started and announcements of new features": "Tips on getting started and announcements of new features", "Getting started": "Getting started", "Tips on getting started with features and functionality": "Tips on getting started with features and functionality", "New features": "New features", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Failed to save revision", "Invite to document": "Invite to document", "Sorry, invalid embed link": "Sorry, invalid embed link", - "Data Attributes": "Data Attributes", + "Data attributes": "Data attributes", "Edit attribute": "Edit attribute", "Property": "Property", "Yes": "Yes", @@ -1675,7 +1719,7 @@ "Text": "Text", "List": "List", "Could not load events": "Could not load events", - "Audit Log": "Audit Log", + "Audit log": "Audit log", "The audit log details the history of security-related and other events across your knowledge base.": "The audit log records the history of security-related and other events throughout your knowledge base.", "IP address": "IP address", "Actor": "Actor", @@ -1818,6 +1862,10 @@ "Script name": "Script name", "The name of the script file that Umami uses to track analytics.": "The name of the script file that Umami uses to track analytics.", "An ID that uniquely identifies the website in your Umami instance.": "An ID that uniquely identifies the website in your Umami instance.", + "The audit log details the history of security related and other events across your knowledge base.": "The audit log details the history of security-related and other events across your knowledge base.", + "Content": "Content", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Manage the permissions and settings of all collections in the knowledge base. As a workspace administrator, you can also administer private collections.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Automatically index and search document content from {{appName}} within Glean in real time.", "New webhook": "New webhook", "Edit webhook": "Edit webhook", "Delete webhook": "Delete webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", "Your group was mentioned": "Your group was mentioned", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} mentioned the “{{ groupName }}” group in the document", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} has joined your {{ appName }} workspace", "Great news, {{ invitedName }} accepted your invitation": "Great news, {{ invitedName }} accepted your invitation", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} has joined your workspace", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", "Join now": "Join now", "Reminder": "Reminder", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.", "We only send a reminder once.": "We only send a reminder once.", "If you haven’t signed up yet, you can do so here": "If you haven’t signed up yet, you can do so here", "“{{ documentTitle }}” updated": "“{{ documentTitle }}” updated", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Verification code for sign-in", "Here’s your link to sign in to {{ appName }}.": "Here’s your link to sign in to {{ appName }}.", "Use the link below to sign in": "Use the link below to sign in", - "If the link expired, you can request a new one from your team’s sign-in page at": "If the link has expired, you can request a new one from your team’s sign-in page at", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "If the link has expired, you can request a new one from your workspace’s sign-in page at", "Enter this verification code": "Enter this verification code", - "If the code expired, you can request a new one from your team’s sign-in page at": "If the code has expired, you can request a new one from your team’s sign-in page at", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "If the code has expired, you can request a new one from your workspace’s sign-in page at", "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", "Sign-in Code": "Sign-in Code", - "Enter this code on your team’s sign-in page to continue.": "Enter this code on your team’s sign-in page to continue.", + "Enter this code on your workspace’s sign-in page to continue.": "Enter this code on your workspace’s sign-in page to continue.", "Webhook disabled": "Webhook disabled", "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Your webhook ({{ webhookName }}) has been automatically turned off because of a high failure rate in recent delivery attempts. You can turn it back on by editing the webhook.", @@ -2007,10 +2055,14 @@ "Hide completed": "Hide completed", "Sorry, the link could not be copied": "Sorry, the link could not be copied", "Write a caption": "Write a caption", - "Display as mention": "Display as mention", - "Display as card": "Display as card", "Add title": "Add title", "Add content": "Add content", + "Change column filter": "Change column filter", + "Filter column": "Filter column", + "{{ count }} filter applied": "{{ count }} filter applied", + "{{ count }} filter applied_plural": "{{ count }} filters applied", + "Filters cleared for you": "Filters cleared for you", + "Save for everyone": "Save for everyone", "Tomorrow": "Tomorrow", "Group admin": "Group admin", "Member": "Member" diff --git a/shared/i18n/locales/es_ES/translation.json b/shared/i18n/locales/es_ES/translation.json index d01b09459b..cb4345be57 100644 --- a/shared/i18n/locales/es_ES/translation.json +++ b/shared/i18n/locales/es_ES/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integraciones", "Back to app": "Volver a la aplicación", "Installation": "Instalación", + "Available on {{ planName }}": "Disponible en {{ planName }}", "Split pane": "Panel dividido", "Main pane": "Panel principal", "Unstar document": "Eliminar documento de favoritos", @@ -778,6 +779,7 @@ "Last seen": "Visto por última vez", "{{ time }} local time": "{{ time }} hora local", "Your import completed": "Tu importación se completó", + "Lock aspect ratio": "Bloquear relación de aspecto", "Templates": "Plantillas", "View comment thread": "Ver hilo de comentarios", "Previous match": "Coincidencia anterior", @@ -798,10 +800,13 @@ "Width": "Ancho", "Image height": "Alto de la imagen", "Height": "Alto", + "Aspect ratio locked": "Relación de aspecto bloqueada", + "Aspect ratio unlocked": "Relación de aspecto desbloqueada", "Paste a link": "Pegar un enlace", "Delete embed": "Eliminar incrustado", "Delete video": "Eliminar el video", "Delete image": "Eliminar imagen", + "Display options": "Opciones de visualización", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} no recibirá una notificación, ya que no tiene acceso a este documento", "Members of “{{ groupName }}” with access to this document will be notified": "Se notificará a los miembros de “{{ groupName }}” que tengan acceso a este documento", "Keep as link": "Mantener como enlace", @@ -813,6 +818,25 @@ "Upload file": "Subir archivo", "Paste a link from {{service}}…": "Pega un enlace de {{service}}…", "Suggestions": "Sugerencias", + "Showing all rows": "Mostrando todas las filas", + "Showing {{ visible }} of {{ count }} rows": "Mostrando {{ visible }} de {{ count }} fila", + "Showing {{ visible }} of {{ count }} rows_plural": "Mostrando {{ visible }} de {{ count }} filas", + "Filter {{ columnName }}": "Filtrar {{ columnName }}", + "Is": "Es", + "Is not": "No es", + "Contains": "Contiene", + "Does not contain": "No contiene", + "Is empty": "Está vacío", + "Is not empty": "No está vacío", + "Condition": "Condición", + "Search values": "Buscar valores", + "Values": "Valores", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Se muestran {{ shown }} de {{ total }} valores. Busca para encontrar más.", + "No values match your search.": "No hay valores que coincidan con tu búsqueda.", + "This column has no values": "Esta columna no tiene valores", + "{{ visible }} of {{ count }} rows": "{{ visible }} de {{ count }} fila", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} de {{ count }} filas", + "Clear": "Borrar", "More options": "Más opciones", "Type '/' to insert": "Escriba '/' para insertar", "Keep typing to filter": "Sigue escribiendo para filtrar", @@ -855,6 +879,8 @@ "Edit image URL": "Editar URL de la imagen", "Create a new doc": "Crea un nuevo documento", "Create a nested doc": "Crear un documento anidado", + "Display as mention": "Mostrar como mención", + "Display as card": "Mostrar como tarjeta", "Default width": "Ancho predeterminado", "Distribute columns": "Distribuir columnas", "Export as CSV": "Exportar como CSV", @@ -874,6 +900,11 @@ "Upload a video": "Subir un video", "Edit video URL": "Editar la URL del video", "Could not import file": "No se pudo importar el archivo", + "Community": "Comunidad", + "Standard": "Estándar", + "Business": "Empresa", + "Enterprise": "Empresarial", + "Legacy": "Heredado", "Unsubscribed from document": "Desuscrito del documento", "Unsubscribed from collection": "Dado de baja de la colección", "Subscription successful": "La suscripción se ha completado correctamente", @@ -894,6 +925,8 @@ "Developer": "Desarrollador", "Applications": "Aplicaciones", "API key": "Clave API", + "Reconnect": "Reconectar", + "Connected": "Conectado", "Show path to document": "Mostrar ruta al documento", "Comment options": "Opciones de los comentarios", "Enable viewer insights": "Habilitar estadísticas", @@ -916,6 +949,7 @@ "Trash options": "Opciones de la papelera", "User options": "Opciones del usuario", "document": "documento", + "All collections": "Todas las colecciones", "Export complete": "Exportación completada", "Export failed": "Exportación fallida", "An unexpected error occurred": "Se ha producido un error inesperado", @@ -931,9 +965,13 @@ "invited you to": "te invitó a", "added you to the group": "te agregó al grupo", "removed you from the group": "te eliminó del grupo", + "export completed": "exportación completada", + "export failed": "exportación fallida", + "export is no longer available": "la exportación ya no está disponible", "was granted access to": "se le concedió acceso a", "requested access to": "solicitó acceso a", "is requesting access to": "está solicitando acceso a", + "Your": "Su", "a document": "un documento", "a collection": "una colección", "a group": "un grupo", @@ -1031,10 +1069,10 @@ "Document title": "Título del documento", "Last updated": "Última actualización", "Type '/' to insert, or start writing…": "Escribe '/' para insertar, o empieza a escribir…", + "Save draft": "Guardar borrador", "Hide contents": "Ocultar contenidos", "Show contents": "Mostrar contenidos", "available when headings are added": "disponible cuando se añadan encabezados", - "Save draft": "Guardar borrador", "Restore version": "Restaurar versión", "{{userName}} archived": "{{userName}} ha archivado", "{{userName}} restored": "{{userName}} ha restaurado", @@ -1306,7 +1344,6 @@ "Sign in": "Iniciar sesión", "Allow members to sign in with {{ authProvider }}": "Permitir que los miembros inicien sesión con {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Conecta {{ authProvider }} para permitir que los miembros inicien sesión", - "Connected": "Conectado", "Disabled": "Deshabilitado", "Connect": "Conectar", "Group sync": "Sincronización de grupo", @@ -1365,7 +1402,6 @@ "Processing": "Procesando", "Completed": "Completado", "Failed": "Ha fallado", - "All collections": "Todas las colecciones", "Import deleted": "Importación eliminada", "Export deleted": "Exportación eliminada", "Are you sure you want to delete this import?": "¿Estás seguro de que quieres eliminar esta importación?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Este color tiene poco contraste con el color de acento", "Accent color": "Color primario", "Accent text color": "Color del texto primario", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Esta función está incluida en {{planName}} y planes superiores. Actualiza tu espacio de trabajo para desbloquearla para tu equipo.", + "View plans": "Ver planes", "All roles": "Todos los roles", "Admins": "Administradores", "Editors": "Editores", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Importar un archivo zip de documentos Markdown en Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Importar un archivo de datos JSON exportado desde otra instancia {{ appName }}", "Import pages from a Confluence instance": "Importar páginas de una instancia de Confluence", - "Enterprise": "Empresarial", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Transfiere rápidamente tus documentos, páginas y archivos existentes desde otras herramientas y servicios a {{appName}}. También puedes arrastrar y soltar cualquier archivo HTML, Markdown y de texto directamente a Colecciones en la aplicación.", "Recent imports": "Importaciones recientes", "Configure a variety of integrations with third-party services.": "Configurar una variedad de integraciones con servicios de terceros.", + "Documents that are published, updated, or shared with you, and access requests": "Documentos que se publican, actualizan o comparten contigo, y solicitudes de acceso", "Receive a notification whenever a new document is published": "Recibir notificaciones cuando se publique un nuevo documento", "Document updated": "Documento actualizado", "Receive a notification when a document you are subscribed to is edited": "Recibir una notificación cuando un documento al que estás suscrito es editado", + "Invited to document": "Invitado al documento", + "Receive a notification when a document is shared with you": "Recibir una notificación cuando un documento es compartido contigo", + "Document access requested": "Acceso al documento solicitado", + "Receive a notification when a user requests access to a document you manage": "Recibir una notificación cuando un usuario solicita acceso a un documento que administras", + "New collections and access to collections": "Nuevas colecciones y acceso a colecciones", + "Collection created": "Colección creada", + "Receive a notification whenever a new collection is created": "Recibir notificaciones cuando se cree una nueva colección", + "Invited to collection": "Invitado a la colección", + "Receive a notification when you are given access to a collection": "Recibir una notificación cuando se te da acceso a una colección", + "Comments and mentions": "Comentarios y menciones", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Nuevos comentarios, menciones a ti o a tus grupos, hilos resueltos y reacciones", "Comment posted": "Comentario publicado", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Recibir una notificación cuando un documento al que estás suscrito o un hilo en el que has participado recibe un comentario", "Mentioned": "Mencionado", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Recibir una notificación cuando se resuelva un hilo de comentarios en el que participó", "Reaction added": "Reacción añadida", "Receive a notification when someone reacts to your comment": "Recibir una notificación cuando alguien reaccione a tu comentario", - "Collection created": "Colección creada", - "Receive a notification whenever a new collection is created": "Recibir notificaciones cuando se cree una nueva colección", - "Invite accepted": "Invitación aceptada", - "Receive a notification when someone you invited creates an account": "Recibir una notificación cuando alguien que hayas invitado cree una cuenta", - "Invited to document": "Invitado al documento", - "Receive a notification when a document is shared with you": "Recibir una notificación cuando un documento es compartido contigo", - "Invited to collection": "Invitado a la colección", - "Receive a notification when you are given access to a collection": "Recibir una notificación cuando se te da acceso a una colección", + "Group membership, accepted invites, and completed exports": "Membresía de grupos, invitaciones aceptadas y exportaciones completadas", "Group membership": "Membresía de grupos", "Receive a notification when you are added to or removed from a group": "Recibe una notificación cuando te agreguen o eliminen de un grupo", + "Invite accepted": "Invitación aceptada", + "Receive a notification when someone you invited creates an account": "Recibir una notificación cuando alguien que hayas invitado cree una cuenta", "Export completed": "Exportación completada", "Receive a notification when an export you requested has been completed": "Recibir una notificación cuando se complete una exportación que hayas solicitado", - "Document access requested": "Acceso al documento solicitado", - "Receive a notification when a user requests access to a document you manage": "Recibir una notificación cuando un usuario solicita acceso a un documento que administras", + "Product updates": "Actualizaciones del producto", + "Tips on getting started and announcements of new features": "Consejos para comenzar y anuncios de nuevas funciones", "Getting started": "Primeros pasos", "Tips on getting started with features and functionality": "Consejos para empezar con las características y funcionalidades", "New features": "Nuevas características", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Error al guardar la revisión", "Invite to document": "Invitar al documento", "Sorry, invalid embed link": "Enlace incrustado inválido", - "Data Attributes": "Atributos de datos", + "Data attributes": "Atributos de datos", "Edit attribute": "Editar atributo", "Property": "Propiedad", "Yes": "Si", @@ -1675,7 +1719,7 @@ "Text": "Texto", "List": "Lista", "Could not load events": "No se han podido cargar los eventos.", - "Audit Log": "Registro de Auditoría", + "Audit log": "Registro de auditoría", "The audit log details the history of security-related and other events across your knowledge base.": "El registro de auditoría detalla el historial de eventos relacionados con la seguridad y otros eventos de tu base de conocimientos.", "IP address": "Dirección IP", "Actor": "Actor", @@ -1818,6 +1862,10 @@ "Script name": "Nombre del script", "The name of the script file that Umami uses to track analytics.": "El nombre del archivo script que Umami utiliza para el seguimiento de analíticas.", "An ID that uniquely identifies the website in your Umami instance.": "Un ID que identifica de forma única el sitio web en tu instancia de Umami.", + "The audit log details the history of security related and other events across your knowledge base.": "El registro de auditoría detalla el historial de seguridad y otros eventos relacionados con su base de conocimientos.", + "Content": "Contenido", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Administre los permisos y ajustes de todas las colecciones en la base de conocimiento. Como administrador del espacio de trabajo, también puede administrar colecciones privadas.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Indexa y busca automáticamente contenido de documentos de {{appName}} dentro de Glean en tiempo real.", "New webhook": "Nuevo webhook", "Edit webhook": "Editar webhook", "Delete webhook": "Eliminar webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mencionó el grupo “{{ groupName }}” en el documento “{{ documentTitle }}”.", "Your group was mentioned": "Tu grupo ha sido mencionado", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} mencionó al grupo “{{ groupName }}” en el documento", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} se ha unido a tu equipo de {{ appName }}", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} se ha unido a tu espacio de trabajo de {{ appName }}", "Great news, {{ invitedName }} accepted your invitation": "Buenas noticias: {{ invitedName }} aceptó tu invitación", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Buenas noticias, {{ invitedName }} acaba de aceptar tu invitación y ha creado una cuenta. Ahora puedes empezar a colaborar en documentos.", "Open {{ appName }}": "Abrir {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} se ha unido a tu equipo", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} se ha unido a tu espacio de trabajo", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} te ha invitado a unirte al área de trabajo {{ teamName }}", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} es un lugar para que tu equipo pueda construir y compartir conocimientos.", "Join {{ teamName }} on {{ appName }}": "Únase a {{ teamName }} en {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "te ha invitado a unirte a {{ appName }}, un lugar para que tu equipo pueda construir y compartir conocimientos.", "Join now": "Regístrese ahora", "Reminder": "Recordatorio", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "Este es solo un rápido recordatorio de que {{ actorName }} {{ actorEmail }} te ha invitado a unirte al equipo {{ teamName }} en {{ appName }}, un lugar para que tu equipo construya y comparta conocimientos.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Este es solo un breve recordatorio de que {{ actorName }} {{ actorEmail }} te ha invitado a unirte al espacio de trabajo {{ teamName }} en {{ appName }}, un lugar para que tu equipo cree y comparta conocimientos.", "We only send a reminder once.": "Sólo enviamos un recordatorio una vez.", "If you haven’t signed up yet, you can do so here": "Si aún no te has registrado, puedes hacerlo aquí", "“{{ documentTitle }}” updated": "“{{ documentTitle }}” actualizado", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Código de verificación de inicio de sesión", "Here’s your link to sign in to {{ appName }}.": "Aquí tienes tu enlace para iniciar sesión en {{ appName }}.", "Use the link below to sign in": "Usa el enlace de abajo para iniciar sesión", - "If the link expired, you can request a new one from your team’s sign-in page at": "Si el enlace ha caducado, puedes solicitar uno nuevo desde la página de inicio de sesión de tu equipo en", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Si el enlace caducó, puedes solicitar uno nuevo desde la página de inicio de sesión de tu espacio de trabajo en", "Enter this verification code": "Introduzca este código de verificación", - "If the code expired, you can request a new one from your team’s sign-in page at": "Si el código ha caducado, puedes solicitar uno nuevo desde la página de inicio de sesión de tu equipo en", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Si el código caducó, puedes solicitar uno nuevo desde la página de inicio de sesión de tu espacio de trabajo en", "Click the button below to sign in to {{ appName }}.": "Haz clic en el botón de abajo para iniciar sesión en {{ appName }}.", "Sign-in Code": "Código de inicio de sesión", - "Enter this code on your team’s sign-in page to continue.": "Introduce este código en la página de inicio de sesión de tu equipo para continuar.", + "Enter this code on your workspace’s sign-in page to continue.": "Introduce este código en la página de inicio de sesión de tu espacio de trabajo para continuar.", "Webhook disabled": "Webhook Desactivado", "Your webhook ({{ webhookName }}) has been disabled": "Tu webhook ({{ webhookName }}) ha sido deshabilitado", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Tu webhook ({{ webhookName }}) se ha desactivado automáticamente debido a una alta tasa de errores en los intentos de entrega recientes. Puedes volver a activarlo editando el webhook.", @@ -2007,10 +2055,14 @@ "Hide completed": "Ocultar completados", "Sorry, the link could not be copied": "Lo sentimos, no se pudo copiar el enlace", "Write a caption": "Escribe un pie de foto", - "Display as mention": "Mostrar como mención", - "Display as card": "Mostrar como tarjeta", "Add title": "Añadir título", "Add content": "Añadir contenido", + "Change column filter": "Cambiar filtro de columna", + "Filter column": "Filtrar columna", + "{{ count }} filter applied": "{{ count }} filtro aplicado", + "{{ count }} filter applied_plural": "{{ count }} filtros aplicados", + "Filters cleared for you": "Se han borrado los filtros para ti", + "Save for everyone": "Guardar para todos", "Tomorrow": "Mañana", "Group admin": "Administrador de grupo", "Member": "Miembro" diff --git a/shared/i18n/locales/fa_IR/translation.json b/shared/i18n/locales/fa_IR/translation.json index 1cd0fa555b..c7fb13894d 100644 --- a/shared/i18n/locales/fa_IR/translation.json +++ b/shared/i18n/locales/fa_IR/translation.json @@ -733,6 +733,7 @@ "Integrations": "یکپارچه سازی به سرویس های خارجی", "Back to app": "بازگشت به برنامه", "Installation": "نسخه", + "Available on {{ planName }}": "موجود در {{ planName }}", "Split pane": "Split pane", "Main pane": "Main pane", "Unstar document": "حذف ستاره از سند", @@ -778,6 +779,7 @@ "Last seen": "آخرین بازدید", "{{ time }} local time": "{{ time }} به وقت محلی", "Your import completed": "فرآیند ایمپورت شما تکمیل شد", + "Lock aspect ratio": "قفل کردن نسبت ابعاد", "Templates": "قالب‌ها", "View comment thread": "View comment thread", "Previous match": "مورد قبلی", @@ -798,10 +800,13 @@ "Width": "عرض", "Image height": "ارتفاع تصویر", "Height": "ارتفاع", + "Aspect ratio locked": "نسبت ابعاد قفل شد", + "Aspect ratio unlocked": "نسبت ابعاد باز شد", "Paste a link": "جایگذاری لینک", "Delete embed": "حذف جاسازی", "Delete video": "حذف ویدیو", "Delete image": "حذف تصویر", + "Display options": "گزینه‌های نمایش", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} مطلع نخواهد شد، زیرا به این سند دسترسی ندارد", "Members of “{{ groupName }}” with access to this document will be notified": "اعضای «{{ groupName }}» که به این سند دسترسی دارند، مطلع خواهند شد", "Keep as link": "حفظ به‌عنوان لینک", @@ -813,6 +818,25 @@ "Upload file": "Upload file", "Paste a link from {{service}}…": "یک پیوند از {{service}} جای‌گذاری کنید…", "Suggestions": "Suggestions", + "Showing all rows": "نمایش همه ردیف‌ها", + "Showing {{ visible }} of {{ count }} rows": "نمایش {{ visible }} از {{ count }} ردیف", + "Showing {{ visible }} of {{ count }} rows_plural": "نمایش {{ visible }} از {{ count }} ردیف", + "Filter {{ columnName }}": "فیلتر {{ columnName }}", + "Is": "است", + "Is not": "نیست", + "Contains": "شامل است", + "Does not contain": "شامل نمی‌شود", + "Is empty": "خالی است", + "Is not empty": "خالی نیست", + "Condition": "شرط", + "Search values": "جستجوی مقادیر", + "Values": "مقادیر", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "نمایش {{ shown }} از {{ total }} مقدار. برای یافتن موارد بیشتر جستجو کنید.", + "No values match your search.": "هیچ مقداری با جستجوی شما مطابقت ندارد.", + "This column has no values": "این ستون مقداری ندارد", + "{{ visible }} of {{ count }} rows": "{{ visible }} از {{ count }} ردیف", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} از {{ count }} ردیف", + "Clear": "پاک کردن", "More options": "گزینه‌های بیشتر", "Type '/' to insert": "برای درج '/' را تایپ کنید", "Keep typing to filter": "برای جستجو به نوشتن ادامه دهید", @@ -855,6 +879,8 @@ "Edit image URL": "ویرایش آدرس تصویر", "Create a new doc": "ایجاد سند جدید", "Create a nested doc": "Create a nested doc", + "Display as mention": "نمایش به‌صورت منشن", + "Display as card": "نمایش به‌صورت کارت", "Default width": "عرض پیش‌فرض", "Distribute columns": "Distribute columns", "Export as CSV": "خروجی به CSV", @@ -874,6 +900,11 @@ "Upload a video": "بارگذاری ویدیو", "Edit video URL": "ویرایش نشانی اینترنتی ویدیو", "Could not import file": "خطا هنگام افزودن فایل", + "Community": "انجمن", + "Standard": "استاندارد", + "Business": "کسب‌وکار", + "Enterprise": "تجاری", + "Legacy": "قدیمی", "Unsubscribed from document": "دریافت اعلان‌های این سند متوقف شد", "Unsubscribed from collection": "دریافت اعلان‌های این مجموعه متوقف شد", "Subscription successful": "Subscription successful", @@ -894,6 +925,8 @@ "Developer": "توسعه‌دهنده", "Applications": "اپلیکیشن‌ها", "API key": "کلید API", + "Reconnect": "اتصال مجدد", + "Connected": "متصل شد", "Show path to document": "نمایش مسیر سند", "Comment options": "گزینه‌های نظر", "Enable viewer insights": "فعال‌سازی آمار بازدید", @@ -916,6 +949,7 @@ "Trash options": "گزینه‌های سطل زباله", "User options": "گزینه‌های کاربر", "document": "سند", + "All collections": "همه مجموعه ها", "Export complete": "Export complete", "Export failed": "Export failed", "An unexpected error occurred": "An unexpected error occurred", @@ -931,9 +965,13 @@ "invited you to": "شما را به این دعوت کرد", "added you to the group": "شما را به گروه اضافه کرد", "removed you from the group": "شما را از گروه حذف کرد", + "export completed": "خروجی کامل شد", + "export failed": "خروجی ناموفق بود", + "export is no longer available": "خروجی دیگر در دسترس نیست", "was granted access to": "was granted access to", "requested access to": "requested access to", "is requesting access to": "is requesting access to", + "Your": "شما", "a document": "یک سند", "a collection": "یک مجموعه", "a group": "یک گروه", @@ -1031,10 +1069,10 @@ "Document title": "عنوان سند", "Last updated": "آخرین به‌روزرسانی", "Type '/' to insert, or start writing…": "برای درج، '/' را تایپ کنید یا شروع به نوشتن کنید…", + "Save draft": "ذخیره پیش‌نویس", "Hide contents": "مخفی کردن محتوا", "Show contents": "نمایش محتوا", "available when headings are added": "زمانی که عنوان‌ها اضافه شوند فعال می‌شود", - "Save draft": "ذخیره پیش‌نویس", "Restore version": "بازیابی نسخه", "{{userName}} archived": "{{userName}} آرشیو شد", "{{userName}} restored": "{{userName}} بازیابی شد", @@ -1306,7 +1344,6 @@ "Sign in": "ورود", "Allow members to sign in with {{ authProvider }}": "به اعضا اجازه دهید با {{ authProvider }} وارد شوند", "Connect {{ authProvider }} to allow members to sign in": "{{ authProvider }} را متصل کنید تا اعضا بتوانند وارد شوند", - "Connected": "متصل شد", "Disabled": "غیرفعال", "Connect": "اتصال", "Group sync": "Group sync", @@ -1365,7 +1402,6 @@ "Processing": "در حال پردازش", "Completed": "تکمیل شد", "Failed": "ناموفق", - "All collections": "همه مجموعه ها", "Import deleted": "ایمپورت حذف شد", "Export deleted": "خروجی حذف شد", "Are you sure you want to delete this import?": "آیا مطمئن هستید که می‌خواهید این ایمپورت را حذف کنید؟", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "کنتراست این رنگ در برابر رنگ تأکیدی کم است", "Accent color": "رنگ تأکید", "Accent text color": "رنگ متن تأکید", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "این ویژگی در {{planName}} و طرح‌های بالاتر گنجانده شده است. برای فعال‌سازی آن برای تیم خود، فضای کاری‌تان را ارتقا دهید.", + "View plans": "مشاهده طرح‌ها", "All roles": "همه نقش‌ها", "Admins": "مدیران", "Editors": "ویرایشگران", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "یک فایل zip از اسناد Markdown در قالب دانش باز را وارد کنید", "Import a JSON data file exported from another {{ appName }} instance": "وارد کردن یک فایل داده JSON خروجی شده از یک نمونه دیگر {{ appName }}", "Import pages from a Confluence instance": "وارد کردن صفحات از یک نمونه Confluence", - "Enterprise": "تجاری", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "به سرعت اسناد، صفحات و فایل‌های موجود خود را از ابزارها و خدمات دیگر به {{appName}} منتقل کنید. همچنین می‌توانید هر سند HTML، Markdown و متنی را به‌طور مستقیم به مجموعه‌ها در برنامه بکشید و رها کنید.", "Recent imports": "وارد شده‌های اخیر", "Configure a variety of integrations with third-party services.": "تنظیمات مختلفی را برای ادغام با سرویس های دیگر پیکربندی کنید.", + "Documents that are published, updated, or shared with you, and access requests": "اسنادی که منتشر، به‌روزرسانی یا با شما به اشتراک گذاشته می‌شوند، و درخواست‌های دسترسی", "Receive a notification whenever a new document is published": "هر زمان سند جدیدی منتشر شد، اعلانی دریافت کنید", "Document updated": "به‌روزرسانی سند", "Receive a notification when a document you are subscribed to is edited": "هر زمان که سندی که به آن اشتراک دارید ویرایش شد، اعلانی دریافت کنید", + "Invited to document": "به سند دعوت شده‌اید", + "Receive a notification when a document is shared with you": "هر زمان که سندی با شما به اشتراک گذاشته شود، اعلانی دریافت کنید", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "New collections and access to collections": "مجموعه‌های جدید و دسترسی به مجموعه‌ها", + "Collection created": "مجموعه ایجاد شد", + "Receive a notification whenever a new collection is created": "هر زمان مجموعه جدیدی ایجاد شد، اعلانی دریافت کنید", + "Invited to collection": "به مجموعه دعوت شده‌اید", + "Receive a notification when you are given access to a collection": "هر زمان که به یک مجموعه دسترسی پیدا کنید، اعلانی دریافت کنید", + "Comments and mentions": "نظرها و اشاره‌ها", + "New comments, mentions of you or your groups, resolved threads, and reactions": "نظرهای جدید، اشاره به شما یا گروه‌هایتان، رشته‌های حل‌شده و واکنش‌ها", "Comment posted": "نظر ارسال شد", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "هر زمان که سندی که به آن اشتراک دارید یا موضوعی که در آن شرکت کرده‌اید نظری دریافت کرد، اعلانی دریافت کنید", "Mentioned": "ذکر شده", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "هر زمان که موضوع نظری که در آن شرکت کرده‌اید حل و فصل شد، اعلانی دریافت کنید", "Reaction added": "واکنش اضافه شد", "Receive a notification when someone reacts to your comment": "هر زمان که کسی به نظر شما واکنش نشان دهد، اعلانی دریافت کنید", - "Collection created": "مجموعه ایجاد شد", - "Receive a notification whenever a new collection is created": "هر زمان مجموعه جدیدی ایجاد شد، اعلانی دریافت کنید", - "Invite accepted": "دعوت پذیرفته شد", - "Receive a notification when someone you invited creates an account": "هر زمان که کسی که شما دعوت کرده‌اید حساب کاربری ایجاد کند، اعلانی دریافت کنید", - "Invited to document": "به سند دعوت شده‌اید", - "Receive a notification when a document is shared with you": "هر زمان که سندی با شما به اشتراک گذاشته شود، اعلانی دریافت کنید", - "Invited to collection": "به مجموعه دعوت شده‌اید", - "Receive a notification when you are given access to a collection": "هر زمان که به یک مجموعه دسترسی پیدا کنید، اعلانی دریافت کنید", + "Group membership, accepted invites, and completed exports": "عضویت در گروه، دعوت‌نامه‌های پذیرفته‌شده و خروجی‌های تکمیل‌شده", "Group membership": "عضویت در گروه", "Receive a notification when you are added to or removed from a group": "هنگامی که به گروهی اضافه یا از آن حذف می‌شوید، اعلانی دریافت کنید", + "Invite accepted": "دعوت پذیرفته شد", + "Receive a notification when someone you invited creates an account": "هر زمان که کسی که شما دعوت کرده‌اید حساب کاربری ایجاد کند، اعلانی دریافت کنید", "Export completed": "خروجی ها کامل شد", "Receive a notification when an export you requested has been completed": "هر زمان که خروجی های که درخواست کرده‌اید کامل شد، اعلانی دریافت کنید", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Product updates": "به‌روزرسانی‌های محصول", + "Tips on getting started and announcements of new features": "نکته‌هایی برای شروع کار و اعلام قابلیت‌های جدید", "Getting started": "راهنمای شروع به کار", "Tips on getting started with features and functionality": "نکاتی برای شروع کار با ویژگی‌ها و عملکردها", "New features": "ویژگی‌های جدید", @@ -1643,7 +1687,7 @@ "Failed to save revision": "ذخیره ویرایش با خطا مواجه شد", "Invite to document": "دعوت به سند", "Sorry, invalid embed link": "متاسفم، لینک جاسازی نامعتبر است", - "Data Attributes": "ویژگی‌های داده", + "Data attributes": "ویژگی‌های داده", "Edit attribute": "ویرایش ویژگی", "Property": "ویژگی", "Yes": "بله", @@ -1675,7 +1719,7 @@ "Text": "متن", "List": "لیست", "Could not load events": "رویداد ها بارگذاری نشدند", - "Audit Log": "گزارش حساب ها", + "Audit log": "گزارش ممیزی", "The audit log details the history of security-related and other events across your knowledge base.": "گزارش ممیزی، تاریخچه رویدادهای مرتبط با امنیت و دیگر رویدادها را در سراسر پایگاه دانش شما با جزئیات نشان می‌دهد.", "IP address": "آدرس IP", "Actor": "عامل", @@ -1818,6 +1862,10 @@ "Script name": "نام اسکریپت", "The name of the script file that Umami uses to track analytics.": "نام فایل اسکریپتی که Umami برای ردیابی تحلیل‌ها استفاده می‌کند.", "An ID that uniquely identifies the website in your Umami instance.": "شناسه‌ای که سایت را در نمونه Umami شما به‌صورت یکتا شناسایی می‌کند.", + "The audit log details the history of security related and other events across your knowledge base.": "گزارش حساب ها تاریخچه رویدادهای مربوط به امنیت و سایر رویدادها را در پایگاه دانش شما جزئیات می‌دهد.", + "Content": "محتوا", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "مدیریت مجوزها و تنظیمات تمام مجموعه‌ها در پایگاه دانش. به عنوان یک مدیر فضای کاری، شما همچنین می‌توانید مجموعه‌های خصوصی را مدیریت کنید.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "محتوای اسناد را از {{appName}} در Glean به‌صورت بلادرنگ به‌طور خودکار نمایه‌سازی و جستجو کنید.", "New webhook": "Webhook جدید", "Edit webhook": "ویرایش وب هوک", "Delete webhook": "حذف وب هوک", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", "Your group was mentioned": "Your group was mentioned", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} در سند از گروه «{{ groupName }}» نام برد", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} به فضای کاری {{ appName }} شما پیوست", "Great news, {{ invitedName }} accepted your invitation": "خبر خوب، {{ invitedName }} دعوت شما را پذیرفت", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} به فضای کاری شما پیوست", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", "Join now": "Join now", "Reminder": "Reminder", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "این فقط یادآوری کوتاهی است که {{ actorName }} {{ actorEmail }} از شما دعوت کرده است تا در فضای کاری {{ teamName }} در {{ appName }} به آن‌ها بپیوندید؛ جایی برای تیم شما تا دانش بسازید و به اشتراک بگذارید.", "We only send a reminder once.": "We only send a reminder once.", "If you haven’t signed up yet, you can do so here": "اگر هنوز ثبت‌نام نکرده‌اید، می‌توانید از اینجا ثبت‌نام کنید", "“{{ documentTitle }}” updated": "«{{ documentTitle }}» به‌روزرسانی شد", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "کد تأیید ورود", "Here’s your link to sign in to {{ appName }}.": "پیوند ورود شما به {{ appName }} در اینجاست.", "Use the link below to sign in": "Use the link below to sign in", - "If the link expired, you can request a new one from your team’s sign-in page at": "اگر لینک منقضی شده است، می‌توانید از صفحه ورود تیم‌تان در نشانی زیر، لینک جدیدی درخواست کنید", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "اگر پیوند منقضی شده است، می‌توانید از صفحه ورود فضای کاری خود در نشانی زیر، پیوند جدیدی درخواست کنید", "Enter this verification code": "Enter this verification code", - "If the code expired, you can request a new one from your team’s sign-in page at": "اگر کد منقضی شده است، می‌توانید از صفحه ورود تیم‌تان در نشانی زیر، کد جدیدی درخواست کنید", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "اگر کد منقضی شده است، می‌توانید از صفحه ورود فضای کاری خود در نشانی زیر، کد جدیدی درخواست کنید", "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", "Sign-in Code": "Sign-in Code", - "Enter this code on your team’s sign-in page to continue.": "برای ادامه، این کد را در صفحهٔ ورود تیم‌تان وارد کنید.", + "Enter this code on your workspace’s sign-in page to continue.": "برای ادامه، این کد را در صفحه ورود فضای کاری خود وارد کنید.", "Webhook disabled": "Webhook disabled", "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "وب‌هوک شما ({{ webhookName }}) به‌دلیل نرخ بالای خطا در تلاش‌های اخیر برای ارسال، به‌طور خودکار غیرفعال شده است. می‌توانید با ویرایش وب‌هوک آن را دوباره فعال کنید.", @@ -2007,10 +2055,14 @@ "Hide completed": "Hide completed", "Sorry, the link could not be copied": "Sorry, the link could not be copied", "Write a caption": "عنوانی بنویسید", - "Display as mention": "نمایش به‌صورت منشن", - "Display as card": "نمایش به‌صورت کارت", "Add title": "Add title", "Add content": "Add content", + "Change column filter": "تغییر فیلتر ستون", + "Filter column": "فیلتر ستون", + "{{ count }} filter applied": "{{ count }} فیلتر اعمال شد", + "{{ count }} filter applied_plural": "{{ count }} فیلتر اعمال شد", + "Filters cleared for you": "فیلترها برای شما پاک شدند", + "Save for everyone": "ذخیره برای همه", "Tomorrow": "Tomorrow", "Group admin": "مدیر گروه", "Member": "عضو" diff --git a/shared/i18n/locales/fr_FR/translation.json b/shared/i18n/locales/fr_FR/translation.json index b5913d8b40..1673217ba2 100644 --- a/shared/i18n/locales/fr_FR/translation.json +++ b/shared/i18n/locales/fr_FR/translation.json @@ -733,6 +733,7 @@ "Integrations": "Intégrations", "Back to app": "Retour à l’application", "Installation": "Installation", + "Available on {{ planName }}": "Disponible avec {{ planName }}", "Split pane": "Diviser le panneau", "Main pane": "Panneau principal", "Unstar document": "Retirer le document des favoris", @@ -778,6 +779,7 @@ "Last seen": "Dernière connexion", "{{ time }} local time": "{{ time }} heure locale", "Your import completed": "Votre importation est terminée", + "Lock aspect ratio": "Verrouiller les proportions", "Templates": "Modèles", "View comment thread": "Voir le fil de commentaires", "Previous match": "Occurence précédente", @@ -798,10 +800,13 @@ "Width": "Largeur", "Image height": "Hauteur de l'image", "Height": "Hauteur", + "Aspect ratio locked": "Proportions verrouillées", + "Aspect ratio unlocked": "Proportions déverrouillées", "Paste a link": "Coller un lien", "Delete embed": "Supprimer l'intégration", "Delete video": "Supprimer la vidéo", "Delete image": "Supprimer l'image", + "Display options": "Options d’affichage", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} ne sera pas averti, car cette personne n’a pas accès à ce document", "Members of “{{ groupName }}” with access to this document will be notified": "Les membres de « {{ groupName }} » ayant accès à ce document seront avertis", "Keep as link": "Garder comme lien", @@ -813,6 +818,25 @@ "Upload file": "Téléverser un fichier", "Paste a link from {{service}}…": "Collez un lien depuis {{service}}…", "Suggestions": "Propositions", + "Showing all rows": "Affichage de toutes les lignes", + "Showing {{ visible }} of {{ count }} rows": "Affichage de {{ visible }} ligne sur {{ count }}", + "Showing {{ visible }} of {{ count }} rows_plural": "Affichage de {{ visible }} lignes sur {{ count }}", + "Filter {{ columnName }}": "Filtrer {{ columnName }}", + "Is": "Est", + "Is not": "N’est pas", + "Contains": "Contient", + "Does not contain": "Ne contient pas", + "Is empty": "Est vide", + "Is not empty": "N'est pas vide", + "Condition": "Condition", + "Search values": "Rechercher des valeurs", + "Values": "Valeurs", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Affichage de {{ shown }} valeurs sur {{ total }}. Recherchez pour en trouver davantage.", + "No values match your search.": "Aucune valeur ne correspond à votre recherche.", + "This column has no values": "Cette colonne ne comporte aucune valeur", + "{{ visible }} of {{ count }} rows": "{{ visible }} ligne sur {{ count }}", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} lignes sur {{ count }}", + "Clear": "Effacer", "More options": "Plus d'options", "Type '/' to insert": "Saisir '/' pour insérer", "Keep typing to filter": "Continuez à taper pour filtrer", @@ -855,6 +879,8 @@ "Edit image URL": "Modifier l'URL de l'image", "Create a new doc": "Créer un nouveau doc", "Create a nested doc": "Créer un document imbriqué", + "Display as mention": "Afficher comme mention", + "Display as card": "Afficher comme carte", "Default width": "Largeur par défaut", "Distribute columns": "Répartir les colonnes", "Export as CSV": "Exporter en CSV", @@ -874,6 +900,11 @@ "Upload a video": "Ajouter une vidéo", "Edit video URL": "Modifier l’URL de la vidéo", "Could not import file": "Le fichier n'a pas pu être importé", + "Community": "Communauté", + "Standard": "Standard", + "Business": "Professionnel", + "Enterprise": "Entreprise", + "Legacy": "Héritage", "Unsubscribed from document": "Se désabonner du document", "Unsubscribed from collection": "Désabonné de la collection", "Subscription successful": "Abonnement réussi", @@ -894,6 +925,8 @@ "Developer": "Développeur", "Applications": "Applications", "API key": "Clé API", + "Reconnect": "Reconnexion", + "Connected": "Connecté", "Show path to document": "Afficher le chemin d'accès au document", "Comment options": "Options des commentaires", "Enable viewer insights": "Activer le visualisateur d'analyses", @@ -916,6 +949,7 @@ "Trash options": "Options de la corbeille", "User options": "Options utilisateur", "document": "document", + "All collections": "Toutes les collections", "Export complete": "Export terminé", "Export failed": "Échec de l'export", "An unexpected error occurred": "Une erreur inattendue s’est produite", @@ -931,9 +965,13 @@ "invited you to": "vous a invité à", "added you to the group": "vous a ajouté au groupe", "removed you from the group": "vous a retiré du groupe", + "export completed": "export terminé", + "export failed": "échec de l'export", + "export is no longer available": "l’export n’est plus disponible", "was granted access to": "a obtenu l’accès à", "requested access to": "a demandé l’accès à", "is requesting access to": "demande l’accès à", + "Your": "Votre", "a document": "un document", "a collection": "une collection", "a group": "un groupe", @@ -1031,10 +1069,10 @@ "Document title": "Titre du document", "Last updated": "Dernière mise à jour", "Type '/' to insert, or start writing…": "Tapez '/' pour insérer, ou commencez à écrire…", + "Save draft": "Enregistrer le brouillon", "Hide contents": "Masquer le contenu", "Show contents": "Afficher le contenu", "available when headings are added": "disponible lorsque les en-têtes sont ajoutés", - "Save draft": "Enregistrer le brouillon", "Restore version": "Restaurer cette version", "{{userName}} archived": "{{userName}} a archivé", "{{userName}} restored": "{{userName}} a restauré", @@ -1306,7 +1344,6 @@ "Sign in": "Se connecter", "Allow members to sign in with {{ authProvider }}": "Autoriser les membres à se connecter avec {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Connectez {{ authProvider }} pour autoriser les membres à se connecter", - "Connected": "Connecté", "Disabled": "Désactivé", "Connect": "Se connecter", "Group sync": "Synchronisation des groupes", @@ -1365,7 +1402,6 @@ "Processing": "Traitement en cours", "Completed": "Terminé", "Failed": "Échoué", - "All collections": "Toutes les collections", "Import deleted": "Importation supprimée", "Export deleted": "Exportation supprimée", "Are you sure you want to delete this import?": "Voulez-vous vraiment supprimer cette importation ?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Cette couleur présente un faible contraste par rapport à la couleur d’accentuation", "Accent color": "Couleur d'accentuation", "Accent text color": "Couleur de mise en exergue du texte", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Cette fonctionnalité est incluse dans {{planName}} et les forfaits supérieurs. Mettez à niveau votre espace de travail pour la débloquer pour votre équipe.", + "View plans": "Voir les forfaits", "All roles": "Tous les rôles", "Admins": "Administrateurs", "Editors": "Éditeurs", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Importer un fichier zip de documents Markdown au format Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Importer un fichier de données JSON exporté depuis une autre instance {{ appName }}", "Import pages from a Confluence instance": "Importer des pages depuis une instance Confluence", - "Enterprise": "Entreprise", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Transférez rapidement vos documents, pages et fichiers existants à partir d'autres outils et services vers {{appName}}. Vous pouvez également glisser-déposer n'importe quel document HTML, Markdown et texte dans les collections de l'application.", "Recent imports": "Importé récemment", "Configure a variety of integrations with third-party services.": "Configurer une variété d'intégration avec des services tiers.", + "Documents that are published, updated, or shared with you, and access requests": "Documents publiés, mis à jour ou partagés avec vous, et demandes d’accès", "Receive a notification whenever a new document is published": "Recevez une notification chaque fois qu'un nouveau document est publié", "Document updated": "Document mis à jour", "Receive a notification when a document you are subscribed to is edited": "Recevez une notification lorsqu'un document auquel vous êtes abonné est modifié", + "Invited to document": "Invité dans le document", + "Receive a notification when a document is shared with you": "Recevoir une notification lorsqu'un document est partagé avec vous", + "Document access requested": "Accès au document demandé", + "Receive a notification when a user requests access to a document you manage": "Recevoir une notification lorsqu’un utilisateur demande l’accès à un document que vous gérez", + "New collections and access to collections": "Nouvelles collections et accès aux collections", + "Collection created": "Collection créée", + "Receive a notification whenever a new collection is created": "Recevez une notification à chaque fois qu'une nouvelle collection est créée", + "Invited to collection": "Invité dans la collection", + "Receive a notification when you are given access to a collection": "Recevoir une notification lorsque vous avez accès à une collection", + "Comments and mentions": "Commentaires et mentions", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Nouveaux commentaires, mentions de vous ou de vos groupes, fils de discussion résolus et réactions", "Comment posted": "Commentaire publié", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Recevez une notification lorsqu'un commentaire est déposé sur un document auquel vous êtes abonné ou dans un fil de discussion auquel vous avez participé", "Mentioned": "Mentionné", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Recevoir une notification lorsqu'un sujet de commentaire auquel vous avez participé est résolu", "Reaction added": "Réaction ajoutée", "Receive a notification when someone reacts to your comment": "Recevoir une notification lorsque quelqu'un réagit à votre commentaire", - "Collection created": "Collection créée", - "Receive a notification whenever a new collection is created": "Recevez une notification à chaque fois qu'une nouvelle collection est créée", - "Invite accepted": "Invitation acceptée", - "Receive a notification when someone you invited creates an account": "Recevez une notification lorsqu'une personne que vous avez invitée crée un compte", - "Invited to document": "Invité dans le document", - "Receive a notification when a document is shared with you": "Recevoir une notification lorsqu'un document est partagé avec vous", - "Invited to collection": "Invité dans la collection", - "Receive a notification when you are given access to a collection": "Recevoir une notification lorsque vous avez accès à une collection", + "Group membership, accepted invites, and completed exports": "Appartenance à des groupes, invitations acceptées et exportations terminées", "Group membership": "Appartenance à un groupe", "Receive a notification when you are added to or removed from a group": "Recevoir une notification lorsque vous êtes ajouté à un groupe ou retiré d’un groupe", + "Invite accepted": "Invitation acceptée", + "Receive a notification when someone you invited creates an account": "Recevez une notification lorsqu'une personne que vous avez invitée crée un compte", "Export completed": "Export terminé", "Receive a notification when an export you requested has been completed": "Recevoir une notification une fois l'export terminé", - "Document access requested": "Accès au document demandé", - "Receive a notification when a user requests access to a document you manage": "Recevoir une notification lorsqu’un utilisateur demande l’accès à un document que vous gérez", + "Product updates": "Mises à jour du produit", + "Tips on getting started and announcements of new features": "Conseils pour bien démarrer et annonces de nouvelles fonctionnalités", "Getting started": "Premiers Pas", "Tips on getting started with features and functionality": "Conseils pour aborder les fonctionnalités et le fonctionnement d'Outline", "New features": "Nouvelles fonctionnalités", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Échec de l'enregistrement de la révision", "Invite to document": "Inviter dans le document", "Sorry, invalid embed link": "Désolé, lien d'intégration non valide", - "Data Attributes": "Attributs de données", + "Data attributes": "Attributs de données", "Edit attribute": "Éditer l'attribut", "Property": "Propriété", "Yes": "Oui", @@ -1675,7 +1719,7 @@ "Text": "Texte", "List": "Liste", "Could not load events": "Impossible de charger les événements", - "Audit Log": "Journal d'audit", + "Audit log": "Journal d'audit", "The audit log details the history of security-related and other events across your knowledge base.": "Le journal d'audit détaille l'historique des événements liés à la sécurité et d'autres événements dans votre base de connaissances.", "IP address": "Adresse IP", "Actor": "Acteur", @@ -1818,6 +1862,10 @@ "Script name": "Nom du script", "The name of the script file that Umami uses to track analytics.": "Le nom du fichier de script que Umami utilise pour compter les statistiques.", "An ID that uniquely identifies the website in your Umami instance.": "Un ID qui identifie de manière unique le site web dans votre instance Umami.", + "The audit log details the history of security related and other events across your knowledge base.": "Le journal d'audit détaille l'historique des événements liés à la sécurité et d'autres événements dans votre base de connaissances.", + "Content": "Contenu", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Gérer les permissions et les paramètres de toutes les collections de la base de connaissances. En tant qu'administrateur de l'espace de travail, vous pouvez également administrer des collections privées.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Indexer et rechercher automatiquement le contenu des documents provenant de {{appName}} dans Glean en temps réel.", "New webhook": "Nouveau webhook", "Edit webhook": "Modifier le webhook", "Delete webhook": "Supprimer le webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} a mentionné le groupe « {{ groupName }} » dans le document « {{ documentTitle }} ».", "Your group was mentioned": "Votre groupe a été mentionné", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} a mentionné le groupe « {{ groupName }} » dans le document", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} a rejoint votre équipe {{ appName }}", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} a rejoint votre espace de travail {{ appName }}", "Great news, {{ invitedName }} accepted your invitation": "Bonne nouvelle, {{ invitedName }} a accepté votre invitation", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Bonne nouvelle, {{ invitedName }} vient d’accepter votre invitation et a créé un compte. Vous pouvez désormais commencer à collaborer sur des documents.", "Open {{ appName }}": "Ouvrir {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} a rejoint votre équipe", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} a rejoint votre espace de travail", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} vous a invité à rejoindre l’espace de travail de {{ teamName }}", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} est un espace où votre équipe peut créer et partager des connaissances.", "Join {{ teamName }} on {{ appName }}": "Rejoindre {{ teamName }} sur {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "vous a invité à rejoindre {{ appName }}, un espace où votre équipe peut créer et partager des connaissances.", "Join now": "Rejoindre maintenant", "Reminder": "Rappel", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "Ceci est un simple rappel : {{ actorName }} {{ actorEmail }} vous a invité à les rejoindre dans l’équipe {{ teamName }} sur {{ appName }}, un espace où votre équipe peut créer et partager des connaissances.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Ceci est simplement un petit rappel : {{ actorName }} {{ actorEmail }} vous a invité à rejoindre l’espace de travail {{ teamName }} sur {{ appName }}, un endroit où votre équipe peut créer et partager des connaissances.", "We only send a reminder once.": "Nous n’envoyons qu’un seul rappel.", "If you haven’t signed up yet, you can do so here": "Si vous ne vous êtes pas encore inscrit, vous pouvez le faire ici", "“{{ documentTitle }}” updated": "« {{ documentTitle }} » mis à jour", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Code de vérification de connexion", "Here’s your link to sign in to {{ appName }}.": "Voici votre lien pour vous connecter à {{ appName }}.", "Use the link below to sign in": "Utilisez le lien ci-dessous pour vous connecter", - "If the link expired, you can request a new one from your team’s sign-in page at": "Si le lien a expiré, vous pouvez en demander un nouveau depuis la page de connexion de votre équipe à l'adresse", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Si le lien a expiré, vous pouvez en demander un nouveau depuis la page de connexion de votre espace de travail à l’adresse suivante", "Enter this verification code": "Saisissez ce code de vérification", - "If the code expired, you can request a new one from your team’s sign-in page at": "Si le code a expiré, vous pouvez en demander un nouveau depuis la page de connexion de votre équipe à l'adresse", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Si le code a expiré, vous pouvez en demander un nouveau depuis la page de connexion de votre espace de travail à l’adresse suivante", "Click the button below to sign in to {{ appName }}.": "Cliquez sur le bouton ci-dessous pour vous connecter à {{ appName }}.", "Sign-in Code": "Code de connexion", - "Enter this code on your team’s sign-in page to continue.": "Saisissez ce code sur la page de connexion de votre équipe pour continuer.", + "Enter this code on your workspace’s sign-in page to continue.": "Saisissez ce code sur la page de connexion de votre espace de travail pour continuer.", "Webhook disabled": "Webhook désactivé", "Your webhook ({{ webhookName }}) has been disabled": "Votre webhook ({{ webhookName }}) a été désactivé", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Votre webhook ({{ webhookName }}) a été automatiquement désactivé en raison d’un taux élevé d’échecs lors de récentes tentatives de livraison. Vous pouvez le réactiver en modifiant le webhook.", @@ -2007,10 +2055,14 @@ "Hide completed": "Cacher les complétés", "Sorry, the link could not be copied": "Désolé, le lien n’a pas pu être copié", "Write a caption": "Ajoutez une légende", - "Display as mention": "Afficher comme mention", - "Display as card": "Afficher comme carte", "Add title": "Ajouter un titre", "Add content": "Ajouter du contenu", + "Change column filter": "Modifier le filtre de colonne", + "Filter column": "Filtrer la colonne", + "{{ count }} filter applied": "{{ count }} filtre appliqué", + "{{ count }} filter applied_plural": "{{ count }} filtres appliqués", + "Filters cleared for you": "Filtres effacés pour vous", + "Save for everyone": "Enregistrer pour tout le monde", "Tomorrow": "Demain", "Group admin": "Admin du groupe", "Member": "Membre" diff --git a/shared/i18n/locales/he_IL/translation.json b/shared/i18n/locales/he_IL/translation.json index 14e0be6684..56af8aac10 100644 --- a/shared/i18n/locales/he_IL/translation.json +++ b/shared/i18n/locales/he_IL/translation.json @@ -733,6 +733,7 @@ "Integrations": "אינטגרציות", "Back to app": "חזרה לאפליקציה", "Installation": "הַתקָנָה", + "Available on {{ planName }}": "זמין ב־{{ planName }}", "Split pane": "Split pane", "Main pane": "Main pane", "Unstar document": "הסר כוכב במסמך", @@ -778,6 +779,7 @@ "Last seen": "נראה לאחרונה", "{{ time }} local time": "{{ time }} לפי השעה המקומית", "Your import completed": "הייבוא ​​שלך הושלם", + "Lock aspect ratio": "נעל יחס גובה־רוחב", "Templates": "תבניות", "View comment thread": "View comment thread", "Previous match": "משחק קודם", @@ -798,10 +800,13 @@ "Width": "רוֹחַב", "Image height": "גובה התמונה", "Height": "גוֹבַה", + "Aspect ratio locked": "יחס גובה־רוחב נעול", + "Aspect ratio unlocked": "יחס גובה־רוחב לא נעול", "Paste a link": "הדבק קישור", "Delete embed": "מחק הטמעה", "Delete video": "מחק סרטון", "Delete image": "מחק תמונה", + "Display options": "אפשרויות תצוגה", "{{ userName }} won’t be notified, as they do not have access to this document": "לא תישלח הודעה אל {{ userName }}, מכיוון שאין להם גישה למסמך זה", "Members of “{{ groupName }}” with access to this document will be notified": "חברי “{{ groupName }}” בעלי גישה למסמך זה יקבלו הודעה", "Keep as link": "שמור כקישור", @@ -813,6 +818,25 @@ "Upload file": "העלה קובץ", "Paste a link from {{service}}…": "הדבק קישור מ-{{service}}…", "Suggestions": "Suggestions", + "Showing all rows": "מוצגות כל השורות", + "Showing {{ visible }} of {{ count }} rows": "מוצגות {{ visible }} מתוך {{ count }} שורה", + "Showing {{ visible }} of {{ count }} rows_plural": "מוצגות {{ visible }} מתוך {{ count }} שורות", + "Filter {{ columnName }}": "סנן את {{ columnName }}", + "Is": "הוא", + "Is not": "אינו", + "Contains": "מכיל", + "Does not contain": "אינו מכיל", + "Is empty": "ריק", + "Is not empty": "אינו ריק", + "Condition": "תנאי", + "Search values": "חיפוש ערכים", + "Values": "ערכים", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "מוצגים {{ shown }} מתוך {{ total }} ערכים. חפשו כדי למצוא עוד.", + "No values match your search.": "אין ערכים התואמים לחיפוש שלך.", + "This column has no values": "בעמודה זו אין ערכים", + "{{ visible }} of {{ count }} rows": "{{ visible }} מתוך {{ count }} שורה", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} מתוך {{ count }} שורות", + "Clear": "נקה", "More options": "אפשרויות נוספות", "Type '/' to insert": "הקלד '/' כדי להוסיף", "Keep typing to filter": "המשך להקליד כדי לסנן", @@ -855,6 +879,8 @@ "Edit image URL": "ערוך את כתובת האתר של התמונה", "Create a new doc": "צור מסמך חדש", "Create a nested doc": "צור מסמך מקונן", + "Display as mention": "הצג כאזכור", + "Display as card": "הצג ככרטיס", "Default width": "רוחב ברירת מחדל", "Distribute columns": "חלוקת עמודות", "Export as CSV": "ייצא כ-CSV", @@ -874,6 +900,11 @@ "Upload a video": "העלה סרטון", "Edit video URL": "ערוך את כתובת האתר של הסרטון", "Could not import file": "לא ניתן לייבא קובץ", + "Community": "קהילה", + "Standard": "רגיל", + "Business": "עסקי", + "Enterprise": "מִפְעָל", + "Legacy": "מדור קודם", "Unsubscribed from document": "בוטלה המנוי למסמך", "Unsubscribed from collection": "בוטל מנוי לאיסוף", "Subscription successful": "המנוי הצליח", @@ -894,6 +925,8 @@ "Developer": "מפתח", "Applications": "יישומים", "API key": "מפתח API", + "Reconnect": "התחבר מחדש", + "Connected": "מְחוּבָּר", "Show path to document": "הצג נתיב למסמך", "Comment options": "אפשרויות הערות", "Enable viewer insights": "הפעלת תובנות צופים", @@ -916,6 +949,7 @@ "Trash options": "אפשרויות אשפה", "User options": "אפשרויות משתמש", "document": "מִסְמָך", + "All collections": "כל האוספים", "Export complete": "הייצוא הושלם", "Export failed": "הייצוא נכשל", "An unexpected error occurred": "אירעה שגיאה בלתי צפויה", @@ -931,9 +965,13 @@ "invited you to": "הזמין אותך", "added you to the group": "הוסיף אותך לקבוצה", "removed you from the group": "הסיר אותך מהקבוצה", + "export completed": "הייצוא הושלם", + "export failed": "הייצוא נכשל", + "export is no longer available": "הייצוא אינו זמין עוד", "was granted access to": "was granted access to", "requested access to": "requested access to", "is requesting access to": "is requesting access to", + "Your": "שלך", "a document": "מסמך", "a collection": "אוסף", "a group": "קבוצה", @@ -1031,10 +1069,10 @@ "Document title": "כותרת המסמך", "Last updated": "עודכן לאחרונה", "Type '/' to insert, or start writing…": "הקלד '/' כדי להוסיף, או התחל לכתוב...", + "Save draft": "שמור טיוטה", "Hide contents": "הסתר תוכן", "Show contents": "הצג תוכן", "available when headings are added": "זמין כאשר מוסיפים כותרות", - "Save draft": "שמור טיוטה", "Restore version": "שחזר גרסה", "{{userName}} archived": "{{userName}} הועבר לארכיון", "{{userName}} restored": "{{userName}} שוחזר", @@ -1306,7 +1344,6 @@ "Sign in": "היכנס", "Allow members to sign in with {{ authProvider }}": "אפשר לחברים להיכנס באמצעות {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "חבר את {{ authProvider }} כדי לאפשר לחברים להיכנס", - "Connected": "מְחוּבָּר", "Disabled": "נָכֶה", "Connect": "לְחַבֵּר", "Group sync": "סנכרון קבוצתי", @@ -1365,7 +1402,6 @@ "Processing": "עיבוד", "Completed": "הושלם", "Failed": "נִכשָׁל", - "All collections": "כל האוספים", "Import deleted": "הייבוא ​​נמחק", "Export deleted": "הייצוא נמחק", "Are you sure you want to delete this import?": "האם אתה בטוח שברצונך למחוק את הייבוא ​​הזה?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "לצבע זה יש ניגודיות נמוכה לעומת צבע ההדגשה", "Accent color": "צבע מבטא", "Accent text color": "צבע טקסט מבטא", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "תכונה זו כלולה ב־{{planName}} ומעלה. שדרגו את סביבת העבודה שלכם כדי לפתוח אותה עבור הצוות שלכם.", + "View plans": "הצגת תוכניות", "All roles": "כל התפקידים", "Admins": "מנהלי מערכת", "Editors": "עורכים", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "ייבוא קובץ zip של מסמכי Markdown ב-Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "ייבא קובץ נתוני JSON שיוצא ממופע אחר של {{ appName }}", "Import pages from a Confluence instance": "יבא דפים ממופע Confluence", - "Enterprise": "מִפְעָל", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "העבר במהירות את המסמכים, הדפים והקבצים הקיימים שלך מכלים ושירותים אחרים אל {{appName}}. אתה יכול גם לגרור ולשחרר כל מסמך HTML, Markdown וטקסט ישירות לאוספים באפליקציה.", "Recent imports": "יבוא אחרון", "Configure a variety of integrations with third-party services.": "הגדר מגוון אינטגרציות עם שירותי צד שלישי.", + "Documents that are published, updated, or shared with you, and access requests": "מסמכים שמתפרסמים, מתעדכנים או משותפים איתך, ובקשות גישה", "Receive a notification whenever a new document is published": "קבל הודעה בכל פעם שמתפרסם מסמך חדש", "Document updated": "המסמך עודכן", "Receive a notification when a document you are subscribed to is edited": "קבל הודעה כאשר מסמך שאתה מנוי אליו נערך", + "Invited to document": "מוזמן לתעד", + "Receive a notification when a document is shared with you": "קבל הודעה כאשר מסמך משותף איתך", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "New collections and access to collections": "אוספים חדשים וגישה לאוספים", + "Collection created": "האוסף נוצר", + "Receive a notification whenever a new collection is created": "קבל הודעה בכל פעם שנוצר אוסף חדש", + "Invited to collection": "מוזמן לאיסוף", + "Receive a notification when you are given access to a collection": "קבל התראה כאשר ניתנת לך גישה לאוסף", + "Comments and mentions": "הערות ואזכורים", + "New comments, mentions of you or your groups, resolved threads, and reactions": "הערות חדשות, אזכורים שלך או של הקבוצות שלך, שרשורים שנפתרו ותגובות", "Comment posted": "התגובה פורסמה", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "קבל הודעה כאשר מסמך שאתה מנוי אליו או שרשור שהשתתפת בו מקבל תגובה", "Mentioned": "מוּזְכָּר", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "קבל הודעה כאשר שרשור תגובה שהיית מעורב בו נפתר", "Reaction added": "נוספה תגובה", "Receive a notification when someone reacts to your comment": "קבל התראה כאשר מישהו מגיב לתגובה שלך", - "Collection created": "האוסף נוצר", - "Receive a notification whenever a new collection is created": "קבל הודעה בכל פעם שנוצר אוסף חדש", - "Invite accepted": "ההזמנה התקבלה", - "Receive a notification when someone you invited creates an account": "קבל התראה כאשר מישהו שהזמנת יוצר חשבון", - "Invited to document": "מוזמן לתעד", - "Receive a notification when a document is shared with you": "קבל הודעה כאשר מסמך משותף איתך", - "Invited to collection": "מוזמן לאיסוף", - "Receive a notification when you are given access to a collection": "קבל התראה כאשר ניתנת לך גישה לאוסף", + "Group membership, accepted invites, and completed exports": "חברות בקבוצה, הזמנות שהתקבלו וייצואים שהושלמו", "Group membership": "חברות בקבוצה", "Receive a notification when you are added to or removed from a group": "קבל התראה כאשר אתה מתווסף לקבוצה או מוסר ממנה", + "Invite accepted": "ההזמנה התקבלה", + "Receive a notification when someone you invited creates an account": "קבל התראה כאשר מישהו שהזמנת יוצר חשבון", "Export completed": "הייצוא הושלם", "Receive a notification when an export you requested has been completed": "קבל הודעה כאשר ייצוא שביקשת הושלם", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Product updates": "עדכוני מוצר", + "Tips on getting started and announcements of new features": "טיפים להתחלה והודעות על תכונות חדשות", "Getting started": "מתחילים", "Tips on getting started with features and functionality": "טיפים לתחילת העבודה עם תכונות ופונקציונליות", "New features": "תכונות חדשות", @@ -1643,7 +1687,7 @@ "Failed to save revision": "שמירת הגרסה נכשלה", "Invite to document": "הזמנה לתיעוד", "Sorry, invalid embed link": "מצטערים, קישור הטמעה לא חוקי", - "Data Attributes": "תכונות נתונים", + "Data attributes": "תכונות נתונים", "Edit attribute": "ערוך מאפיין", "Property": "נֶכֶס", "Yes": "כֵּן", @@ -1675,7 +1719,7 @@ "Text": "טֶקסט", "List": "רְשִׁימָה", "Could not load events": "לא ניתן לטעון אירועים", - "Audit Log": "יומן ביקורת", + "Audit log": "יומן ביקורת", "The audit log details the history of security-related and other events across your knowledge base.": "יומן הביקורת מפרט את ההיסטוריה של אירועים הקשורים לאבטחה ושל אירועים אחרים במאגר הידע שלך.", "IP address": "כתובת IP", "Actor": "שַׂחְקָן", @@ -1818,6 +1862,10 @@ "Script name": "שם התסריט", "The name of the script file that Umami uses to track analytics.": "שם קובץ הסקריפט שבו משתמש Umami למעקב אחר ניתוח נתונים.", "An ID that uniquely identifies the website in your Umami instance.": "מזהה שמזהה באופן ייחודי את האתר במופע Umami שלך.", + "The audit log details the history of security related and other events across your knowledge base.": "יומן הביקורת מפרט את ההיסטוריה של אירועים הקשורים לאבטחה ואחרים במאגר הידע שלך.", + "Content": "תוכן", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "נהל את ההרשאות וההגדרות של כל האוספים במאגר הידע. כמנהל סביבת עבודה אתה יכול גם לנהל אוספים פרטיים.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "יצירת אינדקס אוטומטית וחיפוש בתוכן מסמכים מ-{{appName}} בתוך Glean בזמן אמת.", "New webhook": "Webhook חדש", "Edit webhook": "ערוך webhook", "Delete webhook": "מחק webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} הזכיר את קבוצת \"{{ groupName }}\" במסמך \"{{ documentTitle }}\".", "Your group was mentioned": "הקבוצה שלך הוזכרה", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} הזכיר את הקבוצה „{{ groupName }}” במסמך", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} הצטרף לצוות {{ appName }} שלך", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} הצטרף/ה למרחב העבודה שלך ב-{{ appName }}", "Great news, {{ invitedName }} accepted your invitation": "חדשות טובות, {{ invitedName }} קיבל/ה את ההזמנה שלך", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "חדשות טובות, {{ invitedName }} קיבלה את ההזמנה שלך ויצרה חשבון. כעת תוכל להתחיל לשתף פעולה במסמכים.", "Open {{ appName }}": "פתח את {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} הצטרף לצוות שלך", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} הצטרף/ה למרחב העבודה שלך", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} הזמין אותך להצטרף לסביבת העבודה של {{ teamName }}", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} הוא מקום לצוות שלך לבנות ולשתף ידע.", "Join {{ teamName }} on {{ appName }}": "הצטרף ל-{{ teamName }} ב-{{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "הזמין אותך להצטרף ל-{{ appName }}, מקום לצוות שלך לבנות ולשתף ידע.", "Join now": "הצטרף עכשיו", "Reminder": "תזכורות", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "זוהי רק תזכורת מהירה ש{{ actorName }} {{ actorEmail }} הזמין אותך להצטרף אליהם לצוות {{ teamName }} ב-{{ appName }}, מקום שבו הצוות שלך יכול לבנות ולשתף ידע.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "זוהי רק תזכורת מהירה לכך ש-{{ actorName }} {{ actorEmail }} הזמין/ה אותך להצטרף אליהם במרחב העבודה {{ teamName }} ב-{{ appName }}, מקום שבו הצוות שלך יכול לבנות ולשתף ידע.", "We only send a reminder once.": "אנו שולחים תזכורת רק פעם אחת.", "If you haven’t signed up yet, you can do so here": "אם עדיין לא נרשמת, ניתן לעשות זאת כאן", "“{{ documentTitle }}” updated": "„{{ documentTitle }}” עודכן", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "קוד אימות לכניסה", "Here’s your link to sign in to {{ appName }}.": "הנה הקישור שלך לכניסה אל {{ appName }}.", "Use the link below to sign in": "השתמש בקישור למטה כדי להיכנס", - "If the link expired, you can request a new one from your team’s sign-in page at": "אם תוקף הקישור פג, באפשרותך לבקש קישור חדש מדף הכניסה של הצוות שלך בכתובת", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "אם תוקף הקישור פג, אפשר לבקש קישור חדש מדף הכניסה של מרחב העבודה שלך בכתובת", "Enter this verification code": "הזן קוד אימות זה", - "If the code expired, you can request a new one from your team’s sign-in page at": "אם תוקף הקוד פג, באפשרותך לבקש קוד חדש מדף הכניסה של הצוות שלך בכתובת", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "אם תוקף הקוד פג, אפשר לבקש קוד חדש מדף הכניסה של מרחב העבודה שלך בכתובת", "Click the button below to sign in to {{ appName }}.": "לחץ על הלחצן למטה כדי להיכנס ל-{{ appName }}.", "Sign-in Code": "קוד כניסה", - "Enter this code on your team’s sign-in page to continue.": "הזן קוד זה בדף הכניסה של הצוות שלך כדי להמשיך.", + "Enter this code on your workspace’s sign-in page to continue.": "יש להזין קוד זה בדף הכניסה של מרחב העבודה שלך כדי להמשיך.", "Webhook disabled": "Webhook מושבת", "Your webhook ({{ webhookName }}) has been disabled": "ה-webhook שלך ({{ webhookName }}) הושבת", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "ה-webhook שלך ({{ webhookName }}) הושבת אוטומטית עקב שיעור כשל גבוה בניסיונות המסירה האחרונים. ניתן להפעיל אותו מחדש באמצעות עריכת ה-webhook.", @@ -2007,10 +2055,14 @@ "Hide completed": "הסתרה הושלמה", "Sorry, the link could not be copied": "Sorry, the link could not be copied", "Write a caption": "כתוב כיתוב", - "Display as mention": "הצג כאזכור", - "Display as card": "הצג ככרטיס", "Add title": "הוסף כותרת", "Add content": "הוסף תוכן", + "Change column filter": "שנה מסנן עמודה", + "Filter column": "סנן עמודה", + "{{ count }} filter applied": "{{ count }} מסנן הוחל", + "{{ count }} filter applied_plural": "{{ count }} מסננים הוחלו", + "Filters cleared for you": "המסננים נוקו עבורך", + "Save for everyone": "שמור עבור כולם", "Tomorrow": "Tomorrow", "Group admin": "מנהל קבוצה", "Member": "חָבֵר" diff --git a/shared/i18n/locales/hu_HU/translation.json b/shared/i18n/locales/hu_HU/translation.json index c1ab571e5d..9e95ba119c 100644 --- a/shared/i18n/locales/hu_HU/translation.json +++ b/shared/i18n/locales/hu_HU/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integrációk", "Back to app": "Vissza az alkalmazáshoz", "Installation": "Telepítés", + "Available on {{ planName }}": "Elérhető a {{ planName }} csomagban", "Split pane": "Split pane", "Main pane": "Main pane", "Unstar document": "Dokumentum csillagozásának törlése", @@ -778,6 +779,7 @@ "Last seen": "Utoljára megtekintve", "{{ time }} local time": "{{ time }} helyi idő szerint", "Your import completed": "Your import completed", + "Lock aspect ratio": "Képarány zárolása", "Templates": "Sablonok", "View comment thread": "View comment thread", "Previous match": "Előző találat", @@ -798,10 +800,13 @@ "Width": "Width", "Image height": "Image height", "Height": "Height", + "Aspect ratio locked": "Képarány zárolva", + "Aspect ratio unlocked": "Képarány feloldva", "Paste a link": "Szúrjon be egy hivatkozást", "Delete embed": "Delete embed", "Delete video": "Videó törlése", "Delete image": "Kép törlése", + "Display options": "Megjelenítési beállítások", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} nem kap értesítést, mivel nincs hozzáférése ehhez a dokumentumhoz", "Members of “{{ groupName }}” with access to this document will be notified": "A(z) „{{ groupName }}” azon tagjai, akik hozzáférnek ehhez a dokumentumhoz, értesítést kapnak", "Keep as link": "Keep as link", @@ -813,6 +818,25 @@ "Upload file": "Upload file", "Paste a link from {{service}}…": "Illesszen be egy hivatkozást innen: {{service}}…", "Suggestions": "Suggestions", + "Showing all rows": "Minden sor megjelenítése", + "Showing {{ visible }} of {{ count }} rows": "{{ visible }} / {{ count }} sor megjelenítése", + "Showing {{ visible }} of {{ count }} rows_plural": "{{ visible }} / {{ count }} sor megjelenítése", + "Filter {{ columnName }}": "{{ columnName }} szűrése", + "Is": "Egyenlő", + "Is not": "Nem egyenlő", + "Contains": "Tartalmazza", + "Does not contain": "Nem tartalmazza", + "Is empty": "Üres", + "Is not empty": "Nem üres", + "Condition": "Feltétel", + "Search values": "Értékek keresése", + "Values": "Értékek", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "{{ shown }} / {{ total }} érték látható. Keressen a továbbiak megtekintéséhez.", + "No values match your search.": "Egy érték sem felel meg a keresésnek.", + "This column has no values": "Ennek az oszlopnak nincsenek értékei", + "{{ visible }} of {{ count }} rows": "{{ visible }} / {{ count }} sor látható", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} / {{ count }} sor látható", + "Clear": "Törlés", "More options": "További lehetőségek", "Type '/' to insert": "Gépeljen be egy „/” karaktert a beszúráshoz", "Keep typing to filter": "Gépeljen tovább a szűréshez", @@ -855,6 +879,8 @@ "Edit image URL": "Edit image URL", "Create a new doc": "Új doku létrehozása", "Create a nested doc": "Create a nested doc", + "Display as mention": "Megjelenítés említésként", + "Display as card": "Megjelenítés kártyaként", "Default width": "Alapértelmezett szélesség", "Distribute columns": "Distribute columns", "Export as CSV": "CSV exportálás", @@ -874,6 +900,11 @@ "Upload a video": "Videó feltöltése", "Edit video URL": "Videó URL-címének szerkesztése", "Could not import file": "Fájl importálása nem lehetséges", + "Community": "Közösségi", + "Standard": "Normál", + "Business": "Üzleti", + "Enterprise": "Enterprise", + "Legacy": "Korábbi", "Unsubscribed from document": "Leiratkozott a dokumentumról", "Unsubscribed from collection": "Leiratkozott a dokumentumról", "Subscription successful": "Subscription successful", @@ -894,6 +925,8 @@ "Developer": "Fejlesztő", "Applications": "Alkalmazások", "API key": "API key", + "Reconnect": "Újracsatlakozás", + "Connected": "Connected", "Show path to document": "Dokumentum elérési útjának megjelenítése", "Comment options": "Hozzászólás beállítások", "Enable viewer insights": "Enable viewer insights", @@ -916,6 +949,7 @@ "Trash options": "Lomtár beállításai", "User options": "Felhasználó beállításai", "document": "dokumentum", + "All collections": "All collections", "Export complete": "Export complete", "Export failed": "Export failed", "An unexpected error occurred": "An unexpected error occurred", @@ -931,9 +965,13 @@ "invited you to": "invited you to", "added you to the group": "hozzáadta Önt a csoporthoz", "removed you from the group": "eltávolította Önt a csoportból", + "export completed": "exportálás befejezve", + "export failed": "az exportálás sikertelen", + "export is no longer available": "az exportálás már nem érhető el", "was granted access to": "was granted access to", "requested access to": "requested access to", "is requesting access to": "is requesting access to", + "Your": "Ön", "a document": "egy dokumentum", "a collection": "egy gyűjtemény", "a group": "a group", @@ -1031,10 +1069,10 @@ "Document title": "Document title", "Last updated": "Utolsó frissítés", "Type '/' to insert, or start writing…": "Gépeljen be egy „/” karaktert a beszúráshoz, vagy kezdjen el írni…", + "Save draft": "Piszkozat mentése", "Hide contents": "Tartalomjegyzék elrejtése", "Show contents": "Tartalomjegyzék megjelenítése", "available when headings are added": "available when headings are added", - "Save draft": "Piszkozat mentése", "Restore version": "Verzió visszaállítása", "{{userName}} archived": "{{userName}} archiválta", "{{userName}} restored": "{{userName}} visszaállította", @@ -1306,7 +1344,6 @@ "Sign in": "Bejelentkezés", "Allow members to sign in with {{ authProvider }}": "Engedélyezze, hogy a tagok a {{ authProvider }} használatával jelentkezzenek be", "Connect {{ authProvider }} to allow members to sign in": "Csatlakoztassa a {{ authProvider }} szolgáltatást, hogy a tagok bejelentkezhessenek", - "Connected": "Connected", "Disabled": "Disabled", "Connect": "Connect", "Group sync": "Group sync", @@ -1365,7 +1402,6 @@ "Processing": "Processing", "Completed": "Completed", "Failed": "Failed", - "All collections": "All collections", "Import deleted": "Import deleted", "Export deleted": "Export deleted", "Are you sure you want to delete this import?": "Are you sure you want to delete this import?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Ennek a színnek alacsony a kontrasztja a kiemelő színhez képest", "Accent color": "Accent color", "Accent text color": "Accent text color", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Ez a funkció a(z) {{planName}} csomagban és az afeletti csomagokban érhető el. Frissítse munkaterületét, hogy feloldja azt csapata számára.", + "View plans": "Csomagok megtekintése", "All roles": "Összes szerep", "Admins": "Adminisztrátorok", "Editors": "Szerkesztők", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Markdown-dokumentumokat tartalmazó ZIP-fájl importálása Open Knowledge Format formátumban", "Import a JSON data file exported from another {{ appName }} instance": "Import a JSON data file exported from another {{ appName }} instance", "Import pages from a Confluence instance": "Import pages from a Confluence instance", - "Enterprise": "Enterprise", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.", "Recent imports": "Recent imports", "Configure a variety of integrations with third-party services.": "Configure a variety of integrations with third-party services.", + "Documents that are published, updated, or shared with you, and access requests": "Önnel megosztott, közzétett vagy frissített dokumentumok és hozzáférési kérelmek", "Receive a notification whenever a new document is published": "Értesítés fogadása, amikor új dokumentumot tesznek közzé", "Document updated": "Dokumentum frissítve", "Receive a notification when a document you are subscribed to is edited": "Értesítés fogadása, amikor egy feliratkozott dokumentumot szerkesztenek", + "Invited to document": "Meghívva dokumentumba", + "Receive a notification when a document is shared with you": "Értesítés fogadása, amikor egy dokumentumot megosztanak Önnel", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "New collections and access to collections": "Új gyűjtemények és hozzáférés a gyűjteményekhez", + "Collection created": "Gyűjtemény létrehozva", + "Receive a notification whenever a new collection is created": "Értesítés fogadása, amikor új gyűjteményt hoznak létre", + "Invited to collection": "Meghívva gyűjteménybe", + "Receive a notification when you are given access to a collection": "Értesítés fogadása, amikor hozzáférést kap egy gyűjteményhez", + "Comments and mentions": "Hozzászólások és említések", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Új hozzászólások, Ön vagy csoportjai említései, megoldott beszélgetésszálak és reakciók", "Comment posted": "Hozzászólás elküldve", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Értesítés fogadása, amikor egy feliratkozott dokumentumhoz vagy egy olyan témához, amelyben részt vett, hozzászólás érkezik", "Mentioned": "Megemlítve", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Értesítés fogadása, amikor megoldanak egy olyan hozzászólási szálat, amelyben Ön is részt vett", "Reaction added": "Reaction added", "Receive a notification when someone reacts to your comment": "Értesítlst kapsz, ha valaki reagál a hozzászólásodra", - "Collection created": "Gyűjtemény létrehozva", - "Receive a notification whenever a new collection is created": "Értesítés fogadása, amikor új gyűjteményt hoznak létre", - "Invite accepted": "Meghívás elfogadva", - "Receive a notification when someone you invited creates an account": "Értesítés fogadása, amikor valaki, akit Ön meghívott, létrehoz egy fiókot", - "Invited to document": "Meghívva dokumentumba", - "Receive a notification when a document is shared with you": "Értesítés fogadása, amikor egy dokumentumot megosztanak Önnel", - "Invited to collection": "Meghívva gyűjteménybe", - "Receive a notification when you are given access to a collection": "Értesítés fogadása, amikor hozzáférést kap egy gyűjteményhez", + "Group membership, accepted invites, and completed exports": "Csoporttagság, elfogadott meghívások és befejezett exportálások", "Group membership": "Csoporttagság", "Receive a notification when you are added to or removed from a group": "Értesítés fogadása, amikor hozzáadják Önt egy csoporthoz, vagy eltávolítják onnan", + "Invite accepted": "Meghívás elfogadva", + "Receive a notification when someone you invited creates an account": "Értesítés fogadása, amikor valaki, akit Ön meghívott, létrehoz egy fiókot", "Export completed": "Exportálás befejezve", "Receive a notification when an export you requested has been completed": "Értesítés fogadása, amikor az Ön által kért exportálás befejeződött", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Product updates": "Termékfrissítések", + "Tips on getting started and announcements of new features": "Tippek az első lépésekhez és új funkciók bejelentései", "Getting started": "Első lépések", "Tips on getting started with features and functionality": "Tips on getting started with features and functionality", "New features": "Új funkciók", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Failed to save revision", "Invite to document": "Invite to document", "Sorry, invalid embed link": "Sorry, invalid embed link", - "Data Attributes": "Data Attributes", + "Data attributes": "Adatattribútumok", "Edit attribute": "Edit attribute", "Property": "Property", "Yes": "Yes", @@ -1675,7 +1719,7 @@ "Text": "Text", "List": "List", "Could not load events": "Could not load events", - "Audit Log": "Audit Log", + "Audit log": "Ellenőrzési napló", "The audit log details the history of security-related and other events across your knowledge base.": "A napló részletezi a tudásbázisban történt biztonsággal kapcsolatos és egyéb események előzményeit.", "IP address": "IP address", "Actor": "Actor", @@ -1818,6 +1862,10 @@ "Script name": "Script name", "The name of the script file that Umami uses to track analytics.": "The name of the script file that Umami uses to track analytics.", "An ID that uniquely identifies the website in your Umami instance.": "An ID that uniquely identifies the website in your Umami instance.", + "The audit log details the history of security related and other events across your knowledge base.": "Az ellenőrzési napló részletesen bemutatja a tudásbázisában történt biztonsági vonatkozású és egyéb események előzményeit.", + "Content": "Tartalom", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "A tudásbázisban lévő összes gyűjtemény engedélyeinek és beállításainak kezelése. Munkaterület-rendszergazdaként privát gyűjteményeket is felügyelhet.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "A(z) {{appName}} dokumentumtartalmának automatikus, valós idejű indexelése és keresése a Gleanben.", "New webhook": "Új webhorog", "Edit webhook": "Webhorog szerkesztése", "Delete webhook": "Webhorog törlése", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", "Your group was mentioned": "Your group was mentioned", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} megemlítette a „{{ groupName }}” csoportot a dokumentumban", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} csatlakozott az Ön {{ appName }}-munkaterületéhez", "Great news, {{ invitedName }} accepted your invitation": "Jó hír: {{ invitedName }} elfogadta a meghívását", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} csatlakozott a munkaterületéhez", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", "Join now": "Join now", "Reminder": "Reminder", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Ez csak egy gyors emlékeztető arra, hogy {{ actorName }} {{ actorEmail }} meghívta Önt, hogy csatlakozzon hozzá a(z) {{ appName }} {{ teamName }} munkaterületén, ahol csapata tudást építhet és oszthat meg.", "We only send a reminder once.": "We only send a reminder once.", "If you haven’t signed up yet, you can do so here": "Ha még nem regisztrált, itt megteheti", "“{{ documentTitle }}” updated": "„{{ documentTitle }}” frissítve", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Bejelentkezési ellenőrzőkód", "Here’s your link to sign in to {{ appName }}.": "Itt találja a {{ appName }} alkalmazásba való bejelentkezéshez szükséges hivatkozást.", "Use the link below to sign in": "Use the link below to sign in", - "If the link expired, you can request a new one from your team’s sign-in page at": "Ha a hivatkozás lejárt, újat kérhet a csapata bejelentkezési oldalán", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Ha a hivatkozás lejárt, újat igényelhet a munkaterülete bejelentkezési oldalán", "Enter this verification code": "Enter this verification code", - "If the code expired, you can request a new one from your team’s sign-in page at": "Ha a kód lejárt, újat kérhet a csapata bejelentkezési oldalán", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Ha a kód lejárt, újat igényelhet a munkaterülete bejelentkezési oldalán", "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", "Sign-in Code": "Sign-in Code", - "Enter this code on your team’s sign-in page to continue.": "A folytatáshoz adja meg ezt a kódot csapata bejelentkezési oldalán.", + "Enter this code on your workspace’s sign-in page to continue.": "A folytatáshoz írja be ezt a kódot a munkaterülete bejelentkezési oldalán.", "Webhook disabled": "Webhook disabled", "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "A(z) {{ webhookName }} webhook automatikusan le lett tiltva a közelmúltbeli kézbesítési kísérletek magas hibaaránya miatt. A webhook szerkesztésével újra engedélyezheted.", @@ -2007,10 +2055,14 @@ "Hide completed": "Hide completed", "Sorry, the link could not be copied": "Sorry, the link could not be copied", "Write a caption": "Írjon egy elnevezést", - "Display as mention": "Megjelenítés említésként", - "Display as card": "Megjelenítés kártyaként", "Add title": "Add title", "Add content": "Add content", + "Change column filter": "Oszlopszűrő módosítása", + "Filter column": "Oszlop szűrése", + "{{ count }} filter applied": "{{ count }} alkalmazott szűrő", + "{{ count }} filter applied_plural": "{{ count }} alkalmazott szűrő", + "Filters cleared for you": "Töröltük az Ön szűrőit", + "Save for everyone": "Mentés mindenki számára", "Tomorrow": "Tomorrow", "Group admin": "Group admin", "Member": "Tag" diff --git a/shared/i18n/locales/id_ID/translation.json b/shared/i18n/locales/id_ID/translation.json index ea37cc206a..496557d6dd 100644 --- a/shared/i18n/locales/id_ID/translation.json +++ b/shared/i18n/locales/id_ID/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integrasi", "Back to app": "Kembali ke Aplikasi", "Installation": "Pemasangan", + "Available on {{ planName }}": "Tersedia pada {{ planName }}", "Split pane": "Split pane", "Main pane": "Main pane", "Unstar document": "Unstar document", @@ -778,6 +779,7 @@ "Last seen": "Terakhir dilihat", "{{ time }} local time": "{{ time }} waktu setempat", "Your import completed": "Your import completed", + "Lock aspect ratio": "Kunci rasio aspek", "Templates": "Template", "View comment thread": "View comment thread", "Previous match": "Previous match", @@ -798,10 +800,13 @@ "Width": "Width", "Image height": "Image height", "Height": "Height", + "Aspect ratio locked": "Rasio aspek dikunci", + "Aspect ratio unlocked": "Rasio aspek tidak dikunci", "Paste a link": "Tempel tautan", "Delete embed": "Delete embed", "Delete video": "Hapus video", "Delete image": "Hapus gambar", + "Display options": "Opsi tampilan", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} tidak akan diberi tahu karena mereka tidak memiliki akses ke dokumen ini", "Members of “{{ groupName }}” with access to this document will be notified": "Anggota “{{ groupName }}” yang memiliki akses ke dokumen ini akan diberi tahu", "Keep as link": "Keep as link", @@ -813,6 +818,25 @@ "Upload file": "Upload file", "Paste a link from {{service}}…": "Tempel tautan dari {{service}}…", "Suggestions": "Suggestions", + "Showing all rows": "Menampilkan semua baris", + "Showing {{ visible }} of {{ count }} rows": "Menampilkan {{ visible }} dari {{ count }} baris", + "Showing {{ visible }} of {{ count }} rows_plural": "Menampilkan {{ visible }} dari {{ count }} baris", + "Filter {{ columnName }}": "Filter {{ columnName }}", + "Is": "Adalah", + "Is not": "Bukan", + "Contains": "Berisi", + "Does not contain": "Tidak mengandung", + "Is empty": "Kosong", + "Is not empty": "Tidak kosong", + "Condition": "Kondisi", + "Search values": "Cari nilai", + "Values": "Nilai", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Menampilkan {{ shown }} dari {{ total }} nilai. Cari untuk menemukan lebih banyak.", + "No values match your search.": "Tidak ada nilai yang cocok dengan pencarian Anda.", + "This column has no values": "Kolom ini tidak memiliki nilai", + "{{ visible }} of {{ count }} rows": "{{ visible }} dari {{ count }} baris", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} dari {{ count }} baris", + "Clear": "Hapus", "More options": "Lebih banyak pilihan", "Type '/' to insert": "Ketik '/' untuk menyisipkan", "Keep typing to filter": "Terus mengetik untuk menyaring", @@ -855,6 +879,8 @@ "Edit image URL": "Edit image URL", "Create a new doc": "Buat dokumen baru", "Create a nested doc": "Create a nested doc", + "Display as mention": "Tampilkan sebagai sebutan", + "Display as card": "Tampilkan sebagai kartu", "Default width": "Default width", "Distribute columns": "Distribute columns", "Export as CSV": "Export as CSV", @@ -874,6 +900,11 @@ "Upload a video": "Unggah video", "Edit video URL": "Edit URL video", "Could not import file": "Tidak dapat mengimpor berkas", + "Community": "Komunitas", + "Standard": "Standar", + "Business": "Bisnis", + "Enterprise": "Enterprise", + "Legacy": "Versi lama", "Unsubscribed from document": "Unsubscribed from document", "Unsubscribed from collection": "Unsubscribed from collection", "Subscription successful": "Subscription successful", @@ -894,6 +925,8 @@ "Developer": "Pengembang", "Applications": "Applications", "API key": "API key", + "Reconnect": "Sambungkan kembali", + "Connected": "Terhubung", "Show path to document": "Tampilkan path ke dokumen", "Comment options": "Opsi komentar", "Enable viewer insights": "Enable viewer insights", @@ -916,6 +949,7 @@ "Trash options": "Opsi sampah", "User options": "Opsi pengguna", "document": "dokumen", + "All collections": "Semua koleksi", "Export complete": "Export complete", "Export failed": "Export failed", "An unexpected error occurred": "An unexpected error occurred", @@ -931,9 +965,13 @@ "invited you to": "invited you to", "added you to the group": "menambahkan Anda ke grup", "removed you from the group": "mengeluarkan Anda dari grup", + "export completed": "ekspor selesai", + "export failed": "ekspor gagal", + "export is no longer available": "ekspor tidak lagi tersedia", "was granted access to": "was granted access to", "requested access to": "requested access to", "is requesting access to": "is requesting access to", + "Your": "Anda", "a document": "sebuah dokumen", "a collection": "sebuah koleksi", "a group": "a group", @@ -1031,10 +1069,10 @@ "Document title": "Document title", "Last updated": "Terakhir diperbarui", "Type '/' to insert, or start writing…": "Ketik '/' untuk menyisipkan, atau mulai menulis…", + "Save draft": "Simpan draf", "Hide contents": "Sembunyikan isi", "Show contents": "Tampilkan isi", "available when headings are added": "available when headings are added", - "Save draft": "Simpan draf", "Restore version": "Pulihkan versi", "{{userName}} archived": "{{userName}} mengarsipkan", "{{userName}} restored": "{{userName}} memulihkan", @@ -1306,7 +1344,6 @@ "Sign in": "Masuk", "Allow members to sign in with {{ authProvider }}": "Izinkan anggota untuk masuk dengan {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Hubungkan {{ authProvider }} untuk mengizinkan anggota masuk", - "Connected": "Terhubung", "Disabled": "Dinonaktifkan", "Connect": "Hubungkan", "Group sync": "Group sync", @@ -1365,7 +1402,6 @@ "Processing": "Memproses", "Completed": "Selesai", "Failed": "Gagal", - "All collections": "Semua koleksi", "Import deleted": "Import deleted", "Export deleted": "Ekspor dihapus", "Are you sure you want to delete this import?": "Are you sure you want to delete this import?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Warna ini memiliki kontras rendah terhadap warna aksen", "Accent color": "Warna aksen", "Accent text color": "Warna teks aksen", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Fitur ini disertakan dalam {{planName}} dan paket yang lebih tinggi. Tingkatkan ruang kerja Anda untuk membukanya bagi tim Anda.", + "View plans": "Lihat paket", "All roles": "All roles", "Admins": "Admin", "Editors": "Editors", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Impor file zip dokumen Markdown dalam Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Impor file data JSON yang diekspor dari instance {{ appName }} lainnya", "Import pages from a Confluence instance": "Impor halaman dari instansi Confluence", - "Enterprise": "Enterprise", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Transfer dokumen, halaman, dan file Anda dengan cepat dari alat dan layanan lain ke {{appName}}. Anda juga dapat drag and drop dokumen HTML, Markdown, dan teks apa pun langsung ke Koleksi di aplikasi.", "Recent imports": "Impor terbaru", "Configure a variety of integrations with third-party services.": "Configure a variety of integrations with third-party services.", + "Documents that are published, updated, or shared with you, and access requests": "Dokumen yang diterbitkan, diperbarui, atau dibagikan kepada Anda, serta permintaan akses", "Receive a notification whenever a new document is published": "Terima pemberitahuan setiap kali dokumen baru diterbitkan", "Document updated": "Dokumen diperbarui", "Receive a notification when a document you are subscribed to is edited": "Terima pemberitahuan saat dokumen langganan Anda diedit", + "Invited to document": "Invited to document", + "Receive a notification when a document is shared with you": "Receive a notification when a document is shared with you", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "New collections and access to collections": "Koleksi baru dan akses ke koleksi", + "Collection created": "Koleksi dibuat", + "Receive a notification whenever a new collection is created": "Terima pemberitahuan setiap kali koleksi baru dibuat", + "Invited to collection": "Invited to collection", + "Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection", + "Comments and mentions": "Komentar dan penyebutan", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Komentar baru, penyebutan tentang Anda atau grup Anda, utas yang diselesaikan, dan reaksi", "Comment posted": "Komentar diposting", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Terima pemberitahuan saat dokumen langganan Anda atau utas yang Anda ikuti menerima komentar", "Mentioned": "Di-mention", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Reaction added": "Reaction added", "Receive a notification when someone reacts to your comment": "Receive a notification when someone reacts to your comment", - "Collection created": "Koleksi dibuat", - "Receive a notification whenever a new collection is created": "Terima pemberitahuan setiap kali koleksi baru dibuat", - "Invite accepted": "Undangan diterima", - "Receive a notification when someone you invited creates an account": "Terima pemberitahuan saat seseorang yang Anda undang membuat akun", - "Invited to document": "Invited to document", - "Receive a notification when a document is shared with you": "Receive a notification when a document is shared with you", - "Invited to collection": "Invited to collection", - "Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection", + "Group membership, accepted invites, and completed exports": "Keanggotaan grup, undangan yang diterima, dan ekspor yang selesai", "Group membership": "Keanggotaan grup", "Receive a notification when you are added to or removed from a group": "Terima notifikasi saat Anda ditambahkan ke atau dikeluarkan dari grup", + "Invite accepted": "Undangan diterima", + "Receive a notification when someone you invited creates an account": "Terima pemberitahuan saat seseorang yang Anda undang membuat akun", "Export completed": "Ekspor selesai", "Receive a notification when an export you requested has been completed": "Terima pemberitahuan saat ekspor yang Anda minta telah selesai", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Product updates": "Pembaruan produk", + "Tips on getting started and announcements of new features": "Kiat untuk memulai dan pengumuman fitur baru", "Getting started": "Memulai", "Tips on getting started with features and functionality": "Tips untuk memulai dengan fitur dan fungsionalitas", "New features": "Fitur baru", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Failed to save revision", "Invite to document": "Invite to document", "Sorry, invalid embed link": "Sorry, invalid embed link", - "Data Attributes": "Data Attributes", + "Data attributes": "Atribut data", "Edit attribute": "Edit attribute", "Property": "Property", "Yes": "Yes", @@ -1675,7 +1719,7 @@ "Text": "Text", "List": "List", "Could not load events": "Could not load events", - "Audit Log": "Audit Log", + "Audit log": "Log audit", "The audit log details the history of security-related and other events across your knowledge base.": "Log audit merinci riwayat peristiwa terkait keamanan dan peristiwa lainnya di seluruh basis pengetahuan Anda.", "IP address": "IP address", "Actor": "Actor", @@ -1818,6 +1862,10 @@ "Script name": "Script name", "The name of the script file that Umami uses to track analytics.": "The name of the script file that Umami uses to track analytics.", "An ID that uniquely identifies the website in your Umami instance.": "An ID that uniquely identifies the website in your Umami instance.", + "The audit log details the history of security related and other events across your knowledge base.": "Log audit merinci riwayat peristiwa terkait keamanan dan peristiwa lainnya di seluruh basis pengetahuan Anda.", + "Content": "Konten", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Kelola izin dan pengaturan semua koleksi dalam basis pengetahuan. Sebagai admin ruang kerja, Anda juga dapat mengelola koleksi pribadi.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Secara otomatis mengindeks dan mencari konten dokumen dari {{appName}} di dalam Glean secara real time.", "New webhook": "Webhook baru", "Edit webhook": "Mengedit webhook", "Delete webhook": "Hapus webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", "Your group was mentioned": "Your group was mentioned", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} menyebut grup “{{ groupName }}” dalam dokumen", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} telah bergabung dengan ruang kerja {{ appName }} Anda", "Great news, {{ invitedName }} accepted your invitation": "Kabar baik, {{ invitedName }} menerima undangan Anda", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} telah bergabung dengan ruang kerja Anda", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", "Join now": "Join now", "Reminder": "Reminder", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Ini hanya pengingat singkat bahwa {{ actorName }} {{ actorEmail }} mengundang Anda untuk bergabung dengan mereka di ruang kerja {{ teamName }} di {{ appName }}, sebuah tempat bagi tim Anda untuk membangun dan berbagi pengetahuan.", "We only send a reminder once.": "We only send a reminder once.", "If you haven’t signed up yet, you can do so here": "Jika Anda belum mendaftar, Anda dapat melakukannya di sini", "“{{ documentTitle }}” updated": "“{{ documentTitle }}” diperbarui", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Kode verifikasi masuk", "Here’s your link to sign in to {{ appName }}.": "Berikut tautan Anda untuk masuk ke {{ appName }}.", "Use the link below to sign in": "Use the link below to sign in", - "If the link expired, you can request a new one from your team’s sign-in page at": "Jika tautan kedaluwarsa, Anda dapat meminta yang baru dari halaman masuk tim Anda di", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Jika tautan telah kedaluwarsa, Anda dapat meminta yang baru dari halaman masuk ruang kerja Anda di", "Enter this verification code": "Enter this verification code", - "If the code expired, you can request a new one from your team’s sign-in page at": "Jika kode kedaluwarsa, Anda dapat meminta yang baru dari halaman masuk tim Anda di", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Jika kode telah kedaluwarsa, Anda dapat meminta yang baru dari halaman masuk ruang kerja Anda di", "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", "Sign-in Code": "Sign-in Code", - "Enter this code on your team’s sign-in page to continue.": "Masukkan kode ini di halaman masuk tim Anda untuk melanjutkan.", + "Enter this code on your workspace’s sign-in page to continue.": "Masukkan kode ini di halaman masuk ruang kerja Anda untuk melanjutkan.", "Webhook disabled": "Webhook disabled", "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Webhook Anda ({{ webhookName }}) telah dinonaktifkan secara otomatis karena tingkat kegagalan yang tinggi dalam upaya pengiriman terakhir. Anda dapat mengaktifkannya kembali dengan mengedit webhook.", @@ -2007,10 +2055,14 @@ "Hide completed": "Hide completed", "Sorry, the link could not be copied": "Sorry, the link could not be copied", "Write a caption": "Tulis keterangan", - "Display as mention": "Tampilkan sebagai sebutan", - "Display as card": "Tampilkan sebagai kartu", "Add title": "Add title", "Add content": "Add content", + "Change column filter": "Ubah filter kolom", + "Filter column": "Filter kolom", + "{{ count }} filter applied": "{{ count }} filter diterapkan", + "{{ count }} filter applied_plural": "{{ count }} filter diterapkan", + "Filters cleared for you": "Filter dihapus untuk Anda", + "Save for everyone": "Simpan untuk semua orang", "Tomorrow": "Tomorrow", "Group admin": "Group admin", "Member": "Anggota" diff --git a/shared/i18n/locales/it_IT/translation.json b/shared/i18n/locales/it_IT/translation.json index 77c0d0de65..5e06f66773 100644 --- a/shared/i18n/locales/it_IT/translation.json +++ b/shared/i18n/locales/it_IT/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integrazioni", "Back to app": "Torna all'app", "Installation": "Installazione", + "Available on {{ planName }}": "Disponibile con {{ planName }}", "Split pane": "Dividi riquadro", "Main pane": "Riquadro principale", "Unstar document": "Rimuovi dai preferiti", @@ -778,6 +779,7 @@ "Last seen": "Ultima visualizzazione", "{{ time }} local time": "Ora locale: {{ time }}", "Your import completed": "Importazione completata", + "Lock aspect ratio": "Blocca proporzioni", "Templates": "Templates", "View comment thread": "Visualizza discussione dei commenti", "Previous match": "Pagina precedente", @@ -798,10 +800,13 @@ "Width": "Largezza", "Image height": "Altezza immagine", "Height": "Altezza", + "Aspect ratio locked": "Proporzioni bloccate", + "Aspect ratio unlocked": "Proporzioni sbloccate", "Paste a link": "Incolla un link", "Delete embed": "Elimina incorporamento", "Delete video": "Elimina video", "Delete image": "Elimina immagine", + "Display options": "Opzioni di visualizzazione", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} non riceverà una notifica, poiché non ha accesso a questo documento", "Members of “{{ groupName }}” with access to this document will be notified": "I membri di “{{ groupName }}” che hanno accesso a questo documento verranno avvisati", "Keep as link": "Mantieni come link", @@ -813,6 +818,25 @@ "Upload file": "Carica file", "Paste a link from {{service}}…": "Incolla un link da {{service}}…", "Suggestions": "Suggerimenti", + "Showing all rows": "Visualizzazione di tutte le righe", + "Showing {{ visible }} of {{ count }} rows": "Visualizzazione di {{ visible }} righe su {{ count }}", + "Showing {{ visible }} of {{ count }} rows_plural": "Visualizzazione di {{ visible }} righe su {{ count }}", + "Filter {{ columnName }}": "Filtra {{ columnName }}", + "Is": "È", + "Is not": "Non è", + "Contains": "Contiene", + "Does not contain": "Non contiene", + "Is empty": "È vuoto", + "Is not empty": "Non è vuoto", + "Condition": "Condizione", + "Search values": "Cerca valori", + "Values": "Valori", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Visualizzazione di {{ shown }} valori su {{ total }}. Cerca per trovarne altri.", + "No values match your search.": "Nessun valore corrisponde alla tua ricerca.", + "This column has no values": "Questa colonna non contiene valori", + "{{ visible }} of {{ count }} rows": "{{ visible }} di {{ count }} riga", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} di {{ count }} righe", + "Clear": "Cancella", "More options": "Più opzioni", "Type '/' to insert": "Digita '/' per inserire", "Keep typing to filter": "Continua a digitare per filtrare", @@ -855,6 +879,8 @@ "Edit image URL": "Modifica URL immagine", "Create a new doc": "Crea un nuovo documento", "Create a nested doc": "Crea un documento annidato", + "Display as mention": "Visualizza come menzione", + "Display as card": "Visualizza come scheda", "Default width": "Larghezza default", "Distribute columns": "Distribuisci colonne", "Export as CSV": "Esporta in CSV", @@ -874,6 +900,11 @@ "Upload a video": "Carica un video", "Edit video URL": "Modifica URL video", "Could not import file": "Impossibile importare il file", + "Community": "Comunità", + "Standard": "Standard", + "Business": "Business", + "Enterprise": "Enterprise", + "Legacy": "Legacy", "Unsubscribed from document": "Annullata l'iscrizione al documento", "Unsubscribed from collection": "Annullata l'iscrizione alla raccolta", "Subscription successful": "Iscrizione riuscita", @@ -894,6 +925,8 @@ "Developer": "Sviluppatore", "Applications": "Applicazioni", "API key": "Chiave API", + "Reconnect": "Riconnetti", + "Connected": "Connesso", "Show path to document": "Mostra percorso del documento", "Comment options": "Opzioni Commento", "Enable viewer insights": "Abilita gli approfondimenti sugli spettatori", @@ -916,6 +949,7 @@ "Trash options": "Opzioni del cestino", "User options": "Opzioni utente", "document": "documenta", + "All collections": "Tutte le raccolte", "Export complete": "Esportazione completata", "Export failed": "Esportazione non riuscita", "An unexpected error occurred": "Si è verificato un errore inaspettato", @@ -931,9 +965,13 @@ "invited you to": "Ti ha invitato a", "added you to the group": "ti ha aggiunto al gruppo", "removed you from the group": "ti ha rimosso dal gruppo", + "export completed": "esportazione completata", + "export failed": "esportazione non riuscita", + "export is no longer available": "l'esportazione non è più disponibile", "was granted access to": "è stato concesso l'accesso a", "requested access to": "richiesto accesso a", "is requesting access to": "sta chiedendo l'accesso a", + "Your": "Il tuo", "a document": "un documento", "a collection": "una raccolta", "a group": "un gruppo", @@ -1031,10 +1069,10 @@ "Document title": "Titolo del documento", "Last updated": "Ultimo aggiornamento", "Type '/' to insert, or start writing…": "Digita '/' per inserire, o inizia a scrivere…", + "Save draft": "Salva bozza", "Hide contents": "Nascondi contenuti", "Show contents": "Mostra contenuti", "available when headings are added": "disponibile quando vengono aggiunte le intestazioni", - "Save draft": "Salva bozza", "Restore version": "Ripristina versione", "{{userName}} archived": "{{userName}} archiviato", "{{userName}} restored": "{{userName}} recuperato", @@ -1306,7 +1344,6 @@ "Sign in": "Accedi", "Allow members to sign in with {{ authProvider }}": "Consenti ai membri di accedere con {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Connetti {{ authProvider }} per consentire ai membri di accedere", - "Connected": "Connesso", "Disabled": "Disattivato", "Connect": "Connetti", "Group sync": "Sincronizzazione gruppo", @@ -1365,7 +1402,6 @@ "Processing": "In corso", "Completed": "Completato", "Failed": "Fallito", - "All collections": "Tutte le raccolte", "Import deleted": "Importazione eliminata", "Export deleted": "Esportazione eliminata", "Are you sure you want to delete this import?": "Sei sicuro di voler eliminare questa importazione?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Questo colore ha un contrasto basso rispetto al colore di accento", "Accent color": "Colore in rilievo", "Accent text color": "Colore del testo in risalto", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Questa funzionalità è inclusa in {{planName}} e nei piani superiori. Aggiorna il tuo spazio di lavoro per sbloccarla per il tuo team.", + "View plans": "Visualizza i piani", "All roles": "Tutti i ruoli", "Admins": "Amministratori", "Editors": "Editor", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Importa un file zip di documenti Markdown nel formato Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Importa un file di dati JSON esportato da un'altra istanza {{ appName }}", "Import pages from a Confluence instance": "Importa pagine da un'istanza di Confluence", - "Enterprise": "Enterprise", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Trasferisci rapidamente documenti, pagine e file esistenti da altri strumenti e servizi verso {{appName}}. Puoi anche trascinare e rilasciare qualsiasi documento HTML, Markdown e di testo direttamente nelle Raccolte.", "Recent imports": "Importazioni recenti", "Configure a variety of integrations with third-party services.": "Configura una varietà di integrazioni con servizi di terze parti.", + "Documents that are published, updated, or shared with you, and access requests": "Documenti pubblicati, aggiornati o condivisi con te e richieste di accesso", "Receive a notification whenever a new document is published": "Ricevi una notifica ogni volta che viene pubblicato un nuovo documento", "Document updated": "Documento aggiornato", "Receive a notification when a document you are subscribed to is edited": "Ricevi una notifica quando un documento a cui sei iscritto viene modificato", + "Invited to document": "Invitato a documentare", + "Receive a notification when a document is shared with you": "Ricevi una notifica quando un documento viene condiviso con te", + "Document access requested": "Accesso al documento richiesto", + "Receive a notification when a user requests access to a document you manage": "Ricevi una notifica quando un utente richiede l'accesso ad un documento che gestisci", + "New collections and access to collections": "Nuove raccolte e accesso alle raccolte", + "Collection created": "Raccolta creata", + "Receive a notification whenever a new collection is created": "Ricevi una notifica ogni volta che viene creata una nuova raccolta", + "Invited to collection": "Invitato alla collezione", + "Receive a notification when you are given access to a collection": "Ricevi una notifica quando ti viene concesso l'accesso a una raccolta", + "Comments and mentions": "Commenti e menzioni", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Nuovi commenti, menzioni di te o dei tuoi gruppi, discussioni risolte e reazioni", "Comment posted": "Commento pubblicato", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Ricevi una notifica quando un documento a cui sei iscritto o un argomento a cui hai partecipato riceve un commento", "Mentioned": "Ha menzionato", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Ricevi una notifica quando un thread di commenti in cui eri coinvolto viene risolto", "Reaction added": "Reazione aggiunta", "Receive a notification when someone reacts to your comment": "Ricevi una notifica quando qualcuno reagisce al tuo commento", - "Collection created": "Raccolta creata", - "Receive a notification whenever a new collection is created": "Ricevi una notifica ogni volta che viene creata una nuova raccolta", - "Invite accepted": "Invito accettato", - "Receive a notification when someone you invited creates an account": "Ricevi una notifica quando qualcuno che hai invitato crea un account", - "Invited to document": "Invitato a documentare", - "Receive a notification when a document is shared with you": "Ricevi una notifica quando un documento viene condiviso con te", - "Invited to collection": "Invitato alla collezione", - "Receive a notification when you are given access to a collection": "Ricevi una notifica quando ti viene concesso l'accesso a una raccolta", + "Group membership, accepted invites, and completed exports": "Appartenenza a gruppi, inviti accettati ed esportazioni completate", "Group membership": "Appartenenza al gruppo", "Receive a notification when you are added to or removed from a group": "Ricevi una notifica quando vieni aggiunto o rimosso da un gruppo", + "Invite accepted": "Invito accettato", + "Receive a notification when someone you invited creates an account": "Ricevi una notifica quando qualcuno che hai invitato crea un account", "Export completed": "Esportazione completata", "Receive a notification when an export you requested has been completed": "Ricevi una notifica quando un'esportazione che hai richiesto è stata completata", - "Document access requested": "Accesso al documento richiesto", - "Receive a notification when a user requests access to a document you manage": "Ricevi una notifica quando un utente richiede l'accesso ad un documento che gestisci", + "Product updates": "Aggiornamenti del prodotto", + "Tips on getting started and announcements of new features": "Suggerimenti per iniziare e annunci di nuove funzionalità", "Getting started": "Come iniziare", "Tips on getting started with features and functionality": "Suggerimenti per iniziare a utilizzare le caratteristiche e le funzionalità", "New features": "Nuove funzionalità", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Impossibile salvare la revisione", "Invite to document": "Invita a documentare", "Sorry, invalid embed link": "Spiacenti, link incorporato non valido", - "Data Attributes": "Attributi dei dati", + "Data attributes": "Attributi dei dati", "Edit attribute": "Modifica attributo", "Property": "Proprietà", "Yes": "Si", @@ -1675,7 +1719,7 @@ "Text": "Testo", "List": "Elenco", "Could not load events": "Impossibile caricare gli eventi", - "Audit Log": "Log di audit", + "Audit log": "Log di audit", "The audit log details the history of security-related and other events across your knowledge base.": "Il registro di audit mostra la cronologia degli eventi relativi alla sicurezza e di altro tipo nella tua base di conoscenze.", "IP address": "Indirizzo IP", "Actor": "Attore", @@ -1818,6 +1862,10 @@ "Script name": "Nome script", "The name of the script file that Umami uses to track analytics.": "Nome del file di script utilizzato da Umami per tracciare analytics.", "An ID that uniquely identifies the website in your Umami instance.": "Un ID che identifica in modo univoco il sito web nella tua istanza Umami.", + "The audit log details the history of security related and other events across your knowledge base.": "Il registro degli audit riporta la cronologia degli eventi relativi alla sicurezza e di altro tipo nella knowledge base.", + "Content": "Contenuto", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Gestisci i permessi e le impostazioni di tutte le collezioni nella base di conoscenze. Come amministratore del workspace puoi anche amministrare le collezioni private.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Indicizza e cerca automaticamente il contenuto dei documenti da {{appName}} all'interno di Glean in tempo reale.", "New webhook": "Nuovo webhook", "Edit webhook": "Modifica webhook", "Delete webhook": "Elimina Webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} ha citato il gruppo “{{ groupName }}” nel documento “{{ documentTitle }}”.", "Your group was mentioned": "Il tuo gruppo è stato citato", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} ha menzionato il gruppo “{{ groupName }}” nel documento", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} si è unito al tuo team {{ appName }}", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} si è unito al tuo spazio di lavoro {{ appName }}", "Great news, {{ invitedName }} accepted your invitation": "Ottime notizie, {{ invitedName }} ha accettato il tuo invito", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Grande notizia, {{ invitedName }} ha appena accettato il tuo invito e ha creato un account. Ora puoi iniziare a collaborare sui documenti.", "Open {{ appName }}": "Apri {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} si è unito al tuo team", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} si è unito al tuo spazio di lavoro", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} ti ha invitato a unirti nello spazio di lavoro di {{ teamName }}", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} è un posto per il tuo team per costruire e condividere conoscenze.", "Join {{ teamName }} on {{ appName }}": "Unisciti a {{ teamName }} su {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "ti ha invitato a unirti a {{ appName }}, un posto per il tuo team per costruire e condividere conoscenze.", "Join now": "Unisciti ora", "Reminder": "Promemoria", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "Questo è solo un rapido promemoria che {{ actorName }} {{ actorEmail }} ti ha invitato ad unirti a loro nel team {{ teamName }} su {{ appName }}, un posto per il tuo team per costruire e condividere conoscenze.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Questo è solo un rapido promemoria: {{ actorName }} {{ actorEmail }} ti ha invitato a unirti a loro nello spazio di lavoro {{ teamName }} su {{ appName }}, un luogo in cui il tuo team può creare e condividere conoscenze.", "We only send a reminder once.": "Inviamo un promemoria solo una volta.", "If you haven’t signed up yet, you can do so here": "Se non ti sei ancora registrato, puoi farlo qui", "“{{ documentTitle }}” updated": "“{{ documentTitle }}” aggiornato", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Codice di verifica dell'accesso", "Here’s your link to sign in to {{ appName }}.": "Ecco il tuo link per accedere a {{ appName }}.", "Use the link below to sign in": "Utilizza il link qui sotto per accedere", - "If the link expired, you can request a new one from your team’s sign-in page at": "Se il link è scaduto, puoi richiederne uno nuovo dalla pagina di accesso del tuo team all'indirizzo", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Se il link è scaduto, puoi richiederne uno nuovo dalla pagina di accesso del tuo spazio di lavoro all'indirizzo", "Enter this verification code": "Inserire questo codice di verifica", - "If the code expired, you can request a new one from your team’s sign-in page at": "Se il codice è scaduto, puoi richiederne uno nuovo dalla pagina di accesso del tuo team all'indirizzo", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Se il codice è scaduto, puoi richiederne uno nuovo dalla pagina di accesso del tuo spazio di lavoro all'indirizzo", "Click the button below to sign in to {{ appName }}.": "Clicca sul pulsante qui sotto per accedere a {{ appName }}.", "Sign-in Code": "Codice di Accesso", - "Enter this code on your team’s sign-in page to continue.": "Inserisci questo codice nella pagina di accesso del tuo team per continuare.", + "Enter this code on your workspace’s sign-in page to continue.": "Inserisci questo codice nella pagina di accesso del tuo spazio di lavoro per continuare.", "Webhook disabled": "Webhook disabilitato", "Your webhook ({{ webhookName }}) has been disabled": "Il tuo webhook ({{ webhookName }}) è stato disabilitato", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Il tuo webhook ({{ webhookName }}) è stato disabilitato automaticamente a causa di un elevato tasso di errori nei recenti tentativi di consegna. Puoi riabilitarlo modificando il webhook.", @@ -2007,10 +2055,14 @@ "Hide completed": "Nascondi completati", "Sorry, the link could not be copied": "Spiacenti, non è stato possibile copiare il link", "Write a caption": "Scrivi una descrizione", - "Display as mention": "Visualizza come menzione", - "Display as card": "Visualizza come scheda", "Add title": "Aggiungi titolo", "Add content": "Aggiungi contenuto", + "Change column filter": "Modifica filtro colonna", + "Filter column": "Filtra colonna", + "{{ count }} filter applied": "{{ count }} filtro applicato", + "{{ count }} filter applied_plural": "{{ count }} filtri applicati", + "Filters cleared for you": "Filtri cancellati per te", + "Save for everyone": "Salva per tutti", "Tomorrow": "Domani", "Group admin": "Amministratore del gruppo", "Member": "Membro" diff --git a/shared/i18n/locales/ja_JP/translation.json b/shared/i18n/locales/ja_JP/translation.json index d46daee55e..33c204f9e0 100644 --- a/shared/i18n/locales/ja_JP/translation.json +++ b/shared/i18n/locales/ja_JP/translation.json @@ -733,6 +733,7 @@ "Integrations": "連携", "Back to app": "アプリに戻る", "Installation": "インストール", + "Available on {{ planName }}": "{{ planName }}で利用可能", "Split pane": "ペインを分割", "Main pane": "メインペイン", "Unstar document": "お気に入りから削除", @@ -778,6 +779,7 @@ "Last seen": "最終確認", "{{ time }} local time": "現地時間 {{ time }}", "Your import completed": "インポートが完了しました", + "Lock aspect ratio": "アスペクト比を固定", "Templates": "テンプレート", "View comment thread": "コメントスレッドを表示", "Previous match": "前の一致", @@ -798,10 +800,13 @@ "Width": "幅", "Image height": "画像の高さ", "Height": "高さ", + "Aspect ratio locked": "アスペクト比が固定されています", + "Aspect ratio unlocked": "アスペクト比の固定が解除されています", "Paste a link": "リンクを貼り付け", "Delete embed": "埋め込みを削除", "Delete video": "動画を削除", "Delete image": "画像を削除", + "Display options": "表示オプション", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} はこのドキュメントへのアクセス権限がないため、通知されません", "Members of “{{ groupName }}” with access to this document will be notified": "このドキュメントにアクセスできる「{{ groupName }}」のメンバーに通知されます", "Keep as link": "リンクとして保持", @@ -813,6 +818,25 @@ "Upload file": "ファイルをアップロード", "Paste a link from {{service}}…": "{{service}} からリンクを貼り付け…", "Suggestions": "提案", + "Showing all rows": "すべての行を表示", + "Showing {{ visible }} of {{ count }} rows": "{{ count }} 行中 {{ visible }} 行を表示", + "Showing {{ visible }} of {{ count }} rows_plural": "{{ count }} 行中 {{ visible }} 行を表示", + "Filter {{ columnName }}": "{{ columnName }} をフィルター", + "Is": "次と等しい", + "Is not": "次と等しくない", + "Contains": "含む", + "Does not contain": "含まない", + "Is empty": "空である", + "Is not empty": "空でない", + "Condition": "条件", + "Search values": "値を検索", + "Values": "値", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "全{{ total }}件中{{ shown }}件の値を表示しています。さらに検索して値を見つけてください。", + "No values match your search.": "検索に一致する値はありません。", + "This column has no values": "この列には値がありません", + "{{ visible }} of {{ count }} rows": "{{ visible }} / {{ count }} 行", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} / {{ count }} 行", + "Clear": "クリア", "More options": "詳細設定", "Type '/' to insert": "文字を入力するか、「/」でコマンドを呼び出します...", "Keep typing to filter": "入力を続けてフィルターを適用", @@ -855,6 +879,8 @@ "Edit image URL": "画像のURLを編集", "Create a new doc": "ドキュメントを作成", "Create a nested doc": "ネストされたドキュメントを作成", + "Display as mention": "メンションとして表示", + "Display as card": "カードとして表示", "Default width": "デフォルトの幅", "Distribute columns": "列を均等に配置", "Export as CSV": "CSV 形式でエクスポート", @@ -874,6 +900,11 @@ "Upload a video": "動画をアップロード", "Edit video URL": "動画のURLを編集", "Could not import file": "ファイルをインポートできませんでした", + "Community": "コミュニティ", + "Standard": "スタンダード", + "Business": "ビジネス", + "Enterprise": "エンタープライズ", + "Legacy": "レガシー", "Unsubscribed from document": "ドキュメントの通知を解除しました", "Unsubscribed from collection": "コレクションの登録を解除しました", "Subscription successful": "購読が完了しました", @@ -894,6 +925,8 @@ "Developer": "開発者", "Applications": "アプリ", "API key": "API キー", + "Reconnect": "再接続", + "Connected": "接続されました", "Show path to document": "ドキュメントのパスを表示", "Comment options": "コメントオプション", "Enable viewer insights": "ビューアインサイトを有効にする", @@ -916,6 +949,7 @@ "Trash options": "ごみ箱のオプション", "User options": "ユーザーオプション", "document": "ドキュメント", + "All collections": "全てのコレクション", "Export complete": "エクスポート完了", "Export failed": "エクスポートに失敗しました", "An unexpected error occurred": "予期しないエラーが発生しました", @@ -931,9 +965,13 @@ "invited you to": "あなたを招待しました", "added you to the group": "あなたをグループに追加しました", "removed you from the group": "あなたをグループから除外しました", + "export completed": "エクスポート完了", + "export failed": "エクスポートに失敗しました", + "export is no longer available": "エクスポートは利用できなくなりました", "was granted access to": "がアクセス権を付与されました", "requested access to": "へのアクセスをリクエストしました", "is requesting access to": "が次へのアクセスをリクエストしています", + "Your": "あなたの", "a document": "ドキュメント", "a collection": "コレクション", "a group": "グループ", @@ -1031,10 +1069,10 @@ "Document title": "ドキュメントタイトル", "Last updated": "最終更新", "Type '/' to insert, or start writing…": "「/」で挿入、または書き込みを開始…", + "Save draft": "下書きを保存", "Hide contents": "コンテンツを非表示", "Show contents": "コンテンツを表示", "available when headings are added": "見出しが追加されると利用可能です", - "Save draft": "下書きを保存", "Restore version": "復元", "{{userName}} archived": "{{userName}} がアーカイブしました", "{{userName}} restored": "{{userName}} が復元しました", @@ -1306,7 +1344,6 @@ "Sign in": "ログイン", "Allow members to sign in with {{ authProvider }}": "メンバーが {{ authProvider }} でログインできるようにする", "Connect {{ authProvider }} to allow members to sign in": "{{ authProvider }} に接続してメンバーのログインを許可する", - "Connected": "接続されました", "Disabled": "無効化済み", "Connect": "接続", "Group sync": "グループ同期", @@ -1365,7 +1402,6 @@ "Processing": "処理中", "Completed": "完了", "Failed": "失敗", - "All collections": "全てのコレクション", "Import deleted": "インポートを削除しました", "Export deleted": "エクスポート削除", "Are you sure you want to delete this import?": "本当にこのインポートを削除してよろしいですか?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "この色はアクセントカラーとのコントラストが低くなっています", "Accent color": "アクセントカラー", "Accent text color": "アクセント文字の色", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "この機能は{{planName}}以上のプランに含まれています。ワークスペースをアップグレードして、チームで利用できるようにしましょう。", + "View plans": "プランを表示", "All roles": "全てのロール", "Admins": "管理者", "Editors": "編集者", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Open Knowledge FormatのMarkdownドキュメントのZIPファイルをインポートする", "Import a JSON data file exported from another {{ appName }} instance": "別の {{ appName }} インスタンスからエクスポートされた JSON データファイルをインポートする", "Import pages from a Confluence instance": "Confluence からページをインポートする", - "Enterprise": "エンタープライズ", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "既存のドキュメント、ページ、ファイルを他のツールやサービスから {{appName}} にすばやく転送します。 HTML、Markdown、およびドキュメントをアプリ内のコレクションに直接ドラッグ&ドロップすることもできます。", "Recent imports": "最近のインポート", "Configure a variety of integrations with third-party services.": "サードパーティサービスとのさまざまな統合を設定します。", + "Documents that are published, updated, or shared with you, and access requests": "公開、更新、または共有されたドキュメントとアクセスリクエスト", "Receive a notification whenever a new document is published": "新しいドキュメントが公開されたときに通知を受け取る", "Document updated": "ドキュメントの更新", "Receive a notification when a document you are subscribed to is edited": "通知を有効にしているドキュメントが編集されたときに通知を受け取る", + "Invited to document": "ドキュメントに招待済み", + "Receive a notification when a document is shared with you": "ドキュメントが共有されたときに通知を受け取る", + "Document access requested": "ドキュメントへのアクセスがリクエストされました", + "Receive a notification when a user requests access to a document you manage": "ユーザーが管理しているドキュメントへのアクセスをリクエストしたときに通知を受け取る", + "New collections and access to collections": "新しいコレクションとコレクションへのアクセス", + "Collection created": "コレクションが作成されました", + "Receive a notification whenever a new collection is created": "新しいコレクションが作成されたときに通知を受け取る", + "Invited to collection": "コレクションに招待済み", + "Receive a notification when you are given access to a collection": "コレクションへのアクセスが付与されたときに通知を受け取る", + "Comments and mentions": "コメントとメンション", + "New comments, mentions of you or your groups, resolved threads, and reactions": "新しいコメント、あなたまたはグループへのメンション、解決済みのスレッド、リアクション", "Comment posted": "投稿されたコメント", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "通知を有効にしているドキュメントや参加したスレッドにコメントされたときに通知を受け取る", "Mentioned": "メンション", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "参加したコメントスレッドが解決されたときに通知を受け取る", "Reaction added": "リアクションが追加されました", "Receive a notification when someone reacts to your comment": "誰かがあなたのコメントにリアクションしたときに通知を受け取る", - "Collection created": "コレクションが作成されました", - "Receive a notification whenever a new collection is created": "新しいコレクションが作成されたときに通知を受け取る", - "Invite accepted": "招待が承認されました", - "Receive a notification when someone you invited creates an account": "招待したユーザーがアカウントを作成したときに通知を受け取る", - "Invited to document": "ドキュメントに招待済み", - "Receive a notification when a document is shared with you": "ドキュメントが共有されたときに通知を受け取る", - "Invited to collection": "コレクションに招待済み", - "Receive a notification when you are given access to a collection": "コレクションへのアクセスが付与されたときに通知を受け取る", + "Group membership, accepted invites, and completed exports": "グループメンバーシップ、承認された招待、完了したエクスポート", "Group membership": "グループのメンバー", "Receive a notification when you are added to or removed from a group": "グループに追加またはグループから除外されたときに通知を受け取る", + "Invite accepted": "招待が承認されました", + "Receive a notification when someone you invited creates an account": "招待したユーザーがアカウントを作成したときに通知を受け取る", "Export completed": "エクスポート完了", "Receive a notification when an export you requested has been completed": "エクスポートが完了したときに通知を受け取る", - "Document access requested": "ドキュメントへのアクセスがリクエストされました", - "Receive a notification when a user requests access to a document you manage": "ユーザーが管理しているドキュメントへのアクセスをリクエストしたときに通知を受け取る", + "Product updates": "製品の更新", + "Tips on getting started and announcements of new features": "開始方法のヒントと新機能のお知らせ", "Getting started": "はじめに", "Tips on getting started with features and functionality": "機能を使いこなすためのヒント", "New features": "新機能", @@ -1643,7 +1687,7 @@ "Failed to save revision": "リビジョンの保存に失敗しました", "Invite to document": "ドキュメントに招待する", "Sorry, invalid embed link": "申し訳ありませんが、無効な埋め込みリンクです", - "Data Attributes": "データ属性", + "Data attributes": "データ属性", "Edit attribute": "属性を編集", "Property": "プロパティ", "Yes": "はい", @@ -1675,7 +1719,7 @@ "Text": "テキスト", "List": "リスト", "Could not load events": "イベントを読み込めませんでした", - "Audit Log": "監査ログ", + "Audit log": "監査ログ", "The audit log details the history of security-related and other events across your knowledge base.": "監査ログには、ナレッジベース全体で発生したセキュリティ関連のイベントやその他のイベントの履歴が詳細に記録されます。", "IP address": "IPアドレス", "Actor": "実行者", @@ -1818,6 +1862,10 @@ "Script name": "スクリプト名", "The name of the script file that Umami uses to track analytics.": "Umamiが分析を追跡するために使用するスクリプトファイルの名前。", "An ID that uniquely identifies the website in your Umami instance.": "Umamiインスタンスでウェブサイトを一意に識別する ID", + "The audit log details the history of security related and other events across your knowledge base.": "監査ログには、ナレッジベース全体にわたるセキュリティ関連イベントなどの履歴が記録されます。", + "Content": "コンテンツ", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "ナレッジベース内のすべてのコレクションの権限と設定を管理します。ワークスペース管理者は、プライベートコレクションの管理も行えます。", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "{{appName}} のドキュメントコンテンツをリアルタイムで自動的にインデックス化し、Glean 内で検索します。", "New webhook": "新しい Webhook", "Edit webhook": "Webhook を編集", "Delete webhook": "Webhook を削除する", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} がドキュメント「{{ documentTitle }}」でグループ「{{ groupName }}」をメンションしました。", "Your group was mentioned": "あなたのグループがメンションされました", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} がドキュメント内で「{{ groupName }}」グループに言及しました", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} が{{ appName }}チームに参加しました", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} があなたの {{ appName }} ワークスペースに参加しました", "Great news, {{ invitedName }} accepted your invitation": "お知らせです。{{ invitedName }} があなたの招待を承諾しました", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "お知らせです。{{ invitedName }} があなたの招待を承諾してアカウントを作成しました。これでドキュメントで共同作業を開始できます。", "Open {{ appName }}": "{{ appName }}を開く", - "{{ invitedName }} has joined your team": "{{ invitedName }} がチームに参加しました", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} があなたのワークスペースに参加しました", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} があなたを{{ teamName }}のワークスペースに招待しました", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }}は、チームでナレッジを構築・共有するための場所です。", "Join {{ teamName }} on {{ appName }}": "{{ appName }}で{{ teamName }}に参加", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "チームでナレッジを構築・共有するための場所である{{ appName }}への参加にあなたを招待しました。", "Join now": "今すぐ参加", "Reminder": "リマインダー", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "{{ actorName }} {{ actorEmail }} が、チームでナレッジを構築・共有するための場所である{{ appName }}の{{ teamName }}チームへの参加にあなたを招待したことをお知らせします。", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "{{ actorName }} {{ actorEmail }} さんから、チームで知識を構築・共有できる場所である {{ appName }} の {{ teamName }} ワークスペースへの招待が届いています。", "We only send a reminder once.": "リマインダーは一度だけ送信されます。", "If you haven’t signed up yet, you can do so here": "まだ登録していない場合は、こちらから登録できます", "“{{ documentTitle }}” updated": "「{{ documentTitle }}」が更新されました", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "ログイン確認コード", "Here’s your link to sign in to {{ appName }}.": "{{ appName }} にログインするためのリンクです。", "Use the link below to sign in": "以下のリンクからサインインしてください", - "If the link expired, you can request a new one from your team’s sign-in page at": "リンクの有効期限が切れた場合は、チームのサインインページから新しいリンクをリクエストできます", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "リンクの有効期限が切れた場合は、次のワークスペースのサインインページから新しいリンクをリクエストできます", "Enter this verification code": "この確認コードを入力", - "If the code expired, you can request a new one from your team’s sign-in page at": "コードの有効期限が切れた場合は、チームのサインインページから新しいコードをリクエストできます", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "コードの有効期限が切れた場合は、次のワークスペースのサインインページから新しいコードをリクエストできます", "Click the button below to sign in to {{ appName }}.": "以下のボタンをクリックして{{ appName }}にサインインしてください。", "Sign-in Code": "サインインコード", - "Enter this code on your team’s sign-in page to continue.": "続行するには、チームのログインページでこのコードを入力してください。", + "Enter this code on your workspace’s sign-in page to continue.": "続行するには、ワークスペースのサインインページでこのコードを入力してください。", "Webhook disabled": "Webhookを無効にしました", "Your webhook ({{ webhookName }}) has been disabled": "Webhook({{ webhookName }})が無効になりました", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "最近の配信試行で失敗率が高かったため、Webhook({{ webhookName }})は自動的に無効化されました。Webhook を編集すると再度有効にできます。", @@ -2007,10 +2055,14 @@ "Hide completed": "完了済みを非表示", "Sorry, the link could not be copied": "申し訳ありませんが、リンクをコピーできませんでした", "Write a caption": "脚注を書く", - "Display as mention": "メンションとして表示", - "Display as card": "カードとして表示", "Add title": "タイトルを追加", "Add content": "コンテンツを追加", + "Change column filter": "列フィルターを変更", + "Filter column": "列をフィルタリング", + "{{ count }} filter applied": "{{ count }}件のフィルターが適用されています", + "{{ count }} filter applied_plural": "{{ count }}件のフィルターが適用されています", + "Filters cleared for you": "フィルターがクリアされました", + "Save for everyone": "全員に対して保存", "Tomorrow": "明日", "Group admin": "グループ管理者", "Member": "メンバー" diff --git a/shared/i18n/locales/ko_KR/translation.json b/shared/i18n/locales/ko_KR/translation.json index 8040f9a84c..2994ff1693 100644 --- a/shared/i18n/locales/ko_KR/translation.json +++ b/shared/i18n/locales/ko_KR/translation.json @@ -733,6 +733,7 @@ "Integrations": "연동", "Back to app": "앱으로 돌아가기", "Installation": "설치", + "Available on {{ planName }}": "{{ planName }}에서 이용 가능", "Split pane": "분할 창", "Main pane": "기본 창", "Unstar document": "문서 별표 해제", @@ -778,6 +779,7 @@ "Last seen": "마지막 접속", "{{ time }} local time": "{{ time }} 현지 시간", "Your import completed": "불러오기 완료됨", + "Lock aspect ratio": "종횡비 잠금", "Templates": "템플릿", "View comment thread": "댓글 스레드 보기", "Previous match": "이전 찾기", @@ -798,10 +800,13 @@ "Width": "너비", "Image height": "이미지 높이", "Height": "높이", + "Aspect ratio locked": "종횡비가 잠겼습니다", + "Aspect ratio unlocked": "종횡비가 잠금 해제되었습니다", "Paste a link": "링크 붙여 넣기", "Delete embed": "임베드 삭제", "Delete video": "동영상 삭제", "Delete image": "이미지 삭제", + "Display options": "표시 옵션", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }}님은 이 문서에 액세스할 수 없으므로 알림을 받지 않습니다", "Members of “{{ groupName }}” with access to this document will be notified": "이 문서에 액세스할 수 있는 “{{ groupName }}”의 구성원에게 알림이 전송됩니다", "Keep as link": "링크로 유지", @@ -813,6 +818,25 @@ "Upload file": "파일 업로드", "Paste a link from {{service}}…": "{{service}}의 링크 붙여넣기…", "Suggestions": "제안", + "Showing all rows": "모든 행 표시", + "Showing {{ visible }} of {{ count }} rows": "{{ count }}개 행 중 {{ visible }}개 표시", + "Showing {{ visible }} of {{ count }} rows_plural": "{{ count }}개 행 중 {{ visible }}개 표시", + "Filter {{ columnName }}": "{{ columnName }} 필터", + "Is": "같음", + "Is not": "같지 않음", + "Contains": "포함", + "Does not contain": "포함하지 않음", + "Is empty": "비어 있음", + "Is not empty": "비어 있지 않음", + "Condition": "조건", + "Search values": "값 검색", + "Values": "값", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "{{ total }}개 값 중 {{ shown }}개를 표시합니다. 더 찾으려면 검색하세요.", + "No values match your search.": "검색과 일치하는 값이 없습니다.", + "This column has no values": "이 열에는 값이 없습니다", + "{{ visible }} of {{ count }} rows": "{{ count }}개 행 중 {{ visible }}개", + "{{ visible }} of {{ count }} rows_plural": "{{ count }}개 행 중 {{ visible }}개", + "Clear": "지우기", "More options": "더 많은 옵션", "Type '/' to insert": "삽입하려면 '/'를 입력하세요.", "Keep typing to filter": "찾으실 항목을 입력해 주세요", @@ -855,6 +879,8 @@ "Edit image URL": "이미지 URL 수정", "Create a new doc": "새 문서 만들기", "Create a nested doc": "하위 문서 생성", + "Display as mention": "멘션으로 표시", + "Display as card": "카드로 표시", "Default width": "기본 너비", "Distribute columns": "열 배분", "Export as CSV": "CSV로 내보내기", @@ -874,6 +900,11 @@ "Upload a video": "동영상 업로드", "Edit video URL": "동영상 URL 수정", "Could not import file": "파일을 가져올 수 없음", + "Community": "커뮤니티", + "Standard": "스탠더드", + "Business": "비즈니스", + "Enterprise": "엔터프라이즈", + "Legacy": "레거시", "Unsubscribed from document": "문서 구독이 취소됨", "Unsubscribed from collection": "컬렉션 구독 취소", "Subscription successful": "구독 성공", @@ -894,6 +925,8 @@ "Developer": "개발자", "Applications": "애플리케이션", "API key": "API 키", + "Reconnect": "다시 연결", + "Connected": "연결됨", "Show path to document": "문서 경로 표시", "Comment options": "댓글 옵션", "Enable viewer insights": "뷰어 정보 활성화", @@ -916,6 +949,7 @@ "Trash options": "휴지통 옵션", "User options": "사용자 옵션", "document": "문서", + "All collections": "모든 컬렉션", "Export complete": "내보내기 완료", "Export failed": "내보내기 실패", "An unexpected error occurred": "예기치 않은 오류가 발생했습니다", @@ -931,9 +965,13 @@ "invited you to": "당신을 초대하였습니다:", "added you to the group": "나를 그룹에 추가함", "removed you from the group": "나를 그룹에서 제거함", + "export completed": "내보내기 완료", + "export failed": "내보내기 실패", + "export is no longer available": "내보내기를 더 이상 사용할 수 없습니다", "was granted access to": "에 대한 접근 권한이 부여됨", "requested access to": "에 대한 접근 권한을 요청함", "is requesting access to": "에 대한 접근 권한을 요청하고 있음", + "Your": "귀하의", "a document": "문서", "a collection": "컬렉션", "a group": "그룹", @@ -1031,10 +1069,10 @@ "Document title": "문서 제목", "Last updated": "마지막 업데이트", "Type '/' to insert, or start writing…": "'/'를 입력하여 삽입하거나 쓰기 시작...", + "Save draft": "임시 저장", "Hide contents": "내용 숨기기", "Show contents": "내용 보기", "available when headings are added": "제목 추가 후 사용 가능", - "Save draft": "임시 저장", "Restore version": "버전 복원", "{{userName}} archived": "{{userName}}님이 보관함", "{{userName}} restored": "{{userName}}님이 복원함", @@ -1306,7 +1344,6 @@ "Sign in": "로그인", "Allow members to sign in with {{ authProvider }}": "구성원이 {{ authProvider }}로 로그인하도록 허용", "Connect {{ authProvider }} to allow members to sign in": "구성원이 로그인할 수 있도록 {{ authProvider }} 연결", - "Connected": "연결됨", "Disabled": "비활성화됨", "Connect": "연결", "Group sync": "그룹 동기화", @@ -1365,7 +1402,6 @@ "Processing": "처리중", "Completed": "완료", "Failed": "실패", - "All collections": "모든 컬렉션", "Import deleted": "불러오기 삭제됨", "Export deleted": "내보내기 삭제됨", "Are you sure you want to delete this import?": "이 불러오기를 삭제하시겠습니까?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "이 색상은 강조 색상과의 대비가 낮습니다", "Accent color": "강조 색상", "Accent text color": "강조 텍스트 색상", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "이 기능은 {{planName}} 이상 요금제에 포함되어 있습니다. 팀에서 사용하려면 워크스페이스를 업그레이드하세요.", + "View plans": "요금제 보기", "All roles": "모든 역할", "Admins": "관리자", "Editors": "에디터", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Open Knowledge Format의 Markdown 문서 zip 파일 가져오기", "Import a JSON data file exported from another {{ appName }} instance": "다른 {{ appName }} 인스턴스에서 내보낸 JSON 데이터 파일 가져오기", "Import pages from a Confluence instance": "컨플루언스 인스턴스에서 페이지 가져오기", - "Enterprise": "엔터프라이즈", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "기존 문서, 페이지 및 파일을 다른 도구 및 서비스에서 {{appName}} 으로 빠르게 전송합니다. HTML, Markdown 및 텍스트 문서를 앱의 컬렉션으로 직접 끌어다 놓을 수도 있습니다.", "Recent imports": "최근에 가져온", "Configure a variety of integrations with third-party services.": "다양한 타사 서비스와의 통합을 구성합니다.", + "Documents that are published, updated, or shared with you, and access requests": "게시되거나 업데이트되었거나 나와 공유된 문서 및 액세스 요청", "Receive a notification whenever a new document is published": "새 문서가 게시될 때마다 알림을 받습니다", "Document updated": "문서 업데이트됨", "Receive a notification when a document you are subscribed to is edited": "작성한 문서가 수정되면 알림을 받습니다", + "Invited to document": "문서에 초대됨", + "Receive a notification when a document is shared with you": "문서가 공유되면 알림을 받습니다", + "Document access requested": "문서 접근 권한 요청됨", + "Receive a notification when a user requests access to a document you manage": "관리하는 문서에 대한 접근 권한을 사용자가 요청하면 알림을 받습니다", + "New collections and access to collections": "새 컬렉션 및 컬렉션 액세스", + "Collection created": "컬렉션 생성됨", + "Receive a notification whenever a new collection is created": "새 컬렉션이 생성될 때마다 알림을 받습니다", + "Invited to collection": "컬렉션에 초대됨", + "Receive a notification when you are given access to a collection": "컬렉션 접근 권한이 부여되면 알림을 받습니다", + "Comments and mentions": "댓글 및 멘션", + "New comments, mentions of you or your groups, resolved threads, and reactions": "새 댓글, 나 또는 내 그룹에 대한 멘션, 해결된 스레드 및 반응", "Comment posted": "댓글 작성됨", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "구독 중인 문서 또는 참여한 스레드가 댓글을 받으면 알림을 받습니다", "Mentioned": "언급됨", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "참여한 댓글 스레드가 해결되었을 때 알림을 받습니다", "Reaction added": "반응 추가됨", "Receive a notification when someone reacts to your comment": "누군가 내 댓글에 반응하면 알림을 받습니다", - "Collection created": "컬렉션 생성됨", - "Receive a notification whenever a new collection is created": "새 컬렉션이 생성될 때마다 알림을 받습니다", - "Invite accepted": "초대 수락됨", - "Receive a notification when someone you invited creates an account": "내가 초대한 사람이 계정을 만들면 알림을 받습니다", - "Invited to document": "문서에 초대됨", - "Receive a notification when a document is shared with you": "문서가 공유되면 알림을 받습니다", - "Invited to collection": "컬렉션에 초대됨", - "Receive a notification when you are given access to a collection": "컬렉션 접근 권한이 부여되면 알림을 받습니다", + "Group membership, accepted invites, and completed exports": "그룹 멤버십, 수락된 초대 및 완료된 내보내기", "Group membership": "그룹 구성원", "Receive a notification when you are added to or removed from a group": "그룹에 추가되거나 그룹에서 제거될 때 알림 받기", + "Invite accepted": "초대 수락됨", + "Receive a notification when someone you invited creates an account": "내가 초대한 사람이 계정을 만들면 알림을 받습니다", "Export completed": "내보내기 완료", "Receive a notification when an export you requested has been completed": "요청한 내보내기가 완료되면 알림을 받습니다", - "Document access requested": "문서 접근 권한 요청됨", - "Receive a notification when a user requests access to a document you manage": "관리하는 문서에 대한 접근 권한을 사용자가 요청하면 알림을 받습니다", + "Product updates": "제품 업데이트", + "Tips on getting started and announcements of new features": "시작 방법 팁 및 새 기능 안내", "Getting started": "시작하기", "Tips on getting started with features and functionality": "기능과 특징을 시작하기 위한 팁", "New features": "새로운 기능", @@ -1643,7 +1687,7 @@ "Failed to save revision": "수정 내용을 저장하는 데 실패했습니다", "Invite to document": "문서에 초대", "Sorry, invalid embed link": "죄송합니다, 임베드 링크가 잘못되었습니다", - "Data Attributes": "데이터 속성", + "Data attributes": "데이터 속성", "Edit attribute": "속성 편집", "Property": "속성", "Yes": "예", @@ -1675,7 +1719,7 @@ "Text": "텍스트", "List": "리스트", "Could not load events": "이벤트를 불러올 수 없습니다", - "Audit Log": "활동기록", + "Audit log": "감사 로그", "The audit log details the history of security-related and other events across your knowledge base.": "감사 로그에는 지식 베이스 전반의 보안 관련 이벤트와 기타 이벤트 기록이 상세히 표시됩니다.", "IP address": "IP 주소", "Actor": "주체", @@ -1818,6 +1862,10 @@ "Script name": "스크립트 이름", "The name of the script file that Umami uses to track analytics.": "Umami가 분석을 추적하는 데 사용하는 스크립트 파일의 이름입니다.", "An ID that uniquely identifies the website in your Umami instance.": "Umami 인스턴스에서 웹사이트를 고유하게 식별하는 ID입니다.", + "The audit log details the history of security related and other events across your knowledge base.": "활동기록에는 지식 기반 전체에 걸쳐 발생한 보안 관련 이벤트 및 기타 이벤트의 기록이 자세히 나와 있습니다.", + "Content": "콘텐츠", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "지식 베이스의 모든 컬렉션에 대한 권한 및 설정을 관리하세요. 작업공간 관리자는 비공개 컬렉션도 관리할 수 있습니다.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Glean 내에서 {{appName}}의 문서 콘텐츠를 실시간으로 자동 색인화하고 검색합니다.", "New webhook": "새 웹훅", "Edit webhook": "웹훅 편집", "Delete webhook": "웹훅 삭제", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} 님이 문서 \"{{ documentTitle }}\"에서 \"{{ groupName }}\" 그룹을 언급했습니다.", "Your group was mentioned": "기록을 연장하려면 업그레이드하십시오", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }}님이 문서에서 “{{ groupName }}” 그룹을 언급했습니다", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} 님이 {{ appName }} 팀에 합류했습니다.", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} 님이 {{ appName }} 워크스페이스에 참여했습니다", "Great news, {{ invitedName }} accepted your invitation": "좋은 소식입니다. {{ invitedName }}님이 초대를 수락했습니다", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "좋은 소식입니다! {{ invitedName }} 님이 초대장을 수락하고 계정을 만들었습니다. 이제 문서 공동 작업을 시작할 수 있습니다.", "Open {{ appName }}": "{{ appName }} 열기", - "{{ invitedName }} has joined your team": "{{ invitedName }} 이 당신의 팀에 합류했습니다", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} 님이 워크스페이스에 참여했습니다", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} 님이 {{ teamName }}의 워크스페이스에 여러분을 초대했습니다.", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }}은 팀이 지식을 구축하고 공유하는 공간입니다.", "Join {{ teamName }} on {{ appName }}": "{{ teamName }} 팀과 {{ appName }} 앱에 참여하세요.", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "{{ appName }}에 여러분을 초대합니다. 이곳은 여러분의 팀이 지식을 쌓고 공유할 수 있는 공간입니다.", "Join now": "가입하기", "Reminder": "알림", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "{{ actorName }} {{ actorEmail }} 님이 {{ appName }}의 {{ teamName }} 팀에 여러분을 초대했다는 것을 알려드리기 위한 간단한 안내입니다. {{ appName }} 팀은 여러분의 팀이 지식을 쌓고 공유할 수 있는 공간입니다.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "{{ actorName }} {{ actorEmail }} 님이 팀이 지식을 구축하고 공유할 수 있는 공간인 {{ appName }}의 {{ teamName }} 워크스페이스에 참여하도록 귀하를 초대했다는 간단한 안내입니다.", "We only send a reminder once.": "저희는 알림 메시지를 한 번만 보냅니다.", "If you haven’t signed up yet, you can do so here": "아직 가입하지 않았다면 여기에서 가입할 수 있습니다", "“{{ documentTitle }}” updated": "“{{ documentTitle }}” 업데이트됨", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "로그인 인증 코드", "Here’s your link to sign in to {{ appName }}.": "{{ appName }}에 로그인할 수 있는 링크입니다.", "Use the link below to sign in": "아래 링크를 사용하여 로그인하세요.", - "If the link expired, you can request a new one from your team’s sign-in page at": "링크가 만료된 경우 팀의 로그인 페이지에서 새 링크를 요청할 수 있습니다", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "링크가 만료된 경우 워크스페이스의 로그인 페이지에서 새 링크를 요청할 수 있습니다", "Enter this verification code": "이 인증 코드를 입력하세요", - "If the code expired, you can request a new one from your team’s sign-in page at": "코드가 만료된 경우 팀의 로그인 페이지에서 새 코드를 요청할 수 있습니다", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "코드가 만료된 경우 워크스페이스의 로그인 페이지에서 새 코드를 요청할 수 있습니다", "Click the button below to sign in to {{ appName }}.": "아래 버튼을 클릭하여 {{ appName }}에 로그인하세요.", "Sign-in Code": "로그인 코드", - "Enter this code on your team’s sign-in page to continue.": "계속하려면 팀 로그인 페이지에 이 코드를 입력하세요.", + "Enter this code on your workspace’s sign-in page to continue.": "계속하려면 워크스페이스 로그인 페이지에 이 코드를 입력하세요.", "Webhook disabled": "웹훅 비활성화됨", "Your webhook ({{ webhookName }}) has been disabled": "웹훅({{ webhookName }})이 비활성화되었습니다.", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "최근 전송 시도에서 실패율이 높아 웹훅({{ webhookName }})이 자동으로 비활성화되었습니다. 웹훅을 편집하여 다시 활성화할 수 있습니다.", @@ -2007,10 +2055,14 @@ "Hide completed": "완료 숨기기", "Sorry, the link could not be copied": "죄송합니다. 링크를 복사할 수 없습니다", "Write a caption": "캡션 입력", - "Display as mention": "멘션으로 표시", - "Display as card": "카드로 표시", "Add title": "제목 추가", "Add content": "콘텐츠 추가", + "Change column filter": "열 필터 변경", + "Filter column": "열 필터링", + "{{ count }} filter applied": "{{ count }}개 필터 적용됨", + "{{ count }} filter applied_plural": "{{ count }}개 필터 적용됨", + "Filters cleared for you": "필터가 지워졌습니다", + "Save for everyone": "모두에게 저장", "Tomorrow": "내일", "Group admin": "그룹 관리", "Member": "멤버" diff --git a/shared/i18n/locales/nb_NO/translation.json b/shared/i18n/locales/nb_NO/translation.json index 1b0572ed82..b80305933f 100644 --- a/shared/i18n/locales/nb_NO/translation.json +++ b/shared/i18n/locales/nb_NO/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integrasjoner", "Back to app": "Tilbake til appen", "Installation": "Installasjon", + "Available on {{ planName }}": "Tilgjengelig i {{ planName }}", "Split pane": "Split pane", "Main pane": "Main pane", "Unstar document": "Fjern stjerne fra dokument", @@ -778,6 +779,7 @@ "Last seen": "Sist sett", "{{ time }} local time": "{{ time }} lokal tid", "Your import completed": "Importen din er fullført", + "Lock aspect ratio": "Lås sideforhold", "Templates": "Maler", "View comment thread": "View comment thread", "Previous match": "Forrige treff", @@ -798,10 +800,13 @@ "Width": "Bredde", "Image height": "Bildehøyde", "Height": "Høyde", + "Aspect ratio locked": "Sideforhold låst", + "Aspect ratio unlocked": "Sideforhold ulåst", "Paste a link": "Lim inn en lenke", "Delete embed": "Slett embed", "Delete video": "Slett video", "Delete image": "Slett bilde", + "Display options": "Visningsalternativer", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} vil ikke bli varslet, ettersom vedkommende ikke har tilgang til dette dokumentet", "Members of “{{ groupName }}” with access to this document will be notified": "Medlemmer av «{{ groupName }}» som har tilgang til dette dokumentet, vil bli varslet", "Keep as link": "Behold som lenke", @@ -813,6 +818,25 @@ "Upload file": "Last opp fil", "Paste a link from {{service}}…": "Lim inn en lenke fra {{service}}…", "Suggestions": "Forslag", + "Showing all rows": "Viser alle rader", + "Showing {{ visible }} of {{ count }} rows": "Viser {{ visible }} av {{ count }} rad", + "Showing {{ visible }} of {{ count }} rows_plural": "Viser {{ visible }} av {{ count }} rader", + "Filter {{ columnName }}": "Filtrer {{ columnName }}", + "Is": "Er", + "Is not": "Er ikke", + "Contains": "Inneholder", + "Does not contain": "Inneholder ikke", + "Is empty": "Er tom", + "Is not empty": "Er ikke tom", + "Condition": "Betingelse", + "Search values": "Søk i verdier", + "Values": "Verdier", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Viser {{ shown }} av {{ total }} verdier. Søk for å finne flere.", + "No values match your search.": "Ingen verdier samsvarer med søket ditt.", + "This column has no values": "Denne kolonnen har ingen verdier", + "{{ visible }} of {{ count }} rows": "{{ visible }} av {{ count }} rad", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} av {{ count }} rader", + "Clear": "Tøm", "More options": "Flere alternativer", "Type '/' to insert": "Skriv '/' for å sette inn", "Keep typing to filter": "Fortsett å skrive for å filtrere", @@ -855,6 +879,8 @@ "Edit image URL": "Edit image URL", "Create a new doc": "Lag et nytt dokument", "Create a nested doc": "Lag et nytt underdokument", + "Display as mention": "Vis som omtale", + "Display as card": "Vis som kort", "Default width": "Standardbredde", "Distribute columns": "Distribute columns", "Export as CSV": "Eksporter som CSV", @@ -874,6 +900,11 @@ "Upload a video": "Last opp en video", "Edit video URL": "Rediger video-URL", "Could not import file": "Kunne ikke importere fil", + "Community": "Fellesskap", + "Standard": "Standard", + "Business": "Bedrift", + "Enterprise": "Bedrift", + "Legacy": "Eldre", "Unsubscribed from document": "Avsluttet abonnement fra dokument", "Unsubscribed from collection": "Avsluttet abonnement fra samling", "Subscription successful": "Subscription successful", @@ -894,6 +925,8 @@ "Developer": "Utvikler", "Applications": "Applikasjoner", "API key": "API-nøkkel", + "Reconnect": "Koble til på nytt", + "Connected": "Tilkoblet", "Show path to document": "Vis sti til dokument", "Comment options": "Kommentaralternativer", "Enable viewer insights": "Aktiver leserinnsikt", @@ -916,6 +949,7 @@ "Trash options": "Alternativer for papirkurven", "User options": "Brukeralternativer", "document": "dokument", + "All collections": "Alle samlinger", "Export complete": "Export complete", "Export failed": "Export failed", "An unexpected error occurred": "An unexpected error occurred", @@ -931,9 +965,13 @@ "invited you to": "inviterte deg til", "added you to the group": "la deg til i gruppen", "removed you from the group": "fjernet deg fra gruppen", + "export completed": "eksport fullført", + "export failed": "eksport mislyktes", + "export is no longer available": "eksport er ikke lenger tilgjengelig", "was granted access to": "was granted access to", "requested access to": "requested access to", "is requesting access to": "ber om tilgang til", + "Your": "Din", "a document": "et dokument", "a collection": "en samling", "a group": "a group", @@ -1031,10 +1069,10 @@ "Document title": "Dokumenttittel", "Last updated": "Sist oppdatert", "Type '/' to insert, or start writing…": "Skriv '/' for å sette inn, eller begynn å skrive…", + "Save draft": "Lagre utkast", "Hide contents": "Skjul innhold", "Show contents": "Vis innhold", "available when headings are added": "tilgjengelig når overskrifter legges til", - "Save draft": "Lagre utkast", "Restore version": "Gjenopprett versjon", "{{userName}} archived": "{{userName}} arkiverte", "{{userName}} restored": "{{userName}} gjenopprettet", @@ -1306,7 +1344,6 @@ "Sign in": "Logg inn", "Allow members to sign in with {{ authProvider }}": "Tillat medlemmer å logge inn med {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Koble til {{ authProvider }} for å la medlemmer logge inn", - "Connected": "Tilkoblet", "Disabled": "Deaktivert", "Connect": "Koble til", "Group sync": "Group sync", @@ -1365,7 +1402,6 @@ "Processing": "Behandler", "Completed": "Fullført", "Failed": "Mislyktes", - "All collections": "Alle samlinger", "Import deleted": "Import slettet", "Export deleted": "Eksport slettet", "Are you sure you want to delete this import?": "Er du sikker på at du vil slette denne importen?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Denne fargen har lav kontrast mot aksentfargen", "Accent color": "Aksentfarge", "Accent text color": "Tekstfarge", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Denne funksjonen er inkludert i {{planName}} og høyere. Oppgrader arbeidsområdet ditt for å låse den opp for teamet ditt.", + "View plans": "Vis abonnementer", "All roles": "Alle roller", "Admins": "Administratorer", "Editors": "Redaktører", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Importer en zip-fil med Markdown-dokumenter i Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Importer en JSON datafil eksportert fra en annen {{ appName }}-instans", "Import pages from a Confluence instance": "Importer sider fra en Confluence-instans", - "Enterprise": "Bedrift", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Overfør raskt dine eksisterende dokumenter, sider og filer fra andre verktøy og tjenester til {{appName}}. Du kan også dra og slippe HTML-, Markdown- og tekst-dokumenter direkte inn i Samlinger i appen.", "Recent imports": "Nylige importer", "Configure a variety of integrations with third-party services.": "Konfigurer en rekke integrasjoner med tredjepartstjenester.", + "Documents that are published, updated, or shared with you, and access requests": "Dokumenter som publiseres, oppdateres eller deles med deg, og tilgangsforespørsler", "Receive a notification whenever a new document is published": "Motta et varsel hver gang et nytt dokument blir publisert", "Document updated": "Dokument oppdatert", "Receive a notification when a document you are subscribed to is edited": "Motta et varsel når et dokument du abonnerer på blir redigert", + "Invited to document": "Invitert til dokument", + "Receive a notification when a document is shared with you": "Motta et varsel når et dokument deles med deg", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "New collections and access to collections": "Nye samlinger og tilgang til samlinger", + "Collection created": "Samling opprettet", + "Receive a notification whenever a new collection is created": "Motta en varsling når en ny samling opprettes", + "Invited to collection": "Invitert til samling", + "Receive a notification when you are given access to a collection": "Motta et varsel når du får tilgang til en samling", + "Comments and mentions": "Kommentarer og omtaler", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Nye kommentarer, omtaler av deg eller gruppene dine, løste tråder og reaksjoner", "Comment posted": "Kommentar postet", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Motta en varsling når et dokument du abonnerer på eller en tråd du har deltatt i mottar en kommentar", "Mentioned": "Nevnt", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Motta et varsel når en kommentartråd du deltok i er løst", "Reaction added": "Reaksjon lagt til", "Receive a notification when someone reacts to your comment": "Motta en notifikasjon når noen reagerer på din kommentar", - "Collection created": "Samling opprettet", - "Receive a notification whenever a new collection is created": "Motta en varsling når en ny samling opprettes", - "Invite accepted": "Invitasjon akseptert", - "Receive a notification when someone you invited creates an account": "Motta en varsling når noen du har invitert oppretter en konto", - "Invited to document": "Invitert til dokument", - "Receive a notification when a document is shared with you": "Motta et varsel når et dokument deles med deg", - "Invited to collection": "Invitert til samling", - "Receive a notification when you are given access to a collection": "Motta et varsel når du får tilgang til en samling", + "Group membership, accepted invites, and completed exports": "Gruppemedlemskap, godtatte invitasjoner og fullførte eksporter", "Group membership": "Gruppemedlemskap", "Receive a notification when you are added to or removed from a group": "Motta et varsel når du blir lagt til i eller fjernet fra en gruppe", + "Invite accepted": "Invitasjon akseptert", + "Receive a notification when someone you invited creates an account": "Motta en varsling når noen du har invitert oppretter en konto", "Export completed": "Eksport fullført", "Receive a notification when an export you requested has been completed": "Motta en varsling når en eksport du har bedt om er fullført", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Product updates": "Produktoppdateringer", + "Tips on getting started and announcements of new features": "Tips om hvordan du kommer i gang, og kunngjøringer om nye funksjoner", "Getting started": "Komme i gang", "Tips on getting started with features and functionality": "Tips for å komme i gang med funksjoner og funksjonalitet", "New features": "Nye funksjoner", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Failed to save revision", "Invite to document": "Invite to document", "Sorry, invalid embed link": "Beklager, ugyldig embed-lenke", - "Data Attributes": "Data Attributes", + "Data attributes": "Dataattributter", "Edit attribute": "Edit attribute", "Property": "Property", "Yes": "Yes", @@ -1675,7 +1719,7 @@ "Text": "Text", "List": "List", "Could not load events": "Could not load events", - "Audit Log": "Audit Log", + "Audit log": "Revisjonslogg", "The audit log details the history of security-related and other events across your knowledge base.": "Revisjonsloggen viser historikken over sikkerhetsrelaterte og andre hendelser i hele kunnskapsbasen din.", "IP address": "IP address", "Actor": "Actor", @@ -1818,6 +1862,10 @@ "Script name": "Navn på script", "The name of the script file that Umami uses to track analytics.": "Navnet på skriptfilen som Umami bruker til å spore analyser.", "An ID that uniquely identifies the website in your Umami instance.": "En ID som unikt identifiserer nettstedet i din Umami-forekomst.", + "The audit log details the history of security related and other events across your knowledge base.": "Revisjonsloggen beskriver historikken til sikkerhetsrelaterte og andre hendelser i kunnskapsbasen din.", + "Content": "Innhold", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Administrer tillatelsene og innstillingene for alle samlinger i kunnskapsbasen. Som arbeidsområdeadministrator kan du også administrere private samlinger.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Indekser og søk automatisk i dokumentinnhold fra {{appName}} i Glean i sanntid.", "New webhook": "Ny webhook", "Edit webhook": "Rediger webhook", "Delete webhook": "Slett webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", "Your group was mentioned": "Your group was mentioned", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} nevnte gruppen «{{ groupName }}» i dokumentet", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} har blitt med i {{ appName }}-arbeidsområdet ditt", "Great news, {{ invitedName }} accepted your invitation": "Gode nyheter! {{ invitedName }} godtok invitasjonen din", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} har blitt med i arbeidsområdet ditt", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", "Join now": "Join now", "Reminder": "Reminder", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Dette er bare en rask påminnelse om at {{ actorName }} {{ actorEmail }} inviterte deg til å bli med dem i {{ teamName }}-arbeidsområdet på {{ appName }}, et sted der teamet ditt kan bygge opp og dele kunnskap.", "We only send a reminder once.": "We only send a reminder once.", "If you haven’t signed up yet, you can do so here": "Hvis du ikke har registrert deg ennå, kan du gjøre det her", "“{{ documentTitle }}” updated": "«{{ documentTitle }}» oppdatert", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Bekreftelseskode for innlogging", "Here’s your link to sign in to {{ appName }}.": "Her er lenken din for å logge inn på {{ appName }}.", "Use the link below to sign in": "Use the link below to sign in", - "If the link expired, you can request a new one from your team’s sign-in page at": "Hvis lenken har utløpt, kan du be om en ny fra teamets innloggingsside på", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Hvis lenken har utløpt, kan du be om en ny fra påloggingssiden for arbeidsområdet ditt på", "Enter this verification code": "Enter this verification code", - "If the code expired, you can request a new one from your team’s sign-in page at": "Hvis koden har utløpt, kan du be om en ny fra teamets innloggingsside på", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Hvis koden har utløpt, kan du be om en ny fra påloggingssiden for arbeidsområdet ditt på", "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", "Sign-in Code": "Sign-in Code", - "Enter this code on your team’s sign-in page to continue.": "Skriv inn denne koden på teamets innloggingsside for å fortsette.", + "Enter this code on your workspace’s sign-in page to continue.": "Skriv inn denne koden på påloggingssiden for arbeidsområdet ditt for å fortsette.", "Webhook disabled": "Webhook disabled", "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Webhooken din ({{ webhookName }}) har blitt deaktivert automatisk på grunn av en høy feilrate i nylige leveringsforsøk. Du kan aktivere den på nytt ved å redigere webhooken.", @@ -2007,10 +2055,14 @@ "Hide completed": "Hide completed", "Sorry, the link could not be copied": "Sorry, the link could not be copied", "Write a caption": "Skriv en bildetekst", - "Display as mention": "Vis som omtale", - "Display as card": "Vis som kort", "Add title": "Add title", "Add content": "Add content", + "Change column filter": "Endre kolonnefilter", + "Filter column": "Filtrer kolonne", + "{{ count }} filter applied": "{{ count }} filter brukt", + "{{ count }} filter applied_plural": "{{ count }} filtre brukt", + "Filters cleared for you": "Filtre er tømt for deg", + "Save for everyone": "Lagre for alle", "Tomorrow": "Tomorrow", "Group admin": "Gruppeadministrator", "Member": "Medlem" diff --git a/shared/i18n/locales/nl_NL/translation.json b/shared/i18n/locales/nl_NL/translation.json index ae11e3d384..205f71e595 100644 --- a/shared/i18n/locales/nl_NL/translation.json +++ b/shared/i18n/locales/nl_NL/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integratie", "Back to app": "Terug naar de app", "Installation": "Installatie", + "Available on {{ planName }}": "Beschikbaar in {{ planName }}", "Split pane": "Gesplitst deelvenster", "Main pane": "Hoofddeelvenster", "Unstar document": "Document verwijderen uit favorieten", @@ -778,6 +779,7 @@ "Last seen": "Laatst gezien", "{{ time }} local time": "{{ time }} lokale tijd", "Your import completed": "Importeren voltooid", + "Lock aspect ratio": "Beeldverhouding vergrendelen", "Templates": "Sjablonen", "View comment thread": "Opmerkingenthread bekijken", "Previous match": "Vorige match", @@ -798,10 +800,13 @@ "Width": "Breedte", "Image height": "Afbeelding hoogte", "Height": "Hoogte", + "Aspect ratio locked": "Beeldverhouding vergrendeld", + "Aspect ratio unlocked": "Beeldverhouding ontgrendeld", "Paste a link": "Plak een link", "Delete embed": "Insluiting verwijderen", "Delete video": "Video verwijderen", "Delete image": "Afbeelding verwijderen", + "Display options": "Weergaveopties", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} wordt niet op de hoogte gebracht, omdat deze persoon geen toegang heeft tot dit document", "Members of “{{ groupName }}” with access to this document will be notified": "Leden van “{{ groupName }}” die toegang hebben tot dit document worden op de hoogte gebracht", "Keep as link": "Behoud als link", @@ -813,6 +818,25 @@ "Upload file": "Bestand uploaden", "Paste a link from {{service}}…": "Plak een link van {{service}}…", "Suggestions": "Suggesties", + "Showing all rows": "Alle rijen worden weergegeven", + "Showing {{ visible }} of {{ count }} rows": "{{ visible }} van {{ count }} rij wordt weergegeven", + "Showing {{ visible }} of {{ count }} rows_plural": "{{ visible }} van {{ count }} rijen worden weergegeven", + "Filter {{ columnName }}": "Filter {{ columnName }}", + "Is": "Is", + "Is not": "Is niet", + "Contains": "Bevat", + "Does not contain": "Bevat niet", + "Is empty": "Is leeg", + "Is not empty": "Is niet leeg", + "Condition": "Voorwaarde", + "Search values": "Waarden doorzoeken", + "Values": "Waarden", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "{{ shown }} van {{ total }} waarden weergegeven. Zoek om meer te vinden.", + "No values match your search.": "Geen waarden komen overeen met je zoekopdracht.", + "This column has no values": "Deze kolom heeft geen waarden", + "{{ visible }} of {{ count }} rows": "{{ visible }} van {{ count }} rij", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} van {{ count }} rijen", + "Clear": "Wissen", "More options": "Meer opties", "Type '/' to insert": "Typ '/' om in te voegen", "Keep typing to filter": "Blijf typen om te filteren", @@ -855,6 +879,8 @@ "Edit image URL": "Afbeeldingslink bewerken", "Create a new doc": "Maak een nieuw document", "Create a nested doc": "Een geneste doc aanmaken", + "Display as mention": "Weergeven als vermelding", + "Display as card": "Weergeven als kaart", "Default width": "Standaardbreedte", "Distribute columns": "Kolommen verdelen", "Export as CSV": "Exporteren als CSV", @@ -874,6 +900,11 @@ "Upload a video": "Een video uploaden", "Edit video URL": "Video-URL bewerken", "Could not import file": "Kon bestand niet importeren", + "Community": "Community", + "Standard": "Standaard", + "Business": "Bedrijf", + "Enterprise": "Zakelijk", + "Legacy": "Verouderd", "Unsubscribed from document": "Afgemeld voor document", "Unsubscribed from collection": "Afgemeld voor collectie", "Subscription successful": "Abonnement succesvol", @@ -894,6 +925,8 @@ "Developer": "Ontwikkelaar", "Applications": "Applicaties", "API key": "API-sleutel", + "Reconnect": "Opnieuw verbinden", + "Connected": "Verbonden", "Show path to document": "Toon pad naar document", "Comment options": "Opties voor reageren", "Enable viewer insights": "Schakel viewer inzichten uit", @@ -916,6 +949,7 @@ "Trash options": "Prullenbakopties", "User options": "Gebruikersopties", "document": "document", + "All collections": "Alle collecties", "Export complete": "Exporteren voltooid", "Export failed": "Export is mislukt", "An unexpected error occurred": "Er is een onbekende fout opgetreden", @@ -931,9 +965,13 @@ "invited you to": "heeft je uitgenodigd voor", "added you to the group": "heeft je aan de groep toegevoegd", "removed you from the group": "heeft je uit de groep verwijderd", + "export completed": "export afgerond", + "export failed": "export is mislukt", + "export is no longer available": "export is niet langer beschikbaar", "was granted access to": "heeft toegang gekregen tot", "requested access to": "heeft toegang aangevraagd tot", "is requesting access to": "vraagt toegang aan tot", + "Your": "Uw", "a document": "een document", "a collection": "een collectie", "a group": "een groep", @@ -1031,10 +1069,10 @@ "Document title": "Documenttitel", "Last updated": "Laatst bijgewerkt", "Type '/' to insert, or start writing…": "Typ '/' om in te voegen of begin met schrijven…", + "Save draft": "Bewaar concept", "Hide contents": "Inhoud verbergen", "Show contents": "Inhoud weergeven", "available when headings are added": "beschikbaar wanneer rubrieken worden toegevoegd", - "Save draft": "Bewaar concept", "Restore version": "Versie herstellen", "{{userName}} archived": "{{userName}} gearchiveerd", "{{userName}} restored": "{{userName}} hersteld", @@ -1306,7 +1344,6 @@ "Sign in": "Aanmelden", "Allow members to sign in with {{ authProvider }}": "Leden toestaan zich aan te melden met {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Verbind {{ authProvider }} om leden toe te staan zich aan te melden", - "Connected": "Verbonden", "Disabled": "Uitgeschakeld", "Connect": "Verbinden", "Group sync": "Groepssynchronisatie", @@ -1365,7 +1402,6 @@ "Processing": "Verwerken", "Completed": "Voltooid", "Failed": "Mislukt", - "All collections": "Alle collecties", "Import deleted": "Import verwijderd", "Export deleted": "Export verwijderd", "Are you sure you want to delete this import?": "Weet je zeker dat je deze import wilt verwijderen?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Deze kleur heeft een laag contrast ten opzichte van de accentkleur", "Accent color": "Accent kleur", "Accent text color": "Accent tekstkleur", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Deze functie is inbegrepen in {{planName}} en hoger. Upgrade je werkruimte om deze functie voor je team te ontgrendelen.", + "View plans": "Abonnementen bekijken", "All roles": "Alle rollen", "Admins": "Beheerders", "Editors": "Redacteurs", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Importeer een zipbestand met Markdown-documenten in de Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Importeer een JSON-gegevensbestand dat is geëxporteerd uit een andere {{ appName }} instantie", "Import pages from a Confluence instance": "Pagina's importeren van een Confluence instantie", - "Enterprise": "Zakelijk", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Zet snel je bestaande documenten, pagina's en bestanden van andere tools en services over naar {{appName}}. Je kunt HTML-, Markdown- en tekstdocumenten ook rechtstreeks naar Collecties in de app slepen.", "Recent imports": "Recent geïmporteerd", "Configure a variety of integrations with third-party services.": "Een verscheidenheid van integraties met externe diensten configureren.", + "Documents that are published, updated, or shared with you, and access requests": "Documenten die worden gepubliceerd, bijgewerkt of met u worden gedeeld, en toegangsverzoeken", "Receive a notification whenever a new document is published": "Ontvang een melding wanneer een nieuw document wordt gepubliceerd", "Document updated": "Document bijgewerkt", "Receive a notification when a document you are subscribed to is edited": "Ontvang een melding wanneer een document waarop je geabonneerd bent, is bewerkt", + "Invited to document": "Uitgenodigd voor document", + "Receive a notification when a document is shared with you": "Ontvang een melding wanneer een document met je wordt gedeeld", + "Document access requested": "Toegang tot document aangevraagd", + "Receive a notification when a user requests access to a document you manage": "Ontvang een melding wanneer een gebruiker toegang aanvraagt tot een document dat je beheert", + "New collections and access to collections": "Nieuwe collecties en toegang tot collecties", + "Collection created": "Collectie aangemaakt", + "Receive a notification whenever a new collection is created": "Ontvang een melding wanneer een nieuwe collectie wordt gemaakt", + "Invited to collection": "Uitgenodigd voor collectie", + "Receive a notification when you are given access to a collection": "Ontvang een melding wanneer je toegang krijgt tot een collectie", + "Comments and mentions": "Opmerkingen en vermeldingen", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Nieuwe opmerkingen, vermeldingen van u of uw groepen, opgeloste discussies en reacties", "Comment posted": "Reactie geplaatst", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Ontvang een melding wanneer een document waarop je geabonneerd bent, of een thread waaraan je hebt deelgenomen, een opmerking ontvangt", "Mentioned": "Vermeld", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Ontvang een melding wanneer een reactie waar je bij betrokken was is opgelost", "Reaction added": "Reactie toegevoegd", "Receive a notification when someone reacts to your comment": "Ontvang een melding wanneer iemand reageert op jouw reactie", - "Collection created": "Collectie aangemaakt", - "Receive a notification whenever a new collection is created": "Ontvang een melding wanneer een nieuwe collectie wordt gemaakt", - "Invite accepted": "Uitnodiging geaccepteerd", - "Receive a notification when someone you invited creates an account": "Ontvang een melding wanneer iemand die je hebt uitgenodigd een account aanmaakt", - "Invited to document": "Uitgenodigd voor document", - "Receive a notification when a document is shared with you": "Ontvang een melding wanneer een document met je wordt gedeeld", - "Invited to collection": "Uitgenodigd voor collectie", - "Receive a notification when you are given access to a collection": "Ontvang een melding wanneer je toegang krijgt tot een collectie", + "Group membership, accepted invites, and completed exports": "Groepslidmaatschap, geaccepteerde uitnodigingen en voltooide exports", "Group membership": "Groepslidmaatschap", "Receive a notification when you are added to or removed from a group": "Ontvang een melding wanneer je aan een groep wordt toegevoegd of uit een groep wordt verwijderd", + "Invite accepted": "Uitnodiging geaccepteerd", + "Receive a notification when someone you invited creates an account": "Ontvang een melding wanneer iemand die je hebt uitgenodigd een account aanmaakt", "Export completed": "Export afgerond", "Receive a notification when an export you requested has been completed": "Ontvang een melding wanneer een aangevraagde export is afgerond", - "Document access requested": "Toegang tot document aangevraagd", - "Receive a notification when a user requests access to a document you manage": "Ontvang een melding wanneer een gebruiker toegang aanvraagt tot een document dat je beheert", + "Product updates": "Productupdates", + "Tips on getting started and announcements of new features": "Tips om aan de slag te gaan en aankondigingen van nieuwe functies", "Getting started": "Aan de slag", "Tips on getting started with features and functionality": "Tips om aan de slag te gaan met de features en functionaliteit", "New features": "Nieuwe features", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Opslaan van revisie is mislukt", "Invite to document": "Uitnodigen voor document", "Sorry, invalid embed link": "Sorry, ongeldige insluitingslink", - "Data Attributes": "Gegevens kenmerken", + "Data attributes": "Gegevenskenmerken", "Edit attribute": "Kenmerken bewerken", "Property": "Eigenschap", "Yes": "Ja", @@ -1675,7 +1719,7 @@ "Text": "Tekst", "List": "Lijst", "Could not load events": "Kan gebeurtenissen niet laden", - "Audit Log": "Controlelogboek", + "Audit log": "Controlelogboek", "The audit log details the history of security-related and other events across your knowledge base.": "Het auditlogboek bevat de geschiedenis van beveiligingsgerelateerde en andere gebeurtenissen in je kennisbank.", "IP address": "IP-adres", "Actor": "Acteur", @@ -1818,6 +1862,10 @@ "Script name": "Naam script", "The name of the script file that Umami uses to track analytics.": "De naam van het scriptbestand dat Umami gebruikt om analytics bij te houden.", "An ID that uniquely identifies the website in your Umami instance.": "Een ID dat de website identificeert in jouw Umami-instantie.", + "The audit log details the history of security related and other events across your knowledge base.": "Het auditlogboek bevat de geschiedenis van de beveiliging gerelateerde en andere gebeurtenissen in je kennisbasis.", + "Content": "Inhoud", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Beheer de rechten en instellingen van alle collecties in de kennisbasis. Als beheerder van de werkruimte kunt u ook privécollecties beheren.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Documentinhoud van {{appName}} automatisch in realtime indexeren en doorzoeken binnen Glean.", "New webhook": "Nieuwe webhook", "Edit webhook": "Wijzig webhook", "Delete webhook": "Verwijder Webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} heeft de groep “{{ groupName }}” vermeld in het document “{{ documentTitle }}”.", "Your group was mentioned": "Je groep is vermeld", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} heeft de groep “{{ groupName }}” vermeld in het document", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} is lid geworden van je {{ appName }}-team", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} is lid geworden van je {{ appName }}-werkruimte", "Great news, {{ invitedName }} accepted your invitation": "Goed nieuws, {{ invitedName }} heeft je uitnodiging geaccepteerd", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Goed nieuws, {{ invitedName }} heeft zojuist je uitnodiging geaccepteerd en een account aangemaakt. Je kunt nu samenwerken aan documenten.", "Open {{ appName }}": "{{ appName }} openen", - "{{ invitedName }} has joined your team": "{{ invitedName }} is lid geworden van je team", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} is lid geworden van je werkruimte", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} heeft je uitgenodigd om deel te nemen aan de werkruimte van {{ teamName }}", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is een plek waar je team kennis kan opbouwen en delen.", "Join {{ teamName }} on {{ appName }}": "Deelnemen aan {{ teamName }} op {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "heeft je uitgenodigd om deel te nemen aan {{ appName }}, een plek waar je team kennis kan opbouwen en delen.", "Join now": "Nu deelnemen", "Reminder": "Herinnering", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "Dit is slechts een korte herinnering dat {{ actorName }} {{ actorEmail }} je heeft uitgenodigd om deel te nemen aan het team {{ teamName }} op {{ appName }}, een plek waar je team kennis kan opbouwen en delen.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Dit is slechts een korte herinnering dat {{ actorName }} {{ actorEmail }} je heeft uitgenodigd om deel te nemen aan de {{ teamName }}-werkruimte op {{ appName }}, een plek waar je team kennis kan opbouwen en delen.", "We only send a reminder once.": "We sturen slechts één herinnering.", "If you haven’t signed up yet, you can do so here": "Als je je nog niet hebt aangemeld, kun je dat hier doen", "“{{ documentTitle }}” updated": "“{{ documentTitle }}” bijgewerkt", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Verificatiecode voor aanmelden", "Here’s your link to sign in to {{ appName }}.": "Hier is je link om in te loggen bij {{ appName }}.", "Use the link below to sign in": "Gebruik de onderstaande link om je aan te melden", - "If the link expired, you can request a new one from your team’s sign-in page at": "Als de link is verlopen, kun je een nieuwe aanvragen via de inlogpagina van je team op", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Als de link is verlopen, kun je een nieuwe aanvragen via de aanmeldpagina van je werkruimte op", "Enter this verification code": "Voer deze verificatiecode in", - "If the code expired, you can request a new one from your team’s sign-in page at": "Als de code is verlopen, kun je een nieuwe aanvragen via de inlogpagina van je team op", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Als de code is verlopen, kun je een nieuwe aanvragen via de aanmeldpagina van je werkruimte op", "Click the button below to sign in to {{ appName }}.": "Klik op de onderstaande knop om je aan te melden bij {{ appName }}.", "Sign-in Code": "Aanmeldcode", - "Enter this code on your team’s sign-in page to continue.": "Voer deze code in op de aanmeldingspagina van je team om door te gaan.", + "Enter this code on your workspace’s sign-in page to continue.": "Voer deze code in op de aanmeldpagina van je werkruimte om door te gaan.", "Webhook disabled": "Webhook uitgeschakeld", "Your webhook ({{ webhookName }}) has been disabled": "Je webhook ({{ webhookName }}) is uitgeschakeld", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Je webhook ({{ webhookName }}) is automatisch uitgeschakeld vanwege een hoog foutenpercentage bij recente afleverpogingen. Je kunt deze opnieuw inschakelen door de webhook te bewerken.", @@ -2007,10 +2055,14 @@ "Hide completed": "Verbergen voltooid", "Sorry, the link could not be copied": "Sorry, de link kon niet worden gekopieerd", "Write a caption": "Schrijf een onderschrift", - "Display as mention": "Weergeven als vermelding", - "Display as card": "Weergeven als kaart", "Add title": "Titel toevoegen", "Add content": "Inhoud toevoegen", + "Change column filter": "Kolomfilter wijzigen", + "Filter column": "Kolom filteren", + "{{ count }} filter applied": "{{ count }} filter toegepast", + "{{ count }} filter applied_plural": "{{ count }} filters toegepast", + "Filters cleared for you": "Filters voor je gewist", + "Save for everyone": "Opslaan voor iedereen", "Tomorrow": "Morgen", "Group admin": "Groepsbeheerder", "Member": "Deelnemer" diff --git a/shared/i18n/locales/pl_PL/translation.json b/shared/i18n/locales/pl_PL/translation.json index 069ffe827b..5bc3e70501 100644 --- a/shared/i18n/locales/pl_PL/translation.json +++ b/shared/i18n/locales/pl_PL/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integracje", "Back to app": "Wróć do aplikacji", "Installation": "Instalacja", + "Available on {{ planName }}": "Dostępne w planie {{ planName }}", "Split pane": "Split pane", "Main pane": "Main pane", "Unstar document": "Usuń oznaczenie gwiazdką", @@ -778,6 +779,7 @@ "Last seen": "Ostatnio widziano", "{{ time }} local time": "{{ time }} czasu lokalnego", "Your import completed": "Twój import został zakończony", + "Lock aspect ratio": "Zablokuj proporcje", "Templates": "Szablony", "View comment thread": "View comment thread", "Previous match": "Poprzednie dopasowanie", @@ -798,10 +800,13 @@ "Width": "Szerokość", "Image height": "Wysokość obrazu", "Height": "Wysokość", + "Aspect ratio locked": "Proporcje zablokowane", + "Aspect ratio unlocked": "Proporcje odblokowane", "Paste a link": "Wklej link", "Delete embed": "Usuń osadzenie", "Delete video": "Usuń film", "Delete image": "Usuń obraz", + "Display options": "Opcje wyświetlania", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} nie otrzyma powiadomienia, ponieważ nie ma dostępu do tego dokumentu", "Members of “{{ groupName }}” with access to this document will be notified": "Członkowie grupy „{{ groupName }}” mający dostęp do tego dokumentu zostaną powiadomieni", "Keep as link": "Zachowaj jako link", @@ -813,6 +818,25 @@ "Upload file": "Upload file", "Paste a link from {{service}}…": "Wklej link z {{service}}…", "Suggestions": "Suggestions", + "Showing all rows": "Wyświetlanie wszystkich wierszy", + "Showing {{ visible }} of {{ count }} rows": "Wyświetlanie {{ visible }} z {{ count }} wiersza", + "Showing {{ visible }} of {{ count }} rows_plural": "Wyświetlanie {{ visible }} z {{ count }} wierszy", + "Filter {{ columnName }}": "Filtruj {{ columnName }}", + "Is": "Jest", + "Is not": "Nie jest", + "Contains": "Zawiera", + "Does not contain": "Nie zawiera", + "Is empty": "Jest puste", + "Is not empty": "Nie jest puste", + "Condition": "Warunek", + "Search values": "Szukaj wartości", + "Values": "Wartości", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Wyświetlanie {{ shown }} z {{ total }} wartości. Wyszukaj, aby znaleźć więcej.", + "No values match your search.": "Brak wartości pasujących do wyszukiwania.", + "This column has no values": "Ta kolumna nie ma wartości", + "{{ visible }} of {{ count }} rows": "{{ visible }} z {{ count }} wiersza", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} z {{ count }} wierszy", + "Clear": "Wyczyść", "More options": "Więcej opcji", "Type '/' to insert": "Wpisz '/' aby wstawić", "Keep typing to filter": "Kontynuuj pisanie, aby filtrować", @@ -855,6 +879,8 @@ "Edit image URL": "Zmień adres obrazu", "Create a new doc": "Utwórz nowy dokument", "Create a nested doc": "Create a nested doc", + "Display as mention": "Wyświetl jako wzmiankę", + "Display as card": "Wyświetl jako kartę", "Default width": "Domyślna szerokość", "Distribute columns": "Distribute columns", "Export as CSV": "Eksport jako CSV", @@ -874,6 +900,11 @@ "Upload a video": "Prześlij film", "Edit video URL": "Zmień adres URL filmu", "Could not import file": "Nie można zaimportować pliku", + "Community": "Społeczność", + "Standard": "Standardowy", + "Business": "Biznesowy", + "Enterprise": "Przedsiębiorstwo", + "Legacy": "Starsze", "Unsubscribed from document": "Wypisano z dokumentu", "Unsubscribed from collection": "Zrezygnowano z subskrypcji kolekcji", "Subscription successful": "Subscription successful", @@ -894,6 +925,8 @@ "Developer": "Deweloper", "Applications": "Aplikacje", "API key": "Klucz API", + "Reconnect": "Połącz ponownie", + "Connected": "Połączono", "Show path to document": "Pokaż ścieżkę do dokumentu", "Comment options": "Opcje komentarza", "Enable viewer insights": "Włącz informacje o oglądających", @@ -916,6 +949,7 @@ "Trash options": "Opcje kosza", "User options": "Opcje użytkownika", "document": "dokument", + "All collections": "Wszystkie kolekcje", "Export complete": "Export complete", "Export failed": "Export failed", "An unexpected error occurred": "An unexpected error occurred", @@ -931,9 +965,13 @@ "invited you to": "zaprosił cię do", "added you to the group": "dodano Cię do grupy", "removed you from the group": "usunięto Cię z grupy", + "export completed": "eksport zakończony", + "export failed": "eksport nie powiódł się", + "export is no longer available": "eksport nie jest już dostępny", "was granted access to": "was granted access to", "requested access to": "requested access to", "is requesting access to": "is requesting access to", + "Your": "Twój", "a document": "dokument", "a collection": "kolekcja", "a group": "grupa", @@ -1031,10 +1069,10 @@ "Document title": "Tytuł dokumentu", "Last updated": "Ostatnia aktualizacja", "Type '/' to insert, or start writing…": "Wpisz „/”, aby wstawić, lub zacznij pisać…", + "Save draft": "Zapisz wersję roboczą", "Hide contents": "Ukryj zawartość", "Show contents": "Pokaż zawartość", "available when headings are added": "dostępne po dodaniu nagłówków", - "Save draft": "Zapisz wersję roboczą", "Restore version": "Przywróć wersję", "{{userName}} archived": "Użytkownik {{userName}} zarchiwizował", "{{userName}} restored": "Użytkownik {{userName}} przywrócił", @@ -1306,7 +1344,6 @@ "Sign in": "Zaloguj się", "Allow members to sign in with {{ authProvider }}": "Zezwalaj członkom na logowanie za pomocą {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Połącz {{ authProvider }}, aby umożliwić członkom logowanie", - "Connected": "Połączono", "Disabled": "Wyłączony", "Connect": "Połącz", "Group sync": "Group sync", @@ -1365,7 +1402,6 @@ "Processing": "Przetwarzanie", "Completed": "Ukończone", "Failed": "Niepowodzenie", - "All collections": "Wszystkie kolekcje", "Import deleted": "Import usunięty", "Export deleted": "Eksport usunięty", "Are you sure you want to delete this import?": "Czy na pewno chcesz usunąć ten import?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Ten kolor ma niski kontrast względem koloru akcentującego", "Accent color": "Kolor akcentu", "Accent text color": "Kolor tekstu akcentu", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Ta funkcja jest dostępna w planie {{planName}} i wyższych planach. Ulepsz obszar roboczy, aby odblokować ją dla swojego zespołu.", + "View plans": "Zobacz plany", "All roles": "Wszystkie role", "Admins": "Administratorzy", "Editors": "Edytory", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Zaimportuj plik zip dokumentów Markdown w formacie Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Zaimportuj plik danych JSON wyeksportowany z innej instancji {{ appName }}", "Import pages from a Confluence instance": "Importuj strony z instancji Confluence", - "Enterprise": "Przedsiębiorstwo", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Szybko przenieś swoje istniejące dokumenty, strony i pliki z innych narzędzi i usług do {{appName}}. Możesz także przeciągnąć i upuścić dowolne dokumenty HTML, Markdown i tekstowe bezpośrednio do Kolekcji w aplikacji.", "Recent imports": "Ostatnio zaimportowane", "Configure a variety of integrations with third-party services.": "Konfiguruj integracje z usługami innych firm.", + "Documents that are published, updated, or shared with you, and access requests": "Dokumenty opublikowane, zaktualizowane lub udostępnione Ci oraz prośby o dostęp", "Receive a notification whenever a new document is published": "Otrzymuj powiadomienie o każdym nowym opublikowanym dokumencie", "Document updated": "Dokument zaktualizowany", "Receive a notification when a document you are subscribed to is edited": "Otrzymuj powiadomienie o każdej modyfikacji subskrybowanego przez Ciebie dokumentu", + "Invited to document": "Zaproszony do dokumentu", + "Receive a notification when a document is shared with you": "Otrzymuj powiadomienie, gdy dokument zostanie z Tobą udostępniony", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "New collections and access to collections": "Nowe kolekcje i dostęp do kolekcji", + "Collection created": "Kolekcja utworzona", + "Receive a notification whenever a new collection is created": "Otrzymuj powiadomienie o każdym utworzeniu nowej kolekcji", + "Invited to collection": "Zaproszony do kolekcji", + "Receive a notification when you are given access to a collection": "Otrzymuj powiadomienie, gdy zostanie Ci przyznany dostęp do kolekcji", + "Comments and mentions": "Komentarze i wzmianki", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Nowe komentarze, wzmianki o Tobie lub Twoich grupach, rozwiązane wątki i reakcje", "Comment posted": "Komentarz opublikowany", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Otrzymuj powiadomienie, gdy dokument, który subskrybujesz, lub wątek, w którym uczestniczyłeś, otrzyma komentarz", "Mentioned": "Wspomniany", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Otrzymaj powiadomienie, gdy wątek komentarza, w który byłeś zaangażowany, został rozwiązany", "Reaction added": "Reakcja dodana", "Receive a notification when someone reacts to your comment": "Otrzymuj powiadomienie, gdy ktoś zareaguje na twój komentarz", - "Collection created": "Kolekcja utworzona", - "Receive a notification whenever a new collection is created": "Otrzymuj powiadomienie o każdym utworzeniu nowej kolekcji", - "Invite accepted": "Zaproszenie przyjęte", - "Receive a notification when someone you invited creates an account": "Otrzymuj powiadomienie, gdy zaproszona przez Ciebie osoba utworzy konto", - "Invited to document": "Zaproszony do dokumentu", - "Receive a notification when a document is shared with you": "Otrzymuj powiadomienie, gdy dokument zostanie z Tobą udostępniony", - "Invited to collection": "Zaproszony do kolekcji", - "Receive a notification when you are given access to a collection": "Otrzymuj powiadomienie, gdy zostanie Ci przyznany dostęp do kolekcji", + "Group membership, accepted invites, and completed exports": "Członkostwo w grupach, zaakceptowane zaproszenia i ukończone eksporty", "Group membership": "Członkostwo w grupie", "Receive a notification when you are added to or removed from a group": "Otrzymuj powiadomienie o dodaniu do grupy lub usunięciu z niej", + "Invite accepted": "Zaproszenie przyjęte", + "Receive a notification when someone you invited creates an account": "Otrzymuj powiadomienie, gdy zaproszona przez Ciebie osoba utworzy konto", "Export completed": "Eksport zakończony", "Receive a notification when an export you requested has been completed": "Otrzymuj powiadomienie, gdy zażądany eksport zostanie zakończony", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Product updates": "Aktualizacje produktu", + "Tips on getting started and announcements of new features": "Wskazówki dla początkujących i ogłoszenia o nowych funkcjach", "Getting started": "Rozpoczynanie", "Tips on getting started with features and functionality": "Wskazówki, jak zacząć korzystać z funkcji i funkcjonalności", "New features": "Nowe funkcje", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Nie udało się zapisać wersji", "Invite to document": "Zaproś do dokumentu", "Sorry, invalid embed link": "Niepoprawny link osadzenia", - "Data Attributes": "Atrybuty danych", + "Data attributes": "Atrybuty danych", "Edit attribute": "Edytuj atrybut", "Property": "Właściwość", "Yes": "Tak", @@ -1675,7 +1719,7 @@ "Text": "Tekst", "List": "Lista", "Could not load events": "Nie można załadować zdarzeń", - "Audit Log": "Dziennik Zdarzeń", + "Audit log": "Dziennik audytu", "The audit log details the history of security-related and other events across your knowledge base.": "Dziennik audytu zawiera historię zdarzeń związanych z bezpieczeństwem i innych zdarzeń w całej bazie wiedzy.", "IP address": "Adres IP", "Actor": "Aktor", @@ -1818,6 +1862,10 @@ "Script name": "Nazwa skryptu", "The name of the script file that Umami uses to track analytics.": "Nazwa pliku skryptu, który Umami wykorzystuje do śledzenia analiz.", "An ID that uniquely identifies the website in your Umami instance.": "Identyfikator, który jednoznacznie identyfikuje witrynę w Twojej instancji Umami.", + "The audit log details the history of security related and other events across your knowledge base.": "Dziennik Zdarzeń zawiera szczegóły historii zdarzeń związanych z bezpieczeństwem i innych zdarzeń w bazie wiedzy.", + "Content": "Treść", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Zarządzaj uprawnieniami i ustawieniami wszystkich kolekcji w bazie wiedzy. Jako administrator obszaru roboczego możesz również administrować prywatnymi kolekcjami.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Automatycznie indeksuj i przeszukuj zawartość dokumentów z {{appName}} w Glean w czasie rzeczywistym.", "New webhook": "Nowy webhook", "Edit webhook": "Edytuj webhook", "Delete webhook": "Usuń webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", "Your group was mentioned": "Your group was mentioned", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "Grupa „{{ groupName }}” została wspomniana przez {{ actorName }} w dokumencie", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} dołącza do Twojego obszaru roboczego {{ appName }}", "Great news, {{ invitedName }} accepted your invitation": "Świetna wiadomość, Twoje zaproszenie zostało zaakceptowane przez {{ invitedName }}", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} dołącza do Twojego obszaru roboczego", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", "Join now": "Join now", "Reminder": "Reminder", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "To tylko krótkie przypomnienie, że {{ actorName }} {{ actorEmail }} zaprasza Cię do dołączenia do obszaru roboczego {{ teamName }} w {{ appName }} — miejsca, w którym Twój zespół może tworzyć i udostępniać wiedzę.", "We only send a reminder once.": "We only send a reminder once.", "If you haven’t signed up yet, you can do so here": "Jeśli jeszcze nie utworzono konta, można to zrobić tutaj", "“{{ documentTitle }}” updated": "Zaktualizowano „{{ documentTitle }}”", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Kod weryfikacyjny logowania", "Here’s your link to sign in to {{ appName }}.": "Oto link do zalogowania się do {{ appName }}.", "Use the link below to sign in": "Use the link below to sign in", - "If the link expired, you can request a new one from your team’s sign-in page at": "Jeśli link wygasł, możesz poprosić o nowy na stronie logowania swojego zespołu pod adresem", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Jeśli link wygasł, możesz poprosić o nowy na stronie logowania do swojego obszaru roboczego pod adresem", "Enter this verification code": "Enter this verification code", - "If the code expired, you can request a new one from your team’s sign-in page at": "Jeśli kod wygasł, możesz poprosić o nowy na stronie logowania swojego zespołu pod adresem", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Jeśli kod wygasł, możesz poprosić o nowy na stronie logowania do swojego obszaru roboczego pod adresem", "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", "Sign-in Code": "Sign-in Code", - "Enter this code on your team’s sign-in page to continue.": "Wprowadź ten kod na stronie logowania zespołu, aby kontynuować.", + "Enter this code on your workspace’s sign-in page to continue.": "Wpisz ten kod na stronie logowania do swojego obszaru roboczego, aby kontynuować.", "Webhook disabled": "Webhook disabled", "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Twój webhook ({{ webhookName }}) został automatycznie wyłączony z powodu wysokiego wskaźnika niepowodzeń w ostatnich próbach dostarczenia. Możesz włączyć go ponownie, edytując webhook.", @@ -2007,10 +2055,14 @@ "Hide completed": "Hide completed", "Sorry, the link could not be copied": "Sorry, the link could not be copied", "Write a caption": "Napisz podpis", - "Display as mention": "Wyświetl jako wzmiankę", - "Display as card": "Wyświetl jako kartę", "Add title": "Add title", "Add content": "Add content", + "Change column filter": "Zmień filtr kolumny", + "Filter column": "Filtruj kolumnę", + "{{ count }} filter applied": "Zastosowano {{ count }} filtr", + "{{ count }} filter applied_plural": "Zastosowano {{ count }} filtry", + "Filters cleared for you": "Filtry zostały dla Ciebie wyczyszczone", + "Save for everyone": "Zapisz dla wszystkich", "Tomorrow": "Tomorrow", "Group admin": "Administrator grupy", "Member": "Członek" diff --git a/shared/i18n/locales/pt_BR/translation.json b/shared/i18n/locales/pt_BR/translation.json index 09d50aa858..26e70b9bf4 100644 --- a/shared/i18n/locales/pt_BR/translation.json +++ b/shared/i18n/locales/pt_BR/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integrações", "Back to app": "Voltar ao aplicativo", "Installation": "Instalação", + "Available on {{ planName }}": "Disponível no {{ planName }}", "Split pane": "Tela dividida", "Main pane": "Tela principal", "Unstar document": "Desfavoritar documento", @@ -778,6 +779,7 @@ "Last seen": "Visto pela última vez", "{{ time }} local time": "{{ time }} horário local", "Your import completed": "Sua importação foi concluída", + "Lock aspect ratio": "Bloquear proporção", "Templates": "Modelos", "View comment thread": "Ver comentário do tópico", "Previous match": "Correspondência anterior", @@ -798,10 +800,13 @@ "Width": "Largura", "Image height": "Altura da imagem", "Height": "Altura", + "Aspect ratio locked": "Proporção bloqueada", + "Aspect ratio unlocked": "Proporção desbloqueada", "Paste a link": "Cole um link", "Delete embed": "Deletar embed", "Delete video": "Excluir vídeo", "Delete image": "Excluir imagem", + "Display options": "Opções de exibição", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} não será notificado, pois não tem acesso a este documento", "Members of “{{ groupName }}” with access to this document will be notified": "Os membros de “{{ groupName }}” com acesso a este documento serão notificados", "Keep as link": "Manter como link", @@ -813,6 +818,25 @@ "Upload file": "Enviar arquivo", "Paste a link from {{service}}…": "Cole um link de {{service}}…", "Suggestions": "Sugestões", + "Showing all rows": "Mostrando todas as linhas", + "Showing {{ visible }} of {{ count }} rows": "Mostrando {{ visible }} de {{ count }} linha", + "Showing {{ visible }} of {{ count }} rows_plural": "Mostrando {{ visible }} de {{ count }} linhas", + "Filter {{ columnName }}": "Filtrar {{ columnName }}", + "Is": "É", + "Is not": "Não é", + "Contains": "Contém", + "Does not contain": "Não contém", + "Is empty": "Está vazio", + "Is not empty": "Não está vazio", + "Condition": "Condição", + "Search values": "Buscar valores", + "Values": "Valores", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Exibindo {{ shown }} de {{ total }} valores. Pesquise para encontrar mais.", + "No values match your search.": "Nenhum valor corresponde à sua pesquisa.", + "This column has no values": "Esta coluna não tem valores", + "{{ visible }} of {{ count }} rows": "{{ visible }} de {{ count }} linha", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} de {{ count }} linhas", + "Clear": "Limpar", "More options": "Mais opções", "Type '/' to insert": "Digite '/' para inserir", "Keep typing to filter": "Continue digitando para filtrar", @@ -855,6 +879,8 @@ "Edit image URL": "Editar URL da imagem", "Create a new doc": "Criar um novo documento", "Create a nested doc": "Criar um documento filho", + "Display as mention": "Exibir como menção", + "Display as card": "Exibir como cartão", "Default width": "Default width", "Distribute columns": "Distribuir colunas", "Export as CSV": "Exportar como CSV", @@ -874,6 +900,11 @@ "Upload a video": "Enviar um vídeo", "Edit video URL": "Editar URL do vídeo", "Could not import file": "Não foi possível importar o arquivo", + "Community": "Comunidade", + "Standard": "Padrão", + "Business": "Empresarial", + "Enterprise": "Empresarial", + "Legacy": "Legado", "Unsubscribed from document": "Cancelada inscrição do documento", "Unsubscribed from collection": "Cancelada inscrição da coleção", "Subscription successful": "Assinatura realizada com sucesso", @@ -894,6 +925,8 @@ "Developer": "Desenvolvedor", "Applications": "Aplicações", "API key": "Chave de API", + "Reconnect": "Reconectar", + "Connected": "Conectado", "Show path to document": "Mostrar caminho para o documento", "Comment options": "Opções de comentário", "Enable viewer insights": "Habilitar Estatísticas de Visualização", @@ -916,6 +949,7 @@ "Trash options": "Opções da lixeira", "User options": "Opções do usuário", "document": "documento", + "All collections": "Todas coleções", "Export complete": "Exportação concluída", "Export failed": "Falha na exportação", "An unexpected error occurred": "Um erro inesperado ocorreu", @@ -931,9 +965,13 @@ "invited you to": "convidou você para", "added you to the group": "adicionou você ao grupo", "removed you from the group": "removeu você do grupo", + "export completed": "exportação concluída", + "export failed": "falha na exportação", + "export is no longer available": "a exportação não está mais disponível", "was granted access to": "recebeu acesso a", "requested access to": "solicitou acesso a", "is requesting access to": "está solicitando acesso a", + "Your": "Seu", "a document": "um documento", "a collection": "uma coleção", "a group": "um grupo", @@ -1031,10 +1069,10 @@ "Document title": "Título do Documento", "Last updated": "Última atualização", "Type '/' to insert, or start writing…": "Digite '/' para inserir, ou comece a escrever…", + "Save draft": "Salvar rascunho", "Hide contents": "Ocultar conteúdo", "Show contents": "Exibir conteúdo", "available when headings are added": "disponível quando cabeçalhos são adicionados", - "Save draft": "Salvar rascunho", "Restore version": "Restaurar versão", "{{userName}} archived": "{{userName}} arquivado", "{{userName}} restored": "{{userName}} restaurado", @@ -1306,7 +1344,6 @@ "Sign in": "Entrar", "Allow members to sign in with {{ authProvider }}": "Permitir que membros entrem com {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Conecte {{ authProvider }} para permitir que membros entrem", - "Connected": "Conectado", "Disabled": "Desabilitado", "Connect": "Conectar", "Group sync": "Group sync", @@ -1365,7 +1402,6 @@ "Processing": "Processando", "Completed": "Concluído", "Failed": "Falha", - "All collections": "Todas coleções", "Import deleted": "Importação Excluída", "Export deleted": "Exportação excluída", "Are you sure you want to delete this import?": "Tem certeza de que deseja excluir essa importação?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Esta cor tem baixo contraste em relação à cor de destaque", "Accent color": "Cor de destaque", "Accent text color": "Cor de destaque do Texto", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Este recurso está incluído no {{planName}} e em planos superiores. Atualize seu espaço de trabalho para desbloqueá-lo para sua equipe.", + "View plans": "Ver planos", "All roles": "Todas as funções", "Admins": "Administradores", "Editors": "Editores", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Importe um arquivo zip de documentos Markdown no Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Importar um arquivo de dados JSON exportado de outra instância do {{ appName }}", "Import pages from a Confluence instance": "Importar páginas de uma instância do Confluence", - "Enterprise": "Empresarial", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Transfira rapidamente seus documentos, páginas e arquivos existentes de outras ferramentas e serviços para o {{appName}}. Você também pode arrastar e soltar qualquer documento HTML, Markdown e texto diretamente nas Coleções do aplicativo.", "Recent imports": "Importações recentes", "Configure a variety of integrations with third-party services.": "Configurar uma variedade de integrações com serviços de terceiros.", + "Documents that are published, updated, or shared with you, and access requests": "Documentos publicados, atualizados ou compartilhados com você e solicitações de acesso", "Receive a notification whenever a new document is published": "Receba uma notificação sempre que um novo documento for publicado", "Document updated": "Documento atualizado", "Receive a notification when a document you are subscribed to is edited": "Receber uma notificação quando um documento que você está inscrito for editado", + "Invited to document": "Convidado para o documento", + "Receive a notification when a document is shared with you": "Receba uma notificação quando um documento for compartilhado com você", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "New collections and access to collections": "Novas coleções e acesso a coleções", + "Collection created": "Coleção criada", + "Receive a notification whenever a new collection is created": "Receba uma notificação sempre que uma nova coleção for criada", + "Invited to collection": "Convidado para a coleção", + "Receive a notification when you are given access to a collection": "Receba uma notificação quando lhe for dado acesso a uma coleção", + "Comments and mentions": "Comentários e menções", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Novos comentários, menções a você ou aos seus grupos, tópicos resolvidos e reações", "Comment posted": "Comentário adicionado", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Receber uma notificação quando um documento que você está inscrito ou um tópico em que você participou recebe um comentário", "Mentioned": "Mencionado", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Receber uma notificação quando um tópico de comentários em que você participou for resolvido", "Reaction added": "Reação adicionada", "Receive a notification when someone reacts to your comment": "Receber notificação quando alguém reagir ao seu comentário", - "Collection created": "Coleção criada", - "Receive a notification whenever a new collection is created": "Receba uma notificação sempre que uma nova coleção for criada", - "Invite accepted": "Convite aceito", - "Receive a notification when someone you invited creates an account": "Receba uma notificação quando alguém que você convidou criar uma conta", - "Invited to document": "Convidado para o documento", - "Receive a notification when a document is shared with you": "Receba uma notificação quando um documento for compartilhado com você", - "Invited to collection": "Convidado para a coleção", - "Receive a notification when you are given access to a collection": "Receba uma notificação quando lhe for dado acesso a uma coleção", + "Group membership, accepted invites, and completed exports": "Participação em grupos, convites aceitos e exportações concluídas", "Group membership": "Participação em grupos", "Receive a notification when you are added to or removed from a group": "Receba uma notificação quando você for adicionado ou removido de um grupo", + "Invite accepted": "Convite aceito", + "Receive a notification when someone you invited creates an account": "Receba uma notificação quando alguém que você convidou criar uma conta", "Export completed": "Exportação concluída", "Receive a notification when an export you requested has been completed": "Receba uma notificação quando sua solicitação de exportação for concluída", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Product updates": "Atualizações do produto", + "Tips on getting started and announcements of new features": "Dicas para começar e anúncios de novos recursos", "Getting started": "Guia de introdução", "Tips on getting started with features and functionality": "Dicas para começar a usar os recursos e funcionalidades", "New features": "Novas funcionalidades", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Falha ao salvar a versão", "Invite to document": "Convidar para documentar", "Sorry, invalid embed link": "Desculpe, link de incorporação inválido", - "Data Attributes": "Atributos de Dados", + "Data attributes": "Atributos de dados", "Edit attribute": "Editar atributo", "Property": "Propriedade", "Yes": "Sim", @@ -1675,7 +1719,7 @@ "Text": "Text", "List": "List", "Could not load events": "Could not load events", - "Audit Log": "Audit Log", + "Audit log": "Registro de auditoria", "The audit log details the history of security-related and other events across your knowledge base.": "O registro de auditoria detalha o histórico de eventos relacionados à segurança e outros eventos em toda a sua base de conhecimento.", "IP address": "IP address", "Actor": "Actor", @@ -1818,6 +1862,10 @@ "Script name": "Nome do script", "The name of the script file that Umami uses to track analytics.": "O nome do arquivo de script que o Umami usa para acompanhar as estatísticas.", "An ID that uniquely identifies the website in your Umami instance.": "Um ID que identifica unicamente o site na sua instância Umami", + "The audit log details the history of security related and other events across your knowledge base.": "O registro de auditoria detalha o histórico de eventos relacionados à segurança e de outros eventos em toda a sua base de conhecimento.", + "Content": "Conteúdo", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Gerencie as permissões e configurações de todas as coleções na base de conhecimento. Como administrador do espaço de trabalho, você também pode administrar coleções privadas.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Indexe e pesquise automaticamente o conteúdo de documentos do {{appName}} no Glean em tempo real.", "New webhook": "Novo webhook", "Edit webhook": "Editar webhook", "Delete webhook": "Excluir webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", "Your group was mentioned": "Your group was mentioned", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} mencionou o grupo “{{ groupName }}” no documento", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} entrou no seu espaço de trabalho do {{ appName }}", "Great news, {{ invitedName }} accepted your invitation": "Ótima notícia: {{ invitedName }} aceitou seu convite", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} entrou no seu espaço de trabalho", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", "Join now": "Join now", "Reminder": "Reminder", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Este é apenas um lembrete rápido de que {{ actorName }} {{ actorEmail }} convidou você para participar do espaço de trabalho {{ teamName }} no {{ appName }}, um lugar para sua equipe criar e compartilhar conhecimento.", "We only send a reminder once.": "We only send a reminder once.", "If you haven’t signed up yet, you can do so here": "Se você ainda não se cadastrou, pode fazê-lo aqui", "“{{ documentTitle }}” updated": "“{{ documentTitle }}” atualizado", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Código de verificação de login", "Here’s your link to sign in to {{ appName }}.": "Aqui está seu link para entrar no {{ appName }}.", "Use the link below to sign in": "Use the link below to sign in", - "If the link expired, you can request a new one from your team’s sign-in page at": "Se o link tiver expirado, você poderá solicitar um novo na página de login da sua equipe em", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Se o link tiver expirado, você poderá solicitar um novo na página de login do seu espaço de trabalho em", "Enter this verification code": "Enter this verification code", - "If the code expired, you can request a new one from your team’s sign-in page at": "Se o código tiver expirado, você poderá solicitar um novo na página de login da sua equipe em", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Se o código tiver expirado, você poderá solicitar um novo na página de login do seu espaço de trabalho em", "Click the button below to sign in to {{ appName }}.": "Clique no botão abaixo para entrar no {{ appName }}.", "Sign-in Code": "Código de acesso", - "Enter this code on your team’s sign-in page to continue.": "Digite este código na página de login da sua equipe para continuar.", + "Enter this code on your workspace’s sign-in page to continue.": "Insira este código na página de login do seu espaço de trabalho para continuar.", "Webhook disabled": "Webhook disabled", "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Seu webhook ({{ webhookName }}) foi desativado automaticamente devido a uma alta taxa de falhas nas tentativas de entrega recentes. Você pode reativá-lo editando o webhook.", @@ -2007,10 +2055,14 @@ "Hide completed": "Hide completed", "Sorry, the link could not be copied": "Sorry, the link could not be copied", "Write a caption": "Escreva uma legenda", - "Display as mention": "Exibir como menção", - "Display as card": "Exibir como cartão", "Add title": "Adicionar Título", "Add content": "Adicionar conteúdo", + "Change column filter": "Alterar filtro de coluna", + "Filter column": "Filtrar coluna", + "{{ count }} filter applied": "{{ count }} filtro aplicado", + "{{ count }} filter applied_plural": "{{ count }} filtros aplicados", + "Filters cleared for you": "Filtros limpos para você", + "Save for everyone": "Salvar para todos", "Tomorrow": "Tomorrow", "Group admin": "Administrador do Grupo", "Member": "Membro" diff --git a/shared/i18n/locales/pt_PT/translation.json b/shared/i18n/locales/pt_PT/translation.json index 2a75e7bcb6..c1af4c67b0 100644 --- a/shared/i18n/locales/pt_PT/translation.json +++ b/shared/i18n/locales/pt_PT/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integrações", "Back to app": "Voltar à aplicação", "Installation": "Instalação", + "Available on {{ planName }}": "Disponível no {{ planName }}", "Split pane": "Split pane", "Main pane": "Main pane", "Unstar document": "Desmarcar documento", @@ -778,6 +779,7 @@ "Last seen": "Visto por último", "{{ time }} local time": "{{ time }} horário local", "Your import completed": "Importação foi concluída", + "Lock aspect ratio": "Bloquear proporção", "Templates": "Modelos", "View comment thread": "View comment thread", "Previous match": "Correspondência anterior", @@ -798,10 +800,13 @@ "Width": "Width", "Image height": "Image height", "Height": "Height", + "Aspect ratio locked": "Proporção bloqueada", + "Aspect ratio unlocked": "Proporção desbloqueada", "Paste a link": "Inserir um link", "Delete embed": "Delete embed", "Delete video": "Eliminar vídeo", "Delete image": "Eliminar imagem", + "Display options": "Opções de exibição", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} não será notificado, pois não tem acesso a este documento", "Members of “{{ groupName }}” with access to this document will be notified": "Os membros de “{{ groupName }}” com acesso a este documento serão notificados", "Keep as link": "Keep as link", @@ -813,6 +818,25 @@ "Upload file": "Upload file", "Paste a link from {{service}}…": "Cole um link de {{service}}…", "Suggestions": "Suggestions", + "Showing all rows": "Exibindo todas as linhas", + "Showing {{ visible }} of {{ count }} rows": "Exibindo {{ visible }} de {{ count }} linha", + "Showing {{ visible }} of {{ count }} rows_plural": "Exibindo {{ visible }} de {{ count }} linhas", + "Filter {{ columnName }}": "Filtrar {{ columnName }}", + "Is": "É", + "Is not": "Não é", + "Contains": "Contém", + "Does not contain": "Não contém", + "Is empty": "Está vazio", + "Is not empty": "Não está vazio", + "Condition": "Condição", + "Search values": "Procurar valores", + "Values": "Valores", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "A mostrar {{ shown }} de {{ total }} valores. Procure para encontrar mais.", + "No values match your search.": "Nenhum valor corresponde à sua pesquisa.", + "This column has no values": "Esta coluna não tem valores", + "{{ visible }} of {{ count }} rows": "{{ visible }} de {{ count }} linha", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} de {{ count }} linhas", + "Clear": "Limpar", "More options": "Mais opções", "Type '/' to insert": "Digite '/' para inserir", "Keep typing to filter": "Continue a escrever para filtrar", @@ -855,6 +879,8 @@ "Edit image URL": "Edit image URL", "Create a new doc": "Criar um novo documento", "Create a nested doc": "Create a nested doc", + "Display as mention": "Exibir como menção", + "Display as card": "Exibir como cartão", "Default width": "Largura padrão", "Distribute columns": "Distribute columns", "Export as CSV": "Export as CSV", @@ -874,6 +900,11 @@ "Upload a video": "Enviar um vídeo", "Edit video URL": "Editar URL do vídeo", "Could not import file": "Não foi possível importar o ficheiro", + "Community": "Comunidade", + "Standard": "Padrão", + "Business": "Negócios", + "Enterprise": "Empresa", + "Legacy": "Legado", "Unsubscribed from document": "Desinscrever do documento", "Unsubscribed from collection": "Unsubscribed from collection", "Subscription successful": "Subscription successful", @@ -894,6 +925,8 @@ "Developer": "Desenvolvedor", "Applications": "Applications", "API key": "API key", + "Reconnect": "Reconectar", + "Connected": "Ligado", "Show path to document": "Mostrar caminho para documento", "Comment options": "Opções de comentário", "Enable viewer insights": "Habilitar estatísticas do utilizador", @@ -916,6 +949,7 @@ "Trash options": "Opções da lixeira", "User options": "Opções de utilizador", "document": "documento", + "All collections": "Todas as coleções", "Export complete": "Export complete", "Export failed": "Export failed", "An unexpected error occurred": "An unexpected error occurred", @@ -931,9 +965,13 @@ "invited you to": "convidou-o para", "added you to the group": "adicionou você ao grupo", "removed you from the group": "removeu você do grupo", + "export completed": "exportação concluída", + "export failed": "exportação falhou", + "export is no longer available": "a exportação já não está disponível", "was granted access to": "was granted access to", "requested access to": "requested access to", "is requesting access to": "is requesting access to", + "Your": "O seu", "a document": "um documento", "a collection": "uma coleção", "a group": "a group", @@ -1031,10 +1069,10 @@ "Document title": "Document title", "Last updated": "Ultima atualização", "Type '/' to insert, or start writing…": "Digite '/' para inserir, ou comece a escrever…", + "Save draft": "Guardar rascunho", "Hide contents": "Ocultar conteúdo", "Show contents": "Mostrar conteúdo", "available when headings are added": "disponível quando adicionar cabeçalhos", - "Save draft": "Guardar rascunho", "Restore version": "Restaurar versão", "{{userName}} archived": "{{userName}} arquivado", "{{userName}} restored": "{{userName}} restaurado", @@ -1306,7 +1344,6 @@ "Sign in": "Iniciar sessão", "Allow members to sign in with {{ authProvider }}": "Permitir que os membros iniciem sessão com {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Ligue {{ authProvider }} para permitir que os membros iniciem sessão", - "Connected": "Ligado", "Disabled": "Inativo", "Connect": "Ligado", "Group sync": "Group sync", @@ -1365,7 +1402,6 @@ "Processing": "A processar", "Completed": "Concluído", "Failed": "Falhou", - "All collections": "Todas as coleções", "Import deleted": "Importação eliminada", "Export deleted": "Exportação eliminada", "Are you sure you want to delete this import?": "Tem a certeza que pretende eliminar a importação?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Esta cor tem pouco contraste em relação à cor de destaque", "Accent color": "Acentuar cor", "Accent text color": "Acentuar cor do texto", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Este recurso está incluído no {{planName}} e em planos superiores. Faça upgrade do seu espaço de trabalho para desbloqueá-lo para sua equipe.", + "View plans": "Ver planos", "All roles": "Todos os papéis", "Admins": "Administradores", "Editors": "Editores", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Importe um ficheiro zip de documentos Markdown no formato Open Knowledge Format.", "Import a JSON data file exported from another {{ appName }} instance": "Importar um ficheiro de dados JSON exportado de outra instância do {{ appName }}", "Import pages from a Confluence instance": "Importar páginas de uma instância de Confluence", - "Enterprise": "Empresa", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Transfira rapidamente os documentos existentes, páginas e ficheiros de outras ferramentas e serviços para {{appName}}. Também pode arrastar e soltar qualquer documento HTML, Markdown e documento de texto diretamente para as Coleções na aplicação.", "Recent imports": "Importações recentes", "Configure a variety of integrations with third-party services.": "Configure a variety of integrations with third-party services.", + "Documents that are published, updated, or shared with you, and access requests": "Documentos que são publicados, atualizados ou partilhados consigo e pedidos de acesso", "Receive a notification whenever a new document is published": "Receber uma notificação sempre que um novo documento for publicado", "Document updated": "Documento atualizado", "Receive a notification when a document you are subscribed to is edited": "Receber uma notificação quando um documento a que subscreveu for alterado", + "Invited to document": "Convidado para documento", + "Receive a notification when a document is shared with you": "Receber notificação quando documento lhe for partilhado", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "New collections and access to collections": "Novas coleções e acesso a coleções", + "Collection created": "Coleção criada", + "Receive a notification whenever a new collection is created": "Receber notificação sempre que novo documento for publicado", + "Invited to collection": "Convidado para coleção", + "Receive a notification when you are given access to a collection": "Receber notificação quando lhe for dado acesso a uma coleção", + "Comments and mentions": "Comentários e menções", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Novos comentários, menções a si ou aos seus grupos, tópicos resolvidos e reações", "Comment posted": "Comentário publicado", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Receber notificação quando um documento em que está inscrito ou um tópico em que participou receber um comentário", "Mentioned": "Mencionado", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Reaction added": "Reaction added", "Receive a notification when someone reacts to your comment": "Receive a notification when someone reacts to your comment", - "Collection created": "Coleção criada", - "Receive a notification whenever a new collection is created": "Receber notificação sempre que novo documento for publicado", - "Invite accepted": "Convite aceite", - "Receive a notification when someone you invited creates an account": "Receber uma notificação quando alguém que convidou criar uma conta", - "Invited to document": "Convidado para documento", - "Receive a notification when a document is shared with you": "Receber notificação quando documento lhe for partilhado", - "Invited to collection": "Convidado para coleção", - "Receive a notification when you are given access to a collection": "Receber notificação quando lhe for dado acesso a uma coleção", + "Group membership, accepted invites, and completed exports": "Participação em grupos, convites aceites e exportações concluídas", "Group membership": "Participação no grupo", "Receive a notification when you are added to or removed from a group": "Receba uma notificação quando você for adicionado ou removido de um grupo", + "Invite accepted": "Convite aceite", + "Receive a notification when someone you invited creates an account": "Receber uma notificação quando alguém que convidou criar uma conta", "Export completed": "Exportação concluída", "Receive a notification when an export you requested has been completed": "Receber notificação quando exportação que pediu for concluída", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Product updates": "Atualizações do produto", + "Tips on getting started and announcements of new features": "Sugestões para começar e anúncios de novas funcionalidades", "Getting started": "Introdução", "Tips on getting started with features and functionality": "Dicas sobre como começar a usar as funcionalidades", "New features": "Novas funcionalidades", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Failed to save revision", "Invite to document": "Invite to document", "Sorry, invalid embed link": "Sorry, invalid embed link", - "Data Attributes": "Data Attributes", + "Data attributes": "Atributos de dados", "Edit attribute": "Edit attribute", "Property": "Property", "Yes": "Yes", @@ -1675,7 +1719,7 @@ "Text": "Text", "List": "List", "Could not load events": "Could not load events", - "Audit Log": "Audit Log", + "Audit log": "Registro de auditoria", "The audit log details the history of security-related and other events across your knowledge base.": "O registo de auditoria detalha o histórico de eventos relacionados com a segurança e outros eventos na sua base de conhecimento.", "IP address": "IP address", "Actor": "Actor", @@ -1818,6 +1862,10 @@ "Script name": "Nome do script", "The name of the script file that Umami uses to track analytics.": "O nome do arquivo de script que o Umami usa para acompanhar a análise.", "An ID that uniquely identifies the website in your Umami instance.": "O identificador único que identifica o site na instância Umami.", + "The audit log details the history of security related and other events across your knowledge base.": "O registro de auditoria detalha o histórico de eventos relacionados à segurança e outros eventos em toda a sua base de conhecimento.", + "Content": "Conteúdo", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Gerencie as permissões e configurações de todas as coleções na base de conhecimento. Como administrador do espaço de trabalho, você também pode administrar coleções privadas.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Indexe e pesquise automaticamente o conteúdo de documentos do {{appName}} no Glean em tempo real.", "New webhook": "Novo webhook", "Edit webhook": "Alterar Webhook", "Delete webhook": "Eliminar webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", "Your group was mentioned": "Your group was mentioned", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} mencionou o grupo “{{ groupName }}” no documento", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} entrou no seu espaço de trabalho do {{ appName }}", "Great news, {{ invitedName }} accepted your invitation": "Boas notícias: {{ invitedName }} aceitou o seu convite", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} entrou no seu espaço de trabalho", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", "Join now": "Join now", "Reminder": "Reminder", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Este é apenas um lembrete rápido de que {{ actorName }} {{ actorEmail }} convidou você para se juntar a eles no espaço de trabalho {{ teamName }} no {{ appName }}, um lugar para sua equipe criar e compartilhar conhecimento.", "We only send a reminder once.": "We only send a reminder once.", "If you haven’t signed up yet, you can do so here": "Se ainda não se registou, pode fazê-lo aqui", "“{{ documentTitle }}” updated": "“{{ documentTitle }}” atualizado", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Código de verificação de início de sessão", "Here’s your link to sign in to {{ appName }}.": "Eis a sua ligação para iniciar sessão no {{ appName }}.", "Use the link below to sign in": "Use the link below to sign in", - "If the link expired, you can request a new one from your team’s sign-in page at": "Se a ligação tiver expirado, pode pedir uma nova na página de início de sessão da sua equipa em", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Se o link expirou, você pode solicitar um novo na página de login do seu espaço de trabalho em", "Enter this verification code": "Enter this verification code", - "If the code expired, you can request a new one from your team’s sign-in page at": "Se o código tiver expirado, pode pedir um novo na página de início de sessão da sua equipa em", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Se o código expirou, você pode solicitar um novo na página de login do seu espaço de trabalho em", "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", "Sign-in Code": "Sign-in Code", - "Enter this code on your team’s sign-in page to continue.": "Introduza este código na página de início de sessão da sua equipa para continuar.", + "Enter this code on your workspace’s sign-in page to continue.": "Digite este código na página de login do seu espaço de trabalho para continuar.", "Webhook disabled": "Webhook disabled", "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "O seu webhook ({{ webhookName }}) foi desativado automaticamente devido a uma elevada taxa de falhas nas tentativas de entrega recentes. Pode reativá-lo ao editar o webhook.", @@ -2007,10 +2055,14 @@ "Hide completed": "Hide completed", "Sorry, the link could not be copied": "Sorry, the link could not be copied", "Write a caption": "Escreva uma legenda", - "Display as mention": "Exibir como menção", - "Display as card": "Exibir como cartão", "Add title": "Add title", "Add content": "Add content", + "Change column filter": "Alterar filtro da coluna", + "Filter column": "Filtrar coluna", + "{{ count }} filter applied": "{{ count }} filtro aplicado", + "{{ count }} filter applied_plural": "{{ count }} filtros aplicados", + "Filters cleared for you": "Filtros limpos para si", + "Save for everyone": "Guardar para todos", "Tomorrow": "Tomorrow", "Group admin": "Group admin", "Member": "Member" diff --git a/shared/i18n/locales/sv_SE/translation.json b/shared/i18n/locales/sv_SE/translation.json index 9fd99a4630..eac3d4cbe5 100644 --- a/shared/i18n/locales/sv_SE/translation.json +++ b/shared/i18n/locales/sv_SE/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integrationer", "Back to app": "Tillbaka till appen", "Installation": "Installation", + "Available on {{ planName }}": "Tillgängligt på {{ planName }}", "Split pane": "Dela panel", "Main pane": "Huvudpanel", "Unstar document": "Ostjärnmärk dokument", @@ -778,6 +779,7 @@ "Last seen": "Senast sedd", "{{ time }} local time": "{{ time }} lokal tid", "Your import completed": "Din import slutfördes", + "Lock aspect ratio": "Lås bildförhållande", "Templates": "Mallar", "View comment thread": "Visa kommentarstråd", "Previous match": "Föregående träff", @@ -798,10 +800,13 @@ "Width": "Bredd", "Image height": "Bildhöjd", "Height": "Höjd", + "Aspect ratio locked": "Bildförhållandet är låst", + "Aspect ratio unlocked": "Bildförhållandet är upplåst", "Paste a link": "Klistra in en länk", "Delete embed": "Ta bort inbäddning", "Delete video": "Radera video", "Delete image": "Ta bort bild", + "Display options": "Visningsalternativ", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} får ingen avisering eftersom personen inte har åtkomst till det här dokumentet", "Members of “{{ groupName }}” with access to this document will be notified": "Medlemmar i ”{{ groupName }}” som har åtkomst till det här dokumentet kommer att meddelas", "Keep as link": "Behåll som länk", @@ -813,6 +818,25 @@ "Upload file": "Ladda upp fil", "Paste a link from {{service}}…": "Klistra in en länk från {{service}}…", "Suggestions": "Förslag", + "Showing all rows": "Visar alla rader", + "Showing {{ visible }} of {{ count }} rows": "Visar {{ visible }} av {{ count }} rad", + "Showing {{ visible }} of {{ count }} rows_plural": "Visar {{ visible }} av {{ count }} rader", + "Filter {{ columnName }}": "Filtrera {{ columnName }}", + "Is": "Är", + "Is not": "Är inte", + "Contains": "Innehåller", + "Does not contain": "Innehåller inte", + "Is empty": "Är tom", + "Is not empty": "Är inte tom", + "Condition": "Villkor", + "Search values": "Sök efter värden", + "Values": "Värden", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Visar {{ shown }} av {{ total }} värden. Sök för att hitta fler.", + "No values match your search.": "Inga värden matchar din sökning.", + "This column has no values": "Den här kolumnen har inga värden", + "{{ visible }} of {{ count }} rows": "{{ visible }} av {{ count }} rad", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} av {{ count }} rader", + "Clear": "Rensa", "More options": "Fler alternativ", "Type '/' to insert": "Skriv '/' för att infoga", "Keep typing to filter": "Fortsätt skriva för att filtrera", @@ -855,6 +879,8 @@ "Edit image URL": "Redigera bild-URL", "Create a new doc": "Skapa nytt dokument", "Create a nested doc": "Skapa ett underordnat dokument", + "Display as mention": "Visa som omnämnande", + "Display as card": "Visa som kort", "Default width": "Standardbredd", "Distribute columns": "Fördela kolumner", "Export as CSV": "Exportera som CSV", @@ -874,6 +900,11 @@ "Upload a video": "Ladda upp en video", "Edit video URL": "Redigera video-URL", "Could not import file": "Kan inte importera fil", + "Community": "Community", + "Standard": "Standard", + "Business": "Företag", + "Enterprise": "Enterprise", + "Legacy": "Äldre", "Unsubscribed from document": "Prenumeration avslutad från dokument", "Unsubscribed from collection": "Avprenumerera från samling", "Subscription successful": "Prenumeration lyckad", @@ -894,6 +925,8 @@ "Developer": "Utvecklare", "Applications": "Applikationer", "API key": "API-nyckel", + "Reconnect": "Återanslut", + "Connected": "Ansluten", "Show path to document": "Visa sökväg till dokument", "Comment options": "Alternativ för kommentarer", "Enable viewer insights": "Aktivera tittarinsikter", @@ -916,6 +949,7 @@ "Trash options": "Papperskorgsalternativ", "User options": "Användaralternativ", "document": "dokument", + "All collections": "Alla samlingar", "Export complete": "Exportering klar", "Export failed": "Exportering misslyckades", "An unexpected error occurred": "Ett oväntat fel uppstod", @@ -931,9 +965,13 @@ "invited you to": "bjöd in dig till", "added you to the group": "lade till dig i gruppen", "removed you from the group": "tog bort dig från gruppen", + "export completed": "export slutförd", + "export failed": "exportering misslyckades", + "export is no longer available": "exporten är inte längre tillgänglig", "was granted access to": "gavs åtkomst till", "requested access to": "begärde åtkomst till", "is requesting access to": "begär åtkomst till", + "Your": "Din", "a document": "ett dokument", "a collection": "en samling", "a group": "en grupp", @@ -1031,10 +1069,10 @@ "Document title": "Dokumenttitel", "Last updated": "Senast uppdaterad", "Type '/' to insert, or start writing…": "Skriv '/' för att infoga eller börja skriva…", + "Save draft": "Spara utkast", "Hide contents": "Dölj innehåll", "Show contents": "Visa innehåll", "available when headings are added": "tillgänglig när rubriker läggs till", - "Save draft": "Spara utkast", "Restore version": "Återställ version", "{{userName}} archived": "{{userName}} arkiverade", "{{userName}} restored": "{{userName}} återställde", @@ -1306,7 +1344,6 @@ "Sign in": "Logga in", "Allow members to sign in with {{ authProvider }}": "Tillåt medlemmar att logga in med {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Anslut {{ authProvider }} så att medlemmar kan logga in", - "Connected": "Ansluten", "Disabled": "Inaktiverad", "Connect": "Anslut", "Group sync": "Grupp synkning", @@ -1365,7 +1402,6 @@ "Processing": "Bearbetar", "Completed": "Slutförd", "Failed": "Misslyckad", - "All collections": "Alla samlingar", "Import deleted": "Importen borttagen", "Export deleted": "Exporten borttagen", "Are you sure you want to delete this import?": "Är du säker på att du vill ta bort denna import?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Den här färgen har låg kontrast mot accentfärgen", "Accent color": "Accentfärg", "Accent text color": "Accent textfärg", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Den här funktionen ingår i {{planName}} och högre. Uppgradera din arbetsyta för att låsa upp den för ditt team.", + "View plans": "Visa planer", "All roles": "Alla roller", "Admins": "Administratörer", "Editors": "Redigerare", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Importera en zip-fil med Markdown-dokument i Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Importera en JSON-datafil som exporteras från en annan {{ appName }} instans", "Import pages from a Confluence instance": "Importera sidor från en Confluence instans", - "Enterprise": "Enterprise", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Överför snabbt dina befintliga dokument, sidor och filer från andra verktyg och tjänster till {{appName}}. Du kan också dra och släppa alla HTML, Markdown och textdokument direkt till Samlingar i appen.", "Recent imports": "Senaste importer", "Configure a variety of integrations with third-party services.": "Konfigurera en mängd olika integrationer med tredje parts tjänster.", + "Documents that are published, updated, or shared with you, and access requests": "Dokument som publiceras, uppdateras eller delas med dig samt åtkomstbegäranden", "Receive a notification whenever a new document is published": "Få en avisering när ett nytt dokument publiceras", "Document updated": "Dokument uppdaterat", "Receive a notification when a document you are subscribed to is edited": "Få ett meddelande när ett dokument du prenumererar på redigerats", + "Invited to document": "Inbjuden till dokument", + "Receive a notification when a document is shared with you": "Få en notis när ett dokument delas med dig", + "Document access requested": "Åtkomst till ett dokument begärd", + "Receive a notification when a user requests access to a document you manage": "Få en avisering när en användare begär åtkomst till ett dokument som du hanterar", + "New collections and access to collections": "Nya samlingar och åtkomst till samlingar", + "Collection created": "Samling skapad", + "Receive a notification whenever a new collection is created": "Få ett meddelande när en ny samling skapas", + "Invited to collection": "Inbjuden till samling", + "Receive a notification when you are given access to a collection": "Få en notis när du får tillgång till en samling", + "Comments and mentions": "Kommentarer och omnämnanden", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Nya kommentarer, omnämnanden av dig eller dina grupper, lösta trådar och reaktioner", "Comment posted": "Kommentar postad", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Få ett meddelande när ett dokument du prenumererar på eller en tråd du deltog i får en kommentar", "Mentioned": "Omnämnd", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Få ett meddelande när en kommentarstråd du var involverad i är löst", "Reaction added": "Reaktion tillagd", "Receive a notification when someone reacts to your comment": "Få en notis när någon reagerar på din kommentar", - "Collection created": "Samling skapad", - "Receive a notification whenever a new collection is created": "Få ett meddelande när en ny samling skapas", - "Invite accepted": "Inbjudan: accepterad", - "Receive a notification when someone you invited creates an account": "Få ett meddelande när någon du bjudit in skapar ett konto", - "Invited to document": "Inbjuden till dokument", - "Receive a notification when a document is shared with you": "Få en notis när ett dokument delas med dig", - "Invited to collection": "Inbjuden till samling", - "Receive a notification when you are given access to a collection": "Få en notis när du får tillgång till en samling", + "Group membership, accepted invites, and completed exports": "Gruppmedlemskap, accepterade inbjudningar och slutförda exporter", "Group membership": "Gruppmedlemskap", "Receive a notification when you are added to or removed from a group": "Få en notis när du läggs till eller tas bort från en grupp", + "Invite accepted": "Inbjudan: accepterad", + "Receive a notification when someone you invited creates an account": "Få ett meddelande när någon du bjudit in skapar ett konto", "Export completed": "Export slutförd", "Receive a notification when an export you requested has been completed": "Få ett meddelande när en export du begärt har slutförts", - "Document access requested": "Åtkomst till ett dokument begärd", - "Receive a notification when a user requests access to a document you manage": "Få en avisering när en användare begär åtkomst till ett dokument som du hanterar", + "Product updates": "Produktuppdateringar", + "Tips on getting started and announcements of new features": "Tips om hur du kommer igång och information om nya funktioner", "Getting started": "Kom igång", "Tips on getting started with features and functionality": "Tips om att komma igång med funktioner och funktionalitet", "New features": "Nya funktioner", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Det gick inte att spara revision", "Invite to document": "Bjud in till dokument", "Sorry, invalid embed link": "Tyvärr, ogiltig inbäddad länk", - "Data Attributes": "Data attribut", + "Data attributes": "Dataattribut", "Edit attribute": "Ändra attribut", "Property": "Egenskaper", "Yes": "Ja", @@ -1675,7 +1719,7 @@ "Text": "Text", "List": "List", "Could not load events": "Could not load events", - "Audit Log": "Audit Log", + "Audit log": "Granskningslogg", "The audit log details the history of security-related and other events across your knowledge base.": "Granskningsloggen innehåller historiken över säkerhetsrelaterade och andra händelser i hela din kunskapsbas.", "IP address": "IP address", "Actor": "Actor", @@ -1818,6 +1862,10 @@ "Script name": "Skriptnamn", "The name of the script file that Umami uses to track analytics.": "The name of the script file that Umami uses to track analytics.", "An ID that uniquely identifies the website in your Umami instance.": "An ID that uniquely identifies the website in your Umami instance.", + "The audit log details the history of security related and other events across your knowledge base.": "Granskningsloggen innehåller historiken över säkerhetsrelaterade och andra händelser i hela din kunskapsbas.", + "Content": "Innehåll", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Hantera behörigheter och inställningar för alla samlingar i kunskapsbasen. Som administratör för arbetsytan kan du även administrera privata samlingar.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Indexera och sök automatiskt dokumentinnehåll från {{appName}} i Glean i realtid.", "New webhook": "Ny webhook", "Edit webhook": "Redigera Webhook", "Delete webhook": "Ta bort Webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", "Your group was mentioned": "Your group was mentioned", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} nämnde gruppen “{{ groupName }}” i dokumentet", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} har gått med i din {{ appName }}-arbetsyta", "Great news, {{ invitedName }} accepted your invitation": "Goda nyheter, {{ invitedName }} accepterade din inbjudan", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} har gått med i din arbetsyta", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", "Join now": "Join now", "Reminder": "Reminder", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Detta är bara en snabb påminnelse om att {{ actorName }} {{ actorEmail }} bjöd in dig att gå med i {{ teamName }}-arbetsytan på {{ appName }}, en plats där ditt team kan skapa och dela kunskap.", "We only send a reminder once.": "We only send a reminder once.", "If you haven’t signed up yet, you can do so here": "Om du inte har registrerat dig ännu kan du göra det här", "“{{ documentTitle }}” updated": "“{{ documentTitle }}” har uppdaterats", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Verifieringskod för inloggning", "Here’s your link to sign in to {{ appName }}.": "Här är din länk för att logga in på {{ appName }}.", "Use the link below to sign in": "Use the link below to sign in", - "If the link expired, you can request a new one from your team’s sign-in page at": "Om länken har gått ut kan du begära en ny från teamets inloggningssida på", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Om länken har gått ut kan du begära en ny från arbetsytans inloggningssida på", "Enter this verification code": "Enter this verification code", - "If the code expired, you can request a new one from your team’s sign-in page at": "Om koden har gått ut kan du begära en ny från teamets inloggningssida på", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Om koden har gått ut kan du begära en ny från arbetsytans inloggningssida på", "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", "Sign-in Code": "Sign-in Code", - "Enter this code on your team’s sign-in page to continue.": "Ange den här koden på ditt teams inloggningssida för att fortsätta.", + "Enter this code on your workspace’s sign-in page to continue.": "Ange den här koden på arbetsytans inloggningssida för att fortsätta.", "Webhook disabled": "Webhook disabled", "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Din webhook ({{ webhookName }}) har automatiskt inaktiverats på grund av en hög felfrekvens vid de senaste leveransförsöken. Du kan återaktivera den genom att redigera webhooken.", @@ -2007,10 +2055,14 @@ "Hide completed": "Hide completed", "Sorry, the link could not be copied": "Sorry, the link could not be copied", "Write a caption": "Skriv en bildtext", - "Display as mention": "Visa som omnämnande", - "Display as card": "Visa som kort", "Add title": "Add title", "Add content": "Add content", + "Change column filter": "Ändra kolumnfilter", + "Filter column": "Filtrera kolumn", + "{{ count }} filter applied": "{{ count }} filter har tillämpats", + "{{ count }} filter applied_plural": "{{ count }} filter har tillämpats", + "Filters cleared for you": "Filtren har rensats åt dig", + "Save for everyone": "Spara för alla", "Tomorrow": "Tomorrow", "Group admin": "Gruppadministratör", "Member": "Medlem" diff --git a/shared/i18n/locales/th_TH/translation.json b/shared/i18n/locales/th_TH/translation.json index 9731fc8838..efa4203670 100644 --- a/shared/i18n/locales/th_TH/translation.json +++ b/shared/i18n/locales/th_TH/translation.json @@ -733,6 +733,7 @@ "Integrations": "Integration", "Back to app": "กลับไปที่แอป", "Installation": "การติดตั้ง", + "Available on {{ planName }}": "ใช้ได้ใน {{ planName }}", "Split pane": "Split pane", "Main pane": "Main pane", "Unstar document": "Unstar document", @@ -778,6 +779,7 @@ "Last seen": "พบล่าสุด", "{{ time }} local time": "เวลาท้องถิ่น {{ time }}", "Your import completed": "Your import completed", + "Lock aspect ratio": "ล็อกอัตราส่วนภาพ", "Templates": "เทมเพลต", "View comment thread": "View comment thread", "Previous match": "Previous match", @@ -798,10 +800,13 @@ "Width": "Width", "Image height": "Image height", "Height": "Height", + "Aspect ratio locked": "ล็อกอัตราส่วนภาพแล้ว", + "Aspect ratio unlocked": "ปลดล็อกอัตราส่วนภาพแล้ว", "Paste a link": "วางลิงก์", "Delete embed": "Delete embed", "Delete video": "ลบวิดีโอ", "Delete image": "ลบรูป", + "Display options": "ตัวเลือกการแสดงผล", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} จะไม่ได้รับการแจ้งเตือน เนื่องจากไม่มีสิทธิ์เข้าถึงเอกสารนี้", "Members of “{{ groupName }}” with access to this document will be notified": "สมาชิกของ “{{ groupName }}” ที่เข้าถึงเอกสารนี้ได้จะได้รับการแจ้งเตือน", "Keep as link": "Keep as link", @@ -813,6 +818,25 @@ "Upload file": "Upload file", "Paste a link from {{service}}…": "วางลิงก์จาก {{service}}…", "Suggestions": "Suggestions", + "Showing all rows": "แสดงแถวทั้งหมด", + "Showing {{ visible }} of {{ count }} rows": "แสดง {{ visible }} จาก {{ count }} แถว", + "Showing {{ visible }} of {{ count }} rows_plural": "แสดง {{ visible }} จาก {{ count }} แถว", + "Filter {{ columnName }}": "กรอง {{ columnName }}", + "Is": "เท่ากับ", + "Is not": "ไม่เท่ากับ", + "Contains": "ประกอบด้วย", + "Does not contain": "ไม่มี", + "Is empty": "ว่างเปล่า", + "Is not empty": "ไม่ว่างเปล่า", + "Condition": "เงื่อนไข", + "Search values": "ค้นหาค่า", + "Values": "ค่า", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "กำลังแสดง {{ shown }} จาก {{ total }} ค่า ค้นหาเพื่อดูเพิ่มเติม", + "No values match your search.": "ไม่มีค่าที่ตรงกับการค้นหาของคุณ", + "This column has no values": "คอลัมน์นี้ไม่มีค่า", + "{{ visible }} of {{ count }} rows": "{{ visible }} จาก {{ count }} แถว", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} จาก {{ count }} แถว", + "Clear": "ล้าง", "More options": "More options", "Type '/' to insert": "พิมพ์ '/' เพื่อแทรก", "Keep typing to filter": "พิมพ์ต่อไปเพื่อกรอง", @@ -855,6 +879,8 @@ "Edit image URL": "Edit image URL", "Create a new doc": "สร้างเอกสารใหม่", "Create a nested doc": "Create a nested doc", + "Display as mention": "แสดงเป็นการกล่าวถึง", + "Display as card": "แสดงเป็นการ์ด", "Default width": "Default width", "Distribute columns": "Distribute columns", "Export as CSV": "Export as CSV", @@ -874,6 +900,11 @@ "Upload a video": "อัปโหลดวิดีโอ", "Edit video URL": "แก้ไข URL วิดีโอ", "Could not import file": "ไม่สามารถนำเข้าไฟล์ได้", + "Community": "ชุมชน", + "Standard": "มาตรฐาน", + "Business": "ธุรกิจ", + "Enterprise": "Enterprise", + "Legacy": "รุ่นเก่า", "Unsubscribed from document": "Unsubscribed from document", "Unsubscribed from collection": "Unsubscribed from collection", "Subscription successful": "Subscription successful", @@ -894,6 +925,8 @@ "Developer": "นักพัฒนา", "Applications": "Applications", "API key": "API key", + "Reconnect": "เชื่อมต่อใหม่", + "Connected": "Connected", "Show path to document": "แสดงเส้นทางไปยังเอกสาร", "Comment options": "Comment options", "Enable viewer insights": "Enable viewer insights", @@ -916,6 +949,7 @@ "Trash options": "ตัวเลือกถังขยะ", "User options": "ตัวเลือกผู้ใช้", "document": "document", + "All collections": "All collections", "Export complete": "Export complete", "Export failed": "Export failed", "An unexpected error occurred": "An unexpected error occurred", @@ -931,9 +965,13 @@ "invited you to": "invited you to", "added you to the group": "เพิ่มคุณเข้ากลุ่มแล้ว", "removed you from the group": "ลบคุณออกจากกลุ่มแล้ว", + "export completed": "ส่งออกเสร็จสมบูรณ์", + "export failed": "การส่งออกล้มเหลว", + "export is no longer available": "การส่งออกไม่พร้อมใช้งานอีกต่อไป", "was granted access to": "was granted access to", "requested access to": "requested access to", "is requesting access to": "is requesting access to", + "Your": "ของคุณ", "a document": "เอกสาร", "a collection": "คอลเลกชัน", "a group": "a group", @@ -1031,10 +1069,10 @@ "Document title": "Document title", "Last updated": "Last updated", "Type '/' to insert, or start writing…": "Type '/' to insert, or start writing…", + "Save draft": "Save draft", "Hide contents": "Hide contents", "Show contents": "Show contents", "available when headings are added": "available when headings are added", - "Save draft": "Save draft", "Restore version": "Restore version", "{{userName}} archived": "{{userName}} เก็บเข้าที่เก็บถาวร", "{{userName}} restored": "{{userName}} กู้คืนจากที่เก็บถาวร", @@ -1306,7 +1344,6 @@ "Sign in": "เข้าสู่ระบบ", "Allow members to sign in with {{ authProvider }}": "อนุญาตให้สมาชิกลงชื่อเข้าใช้ด้วย {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "เชื่อมต่อ {{ authProvider }} เพื่ออนุญาตให้สมาชิกลงชื่อเข้าใช้", - "Connected": "Connected", "Disabled": "Disabled", "Connect": "Connect", "Group sync": "Group sync", @@ -1365,7 +1402,6 @@ "Processing": "Processing", "Completed": "Completed", "Failed": "Failed", - "All collections": "All collections", "Import deleted": "Import deleted", "Export deleted": "Export deleted", "Are you sure you want to delete this import?": "Are you sure you want to delete this import?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "สีนี้มีความเปรียบต่างต่ำเมื่อเทียบกับสีเน้น", "Accent color": "Accent color", "Accent text color": "Accent text color", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "ฟีเจอร์นี้รวมอยู่ใน {{planName}} ขึ้นไป อัปเกรดเวิร์กสเปซของคุณเพื่อปลดล็อกให้ทีมของคุณใช้งาน", + "View plans": "ดูแพ็กเกจ", "All roles": "All roles", "Admins": "Admins", "Editors": "Editors", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "นำเข้าไฟล์ zip ของเอกสาร Markdown ในรูปแบบ Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Import a JSON data file exported from another {{ appName }} instance", "Import pages from a Confluence instance": "Import pages from a Confluence instance", - "Enterprise": "Enterprise", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.", "Recent imports": "Recent imports", "Configure a variety of integrations with third-party services.": "Configure a variety of integrations with third-party services.", + "Documents that are published, updated, or shared with you, and access requests": "เอกสารที่เผยแพร่ อัปเดต หรือแชร์กับคุณ และคำขอเข้าถึง", "Receive a notification whenever a new document is published": "Receive a notification whenever a new document is published", "Document updated": "Document updated", "Receive a notification when a document you are subscribed to is edited": "Receive a notification when a document you are subscribed to is edited", + "Invited to document": "Invited to document", + "Receive a notification when a document is shared with you": "Receive a notification when a document is shared with you", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "New collections and access to collections": "คอลเล็กชันใหม่และการเข้าถึงคอลเล็กชัน", + "Collection created": "Collection created", + "Receive a notification whenever a new collection is created": "Receive a notification whenever a new collection is created", + "Invited to collection": "Invited to collection", + "Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection", + "Comments and mentions": "ความคิดเห็นและการกล่าวถึง", + "New comments, mentions of you or your groups, resolved threads, and reactions": "ความคิดเห็นใหม่ การกล่าวถึงคุณหรือกลุ่มของคุณ เธรดที่แก้ไขแล้ว และรีแอ็กชัน", "Comment posted": "Comment posted", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment", "Mentioned": "Mentioned", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Reaction added": "Reaction added", "Receive a notification when someone reacts to your comment": "Receive a notification when someone reacts to your comment", - "Collection created": "Collection created", - "Receive a notification whenever a new collection is created": "Receive a notification whenever a new collection is created", - "Invite accepted": "Invite accepted", - "Receive a notification when someone you invited creates an account": "Receive a notification when someone you invited creates an account", - "Invited to document": "Invited to document", - "Receive a notification when a document is shared with you": "Receive a notification when a document is shared with you", - "Invited to collection": "Invited to collection", - "Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection", + "Group membership, accepted invites, and completed exports": "การเป็นสมาชิกกลุ่ม คำเชิญที่ตอบรับแล้ว และการส่งออกที่เสร็จสมบูรณ์", "Group membership": "การเป็นสมาชิกกลุ่ม", "Receive a notification when you are added to or removed from a group": "รับการแจ้งเตือนเมื่อคุณถูกเพิ่มเข้าหรือลบออกจากกลุ่ม", + "Invite accepted": "Invite accepted", + "Receive a notification when someone you invited creates an account": "Receive a notification when someone you invited creates an account", "Export completed": "Export completed", "Receive a notification when an export you requested has been completed": "Receive a notification when an export you requested has been completed", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Product updates": "อัปเดตผลิตภัณฑ์", + "Tips on getting started and announcements of new features": "เคล็ดลับในการเริ่มต้นใช้งานและประกาศฟีเจอร์ใหม่", "Getting started": "Getting started", "Tips on getting started with features and functionality": "Tips on getting started with features and functionality", "New features": "New features", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Failed to save revision", "Invite to document": "Invite to document", "Sorry, invalid embed link": "Sorry, invalid embed link", - "Data Attributes": "Data Attributes", + "Data attributes": "แอตทริบิวต์ข้อมูล", "Edit attribute": "Edit attribute", "Property": "Property", "Yes": "Yes", @@ -1675,7 +1719,7 @@ "Text": "Text", "List": "List", "Could not load events": "Could not load events", - "Audit Log": "Audit Log", + "Audit log": "บันทึกการตรวจสอบ", "The audit log details the history of security-related and other events across your knowledge base.": "บันทึกการตรวจสอบแสดงรายละเอียดประวัติเหตุการณ์ที่เกี่ยวข้องกับความปลอดภัยและเหตุการณ์อื่น ๆ ในฐานความรู้ของคุณ", "IP address": "IP address", "Actor": "Actor", @@ -1818,6 +1862,10 @@ "Script name": "Script name", "The name of the script file that Umami uses to track analytics.": "The name of the script file that Umami uses to track analytics.", "An ID that uniquely identifies the website in your Umami instance.": "An ID that uniquely identifies the website in your Umami instance.", + "The audit log details the history of security related and other events across your knowledge base.": "บันทึกการตรวจสอบแสดงรายละเอียดประวัติของเหตุการณ์ที่เกี่ยวข้องกับความปลอดภัยและเหตุการณ์อื่น ๆ ในฐานความรู้ของคุณ", + "Content": "เนื้อหา", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "จัดการสิทธิ์และการตั้งค่าของคอลเล็กชันทั้งหมดในฐานความรู้ ในฐานะผู้ดูแลระบบเวิร์กสเปซ คุณยังสามารถจัดการคอลเล็กชันส่วนตัวได้ด้วย", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "จัดทำดัชนีและค้นหาเนื้อหาเอกสารจาก {{appName}} ภายใน Glean แบบเรียลไทม์โดยอัตโนมัติ", "New webhook": "New webhook", "Edit webhook": "Edit webhook", "Delete webhook": "Delete webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", "Your group was mentioned": "Your group was mentioned", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} กล่าวถึงกลุ่ม “{{ groupName }}” ในเอกสาร", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} ได้เข้าร่วมพื้นที่ทำงาน {{ appName }} ของคุณแล้ว", "Great news, {{ invitedName }} accepted your invitation": "ข่าวดี {{ invitedName }} ตอบรับคำเชิญของคุณแล้ว", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} ได้เข้าร่วมพื้นที่ทำงานของคุณแล้ว", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", "Join now": "Join now", "Reminder": "Reminder", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "นี่เป็นเพียงการแจ้งเตือนสั้นๆ ว่า {{ actorName }} {{ actorEmail }} ได้เชิญคุณให้เข้าร่วมพื้นที่ทำงาน {{ teamName }} บน {{ appName }} ซึ่งเป็นที่สำหรับทีมของคุณในการสร้างและแบ่งปันความรู้", "We only send a reminder once.": "We only send a reminder once.", "If you haven’t signed up yet, you can do so here": "หากคุณยังไม่ได้สมัคร คุณสามารถสมัครได้ที่นี่", "“{{ documentTitle }}” updated": "อัปเดต “{{ documentTitle }}” แล้ว", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "รหัสยืนยันการเข้าสู่ระบบ", "Here’s your link to sign in to {{ appName }}.": "นี่คือลิงก์สำหรับลงชื่อเข้าใช้ {{ appName }}", "Use the link below to sign in": "Use the link below to sign in", - "If the link expired, you can request a new one from your team’s sign-in page at": "หากลิงก์หมดอายุ คุณสามารถขอลิงก์ใหม่ได้จากหน้าลงชื่อเข้าใช้ของทีมคุณที่", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "หากลิงก์หมดอายุ คุณสามารถขอลิงก์ใหม่ได้จากหน้าลงชื่อเข้าใช้ของพื้นที่ทำงานของคุณที่", "Enter this verification code": "Enter this verification code", - "If the code expired, you can request a new one from your team’s sign-in page at": "หากรหัสหมดอายุ คุณสามารถขอรหัสใหม่ได้จากหน้าลงชื่อเข้าใช้ของทีมคุณที่", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "หากรหัสหมดอายุ คุณสามารถขอรหัสใหม่ได้จากหน้าลงชื่อเข้าใช้ของพื้นที่ทำงานของคุณที่", "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", "Sign-in Code": "Sign-in Code", - "Enter this code on your team’s sign-in page to continue.": "ป้อนรหัสนี้ในหน้าลงชื่อเข้าใช้ของทีมคุณเพื่อดำเนินการต่อ", + "Enter this code on your workspace’s sign-in page to continue.": "ป้อนรหัสนี้ในหน้าลงชื่อเข้าใช้ของพื้นที่ทำงานของคุณเพื่อดำเนินการต่อ", "Webhook disabled": "Webhook disabled", "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "เว็บฮุกของคุณ ({{ webhookName }}) ถูกปิดใช้งานโดยอัตโนมัติเนื่องจากมีอัตราความล้มเหลวสูงในการพยายามส่งล่าสุด คุณสามารถเปิดใช้งานอีกครั้งได้โดยแก้ไขเว็บฮุก", @@ -2007,10 +2055,14 @@ "Hide completed": "Hide completed", "Sorry, the link could not be copied": "Sorry, the link could not be copied", "Write a caption": "เขียนแคปชั่น", - "Display as mention": "แสดงเป็นการกล่าวถึง", - "Display as card": "แสดงเป็นการ์ด", "Add title": "Add title", "Add content": "Add content", + "Change column filter": "เปลี่ยนตัวกรองคอลัมน์", + "Filter column": "กรองคอลัมน์", + "{{ count }} filter applied": "ใช้ตัวกรองแล้ว {{ count }} รายการ", + "{{ count }} filter applied_plural": "ใช้ตัวกรองแล้ว {{ count }} รายการ", + "Filters cleared for you": "ล้างตัวกรองให้คุณแล้ว", + "Save for everyone": "บันทึกสำหรับทุกคน", "Tomorrow": "Tomorrow", "Group admin": "Group admin", "Member": "สมาชิก" diff --git a/shared/i18n/locales/tr_TR/translation.json b/shared/i18n/locales/tr_TR/translation.json index c3507f257a..61c258410c 100644 --- a/shared/i18n/locales/tr_TR/translation.json +++ b/shared/i18n/locales/tr_TR/translation.json @@ -733,6 +733,7 @@ "Integrations": "Entegrasyonlar", "Back to app": "Uygulamaya geri dön", "Installation": "Kurulum", + "Available on {{ planName }}": "{{ planName }} planında kullanılabilir", "Split pane": "Bölünmüş panel", "Main pane": "Ana panel", "Unstar document": "Belgenin yıldızını kaldır", @@ -778,6 +779,7 @@ "Last seen": "Son görülme", "{{ time }} local time": "{{ time }} yerel saat", "Your import completed": "İçe aktarımınız tamamlandı", + "Lock aspect ratio": "En-boy oranını kilitle", "Templates": "Şablonlar", "View comment thread": "Yorum dizisini görüntüle", "Previous match": "Önceki eşleşme", @@ -798,10 +800,13 @@ "Width": "Genişlik", "Image height": "Görsel yüksekliği", "Height": "Yükseklik", + "Aspect ratio locked": "En-boy oranı kilitlendi", + "Aspect ratio unlocked": "En-boy oranı kilidi açıldı", "Paste a link": "Bir bağlantı yapıştırın", "Delete embed": "Yerleştirmeyi sil", "Delete video": "Videoyu sil", "Delete image": "Resmi sil", + "Display options": "Görüntüleme seçenekleri", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }}, bu belgeye erişimi olmadığı için bilgilendirilmeyecek", "Members of “{{ groupName }}” with access to this document will be notified": "Bu belgeye erişimi olan “{{ groupName }}” üyeleri bilgilendirilecektir", "Keep as link": "Bağlantı olarak tut", @@ -813,6 +818,25 @@ "Upload file": "Dosya yükle", "Paste a link from {{service}}…": "{{service}} üzerinden bir bağlantı yapıştırın…", "Suggestions": "Öneriler", + "Showing all rows": "Tüm satırlar gösteriliyor", + "Showing {{ visible }} of {{ count }} rows": "{{ count }} satırın {{ visible }} tanesi gösteriliyor", + "Showing {{ visible }} of {{ count }} rows_plural": "{{ count }} satırın {{ visible }} tanesi gösteriliyor", + "Filter {{ columnName }}": "{{ columnName }} sütununu filtrele", + "Is": "Eşittir", + "Is not": "Eşit değildir", + "Contains": "İçerir", + "Does not contain": "İçermez", + "Is empty": "Boş", + "Is not empty": "Boş değil", + "Condition": "Koşul", + "Search values": "Değerleri ara", + "Values": "Değerler", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "{{ total }} değerden {{ shown }} tanesi gösteriliyor. Daha fazlasını bulmak için arayın.", + "No values match your search.": "Aramanızla eşleşen değer yok.", + "This column has no values": "Bu sütunda değer yok", + "{{ visible }} of {{ count }} rows": "{{ count }} satırın {{ visible }} tanesi", + "{{ visible }} of {{ count }} rows_plural": "{{ count }} satırın {{ visible }} tanesi", + "Clear": "Temizle", "More options": "Daha fazla seçenek", "Type '/' to insert": "Eklemek için '/' yazın", "Keep typing to filter": "Filtrelemek için yazmaya devam edin", @@ -855,6 +879,8 @@ "Edit image URL": "Görsel URL'sini düzenle", "Create a new doc": "Yeni bir belge oluştur", "Create a nested doc": "İç içe belge oluştur", + "Display as mention": "Bahsetme olarak görüntüle", + "Display as card": "Kart olarak görüntüle", "Default width": "Varsayılan genişlik", "Distribute columns": "Sütunları eşit dağıt", "Export as CSV": "CSV olarak dışa aktar", @@ -874,6 +900,11 @@ "Upload a video": "Video yükle", "Edit video URL": "Video URL'sini düzenle", "Could not import file": "Dosya içe aktarılamadı", + "Community": "Topluluk", + "Standard": "Standart", + "Business": "İşletme", + "Enterprise": "Kurumsal", + "Legacy": "Eski", "Unsubscribed from document": "Belgeden abonelik iptal edildi", "Unsubscribed from collection": "Koleksiyondan abonelik iptal edildi", "Subscription successful": "Abonelik başarılı", @@ -894,6 +925,8 @@ "Developer": "Geliştirici", "Applications": "Uygulamalar", "API key": "API anahtarı", + "Reconnect": "Yeniden bağlan", + "Connected": "Bağlandı", "Show path to document": "Belgeye giden yolu göster", "Comment options": "Yorum seçenekleri", "Enable viewer insights": "İzleyici analizlerini etkinleştir", @@ -916,6 +949,7 @@ "Trash options": "Çöp kutusu seçenekleri", "User options": "Kullanıcı seçenekleri", "document": "belge", + "All collections": "Tüm koleksiyonlar", "Export complete": "Dışa aktarım tamamlandı", "Export failed": "Dışarı aktarma hatası", "An unexpected error occurred": "Beklenmeyen bir hata oluştu", @@ -931,9 +965,13 @@ "invited you to": "sizi davet etti:", "added you to the group": "sizi gruba ekledi", "removed you from the group": "sizi gruptan çıkardı", + "export completed": "dışa aktarma tamamlandı", + "export failed": "dışa aktarma başarısız oldu", + "export is no longer available": "dışa aktarma artık kullanılamıyor", "was granted access to": "erişim izni verildi:", "requested access to": "erişim talep etti:", "is requesting access to": "erişim talep ediyor:", + "Your": "Sizin", "a document": "bir belge", "a collection": "bir koleksiyon", "a group": "bir grup", @@ -1031,10 +1069,10 @@ "Document title": "Belge başlığı", "Last updated": "Son güncelleme", "Type '/' to insert, or start writing…": "Eklemek için '/' yazın veya yazmaya başlayın…", + "Save draft": "Taslağı kaydet", "Hide contents": "İçeriği gizle", "Show contents": "İçeriği göster", "available when headings are added": "başlıklar eklendiğinde kullanılabilir", - "Save draft": "Taslağı kaydet", "Restore version": "Sürümü geri yükle", "{{userName}} archived": "{{userName}} arşivledi", "{{userName}} restored": "{{userName}} geri yükledi", @@ -1306,7 +1344,6 @@ "Sign in": "Giriş yap", "Allow members to sign in with {{ authProvider }}": "Üyelerin {{ authProvider }} ile giriş yapmasına izin ver", "Connect {{ authProvider }} to allow members to sign in": "Üyelerin giriş yapabilmesi için {{ authProvider }} sağlayıcısını bağlayın", - "Connected": "Bağlandı", "Disabled": "Devre dışı", "Connect": "Bağla", "Group sync": "Grup eşitlemesi", @@ -1365,7 +1402,6 @@ "Processing": "İşleniyor", "Completed": "Tamamlandı", "Failed": "Başarısız oldu", - "All collections": "Tüm koleksiyonlar", "Import deleted": "İçe aktarım silindi", "Export deleted": "Dışa aktarma silindi", "Are you sure you want to delete this import?": "Bu içe aktarmayı silmek istediğinizden emin misiniz?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Bu rengin vurgu rengine karşı kontrastı düşük", "Accent color": "Vurgu rengi", "Accent text color": "Vurgu metin rengi", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Bu özellik {{planName}} ve üzeri planlara dahildir. Ekibiniz için bu özelliğin kilidini açmak üzere çalışma alanınızı yükseltin.", + "View plans": "Planları görüntüle", "All roles": "Tüm roller", "Admins": "Yöneticiler", "Editors": "Düzenleyiciler", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Open Knowledge Format'taki Markdown belgelerini içeren bir ZIP dosyasını içe aktarın", "Import a JSON data file exported from another {{ appName }} instance": "Başka bir {{ appName }} örneğinden dışa aktarılmış bir JSON veri dosyasını içe aktar", "Import pages from a Confluence instance": "Bir Confluence örneğinden sayfaları içe aktar", - "Enterprise": "Kurumsal", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Mevcut belgelerinizi, sayfalarınızı ve dosyalarınızı diğer araçlardan ve hizmetlerden hızlıca {{appName}} içine aktarın. Ayrıca herhangi bir HTML, Markdown ve metin belgesini doğrudan uygulamadaki Koleksiyonlara sürükleyip bırakabilirsiniz.", "Recent imports": "Son içe aktarmalar", "Configure a variety of integrations with third-party services.": "Üçüncü taraf hizmetlerle çeşitli entegrasyonları yapılandırın.", + "Documents that are published, updated, or shared with you, and access requests": "Yayınlanan, güncellenen veya sizinle paylaşılan belgeler ve erişim istekleri", "Receive a notification whenever a new document is published": "Yeni bir belge yayınlandığında bir bildirim alın", "Document updated": "Belge güncellendi", "Receive a notification when a document you are subscribed to is edited": "Abone olduğunuz bir belge düzenlendiğinde bildirim alın", + "Invited to document": "Belgeye davet edildi", + "Receive a notification when a document is shared with you": "Sizinle bir belge paylaşıldığında bildirim alın", + "Document access requested": "Belge erişimi istendi", + "Receive a notification when a user requests access to a document you manage": "Yönettiğiniz bir belgeye kullanıcı erişim istediğinde bildirim alın", + "New collections and access to collections": "Yeni koleksiyonlar ve koleksiyonlara erişim", + "Collection created": "Koleksiyon oluşturuldu", + "Receive a notification whenever a new collection is created": "Yeni bir koleksiyon oluşturulduğunda bildirim alın", + "Invited to collection": "Koleksiyona davet edildi", + "Receive a notification when you are given access to a collection": "Bir koleksiyona erişim verildiğinde bildirim alın", + "Comments and mentions": "Yorumlar ve bahsetmeler", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Yeni yorumlar, sizden veya gruplarınızdan bahsetmeler, çözümlenen ileti dizileri ve tepkiler", "Comment posted": "Yorum yayınlandı", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Abone olduğunuz bir belge veya katıldığınız bir konuşma dizisi yorum aldığında bildirim alın", "Mentioned": "Bahsedildi", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Dahil olduğunuz bir yorum dizisi çözüldüğünde bildirim alın", "Reaction added": "Tepki eklendi", "Receive a notification when someone reacts to your comment": "Birisi yorumunuza tepki verdiğinde bildirim alın", - "Collection created": "Koleksiyon oluşturuldu", - "Receive a notification whenever a new collection is created": "Yeni bir koleksiyon oluşturulduğunda bildirim alın", - "Invite accepted": "Davet kabul edildi", - "Receive a notification when someone you invited creates an account": "Davet ettiğiniz biri bir hesap oluşturduğunda bildirim alın", - "Invited to document": "Belgeye davet edildi", - "Receive a notification when a document is shared with you": "Sizinle bir belge paylaşıldığında bildirim alın", - "Invited to collection": "Koleksiyona davet edildi", - "Receive a notification when you are given access to a collection": "Bir koleksiyona erişim verildiğinde bildirim alın", + "Group membership, accepted invites, and completed exports": "Grup üyeliği, kabul edilen davetler ve tamamlanan dışa aktarımlar", "Group membership": "Grup üyeliği", "Receive a notification when you are added to or removed from a group": "Bir gruba eklendiğinizde veya gruptan çıkarıldığınızda bildirim alın", + "Invite accepted": "Davet kabul edildi", + "Receive a notification when someone you invited creates an account": "Davet ettiğiniz biri bir hesap oluşturduğunda bildirim alın", "Export completed": "Dışa aktarma tamamlandı", "Receive a notification when an export you requested has been completed": "Talep ettiğiniz bir dışa aktarma tamamlandığında bildirim alın", - "Document access requested": "Belge erişimi istendi", - "Receive a notification when a user requests access to a document you manage": "Yönettiğiniz bir belgeye kullanıcı erişim istediğinde bildirim alın", + "Product updates": "Ürün güncellemeleri", + "Tips on getting started and announcements of new features": "Başlangıç ipuçları ve yeni özellik duyuruları", "Getting started": "Başlarken", "Tips on getting started with features and functionality": "Özellikler ve işlevsellik ile ilgili başlangıç ipuçları", "New features": "Yeni özellikler", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Revizyon kaydedilemedi", "Invite to document": "Belgeye davet et", "Sorry, invalid embed link": "Üzgünüz, geçersiz yerleştirme bağlantısı", - "Data Attributes": "Veri Özellikleri", + "Data attributes": "Veri Özellikleri", "Edit attribute": "Özelliği düzenle", "Property": "Özellik", "Yes": "Evet", @@ -1675,7 +1719,7 @@ "Text": "Metin", "List": "Liste", "Could not load events": "Olaylar yüklenemedi", - "Audit Log": "Denetim Günlüğü", + "Audit log": "Denetim Günlüğü", "The audit log details the history of security-related and other events across your knowledge base.": "Denetim günlüğü, bilgi tabanınızdaki güvenlikle ilgili ve diğer olayların geçmişini ayrıntılarıyla gösterir.", "IP address": "IP adresi", "Actor": "Aktör", @@ -1818,6 +1862,10 @@ "Script name": "Betik adı", "The name of the script file that Umami uses to track analytics.": "Umami'nin analizleri izlemek için kullandığı betik dosyasının adı.", "An ID that uniquely identifies the website in your Umami instance.": "Umami örneğinizde web sitesini benzersiz şekilde tanımlayan bir kimlik.", + "The audit log details the history of security related and other events across your knowledge base.": "Denetim günlüğü, bilgi tabanınızdaki güvenlikle ilgili ve diğer olayların geçmişini detaylandırır.", + "Content": "İçerik", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Bilgi tabanındaki tüm koleksiyonların izinlerini ve ayarlarını yönetin. Çalışma alanı yöneticisi olarak özel koleksiyonları da yönetebilirsiniz.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "{{appName}} içindeki belge içeriğini gerçek zamanlı olarak Glean'de otomatik olarak dizine ekleyin ve arayın.", "New webhook": "Yeni webhook", "Edit webhook": "Webhook'u düzenle", "Delete webhook": "Webhook'u sil", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }}, “{{ documentTitle }}” belgesinde “{{ groupName }}” grubundan bahsetti.", "Your group was mentioned": "Grubunuzdan bahsedildi", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }}, belgede “{{ groupName }}” grubundan bahsetti", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }}, {{ appName }} ekibinize katıldı", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }}, {{ appName }} çalışma alanınıza katıldı", "Great news, {{ invitedName }} accepted your invitation": "Harika haber, {{ invitedName }} davetinizi kabul etti", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Harika haber: {{ invitedName }} davetinizi kabul etti ve bir hesap oluşturdu. Artık belgeler üzerinde birlikte çalışmaya başlayabilirsiniz.", "Open {{ appName }}": "{{ appName }} uygulamasını aç", - "{{ invitedName }} has joined your team": "{{ invitedName }} ekibinize katıldı", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} çalışma alanınıza katıldı", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} sizi {{ teamName }} çalışma alanına katılmaya davet etti", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }}, ekibinizin bilgi oluşturup paylaşabileceği bir alandır.", "Join {{ teamName }} on {{ appName }}": "{{ appName }} üzerinde {{ teamName }} ekibine katıl", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "sizi ekibinizin bilgi oluşturup paylaşabileceği {{ appName }} uygulamasına katılmaya davet etti.", "Join now": "Şimdi katıl", "Reminder": "Hatırlatma", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "Bu, {{ actorName }} ({{ actorEmail }}) kullanıcısının sizi {{ appName }} üzerindeki {{ teamName }} ekibine davet ettiğine dair kısa bir hatırlatmadır. Bu platform, ekibinizin bilgi oluşturup paylaşabileceği bir alandır.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Bu, {{ actorName }} {{ actorEmail }} kullanıcısının sizi, ekibinizin bilgi oluşturup paylaşabileceği bir yer olan {{ appName }} üzerindeki {{ teamName }} çalışma alanına davet ettiğine dair kısa bir hatırlatmadır.", "We only send a reminder once.": "Bu hatırlatmayı yalnızca bir kez göndeririz.", "If you haven’t signed up yet, you can do so here": "Henüz kaydolmadıysanız buradan kaydolabilirsiniz", "“{{ documentTitle }}” updated": "“{{ documentTitle }}” güncellendi", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Oturum açma doğrulama kodu", "Here’s your link to sign in to {{ appName }}.": "{{ appName }}'e giriş yapmak için bağlantınız burada.", "Use the link below to sign in": "Oturum açmak için aşağıdaki bağlantıyı kullanın", - "If the link expired, you can request a new one from your team’s sign-in page at": "Bağlantının süresi dolduysa ekibinizin şu adresteki oturum açma sayfasından yenisini isteyebilirsiniz", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Bağlantının süresi dolduysa çalışma alanınızın şu oturum açma sayfasından yenisini isteyebilirsiniz", "Enter this verification code": "Bu doğrulama kodunu girin", - "If the code expired, you can request a new one from your team’s sign-in page at": "Kodun süresi dolduysa ekibinizin şu adresteki oturum açma sayfasından yenisini isteyebilirsiniz", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Kodun süresi dolduysa çalışma alanınızın şu oturum açma sayfasından yenisini isteyebilirsiniz", "Click the button below to sign in to {{ appName }}.": "{{ appName }} uygulamasında oturum açmak için aşağıdaki düğmeye tıklayın.", "Sign-in Code": "Oturum açma kodu", - "Enter this code on your team’s sign-in page to continue.": "Devam etmek için bu kodu ekibinizin giriş sayfasına girin.", + "Enter this code on your workspace’s sign-in page to continue.": "Devam etmek için bu kodu çalışma alanınızın oturum açma sayfasına girin.", "Webhook disabled": "Webhook devre dışı bırakıldı", "Your webhook ({{ webhookName }}) has been disabled": "Webhook'unuz ({{ webhookName }}) devre dışı bırakıldı", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Webhook'unuz ({{ webhookName }}), son teslim denemelerindeki yüksek hata oranı nedeniyle otomatik olarak devre dışı bırakıldı. Webhook'u düzenleyerek yeniden etkinleştirebilirsiniz.", @@ -2007,10 +2055,14 @@ "Hide completed": "Tamamlananları gizle", "Sorry, the link could not be copied": "Üzgünüz, bağlantı kopyalanamadı", "Write a caption": "Bir başlık yazın", - "Display as mention": "Bahsetme olarak görüntüle", - "Display as card": "Kart olarak görüntüle", "Add title": "Başlık ekle", "Add content": "İçerik ekle", + "Change column filter": "Sütun filtresini değiştir", + "Filter column": "Sütunu filtrele", + "{{ count }} filter applied": "{{ count }} filtre uygulandı", + "{{ count }} filter applied_plural": "{{ count }} filtre uygulandı", + "Filters cleared for you": "Filtreler sizin için temizlendi", + "Save for everyone": "Herkes için kaydet", "Tomorrow": "Yarın", "Group admin": "Grup yöneticisi", "Member": "Üye" diff --git a/shared/i18n/locales/uk_UA/translation.json b/shared/i18n/locales/uk_UA/translation.json index b36451363c..e666af3998 100644 --- a/shared/i18n/locales/uk_UA/translation.json +++ b/shared/i18n/locales/uk_UA/translation.json @@ -733,6 +733,7 @@ "Integrations": "Інтеграції", "Back to app": "Назад до програми", "Installation": "Встановлення", + "Available on {{ planName }}": "Доступно в {{ planName }}", "Split pane": "Split pane", "Main pane": "Main pane", "Unstar document": "Видалити з обраного", @@ -778,6 +779,7 @@ "Last seen": "Востаннє в мережі", "{{ time }} local time": "Місцевий час: {{ time }}", "Your import completed": "Ваш імпорт завершено", + "Lock aspect ratio": "Заблокувати співвідношення сторін", "Templates": "Шаблони", "View comment thread": "View comment thread", "Previous match": "Попередній збіг", @@ -798,10 +800,13 @@ "Width": "Ширина", "Image height": "Висота зображення", "Height": "Висота", + "Aspect ratio locked": "Співвідношення сторін заблоковано", + "Aspect ratio unlocked": "Співвідношення сторін розблоковано", "Paste a link": "Вставити посилання", "Delete embed": "Видалити вкладення", "Delete video": "Видалити відео", "Delete image": "Видалити зображення", + "Display options": "Параметри відображення", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} не отримає сповіщення, оскільки не має доступу до цього документа", "Members of “{{ groupName }}” with access to this document will be notified": "Учасники «{{ groupName }}», які мають доступ до цього документа, отримають сповіщення", "Keep as link": "Зберегти як посилання", @@ -813,6 +818,25 @@ "Upload file": "Завантажити файл", "Paste a link from {{service}}…": "Вставте посилання з {{service}}…", "Suggestions": "Пропозиції", + "Showing all rows": "Показано всі рядки", + "Showing {{ visible }} of {{ count }} rows": "Показано {{ visible }} з {{ count }} рядка", + "Showing {{ visible }} of {{ count }} rows_plural": "Показано {{ visible }} з {{ count }} рядків", + "Filter {{ columnName }}": "Фільтрувати {{ columnName }}", + "Is": "Дорівнює", + "Is not": "Не дорівнює", + "Contains": "Містить", + "Does not contain": "Не містить", + "Is empty": "Порожнє", + "Is not empty": "Не порожнє", + "Condition": "Умова", + "Search values": "Шукати значення", + "Values": "Значення", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Показано {{ shown }} із {{ total }} значень. Виконайте пошук, щоб знайти більше.", + "No values match your search.": "Немає значень, що відповідають вашому пошуку.", + "This column has no values": "У цьому стовпці немає значень", + "{{ visible }} of {{ count }} rows": "{{ visible }} із {{ count }} рядка", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} із {{ count }} рядків", + "Clear": "Очистити", "More options": "Більше параметрів", "Type '/' to insert": "Введіть '/', для вставки", "Keep typing to filter": "Продовжуйте вводити, щоб фільтрувати", @@ -855,6 +879,8 @@ "Edit image URL": "Редагувати посилання на зображення", "Create a new doc": "Створіть новий документ", "Create a nested doc": "Створити вкладений документ", + "Display as mention": "Відображати як згадку", + "Display as card": "Відображати як картку", "Default width": "Стандартна ширина", "Distribute columns": "Розподілити стовпці", "Export as CSV": "Експортувати у форматі CSV", @@ -874,6 +900,11 @@ "Upload a video": "Завантажити відео", "Edit video URL": "Редагувати URL-адресу відео", "Could not import file": "Не вдалося імпортувати файл", + "Community": "Спільнота", + "Standard": "Стандартний", + "Business": "Бізнес", + "Enterprise": "Підприємство", + "Legacy": "Застарілий", "Unsubscribed from document": "Відписано від документа", "Unsubscribed from collection": "Відписано від колекції", "Subscription successful": "Subscription successful", @@ -894,6 +925,8 @@ "Developer": "Розробник", "Applications": "Додатки", "API key": "Ключ API", + "Reconnect": "Перепідключитися", + "Connected": "Підключено", "Show path to document": "Показати шлях до документа", "Comment options": "Налаштування коментарів", "Enable viewer insights": "Увімкнути статистику перегляду", @@ -916,6 +949,7 @@ "Trash options": "Параметри кошика", "User options": "Параметри користувача", "document": "документ", + "All collections": "Усі колекції", "Export complete": "Експорт завершено", "Export failed": "Помилка експорту", "An unexpected error occurred": "Сталася неочікувана помилка", @@ -931,9 +965,13 @@ "invited you to": "вас запрошено до", "added you to the group": "вас додали до групи", "removed you from the group": "вас видалили з групи", + "export completed": "експорт завершено", + "export failed": "помилка експорту", + "export is no longer available": "експорт більше недоступний", "was granted access to": "was granted access to", "requested access to": "requested access to", "is requesting access to": "is requesting access to", + "Your": "Ваш", "a document": "документ", "a collection": "колекцію", "a group": "a group", @@ -1031,10 +1069,10 @@ "Document title": "Назва документа", "Last updated": "Оновлено", "Type '/' to insert, or start writing…": "Введіть '/', щоб вставити, або почніть писати…", + "Save draft": "Зберегти чернетку", "Hide contents": "Приховати вміст", "Show contents": "Показати вміст", "available when headings are added": "available when headings are added", - "Save draft": "Зберегти чернетку", "Restore version": "Відновити версію", "{{userName}} archived": "{{userName}} заархівовано", "{{userName}} restored": "{{userName}} відновлено", @@ -1306,7 +1344,6 @@ "Sign in": "Увійти", "Allow members to sign in with {{ authProvider }}": "Дозволити учасникам входити за допомогою {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Підключіть {{ authProvider }}, щоб дозволити учасникам входити", - "Connected": "Підключено", "Disabled": "Вимкнено", "Connect": "Під’єднатися", "Group sync": "Group sync", @@ -1365,7 +1402,6 @@ "Processing": "Виконується", "Completed": "Завершено", "Failed": "Помилка", - "All collections": "Усі колекції", "Import deleted": "Імпорт видалено", "Export deleted": "Експорт видалено", "Are you sure you want to delete this import?": "Ви впевнені, що ви хочете видалити цей імпорт?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Цей колір має низьку контрастність на тлі акцентного кольору", "Accent color": "Підібрати колір", "Accent text color": "Підібрати колір тексту", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Ця функція включена до {{planName}} і вищих тарифних планів. Оновіть свій робочий простір, щоб розблокувати її для своєї команди.", + "View plans": "Переглянути тарифні плани", "All roles": "Всі ролі", "Admins": "Адміністратори", "Editors": "Редактори", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Імпортувати zip-файл із документами Markdown у форматі Open Knowledge Format", "Import a JSON data file exported from another {{ appName }} instance": "Імпортуйте файл даних JSON, експортований з іншого простору {{ appName }}", "Import pages from a Confluence instance": "Імпортувати сторінки з Confluence", - "Enterprise": "Підприємство", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Швидко перенесіть наявні документи, сторінки та файли з інших інструментів і служб у {{appName}}. Ви також можете перетягувати будь-які документи HTML, Markdown і текстові документи безпосередньо в колекції програми.", "Recent imports": "Останні імпорти", "Configure a variety of integrations with third-party services.": "Налаштувати різні інтеграції зі сторонніми сервісами.", + "Documents that are published, updated, or shared with you, and access requests": "Документи, опубліковані, оновлені або поширені з вами, а також запити на доступ", "Receive a notification whenever a new document is published": "Отримувати сповіщення щоразу, коли публікується новий документ", "Document updated": "Документ оновлено", "Receive a notification when a document you are subscribed to is edited": "Отримувати сповіщення про редагування документа, на який ви підписані", + "Invited to document": "Invited to document", + "Receive a notification when a document is shared with you": "Receive a notification when a document is shared with you", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "New collections and access to collections": "Нові колекції та доступ до колекцій", + "Collection created": "Колекція створена", + "Receive a notification whenever a new collection is created": "Отримувати сповіщення щоразу, коли публікується новий документ", + "Invited to collection": "Invited to collection", + "Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection", + "Comments and mentions": "Коментарі та згадки", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Нові коментарі, згадки про вас або ваші групи, вирішені гілки та реакції", "Comment posted": "Коментар опубліковано", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Отримувати сповіщення, коли документ, на який ви підписані, або ланцюжок, у якому ви брали участь, отримує коментар", "Mentioned": "Згадано", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Reaction added": "Реакція додана", "Receive a notification when someone reacts to your comment": "Receive a notification when someone reacts to your comment", - "Collection created": "Колекція створена", - "Receive a notification whenever a new collection is created": "Отримувати сповіщення щоразу, коли публікується новий документ", - "Invite accepted": "Запрошення прийнято", - "Receive a notification when someone you invited creates an account": "Отримувати повідомлення, коли хтось запросив вас створити обліковий запис", - "Invited to document": "Invited to document", - "Receive a notification when a document is shared with you": "Receive a notification when a document is shared with you", - "Invited to collection": "Invited to collection", - "Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection", + "Group membership, accepted invites, and completed exports": "Участь у групах, прийняті запрошення та завершені експорти", "Group membership": "Участь у групі", "Receive a notification when you are added to or removed from a group": "Отримуйте сповіщення, коли вас додають до групи або видаляють із неї", + "Invite accepted": "Запрошення прийнято", + "Receive a notification when someone you invited creates an account": "Отримувати повідомлення, коли хтось запросив вас створити обліковий запис", "Export completed": "Експорт завершено", "Receive a notification when an export you requested has been completed": "Отримувати повідомлення, коли запит на експорт завершено", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Product updates": "Оновлення продукту", + "Tips on getting started and announcements of new features": "Поради щодо початку роботи та анонси нових функцій", "Getting started": "Розпочати", "Tips on getting started with features and functionality": "Поради щодо початку роботи з функціями та функціональністю", "New features": "Нові функції", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Failed to save revision", "Invite to document": "Invite to document", "Sorry, invalid embed link": "Sorry, invalid embed link", - "Data Attributes": "Атрибути даних", + "Data attributes": "Атрибути даних", "Edit attribute": "Редагувати атрибути", "Property": "Власність", "Yes": "Так", @@ -1675,7 +1719,7 @@ "Text": "Text", "List": "List", "Could not load events": "Could not load events", - "Audit Log": "Audit Log", + "Audit log": "Журнал аудиту", "The audit log details the history of security-related and other events across your knowledge base.": "Журнал аудиту містить докладну історію подій, пов’язаних із безпекою, та інших подій у вашій базі знань.", "IP address": "IP address", "Actor": "Actor", @@ -1818,6 +1862,10 @@ "Script name": "Script name", "The name of the script file that Umami uses to track analytics.": "The name of the script file that Umami uses to track analytics.", "An ID that uniquely identifies the website in your Umami instance.": "An ID that uniquely identifies the website in your Umami instance.", + "The audit log details the history of security related and other events across your knowledge base.": "Журнал аудиту містить докладну історію подій, пов’язаних із безпекою, та інших подій у вашій базі знань.", + "Content": "Вміст", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Керуйте дозволами та налаштуваннями всіх колекцій у базі знань. Як адміністратор робочого простору ви також можете адмініструвати приватні колекції.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Автоматично індексуйте та шукайте в режимі реального часу в Glean вміст документів із {{appName}}.", "New webhook": "Новий вебхук", "Edit webhook": "Редагувати вебхук", "Delete webhook": "Видалити вебхук", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", "Your group was mentioned": "Your group was mentioned", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} згадав(-ла) групу «{{ groupName }}» у документі", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", + "{{ invitedName }} has joined your {{ appName }} workspace": "Новий учасник {{ invitedName }} у вашому робочому просторі {{ appName }}", "Great news, {{ invitedName }} accepted your invitation": "Чудові новини, {{ invitedName }} прийняв(-ла) ваше запрошення", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", + "{{ invitedName }} has joined your workspace": "Новий учасник {{ invitedName }} у вашому робочому просторі", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", "Join now": "Join now", "Reminder": "Reminder", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Нагадуємо, що {{ actorName }} {{ actorEmail }} запросили вас приєднатися до робочого простору {{ teamName }} у {{ appName }} — місця, де ваша команда може створювати знання та ділитися ними.", "We only send a reminder once.": "We only send a reminder once.", "If you haven’t signed up yet, you can do so here": "Якщо ви ще не зареєструвалися, це можна зробити тут", "“{{ documentTitle }}” updated": "«{{ documentTitle }}» оновлено", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Код підтвердження входу", "Here’s your link to sign in to {{ appName }}.": "Ось ваше посилання для входу до {{ appName }}.", "Use the link below to sign in": "Use the link below to sign in", - "If the link expired, you can request a new one from your team’s sign-in page at": "Якщо термін дії посилання минув, ви можете надіслати запит на нове на сторінці входу вашої команди за адресою", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Якщо термін дії посилання минув, ви можете надіслати запит на нове на сторінці входу до робочого простору за адресою", "Enter this verification code": "Enter this verification code", - "If the code expired, you can request a new one from your team’s sign-in page at": "Якщо термін дії коду минув, ви можете надіслати запит на новий на сторінці входу вашої команди за адресою", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Якщо термін дії коду минув, ви можете надіслати запит на новий на сторінці входу до робочого простору за адресою", "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", "Sign-in Code": "Sign-in Code", - "Enter this code on your team’s sign-in page to continue.": "Введіть цей код на сторінці входу вашої команди, щоб продовжити.", + "Enter this code on your workspace’s sign-in page to continue.": "Введіть цей код на сторінці входу до робочого простору, щоб продовжити.", "Webhook disabled": "Webhook disabled", "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Ваш вебхук ({{ webhookName }}) було автоматично вимкнено через велику кількість невдалих останніх спроб доставки. Ви можете знову ввімкнути його, відредагувавши вебхук.", @@ -2007,10 +2055,14 @@ "Hide completed": "Приховати виконані", "Sorry, the link could not be copied": "Sorry, the link could not be copied", "Write a caption": "Напишіть підпис", - "Display as mention": "Відображати як згадку", - "Display as card": "Відображати як картку", "Add title": "Додати заголовок", "Add content": "Додати вміст", + "Change column filter": "Змінити фільтр стовпця", + "Filter column": "Фільтрувати стовпець", + "{{ count }} filter applied": "{{ count }} фільтр застосовано", + "{{ count }} filter applied_plural": "{{ count }} фільтрів застосовано", + "Filters cleared for you": "Ваші фільтри очищено", + "Save for everyone": "Зберегти для всіх", "Tomorrow": "Tomorrow", "Group admin": "Адміністратор групи", "Member": "Учасник" diff --git a/shared/i18n/locales/vi_VN/translation.json b/shared/i18n/locales/vi_VN/translation.json index b905bdc04b..f32dd90fe5 100644 --- a/shared/i18n/locales/vi_VN/translation.json +++ b/shared/i18n/locales/vi_VN/translation.json @@ -733,6 +733,7 @@ "Integrations": "Tích hợp", "Back to app": "Quay lại ứng dụng", "Installation": "Cài đặt", + "Available on {{ planName }}": "Có sẵn trong {{ planName }}", "Split pane": "Split pane", "Main pane": "Main pane", "Unstar document": "Bỏ sao tài liệu", @@ -778,6 +779,7 @@ "Last seen": "Hoạt động lần cuối", "{{ time }} local time": "Giờ địa phương: {{ time }}", "Your import completed": "Đã hoàn thành việc nhập dữ liệu", + "Lock aspect ratio": "Khóa tỷ lệ khung hình", "Templates": "Thư viện mẫu", "View comment thread": "View comment thread", "Previous match": "Phù hợp trước", @@ -798,10 +800,13 @@ "Width": "Width", "Image height": "Image height", "Height": "Height", + "Aspect ratio locked": "Đã khóa tỷ lệ khung hình", + "Aspect ratio unlocked": "Đã mở khóa tỷ lệ khung hình", "Paste a link": "Dán đường link", "Delete embed": "Xóa phần nhúng", "Delete video": "Xóa video", "Delete image": "Xóa ảnh", + "Display options": "Tùy chọn hiển thị", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} sẽ không được thông báo vì họ không có quyền truy cập tài liệu này", "Members of “{{ groupName }}” with access to this document will be notified": "Các thành viên của “{{ groupName }}” có quyền truy cập vào tài liệu này sẽ được thông báo", "Keep as link": "Giữ dạng liên kết", @@ -813,6 +818,25 @@ "Upload file": "Upload file", "Paste a link from {{service}}…": "Dán liên kết từ {{service}}…", "Suggestions": "Suggestions", + "Showing all rows": "Đang hiển thị tất cả các hàng", + "Showing {{ visible }} of {{ count }} rows": "Đang hiển thị {{ visible }} trong số {{ count }} hàng", + "Showing {{ visible }} of {{ count }} rows_plural": "Đang hiển thị {{ visible }} trong số {{ count }} hàng", + "Filter {{ columnName }}": "Lọc {{ columnName }}", + "Is": "Là", + "Is not": "Không phải", + "Contains": "Chứa", + "Does not contain": "Không chứa", + "Is empty": "Trống", + "Is not empty": "Không trống", + "Condition": "Điều kiện", + "Search values": "Tìm kiếm giá trị", + "Values": "Giá trị", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "Hiển thị {{ shown }} trong số {{ total }} giá trị. Tìm kiếm để tìm thêm.", + "No values match your search.": "Không có giá trị nào phù hợp với tìm kiếm của bạn.", + "This column has no values": "Cột này không có giá trị nào", + "{{ visible }} of {{ count }} rows": "{{ visible }} trong số {{ count }} hàng", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} trong số {{ count }} hàng", + "Clear": "Xóa", "More options": "Tùy chọn khác", "Type '/' to insert": "Gõ '/' để chèn", "Keep typing to filter": "Tiếp tục nhập để lọc", @@ -855,6 +879,8 @@ "Edit image URL": "Edit image URL", "Create a new doc": "Tạo một tài liệu mới", "Create a nested doc": "Create a nested doc", + "Display as mention": "Hiển thị dưới dạng đề cập", + "Display as card": "Hiển thị dưới dạng thẻ", "Default width": "Chiều rộng mặc định", "Distribute columns": "Distribute columns", "Export as CSV": "Export as CSV", @@ -874,6 +900,11 @@ "Upload a video": "Tải video lên", "Edit video URL": "Chỉnh sửa URL video", "Could not import file": "Không thể nhập file", + "Community": "Cộng đồng", + "Standard": "Tiêu chuẩn", + "Business": "Doanh nghiệp", + "Enterprise": "Doanh nghiệp", + "Legacy": "Phiên bản cũ", "Unsubscribed from document": "Unsubscribed from document", "Unsubscribed from collection": "Unsubscribed from collection", "Subscription successful": "Subscription successful", @@ -894,6 +925,8 @@ "Developer": "Nhà phát triển", "Applications": "Ứng dụng", "API key": "Khóa API", + "Reconnect": "Kết nối lại", + "Connected": "Đã kết nối", "Show path to document": "Hiển thị đường dẫn đến tài liệu", "Comment options": "Tùy chọn bình luận", "Enable viewer insights": "Bật thông tin chi tiết về người xem", @@ -916,6 +949,7 @@ "Trash options": "Tùy chọn thùng rác", "User options": "Tùy chọn người dùng", "document": "tài liệu", + "All collections": "Tất cả bộ sưu tập", "Export complete": "Export complete", "Export failed": "Export failed", "An unexpected error occurred": "An unexpected error occurred", @@ -931,9 +965,13 @@ "invited you to": "invited you to", "added you to the group": "đã thêm bạn vào nhóm", "removed you from the group": "đã xóa bạn khỏi nhóm", + "export completed": "xuất hoàn tất", + "export failed": "xuất không thành công", + "export is no longer available": "xuất không còn khả dụng", "was granted access to": "was granted access to", "requested access to": "requested access to", "is requesting access to": "is requesting access to", + "Your": "Của bạn", "a document": "một tài liệu", "a collection": "một bộ sưu tập", "a group": "a group", @@ -1031,10 +1069,10 @@ "Document title": "Document title", "Last updated": "Cập nhật gần nhất", "Type '/' to insert, or start writing…": "Gõ '/' để chèn hoặc bắt đầu viết…", + "Save draft": "Save draft", "Hide contents": "Ẩn nội dung", "Show contents": "Hiển thị nội dung", "available when headings are added": "available when headings are added", - "Save draft": "Save draft", "Restore version": "Khôi phục phiên bản", "{{userName}} archived": "{{userName}} được lưu trữ", "{{userName}} restored": "{{userName}} khôi phục", @@ -1306,7 +1344,6 @@ "Sign in": "Đăng nhập", "Allow members to sign in with {{ authProvider }}": "Cho phép thành viên đăng nhập bằng {{ authProvider }}", "Connect {{ authProvider }} to allow members to sign in": "Kết nối {{ authProvider }} để cho phép thành viên đăng nhập", - "Connected": "Đã kết nối", "Disabled": "Vô hiệu hóa", "Connect": "Kết nối", "Group sync": "Group sync", @@ -1365,7 +1402,6 @@ "Processing": "Đang xử lý", "Completed": "Hoàn thành", "Failed": "Thất bại", - "All collections": "Tất cả bộ sưu tập", "Import deleted": "Import deleted", "Export deleted": "Kết xuất đã bị xóa", "Are you sure you want to delete this import?": "Are you sure you want to delete this import?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "Màu này có độ tương phản thấp so với màu nhấn", "Accent color": "Màu nhấn", "Accent text color": "Màu văn bản nhấn", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "Tính năng này được bao gồm trong {{planName}} trở lên. Nâng cấp không gian làm việc để mở khóa tính năng này cho nhóm của bạn.", + "View plans": "Xem các gói", "All roles": "All roles", "Admins": "Quản trị viên", "Editors": "Editors", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "Nhập tệp zip chứa các tài liệu Markdown ở Định dạng Tri thức Mở", "Import a JSON data file exported from another {{ appName }} instance": "Nhập tệp dữ liệu JSON được xuất từ một phiên bản {{ appName }} khác", "Import pages from a Confluence instance": "Nhập các trang từ Confluence", - "Enterprise": "Doanh nghiệp", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Chuyển nhanh các tài liệu, trang và tệp hiện có của bạn từ các công cụ và dịch vụ khác sang {{appName}}. Bạn cũng có thể kéo và thả bất kỳ tài liệu HTML, Markdown và văn bản nào trực tiếp vào Bộ sưu tập trong ứng dụng.", "Recent imports": "Kết xuất gần đây", "Configure a variety of integrations with third-party services.": "Configure a variety of integrations with third-party services.", + "Documents that are published, updated, or shared with you, and access requests": "Tài liệu được xuất bản, cập nhật hoặc chia sẻ với bạn, và yêu cầu truy cập", "Receive a notification whenever a new document is published": "Nhận thông báo bất cứ khi nào một tài liệu mới được xuất bản", "Document updated": "Tài liệu được cập nhật", "Receive a notification when a document you are subscribed to is edited": "Nhận thông báo khi tài liệu bạn đã đăng ký được chỉnh sửa", + "Invited to document": "Invited to document", + "Receive a notification when a document is shared with you": "Receive a notification when a document is shared with you", + "Document access requested": "Document access requested", + "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "New collections and access to collections": "Bộ sưu tập mới và quyền truy cập vào bộ sưu tập", + "Collection created": "Bộ sưu tập đã được tạo", + "Receive a notification whenever a new collection is created": "Nhận thông báo bất cứ khi nào một bộ sưu tập mới được tạo", + "Invited to collection": "Invited to collection", + "Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection", + "Comments and mentions": "Bình luận và lượt nhắc đến", + "New comments, mentions of you or your groups, resolved threads, and reactions": "Bình luận mới, lượt nhắc đến bạn hoặc nhóm của bạn, chuỗi thảo luận đã được giải quyết và phản ứng", "Comment posted": "Nhận xét đã đăng", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Nhận thông báo khi tài liệu bạn đã đăng ký hoặc chủ đề bạn tham gia nhận được nhận xét", "Mentioned": "Được nhắc đến", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Reaction added": "Reaction added", "Receive a notification when someone reacts to your comment": "Receive a notification when someone reacts to your comment", - "Collection created": "Bộ sưu tập đã được tạo", - "Receive a notification whenever a new collection is created": "Nhận thông báo bất cứ khi nào một bộ sưu tập mới được tạo", - "Invite accepted": "Đã chấp nhận Lời mời", - "Receive a notification when someone you invited creates an account": "Nhận thông báo khi ai đó bạn đã mời tạo tài khoản", - "Invited to document": "Invited to document", - "Receive a notification when a document is shared with you": "Receive a notification when a document is shared with you", - "Invited to collection": "Invited to collection", - "Receive a notification when you are given access to a collection": "Receive a notification when you are given access to a collection", + "Group membership, accepted invites, and completed exports": "Tư cách thành viên nhóm, lời mời được chấp nhận và tệp xuất đã hoàn tất", "Group membership": "Thành viên nhóm", "Receive a notification when you are added to or removed from a group": "Nhận thông báo khi bạn được thêm vào hoặc xóa khỏi một nhóm", + "Invite accepted": "Đã chấp nhận Lời mời", + "Receive a notification when someone you invited creates an account": "Nhận thông báo khi ai đó bạn đã mời tạo tài khoản", "Export completed": "Xuất hoàn tất", "Receive a notification when an export you requested has been completed": "Nhận thông báo khi quá trình xuất mà bạn yêu cầu đã hoàn tất", - "Document access requested": "Document access requested", - "Receive a notification when a user requests access to a document you manage": "Receive a notification when a user requests access to a document you manage", + "Product updates": "Cập nhật sản phẩm", + "Tips on getting started and announcements of new features": "Mẹo bắt đầu và thông báo về các tính năng mới", "Getting started": "Bắt đầu", "Tips on getting started with features and functionality": "Mẹo bắt đầu với các tính năng và chức năng", "New features": "Tính năng mới", @@ -1643,7 +1687,7 @@ "Failed to save revision": "Failed to save revision", "Invite to document": "Invite to document", "Sorry, invalid embed link": "Ôi, liên kết được nhúng không hợp lệ", - "Data Attributes": "Data Attributes", + "Data attributes": "Thuộc tính dữ liệu", "Edit attribute": "Edit attribute", "Property": "Property", "Yes": "Yes", @@ -1675,7 +1719,7 @@ "Text": "Text", "List": "List", "Could not load events": "Could not load events", - "Audit Log": "Audit Log", + "Audit log": "Nhật ký kiểm tra", "The audit log details the history of security-related and other events across your knowledge base.": "Nhật ký kiểm tra trình bày chi tiết lịch sử các sự kiện liên quan đến bảo mật và các sự kiện khác trong cơ sở tri thức của bạn.", "IP address": "IP address", "Actor": "Actor", @@ -1818,6 +1862,10 @@ "Script name": "Script name", "The name of the script file that Umami uses to track analytics.": "The name of the script file that Umami uses to track analytics.", "An ID that uniquely identifies the website in your Umami instance.": "An ID that uniquely identifies the website in your Umami instance.", + "The audit log details the history of security related and other events across your knowledge base.": "Nhật ký kiểm tra cung cấp thông tin chi tiết về lịch sử các sự kiện liên quan đến bảo mật và các sự kiện khác trong cơ sở kiến thức của bạn.", + "Content": "Nội dung", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "Quản lý quyền và cài đặt của tất cả bộ sưu tập trong cơ sở tri thức. Với vai trò quản trị viên không gian làm việc, bạn cũng có thể quản lý các bộ sưu tập riêng tư.", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "Tự động lập chỉ mục và tìm kiếm nội dung tài liệu từ {{appName}} trong Glean theo thời gian thực.", "New webhook": "Webhook mới", "Edit webhook": "Chỉnh sửa webhook", "Delete webhook": "Xóa Webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.", "Your group was mentioned": "Your group was mentioned", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} đã nhắc đến nhóm “{{ groupName }}” trong tài liệu", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} has joined your {{ appName }} team", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} đã tham gia không gian làm việc {{ appName }} của bạn", "Great news, {{ invitedName }} accepted your invitation": "Tin vui, {{ invitedName }} đã chấp nhận lời mời của bạn", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.", "Open {{ appName }}": "Open {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} has joined your team", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} đã tham gia không gian làm việc của bạn", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} invited you to join {{ teamName }}’s workspace", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} is a place for your team to build and share knowledge.", "Join {{ teamName }} on {{ appName }}": "Join {{ teamName }} on {{ appName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "has invited you to join {{ appName }}, a place for your team to build and share knowledge.", "Join now": "Join now", "Reminder": "Reminder", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "Đây chỉ là lời nhắc nhanh rằng {{ actorName }} {{ actorEmail }} đã mời bạn tham gia không gian làm việc {{ teamName }} trên {{ appName }}, nơi nhóm của bạn có thể xây dựng và chia sẻ kiến thức.", "We only send a reminder once.": "We only send a reminder once.", "If you haven’t signed up yet, you can do so here": "Nếu bạn chưa đăng ký, bạn có thể đăng ký tại đây", "“{{ documentTitle }}” updated": "“{{ documentTitle }}” đã được cập nhật", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "Mã xác minh đăng nhập", "Here’s your link to sign in to {{ appName }}.": "Đây là liên kết để bạn đăng nhập vào {{ appName }}.", "Use the link below to sign in": "Use the link below to sign in", - "If the link expired, you can request a new one from your team’s sign-in page at": "Nếu liên kết đã hết hạn, bạn có thể yêu cầu liên kết mới từ trang đăng nhập của nhóm tại", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "Nếu liên kết đã hết hạn, bạn có thể yêu cầu liên kết mới từ trang đăng nhập của không gian làm việc tại", "Enter this verification code": "Enter this verification code", - "If the code expired, you can request a new one from your team’s sign-in page at": "Nếu mã đã hết hạn, bạn có thể yêu cầu mã mới từ trang đăng nhập của nhóm tại", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "Nếu mã đã hết hạn, bạn có thể yêu cầu mã mới từ trang đăng nhập của không gian làm việc tại", "Click the button below to sign in to {{ appName }}.": "Click the button below to sign in to {{ appName }}.", "Sign-in Code": "Sign-in Code", - "Enter this code on your team’s sign-in page to continue.": "Nhập mã này trên trang đăng nhập của nhóm để tiếp tục.", + "Enter this code on your workspace’s sign-in page to continue.": "Nhập mã này trên trang đăng nhập của không gian làm việc để tiếp tục.", "Webhook disabled": "Webhook disabled", "Your webhook ({{ webhookName }}) has been disabled": "Your webhook ({{ webhookName }}) has been disabled", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Webhook của bạn ({{ webhookName }}) đã tự động bị vô hiệu hóa do tỷ lệ lỗi cao trong các lần thử gửi gần đây. Bạn có thể bật lại webhook bằng cách chỉnh sửa webhook đó.", @@ -2007,10 +2055,14 @@ "Hide completed": "Hide completed", "Sorry, the link could not be copied": "Sorry, the link could not be copied", "Write a caption": "Viết chú thích", - "Display as mention": "Hiển thị dưới dạng đề cập", - "Display as card": "Hiển thị dưới dạng thẻ", "Add title": "Add title", "Add content": "Add content", + "Change column filter": "Thay đổi bộ lọc cột", + "Filter column": "Lọc cột", + "{{ count }} filter applied": "Đã áp dụng {{ count }} bộ lọc", + "{{ count }} filter applied_plural": "Đã áp dụng {{ count }} bộ lọc", + "Filters cleared for you": "Bộ lọc đã được xóa cho bạn", + "Save for everyone": "Lưu cho mọi người", "Tomorrow": "Tomorrow", "Group admin": "Group admin", "Member": "Thành viên" diff --git a/shared/i18n/locales/zh_CN/translation.json b/shared/i18n/locales/zh_CN/translation.json index f93c7a9131..bf14af632e 100644 --- a/shared/i18n/locales/zh_CN/translation.json +++ b/shared/i18n/locales/zh_CN/translation.json @@ -733,6 +733,7 @@ "Integrations": "集成", "Back to app": "返回应用", "Installation": "安装", + "Available on {{ planName }}": "适用于 {{ planName }}", "Split pane": "拆分窗格", "Main pane": "主窗格", "Unstar document": "取消收藏文档", @@ -778,6 +779,7 @@ "Last seen": "最后出现时间", "{{ time }} local time": "当地时间 {{ time }}", "Your import completed": "导入已完成", + "Lock aspect ratio": "锁定纵横比", "Templates": "文档模板", "View comment thread": "查看评论线程", "Previous match": "上一匹配", @@ -798,10 +800,13 @@ "Width": "宽", "Image height": "图像高度", "Height": "高", + "Aspect ratio locked": "纵横比已锁定", + "Aspect ratio unlocked": "纵横比已解锁", "Paste a link": "粘贴链接", "Delete embed": "删除嵌入", "Delete video": "删除视频", "Delete image": "删除图片", + "Display options": "显示选项", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} 不会收到通知,因为他们无权访问此文档", "Members of “{{ groupName }}” with access to this document will be notified": "有权访问此文档的“{{ groupName }}”成员将收到通知", "Keep as link": "保留为链接", @@ -813,6 +818,25 @@ "Upload file": "上传文件", "Paste a link from {{service}}…": "粘贴来自 {{service}} 的链接……", "Suggestions": "建议", + "Showing all rows": "显示所有行", + "Showing {{ visible }} of {{ count }} rows": "显示 {{ count }} 行中的 {{ visible }} 行", + "Showing {{ visible }} of {{ count }} rows_plural": "显示 {{ count }} 行中的 {{ visible }} 行", + "Filter {{ columnName }}": "筛选 {{ columnName }}", + "Is": "等于", + "Is not": "不等于", + "Contains": "包含", + "Does not contain": "不包含", + "Is empty": "为空", + "Is not empty": "不为空", + "Condition": "条件", + "Search values": "搜索值", + "Values": "值", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "显示 {{ shown }} 个值,共 {{ total }} 个。请搜索以查找更多。", + "No values match your search.": "没有值与您的搜索匹配。", + "This column has no values": "此列没有值", + "{{ visible }} of {{ count }} rows": "{{ visible }} / {{ count }} 行", + "{{ visible }} of {{ count }} rows_plural": "{{ visible }} / {{ count }} 行", + "Clear": "清除", "More options": "更多选项", "Type '/' to insert": "输入'/'来插入", "Keep typing to filter": "继续输入以过滤", @@ -855,6 +879,8 @@ "Edit image URL": "编辑图片 URL", "Create a new doc": "新建文档", "Create a nested doc": "创建一个嵌套的文档", + "Display as mention": "显示为提及", + "Display as card": "显示为卡片", "Default width": "默认宽度", "Distribute columns": "分布列", "Export as CSV": "导出为 CSV", @@ -874,6 +900,11 @@ "Upload a video": "上传视频", "Edit video URL": "编辑视频 URL", "Could not import file": "无法导入文件", + "Community": "社区版", + "Standard": "标准版", + "Business": "商业版", + "Enterprise": "企业版", + "Legacy": "旧版", "Unsubscribed from document": "取消订阅文档", "Unsubscribed from collection": "取消订阅集合", "Subscription successful": "订阅成功", @@ -894,6 +925,8 @@ "Developer": "开发者", "Applications": "应用", "API key": "API 密钥", + "Reconnect": "重新连接", + "Connected": "已连接", "Show path to document": "显示文档路径", "Comment options": "评论选项", "Enable viewer insights": "启用浏览者统计", @@ -916,6 +949,7 @@ "Trash options": "回收站选项", "User options": "用户选项", "document": "文档", + "All collections": "所有文档集", "Export complete": "导出完成", "Export failed": "导出失败", "An unexpected error occurred": "发生意外错误", @@ -931,9 +965,13 @@ "invited you to": "邀请你加入", "added you to the group": "已将你添加到群组", "removed you from the group": "已将你从群组中移除", + "export completed": "导出已完成", + "export failed": "导出失败", + "export is no longer available": "导出不再可用", "was granted access to": "被授予访问", "requested access to": "请求访问", "is requesting access to": "正在请求访问", + "Your": "您的", "a document": "一份文档", "a collection": "一个文档集", "a group": "一组", @@ -1031,10 +1069,10 @@ "Document title": "文档标题", "Last updated": "最后更新", "Type '/' to insert, or start writing…": "输入'/'来插入,或开始写...", + "Save draft": "保存草稿", "Hide contents": "隐藏内容", "Show contents": "显示内容", "available when headings are added": "当添加标题时可用", - "Save draft": "保存草稿", "Restore version": "恢复此版本", "{{userName}} archived": "已被 {{userName}} 归档", "{{userName}} restored": "已被 {{userName}} 恢复", @@ -1306,7 +1344,6 @@ "Sign in": "登录", "Allow members to sign in with {{ authProvider }}": "允许成员使用 {{ authProvider }} 登录", "Connect {{ authProvider }} to allow members to sign in": "连接 {{ authProvider }} 以允许成员登录", - "Connected": "已连接", "Disabled": "已禁用", "Connect": "连接", "Group sync": "群组同步", @@ -1365,7 +1402,6 @@ "Processing": "处理中", "Completed": "已完成", "Failed": "失败", - "All collections": "所有文档集", "Import deleted": "导入已删除", "Export deleted": "导出已删除", "Are you sure you want to delete this import?": "您能确定要删除此导入吗?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "此颜色与强调色的对比度较低", "Accent color": "主题色", "Accent text color": "文本强调色", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "此功能包含在 {{planName}} 及更高版本中。升级您的工作区即可为团队解锁此功能。", + "View plans": "查看套餐", "All roles": "所有角色", "Admins": "管理员", "Editors": "编辑者", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "导入开放知识格式的 Markdown 文档 zip 文件", "Import a JSON data file exported from another {{ appName }} instance": "导入从另一个 {{ appName }} 实例导出的 JSON 数据文件", "Import pages from a Confluence instance": "从 Confluence 实例导入页面", - "Enterprise": "企业版", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "快速将您现有的文件、页面和文件从其他工具和服务转移到 {{appName}}。您还可以将任何 HTML、Markdown 和文本文件直接拖放到应用程序中的文档集中。", "Recent imports": "最近导入", "Configure a variety of integrations with third-party services.": "配置各种与第三方服务的集成。", + "Documents that are published, updated, or shared with you, and access requests": "已发布、更新或与您共享的文档,以及访问请求", "Receive a notification whenever a new document is published": "每当发布新文档时收到通知", "Document updated": "文档已更新", "Receive a notification when a document you are subscribed to is edited": "每当你订阅的文档被编辑时收到通知", + "Invited to document": "被邀请到文档", + "Receive a notification when a document is shared with you": "每当有文档共享给你时收到通知", + "Document access requested": "请求访问文档", + "Receive a notification when a user requests access to a document you manage": "当有用户请求访问您管理的文档时接收通知。", + "New collections and access to collections": "新建收藏集和收藏集访问权限", + "Collection created": "已创建文档集", + "Receive a notification whenever a new collection is created": "每当创建新文档集时收到通知", + "Invited to collection": "邀请到文档集", + "Receive a notification when you are given access to a collection": "当你有权访问文档集时收到通知", + "Comments and mentions": "评论和提及", + "New comments, mentions of you or your groups, resolved threads, and reactions": "新评论、提及您或您的群组、已解决的话题和 प्रतिक्रिया", "Comment posted": "注释已发布", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "每当你订阅的文档或参与的话题收到评论时收到通知", "Mentioned": "被提及", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "当您参与的评论帖子标记为解决时将收到通知", "Reaction added": "添加回应", "Receive a notification when someone reacts to your comment": "当有人回复您的评论时收到通知", - "Collection created": "已创建文档集", - "Receive a notification whenever a new collection is created": "每当创建新文档集时收到通知", - "Invite accepted": "邀请已被接受", - "Receive a notification when someone you invited creates an account": "当你邀请的人创建账号时接收通知", - "Invited to document": "被邀请到文档", - "Receive a notification when a document is shared with you": "每当有文档共享给你时收到通知", - "Invited to collection": "邀请到文档集", - "Receive a notification when you are given access to a collection": "当你有权访问文档集时收到通知", + "Group membership, accepted invites, and completed exports": "群组成员资格、已接受的邀请和已完成的导出", "Group membership": "群组成员资格", "Receive a notification when you are added to or removed from a group": "当你被添加到群组或从群组中移除时接收通知", + "Invite accepted": "邀请已被接受", + "Receive a notification when someone you invited creates an account": "当你邀请的人创建账号时接收通知", "Export completed": "导出已完成", "Receive a notification when an export you requested has been completed": "当你请求的导出任务完成时接收通知", - "Document access requested": "请求访问文档", - "Receive a notification when a user requests access to a document you manage": "当有用户请求访问您管理的文档时接收通知。", + "Product updates": "产品更新", + "Tips on getting started and announcements of new features": "入门提示和新功能公告", "Getting started": "新手指南", "Tips on getting started with features and functionality": "有关特性和功能的入门提示", "New features": "新特性", @@ -1643,7 +1687,7 @@ "Failed to save revision": "保存版本失败", "Invite to document": "邀请加入文档", "Sorry, invalid embed link": "抱歉,无效的嵌入链接", - "Data Attributes": "数据属性", + "Data attributes": "数据属性", "Edit attribute": "编辑属性", "Property": "属性", "Yes": "确定", @@ -1675,7 +1719,7 @@ "Text": "文本", "List": "列表", "Could not load events": "无法加载事件", - "Audit Log": "审计日志", + "Audit log": "审计日志", "The audit log details the history of security-related and other events across your knowledge base.": "审计日志详细记录了整个知识库中与安全相关及其他事件的历史。", "IP address": "IP 地址", "Actor": "参与者", @@ -1818,6 +1862,10 @@ "Script name": "脚本名称", "The name of the script file that Umami uses to track analytics.": "Umami 用于跟踪分析的脚本文件名称。", "An ID that uniquely identifies the website in your Umami instance.": "此为唯一标识符,用以在您部署的 Umami 实例中区分不同网站。", + "The audit log details the history of security related and other events across your knowledge base.": "审计记录详细列出了您的知识库中与安全相关的事件和其他事件的历史。", + "Content": "内容", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "管理知识库中所有文档集的权限和设置。作为一个工作区管理员,您也可以管理私人文档集。", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "自动实时索引和搜索 {{appName}} 中的文档内容,并在 Glean 中进行检索。", "New webhook": "新建 Webhook", "Edit webhook": "编辑 Webhook", "Delete webhook": "删除 Webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} 在 “{{ documentTitle }}” 中提到了组 “{{ groupName }}”。", "Your group was mentioned": "您的群组已被提及", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} 在文档中提及了“{{ groupName }}”群组", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} 邀请您加入 {{ appName }} 团队", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} 已加入您的 {{ appName }} 工作区", "Great news, {{ invitedName }} accepted your invitation": "好消息,{{ invitedName }} 已接受您的邀请", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "好消息, {{ invitedName }} 接受了您的要求并创建了账户。你们现在可以开始文档协作了。", "Open {{ appName }}": "打开 {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} 加入了您的团队", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} 已加入您的工作区", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} 邀请您加入 {{ teamName }} 的空间", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} 是您的团队创建和共享知识的地方。", "Join {{ teamName }} on {{ appName }}": "在 {{ appName }} 内加入 {{ teamName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "邀请您加入 {{ appName }}, 一个您的团队创建和共享知识的地方。", "Join now": "立即加入", "Reminder": "提醒", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "这是提醒您, {{ actorName }} {{ actorEmail }} 邀请您加入 {{ appName }} 内的 {{ teamName }} 团队,一个您和团队创建和分享知识的地方。", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "温馨提醒:{{ actorName }} {{ actorEmail }} 邀请您加入 {{ appName }} 上的 {{ teamName }} 工作区,这里是您的团队创建和分享知识的地方。", "We only send a reminder once.": "我们只发送一次提醒。", "If you haven’t signed up yet, you can do so here": "如果您尚未注册,可以在此注册", "“{{ documentTitle }}” updated": "“{{ documentTitle }}”已更新", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "登录验证码", "Here’s your link to sign in to {{ appName }}.": "这是您登录 {{ appName }} 的链接。", "Use the link below to sign in": "使用下面的链接登录", - "If the link expired, you can request a new one from your team’s sign-in page at": "如果链接已过期,您可以在团队的登录页面请求新的链接", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "如果链接已过期,您可以从工作区的登录页面请求一个新链接,网址为", "Enter this verification code": "输入这个验证码", - "If the code expired, you can request a new one from your team’s sign-in page at": "如果验证码已过期,您可以在团队的登录页面请求新的验证码", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "如果验证码已过期,您可以从工作区的登录页面请求一个新验证码,网址为", "Click the button below to sign in to {{ appName }}.": "点击下面的按钮以登录到 {{ appName }}。", "Sign-in Code": "登录代码", - "Enter this code on your team’s sign-in page to continue.": "请在团队的登录页面输入此验证码以继续。", + "Enter this code on your workspace’s sign-in page to continue.": "请在工作区的登录页面输入此验证码以继续。", "Webhook disabled": "Webhook 已禁用", "Your webhook ({{ webhookName }}) has been disabled": "您的 webhook({{ webhookName }})已被自动禁用。", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "由于近期投递尝试的失败率过高,您的 Webhook({{ webhookName }})已被自动禁用。您可以通过编辑该 Webhook 将其重新启用。", @@ -2007,10 +2055,14 @@ "Hide completed": "隐藏已完成", "Sorry, the link could not be copied": "抱歉,无法复制链接", "Write a caption": "撰写一个标题", - "Display as mention": "显示为提及", - "Display as card": "显示为卡片", "Add title": "添加标题", "Add content": "添加内容", + "Change column filter": "更改列筛选器", + "Filter column": "筛选列", + "{{ count }} filter applied": "已应用 {{ count }} 个筛选器", + "{{ count }} filter applied_plural": "已应用 {{ count }} 个筛选器", + "Filters cleared for you": "已为您清除筛选器", + "Save for everyone": "为所有人保存", "Tomorrow": "明天", "Group admin": "群组管理员", "Member": "成员" diff --git a/shared/i18n/locales/zh_TW/translation.json b/shared/i18n/locales/zh_TW/translation.json index a931bcdc46..4575208467 100644 --- a/shared/i18n/locales/zh_TW/translation.json +++ b/shared/i18n/locales/zh_TW/translation.json @@ -733,6 +733,7 @@ "Integrations": "整合", "Back to app": "返回應用程式", "Installation": "安裝", + "Available on {{ planName }}": "適用於 {{ planName }}", "Split pane": "分割窗格", "Main pane": "主要窗格", "Unstar document": "取消星號", @@ -778,6 +779,7 @@ "Last seen": "最後上線時間", "{{ time }} local time": "{{ time }} 當地時間", "Your import completed": "您的匯入已完成", + "Lock aspect ratio": "鎖定長寬比", "Templates": "文件範本", "View comment thread": "檢視評論串", "Previous match": "上一個符合項目", @@ -798,10 +800,13 @@ "Width": "寬度", "Image height": "影像高度", "Height": "高度", + "Aspect ratio locked": "長寬比已鎖定", + "Aspect ratio unlocked": "長寬比已解除鎖定", "Paste a link": "貼上連結", "Delete embed": "刪除嵌入", "Delete video": "刪除影片", "Delete image": "刪除圖片", + "Display options": "顯示選項", "{{ userName }} won’t be notified, as they do not have access to this document": "{{ userName }} 不會收到通知,因為他們沒有此文件的存取權", "Members of “{{ groupName }}” with access to this document will be notified": "可存取此文件的「{{ groupName }}」成員將會收到通知", "Keep as link": "保留為連結", @@ -813,6 +818,25 @@ "Upload file": "上傳文件", "Paste a link from {{service}}…": "從 {{service}} 貼上連結……", "Suggestions": "建議", + "Showing all rows": "顯示所有列", + "Showing {{ visible }} of {{ count }} rows": "顯示 {{ visible }}/{{ count }} 列", + "Showing {{ visible }} of {{ count }} rows_plural": "顯示 {{ visible }}/{{ count }} 列", + "Filter {{ columnName }}": "篩選 {{ columnName }}", + "Is": "是", + "Is not": "不是", + "Contains": "包含", + "Does not contain": "不包含", + "Is empty": "為空", + "Is not empty": "不為空", + "Condition": "條件", + "Search values": "搜尋值", + "Values": "值", + "Showing {{ shown }} of {{ total }} values. Search to find more.": "顯示 {{ total }} 個值中的 {{ shown }} 個。請搜尋以尋找更多。", + "No values match your search.": "沒有符合您搜尋條件的值。", + "This column has no values": "此欄沒有值", + "{{ visible }} of {{ count }} rows": "共 {{ count }} 個資料列,顯示 {{ visible }} 個", + "{{ visible }} of {{ count }} rows_plural": "共 {{ count }} 個資料列,顯示 {{ visible }} 個", + "Clear": "清除", "More options": "更多選項", "Type '/' to insert": "輸入「/」以插入", "Keep typing to filter": "繼續輸入以進行篩選", @@ -855,6 +879,8 @@ "Edit image URL": "編輯圖片 URL", "Create a new doc": "建立新文件", "Create a nested doc": "建立子文件", + "Display as mention": "顯示為提及", + "Display as card": "顯示為卡片", "Default width": "預設寬度", "Distribute columns": "平均分配欄寬", "Export as CSV": "匯出為 CSV", @@ -874,6 +900,11 @@ "Upload a video": "上傳影片", "Edit video URL": "編輯影片 URL", "Could not import file": "無法匯入檔案", + "Community": "社群版", + "Standard": "標準版", + "Business": "商務版", + "Enterprise": "企業", + "Legacy": "舊版", "Unsubscribed from document": "取消訂閱文件", "Unsubscribed from collection": "取消訂閱文件", "Subscription successful": "訂閱成功", @@ -894,6 +925,8 @@ "Developer": "開發人員", "Applications": "應用程式", "API key": "API 金鑰", + "Reconnect": "重新連線", + "Connected": "已連結", "Show path to document": "顯示文件路徑", "Comment options": "留言選項", "Enable viewer insights": "啟用檢視者洞察分析", @@ -916,6 +949,7 @@ "Trash options": "垃圾桶選項", "User options": "使用者選項", "document": "文件", + "All collections": "所有的文件集", "Export complete": "匯出完成", "Export failed": "匯出失敗", "An unexpected error occurred": "發生未預期的錯誤", @@ -931,9 +965,13 @@ "invited you to": "邀請您到", "added you to the group": "已將您加入群組", "removed you from the group": "已將您從群組中移除", + "export completed": "匯出已完成", + "export failed": "匯出失敗", + "export is no longer available": "匯出已不再可用", "was granted access to": "已獲得存取權:", "requested access to": "要求存取:", "is requesting access to": "正在要求存取:", + "Your": "您的", "a document": "一份文件", "a collection": "一個文件集", "a group": "群組", @@ -1031,10 +1069,10 @@ "Document title": "文件標題", "Last updated": "最後更新時間", "Type '/' to insert, or start writing…": "輸入「/」以插入,或開始撰寫…", + "Save draft": "儲存草稿", "Hide contents": "隱藏目錄內容", "Show contents": "顯示目錄內容", "available when headings are added": "新增標題後可用", - "Save draft": "儲存草稿", "Restore version": "還原版本", "{{userName}} archived": "{{userName}} 將其封存", "{{userName}} restored": "{{userName}} 將其還原", @@ -1306,7 +1344,6 @@ "Sign in": "登入", "Allow members to sign in with {{ authProvider }}": "允許成員使用 {{ authProvider }} 登入", "Connect {{ authProvider }} to allow members to sign in": "連結 {{ authProvider }} 以允許成員登入", - "Connected": "已連結", "Disabled": "已停用", "Connect": "連結", "Group sync": "群組同步", @@ -1365,7 +1402,6 @@ "Processing": "正在處理", "Completed": "已完成", "Failed": "失敗", - "All collections": "所有的文件集", "Import deleted": "匯入已刪除", "Export deleted": "匯出已刪除", "Are you sure you want to delete this import?": "您確定要刪除該匯入檔案嗎?", @@ -1439,6 +1475,8 @@ "This color has low contrast against the accent color": "此顏色與強調色的對比度偏低", "Accent color": "強調色", "Accent text color": "強調文字顏色", + "This feature is included in {{planName}} and above. Upgrade your workspace to unlock it for your team.": "此功能包含在 {{planName}} 及更高版本中。升級您的工作區,即可為您的團隊解鎖此功能。", + "View plans": "查看方案", "All roles": "所有角色", "Admins": "管理員", "Editors": "編輯者", @@ -1493,13 +1531,24 @@ "Import a zip file of Markdown documents in the Open Knowledge Format": "匯入 Open Knowledge Format 格式的 Markdown 文件 ZIP 檔案", "Import a JSON data file exported from another {{ appName }} instance": "匯入從另一個 {{ appName }} 實例匯出的 JSON 資料檔案", "Import pages from a Confluence instance": "從 Confluence 實例匯入文件", - "Enterprise": "企業", "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "快速將您現有的文件、頁面和檔案從其他工具和服務轉移到 {{appName}}。您還可以直接將任何 HTML、Markdown 和純文字文件拖放到應用程式中的文件集中。", "Recent imports": "最近匯入的", "Configure a variety of integrations with third-party services.": "設定多種第三方服務整合。", + "Documents that are published, updated, or shared with you, and access requests": "已發佈、更新或與您分享的文件,以及存取請求", "Receive a notification whenever a new document is published": "當新文件被發布時接收通知", "Document updated": "文件已更新", "Receive a notification when a document you are subscribed to is edited": "當您訂閱的文件更新時接收通知", + "Invited to document": "邀請到文件", + "Receive a notification when a document is shared with you": "有文件分享給你時收到通知", + "Document access requested": "已要求文件存取權", + "Receive a notification when a user requests access to a document you manage": "當使用者要求存取您管理的文件時接收通知", + "New collections and access to collections": "新集合及集合存取權", + "Collection created": "文件集已建立", + "Receive a notification whenever a new collection is created": "當新的文件集建立時接收通知", + "Invited to collection": "邀請到文件集", + "Receive a notification when you are given access to a collection": "當您取得文件集存取權時接收通知", + "Comments and mentions": "留言及提及", + "New comments, mentions of you or your groups, resolved threads, and reactions": "新留言、提及您或您的群組、已解決的討論串及 प्रतिक्रिया", "Comment posted": "留言已發布", "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "當您訂閱的文件或參與的留言串收到留言時收到通知", "Mentioned": "提及到", @@ -1509,20 +1558,15 @@ "Receive a notification when a comment thread you were involved in is resolved": "當您參與的留言串被標記為已解決時接收通知", "Reaction added": "已新增回應", "Receive a notification when someone reacts to your comment": "當有人回應您的留言時接收通知", - "Collection created": "文件集已建立", - "Receive a notification whenever a new collection is created": "當新的文件集建立時接收通知", - "Invite accepted": "邀請已被接受", - "Receive a notification when someone you invited creates an account": "當您邀請的人建立帳號時收到通知", - "Invited to document": "邀請到文件", - "Receive a notification when a document is shared with you": "有文件分享給你時收到通知", - "Invited to collection": "邀請到文件集", - "Receive a notification when you are given access to a collection": "當您取得文件集存取權時接收通知", + "Group membership, accepted invites, and completed exports": "群組成員資格、已接受的邀請和已完成的匯出", "Group membership": "群組成員資格", "Receive a notification when you are added to or removed from a group": "當您被加入或移出群組時接收通知", + "Invite accepted": "邀請已被接受", + "Receive a notification when someone you invited creates an account": "當您邀請的人建立帳號時收到通知", "Export completed": "匯出已完成", "Receive a notification when an export you requested has been completed": "當您要求的匯出完成時收到通知", - "Document access requested": "已要求文件存取權", - "Receive a notification when a user requests access to a document you manage": "當使用者要求存取您管理的文件時接收通知", + "Product updates": "產品更新", + "Tips on getting started and announcements of new features": "開始使用的提示和新功能公告", "Getting started": "快速入門", "Tips on getting started with features and functionality": "幫助您開始使用 Outline 功能的提示", "New features": "新功能", @@ -1643,7 +1687,7 @@ "Failed to save revision": "儲存修訂版本失敗", "Invite to document": "邀請到文件", "Sorry, invalid embed link": "抱歉,嵌入連結無效", - "Data Attributes": "資料屬性", + "Data attributes": "資料屬性", "Edit attribute": "編輯屬性", "Property": "屬性", "Yes": "是", @@ -1675,7 +1719,7 @@ "Text": "文字", "List": "清單", "Could not load events": "無法載入事件", - "Audit Log": "稽核記錄", + "Audit log": "稽核記錄", "The audit log details the history of security-related and other events across your knowledge base.": "稽核日誌會詳細記錄整個知識庫中的安全相關事件及其他事件歷程。", "IP address": "IP 位址", "Actor": "執行者", @@ -1818,6 +1862,10 @@ "Script name": "指令碼名稱", "The name of the script file that Umami uses to track analytics.": "Umami 用來追蹤分析資料的指令碼檔案名稱。", "An ID that uniquely identifies the website in your Umami instance.": "在您的 Umami 執行個體中唯一識別網站的 ID。", + "The audit log details the history of security related and other events across your knowledge base.": "稽核記錄會詳列整個知識庫中的安全相關事件與其他事件歷史。", + "Content": "內容", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin you can also administer private collections.": "管理知識庫中所有文件集的權限與設定。身為工作區管理員,您也可以管理私人文件集。", + "Automatically index and search document content from {{appName}} inside Glean in realtime.": "在 Glean 中即時自動索引並搜尋來自 {{appName}} 的文件內容。", "New webhook": "新 Webhook", "Edit webhook": "編輯 Webhook", "Delete webhook": "刪除 Webhook", @@ -1940,18 +1988,18 @@ "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "{{ actorName }} 在文件「{{ documentTitle }}」中提及了「{{ groupName }}」群組。", "Your group was mentioned": "您的群組被提及", "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "{{ actorName }} 在文件中提及了「{{ groupName }}」群組", - "{{ invitedName }} has joined your {{ appName }} team": "{{ invitedName }} 已加入您的 {{ appName }} 團隊", + "{{ invitedName }} has joined your {{ appName }} workspace": "{{ invitedName }} 已加入您的 {{ appName }} 工作空間", "Great news, {{ invitedName }} accepted your invitation": "好消息,{{ invitedName }} 已接受您的邀請", "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "好消息,{{ invitedName }} 剛接受您的邀請並建立了帳號。您現在可以開始一起協作文件。", "Open {{ appName }}": "開啟 {{ appName }}", - "{{ invitedName }} has joined your team": "{{ invitedName }} 已加入您的團隊", + "{{ invitedName }} has joined your workspace": "{{ invitedName }} 已加入您的工作空間", "{{ actorName }} invited you to join {{ teamName }}’s workspace": "{{ actorName }} 邀請您加入 {{ teamName }} 的工作區", "{{ appName }} is a place for your team to build and share knowledge.": "{{ appName }} 是供團隊建立並分享知識的地方。", "Join {{ teamName }} on {{ appName }}": "在 {{ appName }} 加入 {{ teamName }}", "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "已邀請您加入 {{ appName }},這是一個讓團隊建立並分享知識的地方。", "Join now": "立即加入", "Reminder": "提醒", - "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "這是一封簡短提醒:{{ actorName }}({{ actorEmail }})邀請您加入 {{ appName }} 上的 {{ teamName }} 團隊。{{ appName }} 是讓團隊建立並分享知識的地方。", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} workspace on {{ appName }}, a place for your team to build and share knowledge.": "這是一封簡短提醒:{{ actorName }} {{ actorEmail }} 邀請您加入 {{ appName }} 上的 {{ teamName }} 工作空間,這裡是供您的團隊建立及分享知識的地方。", "We only send a reminder once.": "我們只會傳送一次提醒。", "If you haven’t signed up yet, you can do so here": "如果您尚未註冊,可以在此完成註冊", "“{{ documentTitle }}” updated": "「{{ documentTitle }}」已更新", @@ -1969,12 +2017,12 @@ "Sign-in verification code": "登入驗證碼", "Here’s your link to sign in to {{ appName }}.": "這是您登入 {{ appName }} 的連結。", "Use the link below to sign in": "使用下方連結登入", - "If the link expired, you can request a new one from your team’s sign-in page at": "如果連結已失效,您可以前往團隊的登入頁面要求新的連結", + "If the link expired, you can request a new one from your workspace’s sign-in page at": "如果連結已失效,您可以前往工作空間的登入頁面要求新的連結,網址為", "Enter this verification code": "輸入驗證碼", - "If the code expired, you can request a new one from your team’s sign-in page at": "如果代碼已失效,您可以前往團隊的登入頁面要求新的代碼", + "If the code expired, you can request a new one from your workspace’s sign-in page at": "如果代碼已失效,您可以前往工作空間的登入頁面要求新的代碼,網址為", "Click the button below to sign in to {{ appName }}.": "點選下方按鈕登入 {{ appName }}。", "Sign-in Code": "登入代碼", - "Enter this code on your team’s sign-in page to continue.": "請在團隊登入頁輸入此代碼以繼續。", + "Enter this code on your workspace’s sign-in page to continue.": "請在工作空間登入頁輸入此代碼以繼續。", "Webhook disabled": "Webhook 已關閉", "Your webhook ({{ webhookName }}) has been disabled": "您的 Webhook({{ webhookName }})已停用", "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "由於近期傳送嘗試的失敗率過高,您的 Webhook({{ webhookName }})已自動停用。您可以編輯 Webhook 以重新啟用。", @@ -2007,10 +2055,14 @@ "Hide completed": "隱藏已完成項目", "Sorry, the link could not be copied": "抱歉,無法複製連結", "Write a caption": "撰寫說明文字", - "Display as mention": "顯示為提及", - "Display as card": "顯示為卡片", "Add title": "加入標題", "Add content": "新增內容", + "Change column filter": "變更欄篩選條件", + "Filter column": "篩選欄", + "{{ count }} filter applied": "已套用 {{ count }} 個篩選條件", + "{{ count }} filter applied_plural": "已套用 {{ count }} 個篩選條件", + "Filters cleared for you": "已為您清除篩選條件", + "Save for everyone": "儲存供所有人使用", "Tomorrow": "明天", "Group admin": "群組管理員", "Member": "成員" From 0fa4caec84ee097e1af966b6f6f2fcfae37a27f7 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 23 Nov 2026 09:03:25 -0500 Subject: [PATCH 06/14] fix: Handle unreadable PNG files when detecting diagrams.net images (#14685) --- shared/editor/lib/FileHelper.test.ts | 18 ++++++++++++++++++ shared/editor/lib/FileHelper.ts | 7 ++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/shared/editor/lib/FileHelper.test.ts b/shared/editor/lib/FileHelper.test.ts index 1d899b4334..92a1258bc8 100644 --- a/shared/editor/lib/FileHelper.test.ts +++ b/shared/editor/lib/FileHelper.test.ts @@ -43,4 +43,22 @@ describe("FileHelper", () => { const unknown = new File(["x"], "notes.txt"); expect(FileHelper.withContentType(unknown)).toBe(unknown); }); + + describe("getImageSourceAttr", () => { + it("returns undefined when the file cannot be read", async () => { + for (const type of ["image/png", "image/svg+xml"]) { + const file = new File(["x"], "image", { type }); + const error = new DOMException( + "The requested file could not be read", + "NotReadableError" + ); + vi.spyOn(file, "arrayBuffer").mockRejectedValue(error); + vi.spyOn(file, "text").mockRejectedValue(error); + + await expect(FileHelper.getImageSourceAttr(file)).resolves.toBe( + undefined + ); + } + }); + }); }); diff --git a/shared/editor/lib/FileHelper.ts b/shared/editor/lib/FileHelper.ts index 76fd0ad320..4f59cbed40 100644 --- a/shared/editor/lib/FileHelper.ts +++ b/shared/editor/lib/FileHelper.ts @@ -298,7 +298,12 @@ export default class FileHelper { * @returns True if the file contains Draw.io/Diagrams.net data */ private static async isDiagramsNetPng(file: File): Promise { - const buffer = await file.arrayBuffer(); + let buffer: ArrayBuffer; + try { + buffer = await file.arrayBuffer(); + } catch (_err) { + return false; + } const bytes = new Uint8Array(buffer); // Validate PNG signature From 5935d4de3ef9e767b5921c46130b0aebf7924a11 Mon Sep 17 00:00:00 2001 From: "linear-code[bot]" <222613912+linear-code[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 09:09:51 -0500 Subject: [PATCH 07/14] docs: Capture reusable lessons from recent merges (#14687) Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com> --- AGENTS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 26308d61f2..bd8cde3822 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -131,7 +131,9 @@ yarn sequelize migration:create --name=add-field-to-table - Schedule optional background work that depends on a transaction from `afterCommit`, and use non-fatal scheduling so a queue failure does not fail the committed operation. - When changing persisted task input fields, keep readers compatible with queued inputs or migrate them before removing old fields. - For row locks used only for non-key updates or soft deletes, use `LOCK.NO_KEY_UPDATE` and set `lock.of` to the target model when includes or scopes add joins. Verify with separate transactions that foreign-key inserts and locks on unrelated joined rows do not block the operation, while competing writers to the target still wait for commit. +- When serializing migrations, poll `LockHelper.tryAcquire` in short transactions and roll back unsuccessful attempts before waiting. A blocking advisory-lock statement holds a snapshot that can stall `CREATE INDEX CONCURRENTLY` in the lock holder. Verify simultaneous startup checks let concurrent index migrations finish. - In import task completion and failure handlers, reload the import under a row lock in the transaction before changing its state. Preserve `Processed` and `Import.terminalStates` outcomes, and never mark a completed task errored. Test cancellation committed while a task runs and late failure callbacks, then reload the import and task to verify their states. +- When parallelizing requests inside a retryable import task, await all started operations with `Promise.allSettled` before propagating a failure, or cancel and drain them. Test one failed request alongside an unfinished request; the task must not reject while work from that attempt can overlap its retry. ## API Design @@ -141,6 +143,7 @@ yarn sequelize migration:create --name=add-field-to-table - Validate request data using the validation middleware and schemas - Use presenters to format API responses. - Keep API routes thin, use model methods for business logic, or commands if logic spans multiple models. +- MCP tools that call commands directly must preserve REST cross-field validation before any mutation. For document edits, reject nonempty `findText` in default or explicit replace mode, require nonempty text for append/prepend, and require nonempty `findText` plus defined text for patch while allowing empty replacement text for deletion. Test invalid combinations leave title, content, and revision unchanged. ## Authentication & Authorization @@ -212,6 +215,7 @@ yarn test:shared # All shared code tests - Log errors with appropriate context. - Return user-friendly error messages. - Never expose sensitive information in errors. +- For subscription-controlled emails, reload the recipient and check the subscription in the template's `beforeSend`, returning false when unsubscribed or missing. Caller-only checks can miss other senders such as SSO. Test the template's send path directly and assert the mailer is not called for an unsubscribed recipient. ## Performance @@ -231,5 +235,7 @@ yarn test:shared # All shared code tests - Use rateLimiter middleware for sensitive endpoints. - Follow OWASP guidelines. - Never store sensitive data in plain text. +- When changing log sanitization, sanitize error-report extras as a whole object so top-level credential keys are filtered too, matching sensitive names regardless of case, underscores, or hyphens. Sanitize each value's `toJSON` result without calling that result's root `toJSON` again. Test nested credentials and serializers returning themselves or shallow copies for filtering without recursion failures. - Use environment variables for secrets. - When reading untrusted response bodies or import archives, enforce limits while consuming data rather than truncating after buffering. For ZIP imports, set `ZipHelper` entry-count and aggregate read-byte limits as well as per-entry limits. Verify oversized responses and archives whose individually valid entries exceed the aggregate limit stop reading. +- For API import attachments, do not treat `isExternalUrl` as proof a URL is downloadable; it also accepts unresolved relative paths. Require an absolute URL with a hostname or supported base64 data before creating an attachment or queuing a download. Test missing archive-relative paths remain unchanged while remote and base64 attachments are queued. From 6576bc832af8753f005cf4a2489d42983622c1eb Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 23 Nov 2026 09:20:27 -0500 Subject: [PATCH 08/14] perf: Add subscriptions documentId index for document delete cascade (#14688) --- ...70000-add-subscriptions-document-id-index.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 server/migrations/20261123070000-add-subscriptions-document-id-index.js diff --git a/server/migrations/20261123070000-add-subscriptions-document-id-index.js b/server/migrations/20261123070000-add-subscriptions-document-id-index.js new file mode 100644 index 0000000000..19ab6779fd --- /dev/null +++ b/server/migrations/20261123070000-add-subscriptions-document-id-index.js @@ -0,0 +1,17 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface) { + // Covers the foreign key cascade when a document is permanently deleted. + await queryInterface.sequelize.query( + 'CREATE INDEX CONCURRENTLY IF NOT EXISTS "subscriptions_document_id" ON "subscriptions" ("documentId");' + ); + }, + + async down(queryInterface) { + await queryInterface.sequelize.query( + 'DROP INDEX CONCURRENTLY IF EXISTS "subscriptions_document_id";' + ); + }, +}; From ef3a1fcb2c6da4a3f4d3e0927e2bd51b196a1912 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 23 Nov 2026 09:20:32 -0500 Subject: [PATCH 09/14] fix: Add timeout to Slack webhook posts (#14686) --- plugins/slack/server/processors/SlackProcessor.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugins/slack/server/processors/SlackProcessor.ts b/plugins/slack/server/processors/SlackProcessor.ts index 26d771994d..f1fceb465b 100644 --- a/plugins/slack/server/processors/SlackProcessor.ts +++ b/plugins/slack/server/processors/SlackProcessor.ts @@ -1,7 +1,7 @@ import { differenceInMilliseconds } from "date-fns"; import { Op } from "sequelize"; import { IntegrationService, IntegrationType } from "@shared/types"; -import { Minute } from "@shared/utils/time"; +import { Minute, Second } from "@shared/utils/time"; import { Document, Integration, Collection, Team } from "@server/models"; import BaseProcessor from "@server/queues/processors/BaseProcessor"; import type { @@ -16,6 +16,9 @@ import env from "../env"; import { presentMessageAttachment } from "../presenters/messageAttachment"; export default class SlackProcessor extends BaseProcessor { + /** Time limit in milliseconds for posts to the Slack webhook. */ + static fetchTimeout = 10 * Second.ms; + static applicableEvents: Event["name"][] = [ "documents.publish", "revisions.create", @@ -90,6 +93,7 @@ export default class SlackProcessor extends BaseProcessor { headers: { "Content-Type": "application/json", }, + timeout: SlackProcessor.fetchTimeout, body: JSON.stringify({ text: `👋 Hey there! When documents are published or updated in the *${collection.name}* collection on ${env.APP_NAME} they will be posted to this channel!`, attachments: [ @@ -169,6 +173,7 @@ export default class SlackProcessor extends BaseProcessor { headers: { "Content-Type": "application/json", }, + timeout: SlackProcessor.fetchTimeout, body: JSON.stringify({ text, attachments: [ From 36d40c5f65ef71a93cb5f3dec0205467749c713f Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 23 Nov 2026 19:41:04 -0500 Subject: [PATCH 10/14] fix: Cancel editor drag when the document changed since mousedown (#14694) --- app/editor/extensions/DragHandle.ts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/app/editor/extensions/DragHandle.ts b/app/editor/extensions/DragHandle.ts index 62ba35274a..cd1a45293c 100644 --- a/app/editor/extensions/DragHandle.ts +++ b/app/editor/extensions/DragHandle.ts @@ -1,4 +1,5 @@ import { t } from "i18next"; +import type { Node as ProsemirrorNode } from "prosemirror-model"; import { NodeSelection, Plugin, PluginKey, Selection } from "prosemirror-state"; import type { EditorView } from "prosemirror-view"; import { Decoration, DecorationSet } from "prosemirror-view"; @@ -48,6 +49,9 @@ export default class DragHandle extends Extension { } get plugins() { + // The document when the mouse was last pressed in the editor. + let mouseDownDoc: ProsemirrorNode | null = null; + return [ // Marks the heading that owns the handle, so its level label in the // gutter can be hidden. @@ -145,7 +149,20 @@ export default class DragHandle extends Extension { ]); }, handleDOMEvents: { - dragstart: (view) => { + mousedown: (view) => { + mouseDownDoc = view.state.doc; + return false; + }, + dragstart: (view, event) => { + const startDoc = mouseDownDoc; + mouseDownDoc = null; + + // ProseMirror drags the node at the position from mousedown, + // so cancel the drag if the document changed since then. + if (startDoc && startDoc !== view.state.doc) { + event.preventDefault(); + return true; + } view.dom.classList.add("dragging"); return false; }, From 147014c6d6b7426088c656319aa44ac9adccfe2b Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 23 Nov 2026 19:41:24 -0500 Subject: [PATCH 11/14] fix: Claim transfer tokens atomically on redemption (#14693) --- server/routes/auth/index.test.ts | 15 +++++++++++++++ server/utils/RedisPrefixHelper.ts | 10 ++++++++++ server/utils/jwt.test.ts | 32 +++++++++++++++++++++++++++++++ server/utils/jwt.ts | 12 ++++++++++++ 4 files changed, 69 insertions(+) diff --git a/server/routes/auth/index.test.ts b/server/routes/auth/index.test.ts index 67804cda76..110dd39679 100644 --- a/server/routes/auth/index.test.ts +++ b/server/routes/auth/index.test.ts @@ -98,6 +98,21 @@ describe("auth/redirect", () => { expect(second.status).toEqual(401); }); + it("should not accept a transfer token in concurrent requests", async () => { + const user = await buildUser(); + const token = user.getTransferToken(); + + const responses = await Promise.all( + [1, 2, 3].map(() => + server.get(`/auth/redirect?token=${token}`, { + redirect: "manual", + }) + ) + ); + const statuses = responses.map((res) => res.status).sort((a, b) => a - b); + expect(statuses).toEqual([302, 401, 401]); + }); + it("should not accept a transfer token on the API", async () => { const user = await buildUser(); const res = await server.post("/api/auth.info", { diff --git a/server/utils/RedisPrefixHelper.ts b/server/utils/RedisPrefixHelper.ts index be5388c91a..eb8444f05a 100644 --- a/server/utils/RedisPrefixHelper.ts +++ b/server/utils/RedisPrefixHelper.ts @@ -138,4 +138,14 @@ export class RedisPrefixHelper { public static getEmailSigninTokenKey(tokenHash: string) { return `auth:email-signin:${tokenHash}`; } + + /** + * Gets key for marking a transfer token as used. + * + * @param tokenHash The SHA-256 hash of the transfer token. + * @returns the cache key string. + */ + public static getTransferTokenKey(tokenHash: string) { + return `auth:transfer:${tokenHash}`; + } } diff --git a/server/utils/jwt.test.ts b/server/utils/jwt.test.ts index 15916c662c..00014d4ec6 100644 --- a/server/utils/jwt.test.ts +++ b/server/utils/jwt.test.ts @@ -129,4 +129,36 @@ describe("getUserForJWT", () => { id: "user_suspended", }); }); + + it("should reject a transfer token that was already used", async () => { + const user = await buildUser(); + const token = user.getTransferToken(); + + await getUserForJWT(token, ["transfer"]); + await expect(getUserForJWT(token, ["transfer"])).rejects.toThrow( + "Token has already been used" + ); + }); + + it("should allow only one of several concurrent transfer token redemptions", async () => { + const user = await buildUser(); + const token = user.getTransferToken(); + + const results = await Promise.allSettled([ + getUserForJWT(token, ["transfer"]), + getUserForJWT(token, ["transfer"]), + getUserForJWT(token, ["transfer"]), + ]); + expect(results.filter((r) => r.status === "fulfilled")).toHaveLength(1); + }); + + it("should not consume a transfer token that fails the type check", async () => { + const user = await buildUser(); + const token = user.getTransferToken(); + + await expect(getUserForJWT(token)).rejects.toThrow("Invalid token"); + + const result = await getUserForJWT(token, ["transfer"]); + expect(result.user.id).toEqual(user.id); + }); }); diff --git a/server/utils/jwt.ts b/server/utils/jwt.ts index 18a9f95515..0cefe1f328 100644 --- a/server/utils/jwt.ts +++ b/server/utils/jwt.ts @@ -99,6 +99,18 @@ export async function getUserForJWT( ) { throw AuthenticationError("Token has already been used"); } + + // Atomically claim the token so concurrent requests cannot both redeem it. + const claimed = await Redis.defaultClient.set( + RedisPrefixHelper.getTransferTokenKey(hash(token)), + "1", + "PX", + Minute.ms * 2, + "NX" + ); + if (!claimed) { + throw AuthenticationError("Token has already been used"); + } } return { From 6374ea9f4b905fee4ba7056d7ff21aa79d8c5204 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 23 Nov 2026 19:55:56 -0500 Subject: [PATCH 12/14] Clarify WEB_CONCURRENCY memory calculation comment Updated comment to clarify memory calculation for WEB_CONCURRENCY. --- .env.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.sample b/.env.sample index 58e8188cae..73e3628ccf 100644 --- a/.env.sample +++ b/.env.sample @@ -36,7 +36,7 @@ COLLABORATION_URL= CDN_URL= # How many processes should be spawned. As a reasonable rule divide your servers -# available memory by 512 for a rough estimate +# available memory in megabytes by 512 for a rough estimate WEB_CONCURRENCY=1 # Generate a hex-encoded 32-byte random key. Use `openssl rand -hex 32` in your From fd66b5e020c4ae958293c3d8b981bde39f99bdb5 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 23 Nov 2026 20:29:02 -0500 Subject: [PATCH 13/14] perf: Build table tokens in one pass when parsing Markdown (#14691) * perf: Build table tokens in one pass when parsing Markdown The tables-pm rule spliced into the full token array for each table cell, which is quadratic in documents with many tables and blocked the worker event loop during Markdown imports. * test: Cover multiple tables, alignment, and tables in lists and blockquotes --- shared/editor/rules/tables.test.ts | 116 +++++++++++++++ shared/editor/rules/tables.ts | 222 +++++++++++++++++------------ 2 files changed, 245 insertions(+), 93 deletions(-) diff --git a/shared/editor/rules/tables.test.ts b/shared/editor/rules/tables.test.ts index 36593dcc75..eb8ca4e35d 100644 --- a/shared/editor/rules/tables.test.ts +++ b/shared/editor/rules/tables.test.ts @@ -1,3 +1,4 @@ +import type { Node } from "prosemirror-model"; import { parser, schema, serializer } from "../../test/editor"; /** @@ -55,6 +56,24 @@ function parseBreaks(markdown: string) { return { breakCount, texts }; } +/** + * Reduces a table node to the text of each cell, row by row, with each cell + * required to hold exactly one paragraph. + */ +function cellTexts(table: Node) { + const rows: string[][] = []; + table.forEach((row) => { + const cells: string[] = []; + row.forEach((cell) => { + expect(cell.childCount).toBe(1); + expect(cell.firstChild?.type.name).toBe("paragraph"); + cells.push(cell.textContent); + }); + rows.push(cells); + }); + return rows; +} + it("round-trips a notice inside a table cell", () => { const doc = tableWith({ type: "container_notice", @@ -312,3 +331,100 @@ it("keeps the space before inline code after a break in a table cell", () => { const markdown = serializer.serialize(doc, { commonMark: true }); expect(parser.parse(markdown)!.toJSON()).toEqual(doc.toJSON()); }); + +it("parses multiple tables with content between them", () => { + const doc = parser.parse( + [ + "Intro", + "", + "| A | B |", + "|---|---|", + "| 1 | 2 |", + "", + "Middle", + "", + "| C |", + "|---|", + "| 3 |", + "| 4 |", + "", + "Outro", + ].join("\n") + )!; + + const children: Node[] = []; + doc.forEach((child) => children.push(child)); + + expect(children.map((child) => child.type.name)).toEqual([ + "paragraph", + "table", + "paragraph", + "table", + "paragraph", + ]); + expect(children.map((child) => child.textContent)[2]).toBe("Middle"); + expect(cellTexts(children[1])).toEqual([ + ["A", "B"], + ["1", "2"], + ]); + expect(cellTexts(children[3])).toEqual([["C"], ["3"], ["4"]]); +}); + +it("parses column alignment into header and body cells", () => { + const doc = parser.parse( + "| L | C | R | N |\n|:--|:-:|--:|---|\n| a | b | c | d |" + )!; + const table = doc.firstChild!; + + const alignments: unknown[][] = []; + table.forEach((row) => { + const cells: unknown[] = []; + row.forEach((cell) => cells.push(cell.attrs.alignment)); + alignments.push(cells); + }); + + expect(alignments).toEqual([ + ["left", "center", "right", null], + ["left", "center", "right", null], + ]); + expect(cellTexts(table)).toEqual([ + ["L", "C", "R", "N"], + ["a", "b", "c", "d"], + ]); +}); + +it("parses a table inside a list item", () => { + const doc = parser.parse( + "- Item\n\n | A | B |\n |---|---|\n | 1 | 2 |\n- Next" + )!; + const list = doc.firstChild!; + + expect(list.type.name).toBe("bullet_list"); + expect(list.childCount).toBe(2); + + const item = list.firstChild!; + expect(item.childCount).toBe(2); + expect(item.firstChild?.textContent).toBe("Item"); + expect(item.lastChild?.type.name).toBe("table"); + expect(cellTexts(item.lastChild!)).toEqual([ + ["A", "B"], + ["1", "2"], + ]); + expect(list.lastChild?.textContent).toBe("Next"); +}); + +it("parses a table inside a blockquote", () => { + const doc = parser.parse( + "> | A | B |\n> |---|---|\n> | 1 | 2 |\n>\n> After" + )!; + const quote = doc.firstChild!; + + expect(quote.type.name).toBe("blockquote"); + expect(quote.childCount).toBe(2); + expect(quote.firstChild?.type.name).toBe("table"); + expect(cellTexts(quote.firstChild!)).toEqual([ + ["A", "B"], + ["1", "2"], + ]); + expect(quote.lastChild?.textContent).toBe("After"); +}); diff --git a/shared/editor/rules/tables.ts b/shared/editor/rules/tables.ts index 5a08f031e5..acd92cc23f 100644 --- a/shared/editor/rules/tables.ts +++ b/shared/editor/rules/tables.ts @@ -1,4 +1,5 @@ import type MarkdownIt from "markdown-it"; +import type Token from "markdown-it/lib/token.mjs"; import { unescapeRawTableCell } from "../lib/markdown/tableCell"; const BR_TAG_REGEX = //gi; @@ -13,6 +14,13 @@ const LIST_OPEN_REGEX = /^(?:[*+-]|\d+[.)]|[a-z]\.|\[[ \tx_-]\])[ \t]+\S/im; // Matches a checkbox item that has no list marker, such as "[x] Task" const BARE_CHECKBOX_REGEX = /^[ \t]*(\[[ \tx_-]\]\s)/gim; +const TABLE_SECTION_TYPES = [ + "thead_open", + "thead_close", + "tbody_open", + "tbody_close", +]; + const BLOCK_CELL_TYPES = [ "container_notice_open", "container_toggle_open", @@ -120,123 +128,151 @@ function parseBlockCell( : null; } +/** + * Split the text children of an inline token on each
tag and unescaped + * "\n" escape, placing a br token at each break. + * + * @param createToken - creates a new token of the given type and tag. + * @param children - the children of the inline token. + * @returns the new children. + */ +function splitChildrenOnBreaks( + createToken: (type: string, tag: string) => Token, + children: Token[] +): Token[] { + const result: Token[] = []; + + children.forEach((child) => { + // Skip processing math content to preserve LaTeX escape sequences + if (child.type === "math_inline") { + result.push(child); + return; + } + + let content = child.content; + + // First handle
tags + if (content.match(BR_TAG_REGEX) && child.type !== "code_inline") { + content = content.replace(BR_TAG_REGEX, "\\n"); + } + + const breakParts = splitOnBreaks(content); + + // a schema agnostic way to know if a node is inline code would be + // great, for now we are stuck checking the node type. + if (breakParts.length > 1 && child.type !== "code_inline") { + breakParts.forEach((part, index) => { + // Trim only around the breaks, keeping spaces next to siblings. + let text = index > 0 ? part.trimStart() : part; + if (index < breakParts.length - 1) { + text = text.trimEnd(); + } + const token = createToken("text", ""); + token.content = text; + result.push(token); + + if (index < breakParts.length - 1) { + result.push(createToken("br", "br")); + } + }); + } else { + result.push(child); + } + }); + + return result; +} + export default function markdownTables(md: MarkdownIt): void { // insert a new rule after the "inline" rules are parsed md.core.ruler.after("inline", "tables-pm", (state) => { const tokens = state.tokens; - let inside = false; - for (let i = tokens.length - 1; i > 0; i--) { - if (inside) { - tokens[i].level--; - } - - // convert unescaped \n and
tags in the text into real br tokens + // convert unescaped \n and
tags in the text into real br tokens + for (let i = 1; i < tokens.length; i++) { if ( tokens[i].type === "inline" && (hasBreak(tokens[i].content) || tokens[i].content.match(BR_TAG_REGEX)) ) { - const existing = tokens[i].children || []; - tokens[i].children = []; + tokens[i].children = splitChildrenOnBreaks( + (type, tag) => new state.Token(type, tag, 1), + tokens[i].children || [] + ); + } + } - existing.forEach((child) => { - // Skip processing math content to preserve LaTeX escape sequences - if (child.type === "math_inline") { - tokens[i].children?.push(child); - return; - } + // The output is built in a single pass, splicing into the token array for + // each cell is quadratic for documents with many table cells. + const result: Token[] = tokens.length ? [tokens[0]] : []; + let inside = false; + let paragraphCloseIndex = -1; - let content = child.content; + for (let i = 1; i < tokens.length; i++) { + const token = tokens[i]; - // First handle
tags - if (content.match(BR_TAG_REGEX) && child.type !== "code_inline") { - content = content.replace(BR_TAG_REGEX, "\\n"); - } - - const breakParts = splitOnBreaks(content); - - // a schema agnostic way to know if a node is inline code would be - // great, for now we are stuck checking the node type. - if (breakParts.length > 1 && child.type !== "code_inline") { - breakParts.forEach((part, index) => { - // Trim only around the breaks, keeping spaces next to siblings. - let text = index > 0 ? part.trimStart() : part; - if (index < breakParts.length - 1) { - text = text.trimEnd(); - } - const token = new state.Token("text", "", 1); - token.content = text; - tokens[i].children?.push(token); - - if (index < breakParts.length - 1) { - const brToken = new state.Token("br", "br", 1); - tokens[i].children?.push(brToken); - } - }); - } else { - tokens[i].children?.push(child); - } - }); + if (i === paragraphCloseIndex) { + result.push(new state.Token("paragraph_close", "p", -1)); } // filter out incompatible tokens from markdown-it that we don't need // in prosemirror. thead/tbody do nothing. - if ( - ["thead_open", "thead_close", "tbody_open", "tbody_close"].includes( - tokens[i].type - ) + if (TABLE_SECTION_TYPES.includes(token.type)) { + inside = token.type === "thead_open" || token.type === "tbody_open"; + continue; + } + + if (inside) { + token.level--; + } + + result.push(token); + + if (token.type !== "th_open" && token.type !== "td_open") { + continue; + } + + // markdown-it table parser stores alignment as html styles, convert + // to a simple string here + if (token.attrs) { + const style = token.attrs[0][1]; + token.info = style.split(":")[1]; + } + + // Find the corresponding close token + const closeType = token.type === "th_open" ? "th_close" : "td_close"; + let closeIndex = i + 2; // Start after inline token + while ( + closeIndex < tokens.length && + tokens[closeIndex].type !== closeType ) { - inside = !inside; - tokens.splice(i, 1); + closeIndex++; } - if (["th_open", "td_open"].includes(tokens[i].type)) { - // markdown-it table parser stores alignment as html styles, convert - // to a simple string here - const tokenAttrs = tokens[i].attrs; - if (tokenAttrs) { - const style = tokenAttrs[0][1]; - tokens[i].info = style.split(":")[1]; - } - - // Find the corresponding close token - const closeType = - tokens[i].type === "th_open" ? "th_close" : "td_close"; - let closeIndex = i + 2; // Start after inline token - while ( - closeIndex < tokens.length && - tokens[closeIndex].type !== closeType - ) { - closeIndex++; - } - - const inlineToken = tokens[i + 1]; - if (inlineToken?.type === "inline") { - // Reconstruct block content that was serialized onto a single line, - // replacing the inline token with the block tokens. - const blockTokens = parseBlockCell( - md, - inlineToken.content, - state.env - ); - if (blockTokens) { - tokens.splice(i + 1, closeIndex - i - 1, ...blockTokens); - continue; + const inlineToken = tokens[i + 1]; + if (inlineToken?.type === "inline") { + // Reconstruct block content that was serialized onto a single line, + // replacing the inline token with the block tokens. + const blockTokens = parseBlockCell(md, inlineToken.content, state.env); + if (blockTokens) { + for (const blockToken of blockTokens) { + result.push(blockToken); } + i = closeIndex - 1; + continue; } - - // markdown-it table parser does not return paragraphs inside the cells - // but prosemirror requires them, so we add 'em in here. Insert the - // closing token first, before closeIndex shifts. - tokens.splice( - closeIndex, - 0, - new state.Token("paragraph_close", "p", -1) - ); - tokens.splice(i + 1, 0, new state.Token("paragraph_open", "p", 1)); } + + // markdown-it table parser does not return paragraphs inside the cells + // but prosemirror requires them, so we add 'em in here. + result.push(new state.Token("paragraph_open", "p", 1)); + paragraphCloseIndex = closeIndex; } + if (paragraphCloseIndex >= tokens.length) { + result.push(new state.Token("paragraph_close", "p", -1)); + } + + state.tokens = result; return false; }); } From 00b124d03c1e82baea84ff032a36950be5e2189e Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 23 Nov 2026 23:17:06 -0500 Subject: [PATCH 14/14] chore: Rename APIContext to Context and flatten its fields (#14684) * chore: Rename APIContext to Context and flatten its fields Auth and transaction now live directly on the context instead of in ctx.state and a nested ctx.context, and model helpers read them directly. APIContext remains as a deprecated alias. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf * chore: Remove deprecated APIContext alias Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf * fix: Read auth from context in OAuth provider callbacks Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf * chore: Add withUser and withTransaction context helpers Replaces manual createContext rebuilds that copy fields from an existing context. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf * chore: Remove arbitrary property access from Koa context types AppContext and Context no longer inherit the any index signature from Koa's DefaultContext, custom fields are declared explicitly, and importing Koa's loose Context type is disallowed by lint. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016MJXFeUxvU46KyvKnP8sXf --------- Co-authored-by: Claude --- .oxlintrc.json | 5 + plugins/azure/server/auth/azure.ts | 14 +- plugins/discord/server/auth/discord.ts | 15 +- plugins/email/server/auth/email.ts | 6 +- plugins/figma/server/api/figma.ts | 8 +- plugins/gitea/server/api/gitea.ts | 14 +- plugins/github/server/api/github.ts | 10 +- plugins/gitlab/server/api/gitlab.ts | 18 +- plugins/google/server/auth/google.ts | 14 +- plugins/linear/server/api/linear.ts | 8 +- plugins/notion/server/api/notion.ts | 8 +- plugins/oidc/server/auth/oidcRouter.ts | 19 +- plugins/passkeys/server/api/passkeys.ts | 18 +- plugins/passkeys/server/auth/passkeys.test.ts | 8 +- plugins/passkeys/server/auth/passkeys.ts | 26 +- plugins/slack/server/api/hooks.ts | 8 +- plugins/slack/server/auth/slack.ts | 18 +- plugins/storage/server/api/files.ts | 12 +- .../server/api/webhookSubscriptions.ts | 22 +- server/commands/accountProvisioner.ts | 33 +- server/commands/attachmentCreator.ts | 6 +- server/commands/collectionDuplicator.ts | 12 +- server/commands/documentCreator.test.ts | 32 +- server/commands/documentCreator.ts | 24 +- server/commands/documentDuplicator.test.ts | 22 +- server/commands/documentDuplicator.ts | 14 +- server/commands/documentImporter.ts | 4 +- server/commands/documentMover.test.ts | 20 +- server/commands/documentMover.ts | 8 +- server/commands/documentRestorer.ts | 10 +- server/commands/documentUpdater.test.ts | 70 ++-- server/commands/documentUpdater.ts | 8 +- server/commands/groupsSyncer.ts | 8 +- server/commands/personalCollectionLoader.ts | 25 +- server/commands/pinCreator.test.ts | 6 +- server/commands/pinCreator.ts | 6 +- server/commands/starCreator.test.ts | 6 +- server/commands/starCreator.ts | 6 +- server/commands/subscriptionCreator.ts | 10 +- server/commands/teamCreator.ts | 6 +- server/commands/teamProvisioner.ts | 4 +- server/commands/teamUpdater.test.ts | 18 +- server/commands/teamUpdater.ts | 10 +- server/commands/userInviter.test.ts | 16 +- server/commands/userInviter.ts | 6 +- server/commands/userProvisioner.ts | 4 +- server/context.test.ts | 37 ++ server/context.ts | 76 +++- server/logging/sentry.ts | 6 +- server/mcp/tools/attachments.ts | 2 +- server/mcp/tools/collections.ts | 10 +- server/mcp/tools/comments.ts | 10 +- server/mcp/tools/documents.ts | 34 +- server/mcp/util.ts | 12 +- server/middlewares/apexAuthRedirect.ts | 12 +- server/middlewares/apexRedirect.ts | 5 +- server/middlewares/apiContext.ts | 26 -- server/middlewares/appHeaders.ts | 5 +- server/middlewares/authentication.test.ts | 349 +++++++----------- server/middlewares/authentication.ts | 6 +- server/middlewares/csp.ts | 11 +- server/middlewares/feature.ts | 13 +- server/middlewares/multipart.ts | 4 +- server/middlewares/passport.ts | 5 +- server/middlewares/rateLimiter.test.ts | 4 +- server/middlewares/requestTracer.ts | 5 +- server/middlewares/shareDomains.test.ts | 4 +- server/middlewares/shareDomains.ts | 5 +- server/middlewares/transaction.ts | 4 +- server/middlewares/userAgent.test.ts | 12 +- server/middlewares/validate.ts | 4 +- server/middlewares/validateWebhook.ts | 8 +- server/models/AccessRequest.ts | 14 +- server/models/AuthenticationProvider.ts | 14 +- server/models/Collection.test.ts | 8 +- server/models/Collection.ts | 37 +- server/models/Document.test.ts | 12 +- server/models/Document.ts | 47 +-- server/models/Event.ts | 12 +- server/models/FileOperation.ts | 8 +- server/models/GroupMembership.ts | 16 +- server/models/Reaction.ts | 10 +- server/models/Revision.ts | 6 +- server/models/Share.ts | 6 +- server/models/User.ts | 18 +- server/models/UserMembership.test.ts | 6 +- server/models/UserMembership.ts | 16 +- server/models/View.ts | 4 +- server/models/base/Model.ts | 41 +- server/models/base/ParanoidModel.test.ts | 8 +- server/models/helpers/ProsemirrorHelper.tsx | 6 +- server/models/helpers/TextHelper.ts | 6 +- server/presenters/collection.ts | 4 +- server/presenters/document.test.ts | 8 +- server/presenters/document.ts | 8 +- server/presenters/integration.ts | 8 +- server/presenters/notification.ts | 4 +- .../tasks/MarkdownAPIImportTask.test.ts | 4 +- ...ShareSubscriptionNotificationsTask.test.ts | 4 +- .../api/accessRequests/accessRequests.ts | 24 +- server/routes/api/apiKeys/apiKeys.ts | 16 +- server/routes/api/attachments/attachments.ts | 56 ++- server/routes/api/auth/auth.ts | 12 +- .../authenticationProviders.ts | 26 +- server/routes/api/batch/batch.ts | 20 +- server/routes/api/collections/collections.ts | 121 +++--- server/routes/api/comments/comments.ts | 57 +-- server/routes/api/cron/cron.ts | 4 +- server/routes/api/developer/developer.ts | 15 +- server/routes/api/documents/documents.test.ts | 88 +++-- server/routes/api/documents/documents.ts | 161 ++++---- server/routes/api/emojis/emojis.ts | 34 +- server/routes/api/events/events.ts | 6 +- .../api/fileOperations/fileOperations.ts | 20 +- .../api/groupMemberships/groupMemberships.ts | 6 +- server/routes/api/groups/groups.ts | 54 +-- server/routes/api/imports/imports.ts | 34 +- server/routes/api/index.ts | 2 - .../routes/api/installation/installation.ts | 8 +- .../routes/api/integrations/integrations.ts | 26 +- .../api/middlewares/apiErrorHandler.test.ts | 6 +- .../routes/api/middlewares/apiErrorHandler.ts | 5 +- server/routes/api/middlewares/apiResponse.ts | 5 +- server/routes/api/middlewares/editor.ts | 5 +- .../routes/api/notifications/notifications.ts | 30 +- .../oauthAuthentications.ts | 12 +- .../routes/api/oauthClients/oauthClients.ts | 36 +- server/routes/api/pins/pins.ts | 28 +- server/routes/api/reactions/reactions.ts | 6 +- .../routes/api/relationships/relationships.ts | 10 +- server/routes/api/revisions/revisions.ts | 24 +- server/routes/api/searches/searches.ts | 16 +- server/routes/api/shares/shares.test.ts | 6 +- server/routes/api/shares/shares.ts | 40 +- server/routes/api/stars/stars.ts | 24 +- .../routes/api/subscriptions/subscriptions.ts | 26 +- server/routes/api/suggestions/suggestions.ts | 6 +- server/routes/api/teams/teams.ts | 22 +- server/routes/api/templates/templates.ts | 40 +- server/routes/api/urls/urls.ts | 14 +- .../api/userMemberships/userMemberships.ts | 12 +- server/routes/api/users/users.ts | 76 ++-- server/routes/api/views/views.ts | 10 +- server/routes/app.ts | 9 +- server/routes/embeds.ts | 9 +- server/routes/mcp/index.ts | 18 +- server/routes/oauth/index.ts | 26 +- .../oauth/middlewares/oauthErrorHandler.ts | 8 +- .../oauth/middlewares/registrationAuth.ts | 12 +- server/routes/workspace.ts | 4 +- server/test/support.ts | 20 +- server/types.ts | 59 ++- server/utils/LogoutTokenStore.test.ts | 4 +- server/utils/LogoutTokenStore.ts | 8 +- server/utils/SessionsCookieHelper.ts | 14 +- server/utils/authentication.ts | 9 +- server/utils/csrf.ts | 8 +- server/utils/jwt.test.ts | 4 +- server/utils/jwt.ts | 4 +- server/utils/koa.ts | 5 +- server/utils/oauth.ts | 6 +- server/utils/oauth/OAuthHelper.ts | 4 +- server/utils/passport.ts | 33 +- server/utils/redirectOnClient.ts | 4 +- 164 files changed, 1574 insertions(+), 1592 deletions(-) create mode 100644 server/context.test.ts delete mode 100644 server/middlewares/apiContext.ts diff --git a/.oxlintrc.json b/.oxlintrc.json index 207b36d758..2a75b9875b 100644 --- a/.oxlintrc.json +++ b/.oxlintrc.json @@ -144,6 +144,11 @@ "addColumnAfter" ], "message": "Use the wrappers from shared/editor/commands/table instead, which respect the target index and place the cursor in the inserted cell." + }, + { + "name": "koa", + "importNames": ["Context", "DefaultContext"], + "message": "Use AppContext or Context from @server/types, which do not allow arbitrary properties." } ], "patterns": [ diff --git a/plugins/azure/server/auth/azure.ts b/plugins/azure/server/auth/azure.ts index 50c89c26ea..5ac7074d2a 100644 --- a/plugins/azure/server/auth/azure.ts +++ b/plugins/azure/server/auth/azure.ts @@ -10,7 +10,7 @@ import { parseEmail } from "@shared/utils/email"; import accountProvisioner from "@server/commands/accountProvisioner"; import passportMiddleware from "@server/middlewares/passport"; import type { User } from "@server/models"; -import type { AuthenticationResult } from "@server/types"; +import type { AuthenticationResult, AppContext } from "@server/types"; import { StateStore, request, @@ -22,7 +22,7 @@ import { } from "@server/utils/passport"; import config from "../../plugin.json"; import env from "../env"; -import { createContext } from "@server/context"; +import { withUser } from "@server/context"; import UploadUserAvatarTask from "@server/queues/tasks/UploadUserAvatarTask"; import { UserFlag } from "@server/models/User"; import { getEmailVerified } from "./getEmailVerified"; @@ -57,7 +57,7 @@ if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) { result?: AuthenticationResult ) => void ) { - const context = req.ctx; + const context: AppContext = req.ctx; try { // see docs for what the fields in profile represent here: // https://docs.microsoft.com/en-us/azure/active-directory/develop/access-tokens @@ -106,7 +106,7 @@ if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) { const team = await getTeamFromContext(context); const client = getClientFromOAuthState(context); const user = - context.state?.auth?.user ?? (await getUserFromOAuthState(context)); + context.auth?.user ?? (await getUserFromOAuthState(context)); const emailVerified = getEmailVerified( email, @@ -122,11 +122,7 @@ if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) { const subdomain = slugifyDomain(domain); const teamName = organization.displayName; - const ctx = createContext({ - ip: context.ip, - user, - authType: context.state?.auth?.type, - }); + const ctx = withUser(context, user); const result = await accountProvisioner(ctx, { team: { teamId: team?.id, diff --git a/plugins/discord/server/auth/discord.ts b/plugins/discord/server/auth/discord.ts index ad7cfe208d..c8fafa41e3 100644 --- a/plugins/discord/server/auth/discord.ts +++ b/plugins/discord/server/auth/discord.ts @@ -18,7 +18,7 @@ import accountProvisioner from "@server/commands/accountProvisioner"; import { InvalidRequestError, TeamDomainRequiredError } from "@server/errors"; import passportMiddleware from "@server/middlewares/passport"; import type { User } from "@server/models"; -import type { AuthenticationResult } from "@server/types"; +import type { AuthenticationResult, AppContext } from "@server/types"; import { StateStore, getTeamFromContext, @@ -31,7 +31,7 @@ import { import config from "../../plugin.json"; import env from "../env"; import { DiscordGuildError, DiscordGuildRoleError } from "../errors"; -import { createContext } from "@server/context"; +import { withUser } from "@server/context"; const router = new Router(); @@ -72,7 +72,7 @@ if (env.DISCORD_CLIENT_ID && env.DISCORD_CLIENT_SECRET) { result?: AuthenticationResult ) => void ) { - const context = req.ctx; + const context: AppContext = req.ctx; try { const team = await getTeamFromContext(context); const client = getClientFromOAuthState(context); @@ -185,17 +185,12 @@ if (env.DISCORD_CLIENT_ID && env.DISCORD_CLIENT_SECRET) { } } const user = - context.state?.auth?.user ?? - (await getUserFromOAuthState(context)); + context.auth?.user ?? (await getUserFromOAuthState(context)); // if a team can be inferred, we assume the user is only interested in signing into // that team in particular; otherwise, we will do a best effort at finding their account // or provisioning a new one (within AccountProvisioner) - const ctx = createContext({ - ip: context.ip, - user, - authType: context.state?.auth?.type, - }); + const ctx = withUser(context, user); const result = await accountProvisioner(ctx, { team: { teamId: team?.id, diff --git a/plugins/email/server/auth/email.ts b/plugins/email/server/auth/email.ts index e9dc65c1ea..3496196a2d 100644 --- a/plugins/email/server/auth/email.ts +++ b/plugins/email/server/auth/email.ts @@ -10,7 +10,7 @@ import Logger from "@server/logging/Logger"; import { rateLimiter } from "@server/middlewares/rateLimiter"; import validate from "@server/middlewares/validate"; import { Event, User, Team } from "@server/models"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { VerificationCode } from "@server/utils/VerificationCode"; import { signIn } from "@server/utils/authentication"; @@ -26,7 +26,7 @@ router.post( "email", rateLimiter(RateLimiterStrategy.TenPerHour), validate(T.EmailSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { email, client, preferOTP } = ctx.input.body; const domain = parseDomain(ctx.request.hostname); @@ -99,7 +99,7 @@ router.post( } ); -const emailCallback = async (ctx: APIContext) => { +const emailCallback = async (ctx: Context) => { const { query, body } = ctx.input; const token = query?.token || body?.token; const client = query?.client || body?.client || Client.Web; diff --git a/plugins/figma/server/api/figma.ts b/plugins/figma/server/api/figma.ts index 4cbb73be0f..bd71c121bb 100644 --- a/plugins/figma/server/api/figma.ts +++ b/plugins/figma/server/api/figma.ts @@ -3,7 +3,7 @@ import auth from "@server/middlewares/authentication"; import Router from "@koa/router"; import * as T from "./schema"; import apexAuthRedirect from "@server/middlewares/apexAuthRedirect"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import validate from "@server/middlewares/validate"; import { FigmaOAuthNonceCookie, @@ -36,7 +36,7 @@ router.get( getErrorPath: () => FigmaUtils.errorUrl("unauthenticated"), }), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { code, error, state } = ctx.input.query; // Check error after any sub-domain redirection. Otherwise, the user will be redirected to the root domain. @@ -52,8 +52,8 @@ router.get( verifyOAuthStateNonce(ctx, FigmaOAuthNonceCookie, parsedState.nonce); - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; try { // validation middleware ensures that code is non-null at this point. diff --git a/plugins/gitea/server/api/gitea.ts b/plugins/gitea/server/api/gitea.ts index 31ef41ddfb..86c9bac9a9 100644 --- a/plugins/gitea/server/api/gitea.ts +++ b/plugins/gitea/server/api/gitea.ts @@ -11,7 +11,7 @@ import { transaction } from "@server/middlewares/transaction"; import validate from "@server/middlewares/validate"; import { IntegrationAuthentication, Integration } from "@server/models"; import { authorize } from "@server/policies"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { generateOAuthStateNonce, verifyOAuthStateNonce, @@ -28,12 +28,12 @@ router.post( auth(), validate(T.GiteaConnectSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { clientId, clientSecret } = ctx.input.body; const parsedUrl = new URL(ctx.input.body.url); const url = `${parsedUrl.origin}${parsedUrl.pathname}`.replace(/\/+$/, ""); - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; authorize(user, "createIntegration", user.team); await validateUrlNotPrivate(url); @@ -119,10 +119,10 @@ router.get( getErrorPath: () => GiteaUtils.errorUrl("unauthenticated"), }), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { code, error, state } = ctx.input.query; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; if (error) { ctx.redirect(GiteaUtils.errorUrl(error)); diff --git a/plugins/github/server/api/github.ts b/plugins/github/server/api/github.ts index 34402faa53..c33025a3ea 100644 --- a/plugins/github/server/api/github.ts +++ b/plugins/github/server/api/github.ts @@ -10,7 +10,7 @@ import validate from "@server/middlewares/validate"; import validateWebhook from "@server/middlewares/validateWebhook"; import { IntegrationAuthentication, Integration } from "@server/models"; import { authorize } from "@server/policies"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { verifyOAuthStateNonce } from "@server/utils/oauth"; import { RequestHelper } from "@server/utils/RequestHelper"; import { GitHubOAuthNonceCookie, GitHubUtils } from "../../shared/GitHubUtils"; @@ -35,7 +35,7 @@ router.get( getErrorPath: () => GitHubUtils.errorUrl("unauthenticated"), }), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { code, state, @@ -43,8 +43,8 @@ router.get( installation_id: installationId, setup_action: setupAction, } = ctx.input.query; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; if (error) { ctx.redirect(GitHubUtils.errorUrl(error)); @@ -129,7 +129,7 @@ router.post( return signature?.split("=")[1]; }, }), - async (ctx: APIContext) => { + async (ctx: Context) => { const { headers } = ctx.request; const body = RequestHelper.getBodyObject(ctx.request); diff --git a/plugins/gitlab/server/api/gitlab.ts b/plugins/gitlab/server/api/gitlab.ts index bb36262043..6586902096 100644 --- a/plugins/gitlab/server/api/gitlab.ts +++ b/plugins/gitlab/server/api/gitlab.ts @@ -11,7 +11,7 @@ import validate from "@server/middlewares/validate"; import validateWebhook from "@server/middlewares/validateWebhook"; import { IntegrationAuthentication, Integration } from "@server/models"; import { authorize } from "@server/policies"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { safeEqual } from "@server/utils/crypto"; import { RequestHelper } from "@server/utils/RequestHelper"; import { @@ -29,7 +29,7 @@ import * as T from "./schema"; const router = new Router(); -function getGitLabWebhookToken(ctx: APIContext): string | undefined { +function getGitLabWebhookToken(ctx: Context): string | undefined { const signatureHeader = ctx.request.headers["x-gitlab-token"]; return Array.isArray(signatureHeader) ? signatureHeader[0] : signatureHeader; } @@ -39,11 +39,11 @@ router.post( auth(), validate(T.GitLabConnectSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { url: rawUrl, clientId, clientSecret } = ctx.input.body; const url = rawUrl?.replace(/\/+$/, ""); - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; authorize(user, "createIntegration", user.team); @@ -150,10 +150,10 @@ router.get( getErrorPath: () => GitLabUtils.errorUrl("unauthenticated"), }), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { code, error, state } = ctx.input.query; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; if (error) { ctx.redirect(GitLabUtils.errorUrl(error)); @@ -355,7 +355,7 @@ router.post( }, getSignatureFromHeader: getGitLabWebhookToken, }), - async (ctx: APIContext) => { + async (ctx: Context) => { const { headers } = ctx.request; const body = RequestHelper.getBodyObject(ctx.request); const teamIds: Array = ctx.state.webhookTeamIds ?? [null]; diff --git a/plugins/google/server/auth/google.ts b/plugins/google/server/auth/google.ts index a03b2d0929..c32e30ef03 100644 --- a/plugins/google/server/auth/google.ts +++ b/plugins/google/server/auth/google.ts @@ -11,7 +11,7 @@ import accountProvisioner from "@server/commands/accountProvisioner"; import { TeamDomainRequiredError } from "@server/errors"; import passportMiddleware from "@server/middlewares/passport"; import { AuthenticationProvider, User } from "@server/models"; -import type { AuthenticationResult } from "@server/types"; +import type { AuthenticationResult, AppContext } from "@server/types"; import { StateStore, getTeamFromContext, @@ -22,7 +22,7 @@ import { } from "@server/utils/passport"; import config from "../../plugin.json"; import env from "../env"; -import { createContext } from "@server/context"; +import { withUser } from "@server/context"; import { GmailAccountCreationError } from "../errors"; const router = new Router(); @@ -65,14 +65,14 @@ if (env.GOOGLE_CLIENT_ID && env.GOOGLE_CLIENT_SECRET) { result?: AuthenticationResult ) => void ) { - const context = req.ctx; + const context: AppContext = req.ctx; try { // "domain" is the Google Workspaces domain const domain = profile._json.hd; let team = await getTeamFromContext(context); const client = getClientFromOAuthState(context); const user = - context.state?.auth?.user ?? (await getUserFromOAuthState(context)); + context.auth?.user ?? (await getUserFromOAuthState(context)); // No profile domain means a personal gmail account, and no team means // the request came from the apex domain rather than a workspace @@ -125,11 +125,7 @@ if (env.GOOGLE_CLIENT_ID && env.GOOGLE_CLIENT_SECRET) { // if a team can be inferred, we assume the user is only interested in signing into // that team in particular; otherwise, we will do a best effort at finding their account // or provisioning a new one (within AccountProvisioner) - const ctx = createContext({ - ip: context.ip, - user, - authType: context.state?.auth?.type, - }); + const ctx = withUser(context, user); const result = await accountProvisioner(ctx, { team: { teamId: team?.id, diff --git a/plugins/linear/server/api/linear.ts b/plugins/linear/server/api/linear.ts index 27ac66a89d..5dd35af74f 100644 --- a/plugins/linear/server/api/linear.ts +++ b/plugins/linear/server/api/linear.ts @@ -10,7 +10,7 @@ import validate from "@server/middlewares/validate"; import { IntegrationAuthentication, Integration } from "@server/models"; import { authorize } from "@server/policies"; import { afterCommit } from "@server/storage/transaction"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { verifyOAuthStateNonce } from "@server/utils/oauth"; import { Linear } from "../linear"; import UploadIntegrationLogoTask from "@server/queues/tasks/UploadIntegrationLogoTask"; @@ -39,10 +39,10 @@ router.get( getErrorPath: () => LinearUtils.errorUrl("unauthenticated"), }), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { code, error, state } = ctx.input.query; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; // Check error after any sub-domain redirection. Otherwise, the user will be redirected to the root domain. if (error) { diff --git a/plugins/notion/server/api/notion.ts b/plugins/notion/server/api/notion.ts index 9d4e0ee18a..c685a3694b 100644 --- a/plugins/notion/server/api/notion.ts +++ b/plugins/notion/server/api/notion.ts @@ -7,7 +7,7 @@ import { transaction } from "@server/middlewares/transaction"; import validate from "@server/middlewares/validate"; import { Integration, IntegrationAuthentication } from "@server/models"; import { authorize } from "@server/policies"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { verifyOAuthStateNonce } from "@server/utils/oauth"; import { NotionClient } from "../notion"; import * as T from "./schema"; @@ -32,10 +32,10 @@ router.get( getErrorPath: () => NotionUtils.errorUrl("unauthenticated"), }), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { code, error, state } = ctx.input.query; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; // Check error after any sub-domain redirection. Otherwise, the user will be redirected to the root domain. if (error) { diff --git a/plugins/oidc/server/auth/oidcRouter.ts b/plugins/oidc/server/auth/oidcRouter.ts index 9eed7a9c85..5fdfdbd59c 100644 --- a/plugins/oidc/server/auth/oidcRouter.ts +++ b/plugins/oidc/server/auth/oidcRouter.ts @@ -1,6 +1,6 @@ import passport from "@outlinewiki/koa-passport"; import JWT from "jsonwebtoken"; -import type { Context, Request } from "koa"; +import type { Request } from "koa"; import type Router from "@koa/router"; import { get } from "es-toolkit/compat"; import { toError } from "@shared/utils/error"; @@ -13,7 +13,7 @@ import { AuthenticationError } from "@server/errors"; import Logger from "@server/logging/Logger"; import passportMiddleware from "@server/middlewares/passport"; import type { User } from "@server/models"; -import type { AuthenticationResult } from "@server/types"; +import type { AuthenticationResult, AppContext } from "@server/types"; import { LogoutTokenStore } from "@server/utils/LogoutTokenStore"; import { StateStore, @@ -28,7 +28,7 @@ import config from "../../plugin.json"; import env from "../env"; import { OIDCStrategy } from "./OIDCStrategy"; import { resolveProviderId } from "./resolveProviderId"; -import { createContext } from "@server/context"; +import { withUser } from "@server/context"; import { OIDCMalformedUserInfoError } from "../errors"; export interface OIDCEndpoints { @@ -84,7 +84,7 @@ export function createOIDCRouter( result?: AuthenticationResult ) => void ) { - const context = req.ctx; + const context: AppContext = req.ctx; try { // Some providers require a POST request to the userinfo endpoint, add them as exceptions here. const usePostMethod = [ @@ -142,8 +142,7 @@ export function createOIDCRouter( const team = await getTeamFromContext(context); const client = getClientFromOAuthState(context); const user = - context.state?.auth?.user ?? - (await getUserFromOAuthState(context)); + context.auth?.user ?? (await getUserFromOAuthState(context)); const { domain } = parseEmail(email); const providerId = await resolveProviderId( @@ -193,11 +192,7 @@ export function createOIDCRouter( avatarUrl = null; } - const ctx = createContext({ - ip: context.ip, - user, - authType: context.state?.auth?.type, - }); + const ctx = withUser(context, user); const result = await accountProvisioner(ctx, { team: { teamId: team?.id, @@ -252,7 +247,7 @@ export function createOIDCRouter( // ended so the provider can scope the logout and skip a confirmation prompt, // while `post_logout_redirect_uri` returns the user to Outline afterwards. // https://openid.net/specs/openid-connect-rpinitiated-1_0.html - router.get(`${config.id}.logout`, async (ctx: Context) => { + router.get(`${config.id}.logout`, async (ctx: AppContext) => { const idToken = await logoutTokens.consume(ctx); if (!endpoints.logoutURL) { diff --git a/plugins/passkeys/server/api/passkeys.ts b/plugins/passkeys/server/api/passkeys.ts index afb32630e1..1801282434 100644 --- a/plugins/passkeys/server/api/passkeys.ts +++ b/plugins/passkeys/server/api/passkeys.ts @@ -1,7 +1,7 @@ import auth from "@server/middlewares/authentication"; import validate from "@server/middlewares/validate"; import { UserPasskey } from "@server/models"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { AuthenticationType } from "@server/types"; import Router from "@koa/router"; import * as T from "./schema"; @@ -17,8 +17,8 @@ router.post( auth({ type: AuthenticationType.APP }), pagination(), validate(T.PasskeysListSchema), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const { pagination } = ctx.state; const passkeys = await UserPasskey.findAll({ @@ -40,10 +40,10 @@ router.post( auth({ type: AuthenticationType.APP }), validate(T.PasskeysUpdateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, name } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const passkey = await UserPasskey.findByPk(id, { rejectOnEmpty: true, @@ -64,10 +64,10 @@ router.post( auth({ type: AuthenticationType.APP }), validate(T.PasskeysDeleteSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const passkey = await UserPasskey.findByPk(id, { rejectOnEmpty: true, diff --git a/plugins/passkeys/server/auth/passkeys.test.ts b/plugins/passkeys/server/auth/passkeys.test.ts index 5bf0fc249a..0c9326bcb7 100644 --- a/plugins/passkeys/server/auth/passkeys.test.ts +++ b/plugins/passkeys/server/auth/passkeys.test.ts @@ -9,7 +9,7 @@ import { buildUser, } from "@server/test/factories"; import { getTestServer } from "@server/test/support"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { PasskeyBrand } from "@shared/utils/passkeys"; import { getExpectedOrigin, @@ -82,13 +82,13 @@ function buildNoneAttestationResponse(challenge: string, rpId: string) { } describe("getExpectedOrigin", () => { - // Helper to mock APIContext for testing + // Helper to mock Context for testing const createMockContext = (options: { protocol: string; hostname: string; host: string; forwardedPort?: string; - }): APIContext => + }): Context => ({ protocol: options.protocol, request: { @@ -101,7 +101,7 @@ describe("getExpectedOrigin", () => { return undefined; }, } as unknown, - }) as unknown as APIContext; + }) as unknown as Context; it("should construct origin with non-standard HTTPS port from X-Forwarded-Port", () => { const ctx = createMockContext({ diff --git a/plugins/passkeys/server/auth/passkeys.ts b/plugins/passkeys/server/auth/passkeys.ts index e2717cf2d7..57a627ced7 100644 --- a/plugins/passkeys/server/auth/passkeys.ts +++ b/plugins/passkeys/server/auth/passkeys.ts @@ -10,13 +10,12 @@ import Router from "@koa/router"; import { randomBytes } from "node:crypto"; import { toError } from "@shared/utils/error"; import { User, UserPasskey, Team } from "@server/models"; -import { apiContext } from "@server/middlewares/apiContext"; import auth from "@server/middlewares/authentication"; import { transaction } from "@server/middlewares/transaction"; import validate from "@server/middlewares/validate"; import env from "@server/env"; import { AuthorizationError, ValidationError } from "@server/errors"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { AuthenticationType } from "@server/types"; import Logger from "@server/logging/Logger"; import Redis from "@server/storage/redis"; @@ -32,16 +31,16 @@ const rpName = env.APP_NAME; const CHALLENGE_EXPIRY_MS = Minute.ms * 5; // Helper to get RP ID (domain) - for simplicity, we can use the hostname but strip port. -const getRpID = (ctx: APIContext) => ctx.request.hostname; +const getRpID = (ctx: Context) => ctx.request.hostname; /** * Helper to get the expected origin for WebAuthn. * Properly handles non-standard ports by checking X-Forwarded-Port header. * - * @param ctx - the API context. + * @param ctx - the context. * @returns the expected origin (protocol://host:port). */ -export const getExpectedOrigin = (ctx: APIContext): string => { +export const getExpectedOrigin = (ctx: Context): string => { const protocol = ctx.protocol; const hostname = ctx.request.hostname; @@ -108,8 +107,8 @@ export const isUniqueAuthenticator = (aaguid: string | undefined): boolean => router.post( "passkeys.generateRegistrationOptions", auth({ type: AuthenticationType.APP }), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; authorize(user, "createUserPasskey", user.team); // Fetch existing passkeys to exclude them from registration @@ -148,12 +147,9 @@ router.post( "passkeys.verifyRegistration", auth({ type: AuthenticationType.APP }), validate(T.PasskeysVerifyRegistrationSchema), - // Auth routes have no API context by default, without it the resulting event - // has no actor or team and cannot appear in the audit log. - apiContext(), transaction(), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const body = ctx.input.body; authorize(user, "createUserPasskey", user.team); @@ -266,14 +262,14 @@ export const getPasskeyLoginRedirect = ( * ceremony and returns the authenticated session via the outline:// deep link, * mirroring the existing SSO desktop flow. */ -router.get("passkey", (ctx: APIContext) => { +router.get("passkey", (ctx: Context) => { ctx.redirect(getPasskeyLoginRedirect(ctx.query.client)); }); router.post( "passkeys.generateAuthenticationOptions", validate(T.PasskeysGenerateAuthenticationOptionsSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const options = await generateAuthenticationOptions({ rpID: getRpID(ctx), userVerification: "preferred", @@ -295,7 +291,7 @@ router.post( router.post( "passkeys.verifyAuthentication", validate(T.PasskeysVerifyAuthenticationSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const body = ctx.input.body; const { challengeId, client = Client.Web } = body; diff --git a/plugins/slack/server/api/hooks.ts b/plugins/slack/server/api/hooks.ts index 7a5b8c6dda..1ad6e88d7c 100644 --- a/plugins/slack/server/api/hooks.ts +++ b/plugins/slack/server/api/hooks.ts @@ -23,7 +23,7 @@ import { import { SearchQuerySource } from "@server/models/SearchQuery"; import SearchProviderManager from "@server/utils/SearchProviderManager"; import { can } from "@server/policies"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { safeEqual } from "@server/utils/crypto"; import { opts } from "@server/utils/i18n"; import env from "../env"; @@ -38,7 +38,7 @@ const router = new Router(); router.post( "hooks.unfurl", validate(T.HooksUnfurlSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { // See URL verification handshake documentation on this page: // https://api.slack.com/apis/connections/events-api if ("challenge" in ctx.input.body) { @@ -133,7 +133,7 @@ router.post( router.post( "hooks.interactive", validate(T.HooksInteractiveSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { payload } = ctx.input.body; let parsed; @@ -208,7 +208,7 @@ router.post( router.post( "hooks.slack", validate(T.HooksSlackCommandSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { token, team_id, user_id, text } = ctx.input.body; verifySlackToken(token); diff --git a/plugins/slack/server/auth/slack.ts b/plugins/slack/server/auth/slack.ts index ed54c275b9..e1709ca342 100644 --- a/plugins/slack/server/auth/slack.ts +++ b/plugins/slack/server/auth/slack.ts @@ -19,7 +19,7 @@ import { } from "@server/models"; import { authorize } from "@server/policies"; import { sequelize } from "@server/storage/database"; -import type { APIContext, AuthenticationResult } from "@server/types"; +import type { Context, AuthenticationResult, AppContext } from "@server/types"; import { verifyOAuthStateNonce } from "@server/utils/oauth"; import { getClientFromOAuthState, @@ -37,7 +37,7 @@ import { SlackUtils, SlackOAuthNonceCookie, } from "plugins/slack/shared/SlackUtils"; -import { createContext } from "@server/context"; +import { withUser } from "@server/context"; type SlackProfile = Profile & { team: { @@ -88,20 +88,16 @@ if (env.SLACK_CLIENT_ID && env.SLACK_CLIENT_SECRET) { result?: AuthenticationResult ) => void ) { - const context = req.ctx; + const context: AppContext = req.ctx; try { const team = await getTeamFromContext(context); const client = getClientFromOAuthState(context); const user = - context.state?.auth?.user ?? (await getUserFromOAuthState(context)); + context.auth?.user ?? (await getUserFromOAuthState(context)); const { domain } = parseEmail(profile.user.email); - const ctx = createContext({ - ip: context.ip, - user, - authType: context.state?.auth?.type, - }); + const ctx = withUser(context, user); const result = await accountProvisioner(ctx, { team: { teamId: team?.id, @@ -156,9 +152,9 @@ if (env.SLACK_CLIENT_ID && env.SLACK_CLIENT_SECRET) { }), getErrorPath: () => SlackUtils.errorUrl("unauthenticated"), }), - async (ctx: APIContext) => { + async (ctx: Context) => { const { code, error, state } = ctx.input.query; - const { user } = ctx.state.auth; + const { user } = ctx.auth; if (error) { ctx.redirect(SlackUtils.errorUrl(error)); diff --git a/plugins/storage/server/api/files.ts b/plugins/storage/server/api/files.ts index 810da4ca08..e5bc1cbb64 100644 --- a/plugins/storage/server/api/files.ts +++ b/plugins/storage/server/api/files.ts @@ -20,7 +20,7 @@ import AttachmentHelper from "@server/models/helpers/AttachmentHelper"; import { authorize } from "@server/policies"; import FileStorage from "@server/storage/files"; import type LocalStorage from "@server/storage/files/LocalStorage"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { getJWTPayload } from "@server/utils/jwt"; import { ByteRangeHelper } from "../utils/ByteRangeHelper"; @@ -40,8 +40,8 @@ router.post( env.FILE_STORAGE_IMPORT_MAX_SIZE ), }), - async (ctx: APIContext) => { - const actor = ctx.state.auth.user; + async (ctx: Context) => { + const actor = ctx.auth.user; const { key, sig } = ctx.input.body; const file = ctx.input.file; @@ -104,8 +104,8 @@ router.get( // Signed requests are authorized by their signature alone. auth({ optional: true, skip: (ctx) => !!ctx.query.sig }), validate(T.FilesGetSchema), - async (ctx: APIContext) => { - const actor = ctx.state.auth.user; + async (ctx: Context) => { + const actor = ctx.auth.user; const key = getKeyFromContext(ctx); const forceDownload = !!ctx.input.query.download; const isSignedRequest = !!ctx.input.query.sig; @@ -206,7 +206,7 @@ function verifyUploadSignature(sig: string, key: string) { } } -function getKeyFromContext(ctx: APIContext): string { +function getKeyFromContext(ctx: Context): string { const { key, sig } = ctx.input.query; if (sig) { const payload = getJWTPayload(sig); diff --git a/plugins/webhooks/server/api/webhookSubscriptions.ts b/plugins/webhooks/server/api/webhookSubscriptions.ts index 9b8024fee9..e6a28ceefa 100644 --- a/plugins/webhooks/server/api/webhookSubscriptions.ts +++ b/plugins/webhooks/server/api/webhookSubscriptions.ts @@ -10,7 +10,7 @@ import { authorize } from "@server/policies"; import pagination, { paginateQuery, } from "@server/routes/api/middlewares/pagination"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { AuthenticationType } from "@server/types"; import { QueryHelper } from "@server/storage/QueryHelper"; import presentWebhookSubscription from "../presenters/webhookSubscription"; @@ -23,9 +23,9 @@ router.post( auth({ role: UserRole.Admin }), pagination(), validate(T.WebhookSubscriptionsListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { sort, direction, query } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "listWebhookSubscription", user.team); @@ -84,9 +84,9 @@ router.post( }), validate(T.WebhookSubscriptionsCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { name, url, secret, events } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "createWebhookSubscription", user.team); @@ -114,10 +114,10 @@ router.post( }), validate(T.WebhookSubscriptionsDeleteSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const webhookSubscription = await WebhookSubscription.findByPk(id, { rejectOnEmpty: true, @@ -145,10 +145,10 @@ router.post( }), validate(T.WebhookSubscriptionsUpdateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, name, url, secret, events } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const webhookSubscription = await WebhookSubscription.findByPk(id, { rejectOnEmpty: true, diff --git a/server/commands/accountProvisioner.ts b/server/commands/accountProvisioner.ts index 0161bdf2f8..9801785af5 100644 --- a/server/commands/accountProvisioner.ts +++ b/server/commands/accountProvisioner.ts @@ -23,9 +23,9 @@ import { sequelize } from "@server/storage/database"; import SyncUserGroupsTask from "@server/queues/tasks/SyncUserGroupsTask"; import teamProvisioner from "./teamProvisioner"; import userProvisioner from "./userProvisioner"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { addSeconds } from "date-fns"; -import { createContext } from "@server/context"; +import { withTransaction, withUser } from "@server/context"; type Props = { /** Details of the user logging in from SSO provider */ @@ -89,7 +89,7 @@ export type AccountProvisionerResult = { }; async function accountProvisioner( - ctx: APIContext, + ctx: Context, { user: userParams, team: teamParams, @@ -100,7 +100,7 @@ async function accountProvisioner( let result; let emailMatchOnly; - const actor = ctx.state.auth?.user; + const actor = ctx.auth?.user; // If the user is already logged in and is an admin of the team then we // allow them to connect or reconnect an authentication provider. @@ -120,15 +120,9 @@ async function accountProvisioner( if (!isConnected && providers.length === 1) { // Update in place so that existing user authentications stay linked. await sequelize.transaction((transaction) => - providers[0].updateWithCtx( - createContext({ - user: actor, - authType: ctx.context.auth?.type, - ip: ctx.context.ip, - transaction, - }), - { providerId: authenticationProviderParams.providerId } - ) + providers[0].updateWithCtx(withTransaction(ctx, transaction), { + providerId: authenticationProviderParams.providerId, + }) ); } else if (!isConnected) { await team.$create( @@ -230,9 +224,9 @@ async function accountProvisioner( userId: user.id, actorId: user.id, teamId: user.teamId, - ip: ctx.context.ip, + ip: ctx.ip, }, - { transaction: ctx.state.transaction } + { transaction: ctx.transaction } ); } @@ -287,17 +281,12 @@ async function accountProvisioner( * @returns a promise that resolves when the collection has been created. */ export async function provisionFirstCollection( - ctx: APIContext, + ctx: Context, team: Team, user: User ) { await sequelize.transaction(async (transaction) => { - const context = createContext({ - user, - authType: ctx.context.auth?.type, - ip: ctx.context.ip, - transaction, - }); + const context = withTransaction(withUser(ctx, user), transaction); const collection = await Collection.createWithCtx(context, { name: "Welcome", diff --git a/server/commands/attachmentCreator.ts b/server/commands/attachmentCreator.ts index deb02968b6..979cea908f 100644 --- a/server/commands/attachmentCreator.ts +++ b/server/commands/attachmentCreator.ts @@ -4,7 +4,7 @@ import type { User } from "@server/models"; import { Attachment } from "@server/models"; import AttachmentHelper from "@server/models/helpers/AttachmentHelper"; import FileStorage from "@server/storage/files"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import type { RequestInit } from "@server/utils/fetch"; type BaseProps = { @@ -19,7 +19,7 @@ type BaseProps = { /** The preset to use for the attachment */ preset: AttachmentPreset; /** The request context */ - ctx: APIContext; + ctx: Context; /** Options to pass to fetch when downloading the attachment */ fetchOptions?: RequestInit; }; @@ -51,7 +51,7 @@ export default async function attachmentCreator({ if (id) { const existing = await Attachment.findOne({ where: { id, teamId: user.teamId }, - transaction: ctx.context.transaction, + transaction: ctx.transaction, }); if (existing) { diff --git a/server/commands/collectionDuplicator.ts b/server/commands/collectionDuplicator.ts index 6fbf9e7939..f6fb147577 100644 --- a/server/commands/collectionDuplicator.ts +++ b/server/commands/collectionDuplicator.ts @@ -3,7 +3,7 @@ import Logger from "@server/logging/Logger"; import { Collection } from "@server/models"; import DuplicateCollectionDocumentsTask from "@server/queues/tasks/DuplicateCollectionDocumentsTask"; import { afterCommit } from "@server/storage/transaction"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; type Props = { /** The collection to duplicate */ @@ -17,16 +17,16 @@ type Props = { * published documents within the collection are duplicated asynchronously by a * background task once the new collection is committed. * - * @param ctx the API context containing the acting user and transaction. + * @param ctx the context containing the acting user and transaction. * @param props the collection to duplicate and optional overrides. * @returns the duplicated collection. */ export default async function collectionDuplicator( - ctx: APIContext, + ctx: Context, { collection, name }: Props ): Promise { - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const duplicated = Collection.build({ name: name ?? collection.name, @@ -54,7 +54,7 @@ export default async function collectionDuplicator( collectionId: duplicated.id, originalCollectionId: collection.id, actorId: user.id, - ip: ctx.context.ip ?? null, + ip: ctx.ip ?? null, }); if (transaction) { diff --git a/server/commands/documentCreator.test.ts b/server/commands/documentCreator.test.ts index d1013d6dfd..fd152de55a 100644 --- a/server/commands/documentCreator.test.ts +++ b/server/commands/documentCreator.test.ts @@ -7,14 +7,14 @@ import { buildFileOperation, buildTemplate, } from "@server/test/factories"; -import { withAPIContext } from "@server/test/support"; +import { withContext } from "@server/test/support"; import documentCreator from "./documentCreator"; describe("documentCreator", () => { it("should attribute Markdown mentions to the authenticated writer", async () => { const user = await buildUser(); const mentioned = await buildUser({ teamId: user.teamId }); - const document = await withAPIContext(user, (ctx) => + const document = await withContext(user, (ctx) => documentCreator(ctx, { title: "Mentions", text: `@[${mentioned.name}](mention://user/${mentioned.id})`, @@ -40,7 +40,7 @@ describe("documentCreator", () => { "This is rich content" ).toJSON(); - const document = await withAPIContext(user, (ctx) => + const document = await withContext(user, (ctx) => documentCreator(ctx, { title: "Test Document", text: testText, @@ -63,7 +63,7 @@ describe("documentCreator", () => { const testText = "This is plain text"; - const document = await withAPIContext(user, (ctx) => + const document = await withContext(user, (ctx) => documentCreator(ctx, { title: "Test Document", text: testText, @@ -81,7 +81,7 @@ describe("documentCreator", () => { teamId: user.teamId, }); - const document = await withAPIContext(user, (ctx) => + const document = await withContext(user, (ctx) => documentCreator(ctx, { title: "Empty Document", collectionId: collection.id, @@ -101,7 +101,7 @@ describe("documentCreator", () => { teamId: user.teamId, }); - const document = await withAPIContext(user, (ctx) => + const document = await withContext(user, (ctx) => documentCreator(ctx, { title: "Test Document", text: "This is a test document", @@ -124,7 +124,7 @@ describe("documentCreator", () => { teamId: user.teamId, }); - const document = await withAPIContext(user, (ctx) => + const document = await withContext(user, (ctx) => documentCreator(ctx, { title: "Custom Document", text: "Custom content", @@ -147,7 +147,7 @@ describe("documentCreator", () => { teamId: user.teamId, }); - const document = await withAPIContext(user, (ctx) => + const document = await withContext(user, (ctx) => documentCreator(ctx, { title: "Draft Document", text: "Draft content", @@ -166,7 +166,7 @@ describe("documentCreator", () => { teamId: user.teamId, }); - const document = await withAPIContext(user, (ctx) => + const document = await withContext(user, (ctx) => documentCreator(ctx, { title: "Published Document", text: "Published content", @@ -182,7 +182,7 @@ describe("documentCreator", () => { const user = await buildUser(); await expect( - withAPIContext(user, (ctx) => + withContext(user, (ctx) => documentCreator(ctx, { title: "Invalid Document", text: "Content", @@ -212,7 +212,7 @@ describe("documentCreator", () => { collectionId: collection.id, }); - const document = await withAPIContext(user, (ctx) => + const document = await withContext(user, (ctx) => documentCreator(ctx, { title: "From Template", template, @@ -241,7 +241,7 @@ describe("documentCreator", () => { collectionId: collection.id, }); - const document = await withAPIContext(user, (ctx) => + const document = await withContext(user, (ctx) => documentCreator(ctx, { template, collectionId: collection.id, @@ -267,7 +267,7 @@ describe("documentCreator", () => { }); await expect( - withAPIContext(user, (ctx) => + withContext(user, (ctx) => documentCreator(ctx, { template, state: Buffer.from("some state"), @@ -296,7 +296,7 @@ describe("documentCreator", () => { collectionId: collection.id, }); - const document = await withAPIContext(user, (ctx) => + const document = await withContext(user, (ctx) => documentCreator(ctx, { title: "Child Document", text: "Child content", @@ -323,7 +323,7 @@ describe("documentCreator", () => { const sourceMetadata = { fileName: "test" }; - const document = await withAPIContext(user, (ctx) => + const document = await withContext(user, (ctx) => documentCreator(ctx, { title: "fileOperation Document", text: "fileOperation content", @@ -349,7 +349,7 @@ describe("documentCreator", () => { const customEmojiId = "550e8400-e29b-41d4-a716-446655440000"; const text = `Check this :${customEmojiId}: custom emoji`; - const document = await withAPIContext(user, (ctx) => + const document = await withContext(user, (ctx) => documentCreator(ctx, { title: "Custom Emoji Test", text, diff --git a/server/commands/documentCreator.ts b/server/commands/documentCreator.ts index 4416b0db43..093f0c5d8e 100644 --- a/server/commands/documentCreator.ts +++ b/server/commands/documentCreator.ts @@ -5,7 +5,7 @@ import { Collection, Document, type Template } from "@server/models"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; import { authorize } from "@server/policies"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { assertPresent } from "@server/validation"; import personalCollectionLoader from "./personalCollectionLoader"; @@ -56,20 +56,20 @@ type CreateLocation = { * "personal" refers to the personal collection of the user, which is created * when it does not exist yet. * - * @param ctx the API context containing the acting user. + * @param ctx the context containing the acting user. * @param location the requested collection and/or parent document. * @returns the resolved collection and parent document, when applicable. * @throws AuthorizationError when the user may not create the document. */ export async function authorizeDocumentCreate( - ctx: APIContext, + ctx: Context, { collectionId, parentDocumentId }: CreateLocation ): Promise<{ collection?: Collection | null; parentDocument?: Document | null; }> { - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; if (parentDocumentId) { const parentDocument = await Document.findByPk(parentDocumentId, { @@ -109,19 +109,19 @@ export async function authorizeDocumentCreate( * requires create permission on the destination — separate from the update * permission that governs editing a draft's content. * - * @param ctx the API context containing the acting user. + * @param ctx the context containing the acting user. * @param document the document being published. * @param collectionId the destination collection, required when publishing a draft that has none. * @returns the resolved destination collection. * @throws AuthorizationError when the user may not publish into the collection. */ export async function authorizeDocumentPublish( - ctx: APIContext, + ctx: Context, document: Document, collectionId?: string | null ): Promise { - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; let collection = document.collection; if (document.isDraft) { @@ -157,7 +157,7 @@ export async function authorizeDocumentPublish( } export default async function documentCreator( - ctx: APIContext, + ctx: Context, { title, text, @@ -186,8 +186,8 @@ export default async function documentCreator( lastModifiedById, }: Props ): Promise { - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const templateId = template ? template.id : undefined; const eventData = importId || apiImportId ? { source: "import" } : undefined; diff --git a/server/commands/documentDuplicator.test.ts b/server/commands/documentDuplicator.test.ts index f04698a070..4996e19671 100644 --- a/server/commands/documentDuplicator.test.ts +++ b/server/commands/documentDuplicator.test.ts @@ -8,7 +8,7 @@ import { buildDocument, buildUser, } from "@server/test/factories"; -import { withAPIContext } from "@server/test/support"; +import { withContext } from "@server/test/support"; import { generateUrlId } from "@server/utils/url"; import documentDuplicator from "./documentDuplicator"; @@ -20,7 +20,7 @@ describe("documentDuplicator", () => { teamId: user.teamId, }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentDuplicator(ctx, { document: original, collection: original.collection, @@ -43,7 +43,7 @@ describe("documentDuplicator", () => { icon: "👋", }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentDuplicator(ctx, { document: original, collection: original.collection, @@ -100,7 +100,7 @@ describe("documentDuplicator", () => { await collection.addDocumentToStructure(child2); await collection.addDocumentToStructure(child3); - await withAPIContext(user, (ctx) => + await withContext(user, (ctx) => documentDuplicator(ctx, { title: "duplicate", document: original, @@ -127,7 +127,7 @@ describe("documentDuplicator", () => { teamId: user.teamId, }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentDuplicator(ctx, { document: original, collection: original.collection, @@ -233,7 +233,7 @@ describe("documentDuplicator", () => { text: `See [child 2](${child2.path}) and the [parent](/doc/${original.id}).`, }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentDuplicator(ctx, { document: original, collection, @@ -304,7 +304,7 @@ describe("documentDuplicator", () => { }, }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentDuplicator(ctx, { document: original, collection, @@ -343,7 +343,7 @@ describe("documentDuplicator", () => { text: `See [other](${other.path}) and [elsewhere](https://example.com/doc/${other.urlId}).`, }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentDuplicator(ctx, { document: original, collection, @@ -377,7 +377,7 @@ describe("documentDuplicator", () => { ].join("\n\n"), }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentDuplicator(ctx, { document: original, collection, @@ -399,7 +399,7 @@ describe("documentDuplicator", () => { fullWidth: true, }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentDuplicator(ctx, { document: original, collection: original.collection, @@ -432,7 +432,7 @@ describe("documentDuplicator", () => { collectionId: collection.id, }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentDuplicator(ctx, { document: original, collection: original.collection, diff --git a/server/commands/documentDuplicator.ts b/server/commands/documentDuplicator.ts index 8543878970..35387c725a 100644 --- a/server/commands/documentDuplicator.ts +++ b/server/commands/documentDuplicator.ts @@ -4,7 +4,7 @@ import { Collection, Document } from "@server/models"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import type { DocumentReference } from "@server/models/helpers/ProsemirrorHelper"; import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { generateUrlId } from "@server/utils/url"; import documentCreator from "./documentCreator"; @@ -62,12 +62,12 @@ type DuplicateItem = { * Duplicates a document, optionally including its child documents. Links * between the duplicated documents are remapped to point at the copies. * - * @param ctx the API context containing the acting user and transaction. + * @param ctx the context containing the acting user and transaction. * @param props the document to duplicate and optional overrides. * @returns the duplicated documents. */ export default async function documentDuplicator( - ctx: APIContext, + ctx: Context, { document, collection, parentDocumentId, title, publish, recursive }: Props ): Promise { return duplicateRoots(ctx, { @@ -82,12 +82,12 @@ export default async function documentDuplicator( * Duplicates several documents as one unit, so that links between them are * remapped to the copies no matter which of the documents they cross between. * - * @param ctx the API context containing the acting user and transaction. + * @param ctx the context containing the acting user and transaction. * @param props the documents to duplicate and optional overrides. * @returns the duplicated documents. */ export async function documentsDuplicator( - ctx: APIContext, + ctx: Context, { documents, collection, publish, recursive }: ManyProps ): Promise { return duplicateRoots(ctx, { @@ -99,7 +99,7 @@ export async function documentsDuplicator( } async function duplicateRoots( - ctx: APIContext, + ctx: Context, { roots, collection, @@ -203,7 +203,7 @@ async function duplicateRoots( item.original.dataValues.content !== undefined ? item.original : await Document.findByPk(item.original.id, { - transaction: ctx.state.transaction, + transaction: ctx.transaction, rejectOnEmpty: true, }); diff --git a/server/commands/documentImporter.ts b/server/commands/documentImporter.ts index 2661395a26..fa6b4a22c5 100644 --- a/server/commands/documentImporter.ts +++ b/server/commands/documentImporter.ts @@ -6,7 +6,7 @@ import { serializer } from "@server/editor"; import { traceFunction } from "@server/logging/tracing"; import type { User } from "@server/models"; import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { DocumentConverter } from "@server/converters/DocumentConverter"; import { InvalidRequestError } from "../errors"; @@ -15,7 +15,7 @@ type Props = { mimeType: string; fileName: string; content: Buffer | string; - ctx: APIContext; + ctx: Context; }; type ImportResult = { diff --git a/server/commands/documentMover.test.ts b/server/commands/documentMover.test.ts index 67b7c06538..f78d952c91 100644 --- a/server/commands/documentMover.test.ts +++ b/server/commands/documentMover.test.ts @@ -9,7 +9,7 @@ import { buildUser, } from "@server/test/factories"; import documentMover from "./documentMover"; -import { withAPIContext } from "@server/test/support"; +import { withContext } from "@server/test/support"; describe("documentMover", () => { it("should move within a collection", async () => { @@ -24,7 +24,7 @@ describe("documentMover", () => { collectionId: collection.id, teamId: team.id, }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentMover(ctx, { document, collectionId: collection.id, @@ -54,7 +54,7 @@ describe("documentMover", () => { title: "Child document", text: "content", }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentMover(ctx, { document, collectionId: collection.id, @@ -92,7 +92,7 @@ describe("documentMover", () => { text: "content", }); await collection.addDocumentToStructure(newDocument); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentMover(ctx, { document, collectionId: collection.id, @@ -133,7 +133,7 @@ describe("documentMover", () => { text: "content", }); await collection.addDocumentToStructure(newDocument); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentMover(ctx, { document, collectionId: newCollection.id, @@ -182,7 +182,7 @@ describe("documentMover", () => { teamId: collection.teamId, }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentMover(ctx, { document, collectionId: newCollection.id, @@ -242,7 +242,7 @@ describe("documentMover", () => { teamId: team.id, }); - await withAPIContext(user, (ctx) => + await withContext(user, (ctx) => documentMover(ctx, { document, collectionId: newCollection.id, @@ -283,7 +283,7 @@ describe("documentMover", () => { }); } - await withAPIContext(user, (ctx) => + await withContext(user, (ctx) => documentMover(ctx, { document, collectionId: personal.id, @@ -314,7 +314,7 @@ describe("documentMover", () => { teamId: team.id, }); - await withAPIContext(user, (ctx) => + await withContext(user, (ctx) => documentMover(ctx, { document, collectionId: personal.id, @@ -347,7 +347,7 @@ describe("documentMover", () => { teamId: team.id, }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => documentMover(ctx, { document, collectionId: null, diff --git a/server/commands/documentMover.ts b/server/commands/documentMover.ts index 0e5602f183..126386f1e7 100644 --- a/server/commands/documentMover.ts +++ b/server/commands/documentMover.ts @@ -1,7 +1,7 @@ import { Transaction } from "sequelize"; import { traceFunction } from "@server/logging/tracing"; import { Document, Collection, Pin } from "@server/models"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; type Props = { /** Document which is being moved */ @@ -21,7 +21,7 @@ type Result = { }; async function documentMover( - ctx: APIContext, + ctx: Context, { document, collectionId, @@ -30,8 +30,8 @@ async function documentMover( index, }: Props ): Promise { - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const collectionChanged = collectionId !== document.collectionId; const previousCollectionId = document.collectionId; diff --git a/server/commands/documentRestorer.ts b/server/commands/documentRestorer.ts index d8379d7d2d..ee9f832462 100644 --- a/server/commands/documentRestorer.ts +++ b/server/commands/documentRestorer.ts @@ -3,7 +3,7 @@ import { ParamRequiredError, ValidationError } from "@server/errors"; import { Collection, Revision } from "@server/models"; import type { Document } from "@server/models"; import { authorize } from "@server/policies"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; type Props = { /** The document to restore. Must be loaded with `paranoid: false`. */ @@ -20,7 +20,7 @@ type Props = { * are re-attached to the destination collection's structure. Authorizes the * acting user against the document before any other check. * - * @param ctx - the API context, providing the acting user and transaction. + * @param ctx - the context, providing the acting user and transaction. * @param props - the document and restore options. * @returns the restored document. * @throws AuthorizationError if the user cannot restore the document. @@ -28,11 +28,11 @@ type Props = { * @throws NotFoundError if the given revision does not exist. */ async function documentRestorer( - ctx: APIContext, + ctx: Context, { document, collectionId, revisionId }: Props ): Promise { - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; if (!document.deletedAt && !document.archivedAt) { // restore an active document to a specific revision diff --git a/server/commands/documentUpdater.test.ts b/server/commands/documentUpdater.test.ts index b87175a6b9..bf4df5b336 100644 --- a/server/commands/documentUpdater.test.ts +++ b/server/commands/documentUpdater.test.ts @@ -17,7 +17,7 @@ import { buildDocument, buildUser, } from "@server/test/factories"; -import { withAPIContext } from "@server/test/support"; +import { withContext } from "@server/test/support"; import documentUpdater from "./documentUpdater"; describe("documentUpdater", () => { @@ -41,7 +41,7 @@ describe("documentUpdater", () => { }); const newMention = `@[Writer](mention://user/${user.id})`; - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { document, text: @@ -83,7 +83,7 @@ describe("documentUpdater", () => { }); const originalMentions = DocumentHelper.parseMentions(document); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { document, text: `${mention} updated` }) ); @@ -97,7 +97,7 @@ describe("documentUpdater", () => { teamId: user.teamId, }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "Changed", document, @@ -120,7 +120,7 @@ describe("documentUpdater", () => { userId: creator.id, }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "Changed", publish: true, @@ -138,7 +138,7 @@ describe("documentUpdater", () => { teamId: user.teamId, }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { title: document.title, document, @@ -164,7 +164,7 @@ describe("documentUpdater", () => { document.state = Buffer.from(Y.encodeStateAsUpdate(ydoc)); await document.save(); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "Changed content", document, @@ -185,7 +185,7 @@ describe("documentUpdater", () => { teamId: user.teamId, }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { title: "New Title", document, @@ -213,7 +213,7 @@ describe("documentUpdater", () => { }); const loadedCollection = document.collection; - const result = await withAPIContext(user, (ctx) => + const result = await withContext(user, (ctx) => documentUpdater(ctx, { title: "New Title", document, @@ -234,7 +234,7 @@ describe("documentUpdater", () => { teamId: user.teamId, }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "Changed", document, @@ -267,7 +267,7 @@ describe("documentUpdater", () => { text: "Initial", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "Appended", document, @@ -294,7 +294,7 @@ describe("documentUpdater", () => { text: "**Bold**", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "Appended", document, @@ -346,7 +346,7 @@ describe("documentUpdater", () => { }; await document.save(); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "Appended", document, @@ -382,7 +382,7 @@ describe("documentUpdater", () => { text: "Initial", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "\n\nAppended", document, @@ -415,7 +415,7 @@ describe("documentUpdater", () => { text: "Existing", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "Prepended", document, @@ -442,7 +442,7 @@ describe("documentUpdater", () => { text: "**Bold**", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "Prepended", document, @@ -478,7 +478,7 @@ describe("documentUpdater", () => { text: "Existing", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "Prepended\n\n", document, @@ -588,7 +588,7 @@ describe("documentUpdater", () => { }); await expect( - withAPIContext(user, (ctx) => + withContext(user, (ctx) => documentUpdater(ctx, { text: "replacement", findText: "nonexistent text", @@ -718,7 +718,7 @@ describe("documentUpdater", () => { text: "- First item\n- Second item\n- Third item", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "* Updated item", findText: "* Second item", @@ -750,7 +750,7 @@ describe("documentUpdater", () => { text: "1. Alpha one.\n2. Bravo two:\n\n :::info\n A note inside item two.\n :::\n3. Charlie three.", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "Amber", findText: "Alpha", @@ -803,7 +803,7 @@ describe("documentUpdater", () => { const lastRow = await lineContaining(document, "gamma"); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: `${lastRow}\n\n## New\n\nbody text`, findText: lastRow, @@ -834,7 +834,7 @@ describe("documentUpdater", () => { const middleRow = await lineContaining(document, "beta"); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: `${middleRow}\n\n## New`, findText: middleRow, @@ -855,7 +855,7 @@ describe("documentUpdater", () => { text: "* alpha\n* beta\n* gamma", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "- beta EDITED", findText: "* beta", @@ -887,7 +887,7 @@ describe("documentUpdater", () => { text: "> alpha\n>\n> beta\n>\n> gamma\n\n## Notes", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "beta EDITED", findText: "> beta", @@ -924,7 +924,7 @@ describe("documentUpdater", () => { const lastRow = await lineContaining(document, "two"); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: `${lastRow}\n${lastRow.replace("two", "three").replace("2", "3")}`, findText: lastRow, @@ -968,7 +968,7 @@ describe("documentUpdater", () => { }, }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "* beta EDITED\n* delta", findText: "* beta", @@ -1018,7 +1018,7 @@ describe("documentUpdater", () => { }, }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "", findText: "* alpha\n", @@ -1046,7 +1046,7 @@ describe("documentUpdater", () => { text: "# Title\n\n* only item\n\nafter", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "plain text now", findText: "* only item", @@ -1073,7 +1073,7 @@ describe("documentUpdater", () => { text: "* alpha\n* beta\n* gamma", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "1. beta EDITED", findText: "* beta", @@ -1101,7 +1101,7 @@ describe("documentUpdater", () => { text: "1. one\n2. two\n3. three", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "2) two EDITED", findText: "2. two", @@ -1134,7 +1134,7 @@ describe("documentUpdater", () => { text: "a. alpha", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "a. alpha\n1) numeric", findText: "a. alpha", @@ -1168,7 +1168,7 @@ describe("documentUpdater", () => { text: "* alpha\n * one\n * two\n * three\n* beta", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: " - two EDITED", findText: " * two", @@ -1212,7 +1212,7 @@ describe("documentUpdater", () => { text: "> alpha\n>\n> beta", }); - document = await withAPIContext(user, (ctx) => + document = await withContext(user, (ctx) => documentUpdater(ctx, { text: "> beta\n\n## New\n\nbody", findText: "> beta", @@ -2426,7 +2426,7 @@ describe("documentUpdater", () => { const user = await buildUser(); const document = await buildDocument({ teamId: user.teamId }); - const result = await withAPIContext(user, (ctx) => + const result = await withContext(user, (ctx) => documentUpdater(ctx, { document, text: "- [ ] one\n\n+++ Title\nBody\n+++", @@ -2450,7 +2450,7 @@ describe("documentUpdater", () => { content, }); - const result = await withAPIContext(user, (ctx) => + const result = await withContext(user, (ctx) => documentUpdater(ctx, { document, text: replacement, diff --git a/server/commands/documentUpdater.ts b/server/commands/documentUpdater.ts index a7d16f22ba..8ab59a1c36 100644 --- a/server/commands/documentUpdater.ts +++ b/server/commands/documentUpdater.ts @@ -3,7 +3,7 @@ import { DocumentConflictError, ValidationError } from "@server/errors"; import { Document } from "@server/models"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import { TextHelper } from "@server/models/helpers/TextHelper"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; type Props = { /** The existing document */ @@ -48,7 +48,7 @@ type Props = { * @returns Document The updated document */ export default async function documentUpdater( - ctx: APIContext, + ctx: Context, { document, title, @@ -68,8 +68,8 @@ export default async function documentUpdater( deprecatedReason, }: Props ): Promise { - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const cId = collectionId || document.collectionId; document.fill({ diff --git a/server/commands/groupsSyncer.ts b/server/commands/groupsSyncer.ts index b40014fd62..f876fcae66 100644 --- a/server/commands/groupsSyncer.ts +++ b/server/commands/groupsSyncer.ts @@ -4,7 +4,7 @@ import Logger from "@server/logging/Logger"; import type { AuthenticationProvider } from "@server/models"; import { ExternalGroup, Group, GroupUser } from "@server/models"; import type { User, Team } from "@server/models"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import type { ExternalGroupData } from "@server/utils/GroupSyncProvider"; interface Props { @@ -32,15 +32,15 @@ interface GroupSyncResult { * groups. Upserts ExternalGroup records, auto-creates Group records when * needed, and manages GroupUser memberships. * - * @param ctx - API context with transaction. + * @param ctx - context with transaction. * @param props - sync parameters. * @returns result summary. */ async function groupsSyncer( - ctx: APIContext, + ctx: Context, { user, team, authenticationProvider, externalGroups }: Props ): Promise { - const { transaction } = ctx.state; + const { transaction } = ctx; const result: GroupSyncResult = { groupsCreated: 0, membershipsAdded: 0, diff --git a/server/commands/personalCollectionLoader.ts b/server/commands/personalCollectionLoader.ts index 692d7b9f40..daba742c3a 100644 --- a/server/commands/personalCollectionLoader.ts +++ b/server/commands/personalCollectionLoader.ts @@ -1,24 +1,24 @@ import { PersonalCollectionId } from "@shared/constants"; -import { createContext } from "@server/context"; +import { withTransaction } from "@server/context"; import { Collection } from "@server/models"; import { authorize } from "@server/policies"; import { sequelize } from "@server/storage/database"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; /** * Loads the personal collection of the acting user, and creates it when the * user does not have one yet. * - * @param ctx the API context containing the acting user. + * @param ctx the context containing the acting user. * @returns the personal collection, with the memberships of the user loaded. * @throws AuthorizationError when the collection does not exist and the user * may not create it. */ export default async function personalCollectionLoader( - ctx: APIContext + ctx: Context ): Promise { - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const existing = await Collection.findPersonal(user, { transaction }); if (existing) { @@ -33,14 +33,7 @@ export default async function personalCollectionLoader( // The creation lock is only held inside a transaction. return sequelize.transaction((innerTransaction) => - Collection.findOrCreatePersonal( - createContext({ - user, - authType: ctx.state.auth.type, - ip: ctx.context.ip, - transaction: innerTransaction, - }) - ) + Collection.findOrCreatePersonal(withTransaction(ctx, innerTransaction)) ); } @@ -49,7 +42,7 @@ export default async function personalCollectionLoader( * the acting user, which is created when it does not exist yet. Other values * are returned unchanged. * - * @param ctx the API context containing the acting user. + * @param ctx the context containing the acting user. * @param collectionId the requested collectionId. * @returns the resolved collectionId. * @throws AuthorizationError when the collection does not exist and the user @@ -57,7 +50,7 @@ export default async function personalCollectionLoader( */ export async function resolvePersonalCollectionId< T extends string | null | undefined, ->(ctx: APIContext, collectionId: T): Promise { +>(ctx: Context, collectionId: T): Promise { return collectionId === PersonalCollectionId ? (await personalCollectionLoader(ctx)).id : collectionId; diff --git a/server/commands/pinCreator.test.ts b/server/commands/pinCreator.test.ts index 79f8d0e46c..7a2d0bbf05 100644 --- a/server/commands/pinCreator.test.ts +++ b/server/commands/pinCreator.test.ts @@ -1,6 +1,6 @@ import { Event } from "@server/models"; import { buildDocument, buildUser } from "@server/test/factories"; -import { withAPIContext } from "@server/test/support"; +import { withContext } from "@server/test/support"; import pinCreator from "./pinCreator"; describe("pinCreator", () => { @@ -11,7 +11,7 @@ describe("pinCreator", () => { teamId: user.teamId, }); - const pin = await withAPIContext(user, (ctx) => + const pin = await withContext(user, (ctx) => pinCreator({ ctx, user, @@ -37,7 +37,7 @@ describe("pinCreator", () => { teamId: user.teamId, }); - const pin = await withAPIContext(user, (ctx) => + const pin = await withContext(user, (ctx) => pinCreator({ ctx, user, diff --git a/server/commands/pinCreator.ts b/server/commands/pinCreator.ts index e0ed518cf7..02b26e9e9e 100644 --- a/server/commands/pinCreator.ts +++ b/server/commands/pinCreator.ts @@ -3,11 +3,11 @@ import type { WhereOptions } from "sequelize"; import { Sequelize, Op } from "sequelize"; import type { User } from "@server/models"; import { Pin } from "@server/models"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; type Props = { /** The request context */ - ctx: APIContext; + ctx: Context; /** The user creating the pin */ user: User; /** The document to pin */ @@ -33,7 +33,7 @@ export default async function pinCreator({ ...rest }: Props): Promise { let { index } = rest; - const { transaction } = ctx.context; + const { transaction } = ctx; const where: WhereOptions = { teamId: user.teamId, ...(collectionId ? { collectionId } : { collectionId: { [Op.is]: null } }), diff --git a/server/commands/starCreator.test.ts b/server/commands/starCreator.test.ts index 31b34f8fdc..e371bd4293 100644 --- a/server/commands/starCreator.test.ts +++ b/server/commands/starCreator.test.ts @@ -1,6 +1,6 @@ import { Star, Event } from "@server/models"; import { buildDocument, buildUser } from "@server/test/factories"; -import { withAPIContext } from "@server/test/support"; +import { withContext } from "@server/test/support"; import starCreator from "./starCreator"; describe("starCreator", () => { @@ -11,7 +11,7 @@ describe("starCreator", () => { teamId: user.teamId, }); - const star = await withAPIContext(user, (ctx) => + const star = await withContext(user, (ctx) => starCreator({ ctx, documentId: document.id, @@ -42,7 +42,7 @@ describe("starCreator", () => { index: "P", }); - const star = await withAPIContext(user, (ctx) => + const star = await withContext(user, (ctx) => starCreator({ ctx, documentId: document.id, diff --git a/server/commands/starCreator.ts b/server/commands/starCreator.ts index a969282a1b..7553fe8238 100644 --- a/server/commands/starCreator.ts +++ b/server/commands/starCreator.ts @@ -3,7 +3,7 @@ import type { WhereOptions } from "sequelize"; import { Sequelize } from "sequelize"; import type { User } from "@server/models"; import { Star } from "@server/models"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; type Props = { /** The user creating the star */ @@ -15,7 +15,7 @@ type Props = { /** The sorted index for the star in the sidebar If no index is provided then it will be at the end */ index?: string; /** The request context */ - ctx: APIContext; + ctx: Context; }; /** @@ -48,7 +48,7 @@ export default async function starCreator({ Sequelize.literal('"star"."index" collate "C"'), ["updatedAt", "DESC"], ], - transaction: ctx.state.transaction, + transaction: ctx.transaction, }); // create a star at the beginning of the list diff --git a/server/commands/subscriptionCreator.ts b/server/commands/subscriptionCreator.ts index dc11385c8f..3716f03e16 100644 --- a/server/commands/subscriptionCreator.ts +++ b/server/commands/subscriptionCreator.ts @@ -4,11 +4,11 @@ import { createContext } from "@server/context"; import type { Document, User } from "@server/models"; import { Subscription, Event } from "@server/models"; import { sequelize } from "@server/storage/database"; -import type { APIContext, DocumentEvent, RevisionEvent } from "@server/types"; +import type { Context, DocumentEvent, RevisionEvent } from "@server/types"; type Props = { /** The request context, which also contains the user creating the subscription */ - ctx: APIContext; + ctx: Context; /** The document to subscribe to */ documentId?: string; /** The collection to subscribe to */ @@ -34,7 +34,7 @@ export default async function subscriptionCreator({ event, resubscribe = true, }: Props): Promise { - const { user } = ctx.state.auth; + const { user } = ctx.auth; let rows: SubscriptionRow[]; const now = new Date(); @@ -53,7 +53,7 @@ export default async function subscriptionCreator({ now, }, type: QueryTypes.SELECT, - transaction: ctx.state.transaction, + transaction: ctx.transaction, } ); } else if (collectionId) { @@ -71,7 +71,7 @@ export default async function subscriptionCreator({ now, }, type: QueryTypes.SELECT, - transaction: ctx.state.transaction, + transaction: ctx.transaction, } ); } else { diff --git a/server/commands/teamCreator.ts b/server/commands/teamCreator.ts index 0b16cd201a..8c62db9cea 100644 --- a/server/commands/teamCreator.ts +++ b/server/commands/teamCreator.ts @@ -1,7 +1,7 @@ import type { InferCreationAttributes } from "sequelize"; import { traceFunction } from "@server/logging/tracing"; import { Team } from "@server/models"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; type Props = { /** The displayed name of the team */ @@ -22,7 +22,7 @@ type Props = { }; async function teamCreator( - ctx: APIContext, + ctx: Context, { name, subdomain, avatarUrl, authenticationProviders }: Props ): Promise { if (!avatarUrl?.startsWith("http")) { @@ -30,7 +30,7 @@ async function teamCreator( } const availableSubdomain = await Team.findAvailableSubdomain(subdomain, { - transaction: ctx.state.transaction, + transaction: ctx.transaction, }); return await Team.createWithCtx( ctx, diff --git a/server/commands/teamProvisioner.ts b/server/commands/teamProvisioner.ts index 44d3bbb568..4a0019c6f9 100644 --- a/server/commands/teamProvisioner.ts +++ b/server/commands/teamProvisioner.ts @@ -13,7 +13,7 @@ import { retryOnUniqueConstraintError, sequelize, } from "@server/storage/database"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; type TeamProvisionerResult = { team: Team; @@ -45,7 +45,7 @@ type Props = { }; async function teamProvisioner( - ctx: APIContext, + ctx: Context, { teamId, name, domain, subdomain, avatarUrl, authenticationProvider }: Props ): Promise { const where = teamId diff --git a/server/commands/teamUpdater.test.ts b/server/commands/teamUpdater.test.ts index 4274ff087c..aca609d3b6 100644 --- a/server/commands/teamUpdater.test.ts +++ b/server/commands/teamUpdater.test.ts @@ -5,7 +5,7 @@ import { randomString } from "@shared/random"; import { CommentingAccess, Plan, TeamPreference } from "@shared/types"; import { Team } from "@server/models"; import { buildAdmin, buildTeam, buildUser } from "@server/test/factories"; -import { setCloudHosted, withAPIContext } from "@server/test/support"; +import { setCloudHosted, withContext } from "@server/test/support"; import teamUpdater from "./teamUpdater"; describe("teamUpdater", () => { @@ -27,7 +27,7 @@ describe("teamUpdater", () => { team, user, run: () => - withAPIContext(user, (ctx) => + withContext(user, (ctx) => teamUpdater(ctx, { params: { preferences: { [TeamPreference.DefaultShareExpiryDays]: days }, @@ -78,7 +78,7 @@ describe("teamUpdater", () => { const newValue = CommentingAccess.None; - const updatedTeam = await withAPIContext(user, (ctx) => + const updatedTeam = await withContext(user, (ctx) => teamUpdater(ctx, { params: { preferences: { @@ -104,7 +104,7 @@ describe("teamUpdater", () => { await team.save(); // Try to set the same value again - const updatedTeam = await withAPIContext(user, (ctx) => + const updatedTeam = await withContext(user, (ctx) => teamUpdater(ctx, { params: { preferences: { @@ -134,7 +134,7 @@ describe("teamUpdater", () => { await team.save(); // Pass an object with the same values (but different reference) - const updatedTeam = await withAPIContext(user, (ctx) => + const updatedTeam = await withContext(user, (ctx) => teamUpdater(ctx, { params: { preferences: { @@ -166,7 +166,7 @@ describe("teamUpdater", () => { team.setPreference(TeamPreference.ViewersCanExport, true); await team.save(); - const updatedTeam = await withAPIContext(user, (ctx) => + const updatedTeam = await withContext(user, (ctx) => teamUpdater(ctx, { params: { preferences: { @@ -194,7 +194,7 @@ describe("teamUpdater", () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); - const updatedTeam = await withAPIContext(user, (ctx) => + const updatedTeam = await withContext(user, (ctx) => teamUpdater(ctx, { params: { name: "Updated Team Name" }, user, @@ -214,7 +214,7 @@ describe("teamUpdater", () => { const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); - const updatedTeam = await withAPIContext(user, (ctx) => + const updatedTeam = await withContext(user, (ctx) => teamUpdater(ctx, { params: { subdomain }, user, @@ -232,7 +232,7 @@ describe("teamUpdater", () => { const user = await buildUser({ teamId: team.id }); await expect( - withAPIContext(user, (ctx) => + withContext(user, (ctx) => teamUpdater(ctx, { params: { subdomain }, user, diff --git a/server/commands/teamUpdater.ts b/server/commands/teamUpdater.ts index 155ed890ed..83e64e143e 100644 --- a/server/commands/teamUpdater.ts +++ b/server/commands/teamUpdater.ts @@ -5,7 +5,7 @@ import { ValidationError } from "@server/errors"; import type { User } from "@server/models"; import { Collection, Team, TeamDomain } from "@server/models"; import { authorize } from "@server/policies"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; type Props = { params: Partial> & { allowedDomains?: string[] }; @@ -13,7 +13,7 @@ type Props = { team: Team; }; -const teamUpdater = async (ctx: APIContext, { params, user, team }: Props) => { +const teamUpdater = async (ctx: Context, { params, user, team }: Props) => { const { allowedDomains, preferences, subdomain, ...attributes } = params; team.fill(attributes); @@ -25,7 +25,7 @@ const teamUpdater = async (ctx: APIContext, { params, user, team }: Props) => { teamId: team.id, ownerId: null, }, - transaction: ctx.state.transaction, + transaction: ctx.transaction, }); if (!collection) { @@ -40,7 +40,7 @@ const teamUpdater = async (ctx: APIContext, { params, user, team }: Props) => { const existing = await Team.findOne({ where: { subdomain: newSubdomain }, paranoid: false, - transaction: ctx.state.transaction, + transaction: ctx.transaction, }); if (existing) { @@ -54,7 +54,7 @@ const teamUpdater = async (ctx: APIContext, { params, user, team }: Props) => { if (allowedDomains !== undefined) { const existingAllowedDomains = await TeamDomain.findAll({ where: { teamId: team.id }, - transaction: ctx.state.transaction, + transaction: ctx.transaction, }); // Only keep existing domains if they are still in the list of allowed domains diff --git a/server/commands/userInviter.test.ts b/server/commands/userInviter.test.ts index 25f75af5e4..a00ce409a2 100644 --- a/server/commands/userInviter.test.ts +++ b/server/commands/userInviter.test.ts @@ -2,13 +2,13 @@ import { faker } from "@faker-js/faker"; import { UserRole } from "@shared/types"; import { buildTeam, buildUser } from "@server/test/factories"; import userInviter from "./userInviter"; -import { withAPIContext } from "@server/test/support"; +import { withContext } from "@server/test/support"; import { TeamDomain } from "@server/models"; describe("userInviter", () => { it("should return sent invites", async () => { const user = await buildUser(); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => userInviter(ctx, { invites: [ { @@ -24,7 +24,7 @@ describe("userInviter", () => { it("should filter empty invites", async () => { const user = await buildUser(); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => userInviter(ctx, { invites: [ { @@ -48,7 +48,7 @@ describe("userInviter", () => { createdById: user.id, }); - await withAPIContext(user, (ctx) => + await withContext(user, (ctx) => expect( userInviter(ctx, { invites: [ @@ -74,7 +74,7 @@ describe("userInviter", () => { createdById: user.id, }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => userInviter(ctx, { invites: [ { @@ -92,7 +92,7 @@ describe("userInviter", () => { it("should filter obviously bunk emails", async () => { const user = await buildUser(); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => userInviter(ctx, { invites: [ { @@ -108,7 +108,7 @@ describe("userInviter", () => { it("should not send duplicates", async () => { const user = await buildUser(); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => userInviter(ctx, { invites: [ { @@ -130,7 +130,7 @@ describe("userInviter", () => { it("should not send invites to existing team members", async () => { const email = faker.internet.email().toLowerCase(); const user = await buildUser({ email }); - const response = await withAPIContext(user, (ctx) => + const response = await withContext(user, (ctx) => userInviter(ctx, { invites: [ { diff --git a/server/commands/userInviter.ts b/server/commands/userInviter.ts index a14c404b63..908c25dee6 100644 --- a/server/commands/userInviter.ts +++ b/server/commands/userInviter.ts @@ -5,7 +5,7 @@ import env from "@server/env"; import Logger from "@server/logging/Logger"; import { User, Team } from "@server/models"; import { UserFlag } from "@server/models/User"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { DomainNotAllowedError } from "@server/errors"; import { authorize, can } from "@server/policies"; @@ -21,14 +21,14 @@ type Props = { }; export default async function userInviter( - ctx: APIContext, + ctx: Context, { invites, suppressEmail }: Props ): Promise<{ sent: Invite[]; unsent: Invite[]; users: User[]; }> { - const { user } = ctx.state.auth; + const { user } = ctx.auth; const team = await Team.findByPk(user.teamId, { rejectOnEmpty: true }); if (invites.some((invite) => invite.role === UserRole.Guest)) { diff --git a/server/commands/userProvisioner.ts b/server/commands/userProvisioner.ts index dc85d013ae..8f7683aab8 100644 --- a/server/commands/userProvisioner.ts +++ b/server/commands/userProvisioner.ts @@ -15,7 +15,7 @@ import { UserAuthentication, } from "@server/models"; import { sequelize } from "@server/storage/database"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { UserFlag } from "@server/models/User"; import UploadUserAvatarTask from "@server/queues/tasks/UploadUserAvatarTask"; @@ -67,7 +67,7 @@ type Props = { }; export default async function userProvisioner( - ctx: APIContext, + ctx: Context, { name, email, diff --git a/server/context.test.ts b/server/context.test.ts new file mode 100644 index 0000000000..692401c485 --- /dev/null +++ b/server/context.test.ts @@ -0,0 +1,37 @@ +import { sequelize } from "@server/storage/database"; +import { buildUser } from "@server/test/factories"; +import { AuthenticationType } from "@server/types"; +import { createContext, withTransaction, withUser } from "./context"; + +describe("withUser", () => { + it("should act as the given user and keep the other fields", async () => { + const original = await buildUser(); + const user = await buildUser(); + const ctx = createContext({ + user: original, + authType: AuthenticationType.API, + ip: "127.0.0.1", + }); + + const derived = withUser(ctx, user); + expect(derived.auth.user).toBe(user); + expect(derived.auth.type).toEqual(AuthenticationType.API); + expect(derived.ip).toEqual("127.0.0.1"); + expect(ctx.auth.user).toBe(original); + }); +}); + +describe("withTransaction", () => { + it("should run in the given transaction and keep the other fields", async () => { + const user = await buildUser(); + const ctx = createContext({ user, ip: "127.0.0.1" }); + + await sequelize.transaction(async (transaction) => { + const derived = withTransaction(ctx, transaction); + expect(derived.transaction).toBe(transaction); + expect(derived.auth).toBe(ctx.auth); + expect(derived.ip).toEqual("127.0.0.1"); + expect(ctx.transaction).toBeUndefined(); + }); + }); +}); diff --git a/server/context.ts b/server/context.ts index 910465e9e5..e0f48358da 100644 --- a/server/context.ts +++ b/server/context.ts @@ -1,10 +1,26 @@ import type { Transaction } from "sequelize"; import type { User } from "@server/models"; -import type { APIContext } from "@server/types"; +import type { AppContext, Authentication, Context } from "@server/types"; import { AuthenticationType } from "@server/types"; +/** The fields of a context that model hooks read from query options. */ +export interface HookContextFields { + /** The authentication for the actor performing the mutation. */ + auth: Authentication; + /** The transaction the mutation runs in. */ + transaction?: Transaction; + /** The IP address of the actor. */ + ip?: string; +} + /** - * Factory to create a new API context. + * Factory to create a new context. + * + * @param options.user the actor for the context. + * @param options.authType the type of authentication used by the actor. + * @param options.ip the IP address of the actor, defaults to the last active IP. + * @param options.transaction the transaction for database mutations. + * @returns the context. */ export function createContext({ user, @@ -17,16 +33,50 @@ export function createContext({ ip?: string | null; transaction?: Transaction; }) { - const auth = { user, type: authType }; return { - state: { - auth, - transaction, - }, - context: { - auth, - ip: ip ?? user?.lastActiveIp, - transaction, - }, - } as APIContext; + auth: { user, type: authType }, + ip: ip ?? user?.lastActiveIp, + transaction, + } as Context; +} + +/** + * Derives a context from an existing one that acts as the given user. + * + * @param ctx the context to derive from. + * @param user the actor for the new context. + * @returns the derived context. + */ +export function withUser(ctx: AppContext | Context, user?: User) { + return createContext({ + user, + authType: ctx.auth?.type, + ip: ctx.ip, + transaction: ctx.transaction, + }); +} + +/** + * Derives a context from an existing one that runs in the given transaction. + * + * @param ctx the context to derive from. + * @param transaction the transaction for the new context. + * @returns the derived context. + */ +export function withTransaction(ctx: Context, transaction: Transaction) { + return { auth: ctx.auth, ip: ctx.ip, transaction } as Context; +} + +/** + * Extracts the fields that model hooks read from a context, for use as query options. + * + * @param ctx the context to read from. + * @returns the hook context fields. + */ +export function toHookContext(ctx: Context): HookContextFields { + return { + auth: ctx.auth, + transaction: ctx.transaction, + ip: ctx.ip, + }; } diff --git a/server/logging/sentry.ts b/server/logging/sentry.ts index ec5f3e85bd..0d6e65b326 100644 --- a/server/logging/sentry.ts +++ b/server/logging/sentry.ts @@ -23,17 +23,17 @@ export function requestErrorHandler(error: any, ctx: AppContext) { scope.setTag("request_id", requestId as string); } - const authType = ctx.state?.auth?.type ?? undefined; + const authType = ctx.auth?.type ?? undefined; if (authType) { scope.setTag("auth_type", authType); } - const teamId = ctx.state?.auth?.user?.teamId ?? undefined; + const teamId = ctx.auth?.user?.teamId ?? undefined; if (teamId) { scope.setTag("team_id", teamId); } - const userId = ctx.state?.auth?.user?.id ?? undefined; + const userId = ctx.auth?.user?.id ?? undefined; if (userId) { scope.setUser({ id: userId, diff --git a/server/mcp/tools/attachments.ts b/server/mcp/tools/attachments.ts index 5925563bb0..5e0a83d54c 100644 --- a/server/mcp/tools/attachments.ts +++ b/server/mcp/tools/attachments.ts @@ -60,7 +60,7 @@ export function attachmentTools(server: McpServer, scopes: string[]) { async ({ contentType, name, size }, extra) => { try { const ctx = buildAPIContext(extra); - const { user } = ctx.state.auth; + const { user } = ctx.auth; const team = await Team.findByPk(user.teamId, { rejectOnEmpty: true, }); diff --git a/server/mcp/tools/collections.ts b/server/mcp/tools/collections.ts index e2a2766e82..cb156c4045 100644 --- a/server/mcp/tools/collections.ts +++ b/server/mcp/tools/collections.ts @@ -200,7 +200,7 @@ export function collectionTools(server: McpServer, scopes: string[]) { withTracing("create_collection", async (input, context) => { try { const ctx = buildAPIContext(context); - const { user } = ctx.state.auth; + const { user } = ctx.auth; const team = await Team.findByPk(user.teamId, { rejectOnEmpty: true, }); @@ -274,7 +274,7 @@ export function collectionTools(server: McpServer, scopes: string[]) { withTracing("update_collection", async (input, context) => { try { const ctx = buildAPIContext(context); - const { user } = ctx.state.auth; + const { user } = ctx.auth; const collection = await Collection.findByPk(input.id, { userId: user.id, @@ -360,11 +360,11 @@ export function collectionTools(server: McpServer, scopes: string[]) { async ({ id, archive, reason }, context) => { try { const ctx = buildAPIContext(context); - const { user } = ctx.state.auth; + const { user } = ctx.auth; await sequelize.transaction(async (transaction) => { - ctx.state.transaction = transaction; - ctx.context.transaction = transaction; + ctx.transaction = transaction; + ctx.transaction = transaction; const collection = await Collection.findByPk(id, { userId: user.id, diff --git a/server/mcp/tools/comments.ts b/server/mcp/tools/comments.ts index 0dea86d6d4..808879e546 100644 --- a/server/mcp/tools/comments.ts +++ b/server/mcp/tools/comments.ts @@ -196,14 +196,14 @@ export function commentTools(server: McpServer, scopes: string[]) { ) => { try { const ctx = buildAPIContext(context); - const { user } = ctx.state.auth; + const { user } = ctx.auth; const data = commentParser.parse(text).toJSON(); const commentId = uuidv4(); const comment = await sequelize.transaction(async (transaction) => { - ctx.state.transaction = transaction; - ctx.context.transaction = transaction; + ctx.transaction = transaction; + ctx.transaction = transaction; let document = await Document.findByPk(documentId, { userId: user.id, @@ -305,7 +305,7 @@ export function commentTools(server: McpServer, scopes: string[]) { withTracing("update_comment", async ({ id, text, status }, context) => { try { const ctx = buildAPIContext(context); - const { user } = ctx.state.auth; + const { user } = ctx.auth; const comment = await Comment.findByPk(id, { rejectOnEmpty: true, @@ -381,7 +381,7 @@ export function commentTools(server: McpServer, scopes: string[]) { withTracing("delete_comment", async ({ id }, context) => { try { const ctx = buildAPIContext(context); - const { user } = ctx.state.auth; + const { user } = ctx.auth; const comment = await Comment.findByPk(id, { rejectOnEmpty: true, diff --git a/server/mcp/tools/documents.ts b/server/mcp/tools/documents.ts index bd142da4e2..f00263d699 100644 --- a/server/mcp/tools/documents.ts +++ b/server/mcp/tools/documents.ts @@ -431,7 +431,7 @@ export function documentTools(server: McpServer, scopes: string[]) { try { const { collectionId, parentDocumentId, templateId } = input; const ctx = buildAPIContext(context); - const { user } = ctx.state.auth; + const { user } = ctx.auth; const { collection, parentDocument } = await authorizeDocumentCreate( ctx, @@ -466,12 +466,12 @@ export function documentTools(server: McpServer, scopes: string[]) { publish: input.publish !== false, collectionId: collection?.id, parentDocumentId: parentDocument?.id, - authType: ctx.state.auth.type, - ip: ctx.context.ip, + authType: ctx.auth.type, + ip: ctx.ip, }) : await sequelize.transaction(async (transaction) => { - ctx.state.transaction = transaction; - ctx.context.transaction = transaction; + ctx.transaction = transaction; + ctx.transaction = transaction; return documentCreator(ctx, { title: input.title, @@ -545,11 +545,11 @@ export function documentTools(server: McpServer, scopes: string[]) { withTracing("move_document", async (input, context) => { try { const ctx = buildAPIContext(context); - const { user } = ctx.state.auth; + const { user } = ctx.auth; const document = await sequelize.transaction(async (transaction) => { - ctx.state.transaction = transaction; - ctx.context.transaction = transaction; + ctx.transaction = transaction; + ctx.transaction = transaction; const document = await Document.findByPk(input.id, { userId: user.id, @@ -729,12 +729,12 @@ export function documentTools(server: McpServer, scopes: string[]) { } const ctx = buildAPIContext(context); - const { user } = ctx.state.auth; + const { user } = ctx.auth; // Returns null when the update persisted nothing. const updated = await sequelize.transaction(async (transaction) => { - ctx.state.transaction = transaction; - ctx.context.transaction = transaction; + ctx.transaction = transaction; + ctx.transaction = transaction; const document = await Document.findByPk(input.id, { userId: user.id, @@ -881,11 +881,11 @@ export function documentTools(server: McpServer, scopes: string[]) { async ({ id, archive, reason }, context) => { try { const ctx = buildAPIContext(context); - const { user } = ctx.state.auth; + const { user } = ctx.auth; await sequelize.transaction(async (transaction) => { - ctx.state.transaction = transaction; - ctx.context.transaction = transaction; + ctx.transaction = transaction; + ctx.transaction = transaction; const document = await Document.findByPk(id, { userId: user.id, @@ -940,11 +940,11 @@ export function documentTools(server: McpServer, scopes: string[]) { withTracing("restore_document", async ({ id, collectionId }, context) => { try { const ctx = buildAPIContext(context); - const { user } = ctx.state.auth; + const { user } = ctx.auth; const document = await sequelize.transaction(async (transaction) => { - ctx.state.transaction = transaction; - ctx.context.transaction = transaction; + ctx.transaction = transaction; + ctx.transaction = transaction; const document = await Document.findByPk(id, { userId: user.id, diff --git a/server/mcp/util.ts b/server/mcp/util.ts index 9645fd23a3..ea6e3ce882 100644 --- a/server/mcp/util.ts +++ b/server/mcp/util.ts @@ -6,7 +6,7 @@ import { Collection, Share, type Team, type User } from "@server/models"; import { addTags } from "@server/logging/tracer"; import { traceFunction } from "@server/logging/tracing"; import { can } from "@server/policies"; -import { type APIContext, AuthenticationType } from "@server/types"; +import { type Context, AuthenticationType } from "@server/types"; import type { NavigationNode } from "@shared/types"; interface McpContext { @@ -24,11 +24,11 @@ export function getActorFromContext(context: McpContext) { } /** - * Constructs a minimal APIContext from the MCP request context for use with + * Constructs a minimal Context from the MCP request context for use with * server commands that require a Koa-style context. * * @param context - the MCP request context. - * @returns a partial APIContext suitable for command functions. + * @returns a partial Context suitable for command functions. */ export function buildAPIContext(context: McpContext) { const user = context.http?.authInfo?.extra?.user as User; @@ -42,11 +42,11 @@ export function buildAPIContext(context: McpContext) { }; return { - state: { auth }, - context: { auth, ip }, + auth, + ip, request: { secure: env.URL.startsWith("https://") }, cookies: { get: () => undefined, set: () => undefined }, - } as unknown as APIContext; + } as unknown as Context; } /** diff --git a/server/middlewares/apexAuthRedirect.ts b/server/middlewares/apexAuthRedirect.ts index 466a9963f6..5409b2d69e 100644 --- a/server/middlewares/apexAuthRedirect.ts +++ b/server/middlewares/apexAuthRedirect.ts @@ -3,7 +3,7 @@ import { toError } from "@shared/utils/error"; import { parseDomain } from "@shared/utils/domains"; import Logger from "@server/logging/Logger"; import { Team } from "@server/models"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; /** * An authentication middleware that should be used on routes that return from external auth flows @@ -19,17 +19,17 @@ export default function apexAuthRedirect({ getErrorPath, }: { /** Get the team ID for the current request */ - getTeamId: (ctx: APIContext) => string | null | undefined; + getTeamId: (ctx: Context) => string | null | undefined; /** Get the redirect URL for the given team ID */ - getRedirectPath: (ctx: APIContext, team: Team) => string; + getRedirectPath: (ctx: Context, team: Team) => string; /** Get the error URL for the current request */ - getErrorPath: (ctx: APIContext) => string; + getErrorPath: (ctx: Context) => string; }) { return async function apexAuthRedirectMiddleware( - ctx: APIContext, + ctx: Context, next: Next ) { - const { user } = ctx.state.auth; + const { user } = ctx.auth; if (user) { return next(); } diff --git a/server/middlewares/apexRedirect.ts b/server/middlewares/apexRedirect.ts index 589588e172..1499af2aed 100644 --- a/server/middlewares/apexRedirect.ts +++ b/server/middlewares/apexRedirect.ts @@ -1,7 +1,8 @@ -import type { Context, Next } from "koa"; +import type { Next } from "koa"; +import type { AppContext } from "@server/types"; export default function apexRedirect() { - return async function apexRedirectMiddleware(ctx: Context, next: Next) { + return async function apexRedirectMiddleware(ctx: AppContext, next: Next) { if (ctx.headers.host === "getoutline.com") { ctx.redirect(`https://www.${ctx.headers.host}${ctx.path}`); } else { diff --git a/server/middlewares/apiContext.ts b/server/middlewares/apiContext.ts deleted file mode 100644 index 5da5547442..0000000000 --- a/server/middlewares/apiContext.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type { Next } from "koa"; -import type { AppContext } from "@server/types"; - -/** - * Middleware that defines the `ctx.context` getter, which provides the current - * request's auth, transaction, and IP to database mutation helpers like - * `saveWithCtx` and `destroyWithCtx`. - * - * @returns The middleware function. - */ -export function apiContext() { - return async function apiContextMiddleware(ctx: AppContext, next: Next) { - Object.defineProperty(ctx, "context", { - configurable: true, - get() { - return { - auth: ctx.state.auth, - transaction: ctx.state.transaction, - ip: ctx.request.ip, - }; - }, - }); - - return next(); - }; -} diff --git a/server/middlewares/appHeaders.ts b/server/middlewares/appHeaders.ts index 4095359882..3bd2b612ee 100644 --- a/server/middlewares/appHeaders.ts +++ b/server/middlewares/appHeaders.ts @@ -1,5 +1,6 @@ -import type { Context, Next } from "koa"; +import type { Next } from "koa"; import env from "@server/env"; +import type { AppContext } from "@server/types"; /** * Middleware that sets the response headers that are needed when serving the @@ -18,7 +19,7 @@ export default function appHeaders() { const timingAllowOrigin = timingOrigins.join(", "); - return async function appHeadersMiddleware(ctx: Context, next: Next) { + return async function appHeadersMiddleware(ctx: AppContext, next: Next) { ctx.set("Timing-Allow-Origin", timingAllowOrigin); // Allow the JS Self-Profiling API to be used for local performance work. diff --git a/server/middlewares/authentication.test.ts b/server/middlewares/authentication.test.ts index c52c1f3ff1..49d56599a2 100644 --- a/server/middlewares/authentication.test.ts +++ b/server/middlewares/authentication.test.ts @@ -1,4 +1,3 @@ -import type { DefaultState } from "koa"; import { errToString } from "@shared/utils/error"; import { randomString } from "@shared/random"; import { Scope } from "@shared/types"; @@ -16,61 +15,49 @@ import auth from "./authentication"; describe("Authentication middleware", () => { describe("with session JWT", () => { it("should authenticate with correct session token", async () => { - const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth(); - await authMiddleware( - buildMockContext({ - request: { - get: vi.fn(() => `Bearer ${user.getSessionToken()}`), - }, - state, - cache: {}, - }), - vi.fn() - ); - expect(state.auth.user.id).toEqual(user.id); + const ctx = buildMockContext({ + request: { + get: vi.fn(() => `Bearer ${user.getSessionToken()}`), + }, + cache: {}, + }); + await authMiddleware(ctx, vi.fn()); + expect(ctx.auth?.user.id).toEqual(user.id); }); it("should return error with invalid session token", async () => { - const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth(); try { - await authMiddleware( - buildMockContext({ - request: { - get: vi.fn(() => `Bearer ${user.getSessionToken()}error`), - }, - state, - cache: {}, - }), - vi.fn() - ); + const ctx = buildMockContext({ + request: { + get: vi.fn(() => `Bearer ${user.getSessionToken()}error`), + }, + cache: {}, + }); + await authMiddleware(ctx, vi.fn()); } catch (e) { expect(errToString(e)).toBe("Invalid token"); } }); it("should return error if AuthenticationType mismatches", async () => { - const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth({ type: AuthenticationType.API, }); try { - await authMiddleware( - buildMockContext({ - request: { - get: vi.fn(() => `Bearer ${user.getSessionToken()}`), - }, - state, - cache: {}, - }), - vi.fn() - ); + const ctx = buildMockContext({ + request: { + get: vi.fn(() => `Bearer ${user.getSessionToken()}`), + }, + cache: {}, + }); + await authMiddleware(ctx, vi.fn()); } catch (e) { expect(errToString(e)).toBe("Invalid authentication type"); } @@ -79,24 +66,19 @@ describe("Authentication middleware", () => { describe("with API key", () => { it("should authenticate user with valid API key", async () => { - const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth(); const key = await buildApiKey({ userId: user.id }); - await authMiddleware( - buildMockContext({ - request: { - get: vi.fn(() => `Bearer ${key.value}`), - }, - state, - cache: {}, - }), - vi.fn() - ); - expect(state.auth.user.id).toEqual(user.id); + const ctx = buildMockContext({ + request: { + get: vi.fn(() => `Bearer ${key.value}`), + }, + cache: {}, + }); + await authMiddleware(ctx, vi.fn()); + expect(ctx.auth?.user.id).toEqual(user.id); }); it("should authenticate with global read scope on read endpoints", async () => { - const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth(); const key = await buildApiKey({ @@ -104,23 +86,20 @@ describe("Authentication middleware", () => { scope: [Scope.Read], }); - await authMiddleware( - buildMockContext({ - originalUrl: "/api/auth.info", - request: { - url: "/auth.info", - get: vi.fn(() => `Bearer ${key.value}`), - }, - state, - cache: {}, - }), - vi.fn() - ); - expect(state.auth.user.id).toEqual(user.id); + const ctx = buildMockContext({ + originalUrl: "/api/auth.info", + request: { + url: "/auth.info", + get: vi.fn(() => `Bearer ${key.value}`), + }, + cache: {}, + }); + + await authMiddleware(ctx, vi.fn()); + expect(ctx.auth?.user.id).toEqual(user.id); }); it("should return 403 authorization error when scope does not match", async () => { - const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth(); const key = await buildApiKey({ @@ -129,18 +108,15 @@ describe("Authentication middleware", () => { }); try { - await authMiddleware( - buildMockContext({ - originalUrl: "/api/documents.create", - request: { - url: "/documents.create", - get: vi.fn(() => `Bearer ${key.value}`), - }, - state, - cache: {}, - }), - vi.fn() - ); + const ctx = buildMockContext({ + originalUrl: "/api/documents.create", + request: { + url: "/documents.create", + get: vi.fn(() => `Bearer ${key.value}`), + }, + cache: {}, + }); + await authMiddleware(ctx, vi.fn()); throw new Error("Expected error to be thrown"); } catch (e) { expect(e).toHaveProperty("status", 403); @@ -152,20 +128,16 @@ describe("Authentication middleware", () => { }); it("should return error with invalid API key", async () => { - const state = {} as DefaultState; const authMiddleware = auth(); try { - await authMiddleware( - buildMockContext({ - request: { - get: vi.fn(() => `Bearer ${randomString(38)}`), - }, - state, - cache: {}, - }), - vi.fn() - ); + const ctx = buildMockContext({ + request: { + get: vi.fn(() => `Bearer ${randomString(38)}`), + }, + cache: {}, + }); + await authMiddleware(ctx, vi.fn()); } catch (e) { expect(errToString(e)).toBe("Invalid API key"); } @@ -174,7 +146,6 @@ describe("Authentication middleware", () => { describe("with OAuth access token", () => { it("should authenticate user with valid OAuth access token", async () => { - const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth(); const authentication = await buildOAuthAuthentication({ @@ -182,23 +153,20 @@ describe("Authentication middleware", () => { scope: [Scope.Read], }); - await authMiddleware( - buildMockContext({ - originalUrl: "/api/users.info", - request: { - url: "/users.info", - get: vi.fn(() => `Bearer ${authentication.accessToken}`), - }, - state, - cache: {}, - }), - vi.fn() - ); - expect(state.auth.user.id).toEqual(user.id); + const ctx = buildMockContext({ + originalUrl: "/api/users.info", + request: { + url: "/users.info", + get: vi.fn(() => `Bearer ${authentication.accessToken}`), + }, + cache: {}, + }); + + await authMiddleware(ctx, vi.fn()); + expect(ctx.auth?.user.id).toEqual(user.id); }); it("should return error with invalid scope", async () => { - const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth(); const authentication = await buildOAuthAuthentication({ @@ -207,18 +175,15 @@ describe("Authentication middleware", () => { }); try { - await authMiddleware( - buildMockContext({ - originalUrl: "/api/documents.create", - request: { - url: "/documents.create", - get: vi.fn(() => `Bearer ${authentication.accessToken}`), - }, - state, - cache: {}, - }), - vi.fn() - ); + const ctx = buildMockContext({ + originalUrl: "/api/documents.create", + request: { + url: "/documents.create", + get: vi.fn(() => `Bearer ${authentication.accessToken}`), + }, + cache: {}, + }); + await authMiddleware(ctx, vi.fn()); } catch (e) { expect(errToString(e)).toContain( "does not have access to this resource" @@ -227,7 +192,6 @@ describe("Authentication middleware", () => { }); it("should return error with OAuth access token in body", async () => { - const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth(); const authentication = await buildOAuthAuthentication({ @@ -235,21 +199,18 @@ describe("Authentication middleware", () => { scope: [Scope.Read], }); try { - await authMiddleware( - buildMockContext({ - originalUrl: "/api/users.info", - request: { - url: "/users.info", - get: vi.fn(() => null), - body: { - token: authentication.accessToken, - }, + const ctx = buildMockContext({ + originalUrl: "/api/users.info", + request: { + url: "/users.info", + get: vi.fn(() => null), + body: { + token: authentication.accessToken, }, - state, - cache: {}, - }), - vi.fn() - ); + }, + cache: {}, + }); + await authMiddleware(ctx, vi.fn()); } catch (e) { expect(errToString(e)).toContain( "must be passed in the Authorization header" @@ -259,20 +220,16 @@ describe("Authentication middleware", () => { }); it("should return error message if no auth token is available", async () => { - const state = {} as DefaultState; const authMiddleware = auth(); try { - await authMiddleware( - buildMockContext({ - request: { - get: vi.fn(() => "error"), - }, - state, - cache: {}, - }), - vi.fn() - ); + const ctx = buildMockContext({ + request: { + get: vi.fn(() => "error"), + }, + cache: {}, + }); + await authMiddleware(ctx, vi.fn()); } catch (e) { expect(errToString(e)).toBe( 'Bad Authorization header format. Format is "Authorization: Bearer "' @@ -281,27 +238,22 @@ describe("Authentication middleware", () => { }); it("should allow passing session token in a cookie", async () => { - const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth(); - await authMiddleware( - buildMockContext({ - request: { - get: vi.fn(() => null), - }, - cookies: { - get: vi.fn(() => user.getSessionToken()), - }, - state, - cache: {}, - }), - vi.fn() - ); - expect(state.auth.user.id).toEqual(user.id); + const ctx = buildMockContext({ + request: { + get: vi.fn(() => null), + }, + cookies: { + get: vi.fn(() => user.getSessionToken()), + }, + cache: {}, + }); + await authMiddleware(ctx, vi.fn()); + expect(ctx.auth?.user.id).toEqual(user.id); }); it("should return error with session token as a GET param", async () => { - const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth(); @@ -314,7 +266,6 @@ describe("Authentication middleware", () => { token: user.getSessionToken(), }, }, - state, cache: {}, }), vi.fn() @@ -325,7 +276,6 @@ describe("Authentication middleware", () => { }); it("should return error with session token in body params", async () => { - const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth(); @@ -338,7 +288,6 @@ describe("Authentication middleware", () => { token: user.getSessionToken(), }, }, - state, cache: {}, }), vi.fn() @@ -349,7 +298,6 @@ describe("Authentication middleware", () => { }); it("should not accept transfer token as a GET param", async () => { - const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth(); @@ -362,7 +310,6 @@ describe("Authentication middleware", () => { token: user.getTransferToken(), }, }, - state, cache: {}, }), vi.fn() @@ -373,7 +320,6 @@ describe("Authentication middleware", () => { }); it("should not accept transfer token in the Authorization header", async () => { - const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth(); @@ -383,7 +329,6 @@ describe("Authentication middleware", () => { request: { get: vi.fn(() => `Bearer ${user.getTransferToken()}`), }, - state, cache: {}, }), vi.fn() @@ -392,7 +337,6 @@ describe("Authentication middleware", () => { }); it("should return an error for suspended users", async () => { - const state = {} as DefaultState; const admin = await buildAdmin(); const user = await buildUser({ suspendedAt: new Date(), @@ -402,16 +346,13 @@ describe("Authentication middleware", () => { let error; try { - await authMiddleware( - buildMockContext({ - request: { - get: vi.fn(() => `Bearer ${user.getSessionToken()}`), - }, - state, - cache: {}, - }), - vi.fn() - ); + const ctx = buildMockContext({ + request: { + get: vi.fn(() => `Bearer ${user.getSessionToken()}`), + }, + cache: {}, + }); + await authMiddleware(ctx, vi.fn()); } catch (err) { error = err; } @@ -423,7 +364,6 @@ describe("Authentication middleware", () => { }); it("should return an error for deleted team", async () => { - const state = {} as DefaultState; const team = await buildTeam(); const user = await buildUser({ teamId: team.id }); await team.destroy(); @@ -431,16 +371,13 @@ describe("Authentication middleware", () => { let error; try { - await authMiddleware( - buildMockContext({ - request: { - get: vi.fn(() => `Bearer ${user.getSessionToken()}`), - }, - state, - cache: {}, - }), - vi.fn() - ); + const ctx = buildMockContext({ + request: { + get: vi.fn(() => `Bearer ${user.getSessionToken()}`), + }, + cache: {}, + }); + await authMiddleware(ctx, vi.fn()); } catch (err) { error = err; } @@ -449,7 +386,6 @@ describe("Authentication middleware", () => { }); describe("with skip", () => { it("should ignore credentials when skip returns true", async () => { - const state = {} as DefaultState; const user = await buildUser(); const apiKey = await buildApiKey({ userId: user.id, @@ -460,43 +396,36 @@ describe("Authentication middleware", () => { optional: true, skip: (ctx) => !!ctx.query.sig, }); - await authMiddleware( - buildMockContext({ - request: { - get: vi.fn(() => `Bearer ${apiKey.value}`), - }, - query: { sig: "signature" }, - originalUrl: "/api/files.get?sig=signature", - state, - cache: {}, - }), - next - ); + const ctx = buildMockContext({ + request: { + get: vi.fn(() => `Bearer ${apiKey.value}`), + }, + query: { sig: "signature" }, + originalUrl: "/api/files.get?sig=signature", + cache: {}, + }); + await authMiddleware(ctx, next); expect(next).toHaveBeenCalled(); - expect(state.auth).toEqual({}); + expect(ctx.auth).toEqual({}); }); it("should authenticate when skip returns false", async () => { - const state = {} as DefaultState; const user = await buildUser(); const next = vi.fn(); const authMiddleware = auth({ optional: true, skip: (ctx) => !!ctx.query.sig, }); - await authMiddleware( - buildMockContext({ - request: { - get: vi.fn(() => `Bearer ${user.getSessionToken()}`), - }, - query: {}, - state, - cache: {}, - }), - next - ); + const ctx = buildMockContext({ + request: { + get: vi.fn(() => `Bearer ${user.getSessionToken()}`), + }, + query: {}, + cache: {}, + }); + await authMiddleware(ctx, next); expect(next).toHaveBeenCalled(); - expect(state.auth.user.id).toEqual(user.id); + expect(ctx.auth?.user.id).toEqual(user.id); }); }); }); diff --git a/server/middlewares/authentication.ts b/server/middlewares/authentication.ts index 89f0ad2643..e99f971ed2 100644 --- a/server/middlewares/authentication.ts +++ b/server/middlewares/authentication.ts @@ -55,7 +55,7 @@ type AuthInput = { export default function auth(options: AuthenticationOptions = {}) { return async function authMiddleware(ctx: AppContext, next: Next) { if (options.skip?.(ctx)) { - ctx.state.auth = {}; + ctx.auth = {}; return next(); } @@ -67,7 +67,7 @@ export default function auth(options: AuthenticationOptions = {}) { Promise.all([user.updateActiveAt(ctx), user.team?.updateActiveAt()]) ); - ctx.state.auth = { + ctx.auth = { user, token, type, @@ -89,7 +89,7 @@ export default function auth(options: AuthenticationOptions = {}) { // Credentials that are valid but insufficient are always surfaced, // otherwise the request would be silently downgraded to anonymous. if (options.optional && !(err instanceof httpErrors.Forbidden)) { - ctx.state.auth = {}; + ctx.auth = {}; } else { throw err; } diff --git a/server/middlewares/csp.ts b/server/middlewares/csp.ts index a00d757aba..edc23c426f 100644 --- a/server/middlewares/csp.ts +++ b/server/middlewares/csp.ts @@ -1,9 +1,10 @@ import crypto from "node:crypto"; -import type { Context, Next } from "koa"; +import type { Next } from "koa"; import helmet from "koa-helmet"; import { asyncNoop } from "es-toolkit"; import { uniq } from "es-toolkit/compat"; import env from "@server/env"; +import type { AppContext } from "@server/types"; const getBucketOrigins = (): string[] => { if (env.AWS_S3_ACCELERATE_URL) { @@ -59,7 +60,7 @@ interface CSPOptions { * @param ctx The Koa context of the current request. * @param sources The origins to allow. */ -export function allowScriptSrc(ctx: Context, sources: string[]) { +export function allowScriptSrc(ctx: AppContext, sources: string[]) { ctx.state.cspScriptSrc = [...(ctx.state.cspScriptSrc ?? []), ...sources]; } @@ -70,7 +71,7 @@ export function allowScriptSrc(ctx: Context, sources: string[]) { * @param ctx The Koa context of the current request. * @param sources The origins to allow. */ -export function allowStyleSrc(ctx: Context, sources: string[]) { +export function allowStyleSrc(ctx: AppContext, sources: string[]) { ctx.state.cspStyleSrc = [...(ctx.state.cspStyleSrc ?? []), ...sources]; } @@ -80,7 +81,7 @@ export function allowStyleSrc(ctx: Context, sources: string[]) { * * @param ctx The Koa context of the current request. */ -export function allowFraming(ctx: Context) { +export function allowFraming(ctx: AppContext) { ctx.state.cspAllowFraming = true; ctx.remove("X-Frame-Options"); } @@ -130,7 +131,7 @@ export default function createCSPMiddleware(options?: CSPOptions) { objectSrc.push(cloudFrontOrigin); } - return async function cspMiddleware(ctx: Context, next: Next) { + return async function cspMiddleware(ctx: AppContext, next: Next) { ctx.state.cspNonce = crypto.randomBytes(16).toString("hex"); ctx.state.cspScriptSrc = []; ctx.state.cspStyleSrc = []; diff --git a/server/middlewares/feature.ts b/server/middlewares/feature.ts index 120db72421..0efdcca619 100644 --- a/server/middlewares/feature.ts +++ b/server/middlewares/feature.ts @@ -1,7 +1,7 @@ import type { Next } from "koa"; import { CommentingAccess, TeamPreference } from "@shared/types"; import { ValidationError } from "@server/errors"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; /** * Middleware to check if a feature is enabled for the team. @@ -10,8 +10,8 @@ import type { APIContext } from "@server/types"; * @returns The middleware function */ export function feature(preference: TeamPreference) { - return async function featureEnabledMiddleware(ctx: APIContext, next: Next) { - if (!ctx.state.auth.user.team.getPreference(preference)) { + return async function featureEnabledMiddleware(ctx: Context, next: Next) { + if (!ctx.auth.user.team.getPreference(preference)) { throw ValidationError(`${preference} is currently disabled`); } return next(); @@ -24,11 +24,8 @@ export function feature(preference: TeamPreference) { * @returns The middleware function */ export function commentingEnabled() { - return async function commentingEnabledMiddleware( - ctx: APIContext, - next: Next - ) { - const commenting = ctx.state.auth.user.team.getPreference( + return async function commentingEnabledMiddleware(ctx: Context, next: Next) { + const commenting = ctx.auth.user.team.getPreference( TeamPreference.Commenting ); // A legacy boolean `false` (team not yet migrated) means disabled. diff --git a/server/middlewares/multipart.ts b/server/middlewares/multipart.ts index e2228211a8..fa6d0614e4 100644 --- a/server/middlewares/multipart.ts +++ b/server/middlewares/multipart.ts @@ -1,7 +1,7 @@ import type { Next } from "koa"; import { bytesToHumanReadable } from "@shared/utils/files"; import { InvalidRequestError } from "@server/errors"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { getFileFromRequest } from "@server/utils/koa"; export default function multipart({ @@ -12,7 +12,7 @@ export default function multipart({ /** When true, non-multipart requests pass through with file set to undefined. */ optional?: boolean; }) { - return async function multipartMiddleware(ctx: APIContext, next: Next) { + return async function multipartMiddleware(ctx: Context, next: Next) { if (!ctx.is("multipart/form-data")) { if (optional) { return next(); diff --git a/server/middlewares/passport.ts b/server/middlewares/passport.ts index db09f391aa..faee69588f 100644 --- a/server/middlewares/passport.ts +++ b/server/middlewares/passport.ts @@ -1,5 +1,4 @@ import passport from "@outlinewiki/koa-passport"; -import type { Context } from "koa"; import { AuthorizationError, InternalOAuthError, @@ -11,7 +10,7 @@ import env from "@server/env"; import { AuthenticationError } from "@server/errors"; import Logger from "@server/logging/Logger"; import { Team } from "@server/models"; -import type { AuthenticationResult } from "@server/types"; +import type { AuthenticationResult, AppContext } from "@server/types"; import { signIn } from "@server/utils/authentication"; import { parseState } from "@server/utils/passport"; @@ -52,7 +51,7 @@ async function getValidatedHost(host: string): Promise { } export default function createMiddleware(providerName: string) { - return function passportMiddleware(ctx: Context) { + return function passportMiddleware(ctx: AppContext) { return passport.authorize( providerName, { diff --git a/server/middlewares/rateLimiter.test.ts b/server/middlewares/rateLimiter.test.ts index 770f6af3bc..def75ae532 100644 --- a/server/middlewares/rateLimiter.test.ts +++ b/server/middlewares/rateLimiter.test.ts @@ -1,10 +1,10 @@ -import type { Context } from "koa"; import { RateLimiterRes } from "rate-limiter-flexible"; import env from "@server/env"; import { ApiKey } from "@server/models"; import * as jwtUtils from "@server/utils/jwt"; import RateLimiter from "@server/utils/RateLimiter"; import { defaultRateLimiter, rateLimiter } from "./rateLimiter"; +import type { AppContext } from "@server/types"; interface MockContextOptions { path?: string; @@ -35,7 +35,7 @@ const createContext = ({ query: {}, }, cookies: { get: () => undefined }, - }) as unknown as Context; + }) as unknown as AppContext; describe("rateLimiter middleware", () => { const originalRateLimiterEnabled = env.RATE_LIMITER_ENABLED; diff --git a/server/middlewares/requestTracer.ts b/server/middlewares/requestTracer.ts index 81cf757e99..4ce6e3bbc1 100644 --- a/server/middlewares/requestTracer.ts +++ b/server/middlewares/requestTracer.ts @@ -1,9 +1,10 @@ -import type { Context, Next } from "koa"; +import type { Next } from "koa"; import { addTags, getRootSpanFromRequestContext } from "@server/logging/tracer"; import { RequestHelper } from "@server/utils/RequestHelper"; +import type { AppContext } from "@server/types"; export default function requestTracer() { - return async function requestTracerMiddleware(ctx: Context, next: Next) { + return async function requestTracerMiddleware(ctx: AppContext, next: Next) { const params = ctx.request.body ? RequestHelper.getBodyObject(ctx.request) : ctx.request.query; diff --git a/server/middlewares/shareDomains.test.ts b/server/middlewares/shareDomains.test.ts index fe083e4883..ab60ffbea5 100644 --- a/server/middlewares/shareDomains.test.ts +++ b/server/middlewares/shareDomains.test.ts @@ -1,9 +1,9 @@ import { subDays } from "date-fns"; -import type { Context } from "koa"; import { randomString } from "@shared/random"; import env from "@server/env"; import { buildShare, buildTeam } from "@server/test/factories"; import shareDomains from "./shareDomains"; +import type { AppContext } from "@server/types"; describe("shareDomains middleware", () => { const buildContext = (hostname: string) => @@ -11,7 +11,7 @@ describe("shareDomains middleware", () => { host: hostname, hostname, state: {}, - }) as Context; + }) as AppContext; beforeEach(() => { vi.spyOn(env, "isCloudHosted", "get").mockReturnValue(true); diff --git a/server/middlewares/shareDomains.ts b/server/middlewares/shareDomains.ts index 469ca78fab..b4acf9c9c1 100644 --- a/server/middlewares/shareDomains.ts +++ b/server/middlewares/shareDomains.ts @@ -1,11 +1,12 @@ -import type { Context, Next } from "koa"; +import type { Next } from "koa"; import { Op } from "sequelize"; import { parseDomain } from "@shared/utils/domains"; import env from "@server/env"; import { Share } from "@server/models"; +import type { AppContext } from "@server/types"; export default function shareDomains() { - return async function shareDomainsMiddleware(ctx: Context, next: Next) { + return async function shareDomainsMiddleware(ctx: AppContext, next: Next) { const isCustomDomain = parseDomain(ctx.host).custom; if (env.isDevelopment || (isCustomDomain && env.isCloudHosted)) { diff --git a/server/middlewares/transaction.ts b/server/middlewares/transaction.ts index eaf6f196e8..664b002488 100644 --- a/server/middlewares/transaction.ts +++ b/server/middlewares/transaction.ts @@ -5,7 +5,7 @@ import type { AppContext } from "@server/types"; /** * Middleware that wraps a route in a database transaction, useful for mutations - * The transaction is available on the context as `ctx.state.transaction` and + * The transaction is available on the context as `ctx.transaction` and * should be passed to all database calls within the route. * * @returns The middleware function. @@ -13,7 +13,7 @@ import type { AppContext } from "@server/types"; export function transaction() { return async function transactionMiddleware(ctx: AppContext, next: Next) { await sequelize.transaction(async (t: Transaction) => { - ctx.state.transaction = t; + ctx.transaction = t; return next(); }); }; diff --git a/server/middlewares/userAgent.test.ts b/server/middlewares/userAgent.test.ts index 83603d8bde..8a1e48bfcd 100644 --- a/server/middlewares/userAgent.test.ts +++ b/server/middlewares/userAgent.test.ts @@ -13,9 +13,9 @@ describe("userAgent middleware", () => { await userAgent()(ctx, next); - expect(ctx.userAgent.source).toEqual(chromeOnMac); - expect(ctx.userAgent.isDesktop).toBe(true); - expect(ctx.userAgent.isMobile).toBe(false); + expect(ctx.userAgent?.source).toEqual(chromeOnMac); + expect(ctx.userAgent?.isDesktop).toBe(true); + expect(ctx.userAgent?.isMobile).toBe(false); expect(next).toHaveBeenCalled(); }); @@ -24,8 +24,8 @@ describe("userAgent middleware", () => { await userAgent()(ctx, vi.fn()); - expect(ctx.userAgent.isMobile).toBe(true); - expect(ctx.userAgent.isDesktop).toBe(false); + expect(ctx.userAgent?.isMobile).toBe(true); + expect(ctx.userAgent?.isDesktop).toBe(false); }); it("should use a placeholder when the header is missing", async () => { @@ -33,6 +33,6 @@ describe("userAgent middleware", () => { await userAgent()(ctx, vi.fn()); - expect(ctx.userAgent.source).toEqual("unknown"); + expect(ctx.userAgent?.source).toEqual("unknown"); }); }); diff --git a/server/middlewares/validate.ts b/server/middlewares/validate.ts index 9d7f1c1f29..7cf8926382 100644 --- a/server/middlewares/validate.ts +++ b/server/middlewares/validate.ts @@ -3,12 +3,12 @@ import type { z } from "zod"; import { ZodError } from "zod"; import { toError } from "@shared/utils/error"; import { ValidationError } from "@server/errors"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; export default function validate>>( schema: T ) { - return async function validateMiddleware(ctx: APIContext, next: Next) { + return async function validateMiddleware(ctx: Context, next: Next) { try { ctx.input = { ...ctx.input, diff --git a/server/middlewares/validateWebhook.ts b/server/middlewares/validateWebhook.ts index b16d983e1b..f0c09577af 100644 --- a/server/middlewares/validateWebhook.ts +++ b/server/middlewares/validateWebhook.ts @@ -1,6 +1,6 @@ import crypto from "node:crypto"; import type { Next } from "koa"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { safeEqual } from "@server/utils/crypto"; export default function validateWebhook({ @@ -8,11 +8,11 @@ export default function validateWebhook({ getSignatureFromHeader, hmacSign = true, }: { - secretKey: string | ((ctx: APIContext) => Promise); - getSignatureFromHeader: (ctx: APIContext) => string | undefined; + secretKey: string | ((ctx: Context) => Promise); + getSignatureFromHeader: (ctx: Context) => string | undefined; hmacSign?: boolean; }) { - return async function validateWebhookMiddleware(ctx: APIContext, next: Next) { + return async function validateWebhookMiddleware(ctx: Context, next: Next) { const { body } = ctx.request; const signatureFromHeader = getSignatureFromHeader(ctx); diff --git a/server/models/AccessRequest.ts b/server/models/AccessRequest.ts index 4137ab10b1..27c8d7d8ff 100644 --- a/server/models/AccessRequest.ts +++ b/server/models/AccessRequest.ts @@ -20,7 +20,7 @@ import Team from "./Team"; import User from "./User"; import IdModel from "./base/IdModel"; import { ValidationError } from "@server/errors"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; export enum AccessRequestStatus { Pending = "pending", @@ -113,11 +113,11 @@ class AccessRequest extends IdModel< /** * Approve this access request, setting the status and responder, and persist. * - * @param ctx the API context; the authenticated user is recorded as responder. + * @param ctx the context; the authenticated user is recorded as responder. */ - public approve(ctx: APIContext) { + public approve(ctx: Context) { this.status = AccessRequestStatus.Approved; - this.responderId = ctx.state.auth.user.id; + this.responderId = ctx.auth.user.id; this.respondedAt = new Date(); return this.saveWithCtx(ctx); } @@ -125,11 +125,11 @@ class AccessRequest extends IdModel< /** * Dismiss this access request, setting the status and responder, and persist. * - * @param ctx the API context; the authenticated user is recorded as responder. + * @param ctx the context; the authenticated user is recorded as responder. */ - public dismiss(ctx: APIContext) { + public dismiss(ctx: Context) { this.status = AccessRequestStatus.Dismissed; - this.responderId = ctx.state.auth.user.id; + this.responderId = ctx.auth.user.id; this.respondedAt = new Date(); return this.saveWithCtx(ctx); } diff --git a/server/models/AuthenticationProvider.ts b/server/models/AuthenticationProvider.ts index 3f0425748a..c5c95478e1 100644 --- a/server/models/AuthenticationProvider.ts +++ b/server/models/AuthenticationProvider.ts @@ -26,7 +26,7 @@ import Team from "./Team"; import UserAuthentication from "./UserAuthentication"; import Length from "./validators/Length"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import type { DestroyOptions } from "sequelize"; @Scopes(() => ({ @@ -171,14 +171,12 @@ class AuthenticationProvider extends Model< /** * Disable this authentication provider after ensuring it's allowed. * - * @param ctx - API context containing the transaction. + * @param ctx - context containing the transaction. * @returns The updated AuthenticationProvider instance. * @throws ValidationError if disabling is not allowed. */ - disable: (ctx: APIContext) => Promise = async ( - ctx - ) => { - const { transaction } = ctx.state; + disable: (ctx: Context) => Promise = async (ctx) => { + const { transaction } = ctx; await this.checkCanBeDisabled(transaction); return this.updateWithCtx(ctx, { @@ -189,10 +187,10 @@ class AuthenticationProvider extends Model< /** * Enable this authentication provider. * - * @param ctx - API context containing the transaction. + * @param ctx - context containing the transaction. * @returns The updated AuthenticationProvider instance. */ - enable: (ctx: APIContext) => Promise = async (ctx) => + enable: (ctx: Context) => Promise = async (ctx) => this.updateWithCtx(ctx, { enabled: true, }); diff --git a/server/models/Collection.test.ts b/server/models/Collection.test.ts index e547118bc0..f4f4c6066a 100644 --- a/server/models/Collection.test.ts +++ b/server/models/Collection.test.ts @@ -10,7 +10,7 @@ import { buildTeam, buildDocument, } from "@server/test/factories"; -import { withAPIContext } from "@server/test/support"; +import { withContext } from "@server/test/support"; import Collection from "./Collection"; import Document from "./Document"; @@ -32,7 +32,7 @@ describe("#updateDeprecatedReason", () => { ); await expect( - withAPIContext(user, (ctx) => + withContext(user, (ctx) => collection.updateDeprecatedReason(ctx, "Outdated") ) ).rejects.toThrow("The collection must be archived"); @@ -685,7 +685,7 @@ describe("#archiveWithCtx", () => { archivedAt: new Date("2024-01-01"), }); - await withAPIContext(user, (ctx) => collection.archiveWithCtx(ctx)); + await withContext(user, (ctx) => collection.archiveWithCtx(ctx)); await Promise.all([ collection.reload(), @@ -717,7 +717,7 @@ describe("#archiveWithCtx", () => { publishedAt: new Date(), }); - await withAPIContext(user, (ctx) => collection.archiveWithCtx(ctx)); + await withContext(user, (ctx) => collection.archiveWithCtx(ctx)); await otherDocument.reload(); expect(otherDocument.archivedAt).toBeNull(); diff --git a/server/models/Collection.ts b/server/models/Collection.ts index 1625963389..3e7becad58 100644 --- a/server/models/Collection.ts +++ b/server/models/Collection.ts @@ -60,7 +60,8 @@ import { } from "@shared/validations"; import { parser } from "@server/editor"; import { ValidationError } from "@server/errors"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; +import { toHookContext, type HookContextFields } from "@server/context"; import { LockHelper } from "@server/storage/LockHelper"; import { afterCommit } from "@server/storage/transaction"; import { CacheHelper } from "@server/utils/CacheHelper"; @@ -427,7 +428,7 @@ class Collection extends ParanoidModel< } @BeforeDestroy - static async deleteDocuments(model: Collection, ctx: APIContext["context"]) { + static async deleteDocuments(model: Collection, ctx: HookContextFields) { // A bulk update rather than a destroy per document, so `deletedById` is // written here instead of by the hook on ParanoidModel. await Document.update( @@ -535,7 +536,7 @@ class Collection extends ParanoidModel< @BeforeUpdate static async publishPermissionChangedEvent( model: Collection, - ctx: APIContext["context"] + ctx: HookContextFields ) { const privacyChanged = model.previous("permission") !== model.permission; const sharingChanged = model.previous("sharing") !== model.sharing; @@ -807,9 +808,9 @@ class Collection extends ParanoidModel< * @param ctx The request context with the acting user and a transaction. * @returns the personal collection of the user. */ - static async findOrCreatePersonal(ctx: APIContext): Promise { - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + static async findOrCreatePersonal(ctx: Context): Promise { + const { user } = ctx.auth; + const { transaction } = ctx; const existing = await this.findPersonal(user, { transaction }); if (existing) { @@ -937,12 +938,12 @@ class Collection extends ParanoidModel< * collection's `archivedAt` and `archivedBy` are set to now and the acting * user respectively, and child documents inherit the same `archivedAt`. * - * @param ctx - the API context, including the acting user and optional transaction. + * @param ctx - the context, including the acting user and optional transaction. * @returns the updated collection. */ - archiveWithCtx = async (ctx: APIContext) => { - const { transaction } = ctx.state; - const { user } = ctx.state.auth; + archiveWithCtx = async (ctx: Context) => { + const { transaction } = ctx; + const { user } = ctx.auth; this.archivedAt = new Date(); this.archivedById = user.id; @@ -971,13 +972,13 @@ class Collection extends ParanoidModel< /** * Updates the reason for archiving the collection. * - * @param ctx the API context, including the acting user and transaction. + * @param ctx the context, including the acting user and transaction. * @param reason the reason to save, or null to clear it. * @returns the updated collection. * @throws ValidationError if the collection is no longer archived. */ - updateDeprecatedReason = async (ctx: APIContext, reason: string | null) => { - const { transaction } = ctx.state; + updateDeprecatedReason = async (ctx: Context, reason: string | null) => { + const { transaction } = ctx; if (transaction) { await Collection.unscoped().findOne({ @@ -1005,11 +1006,11 @@ class Collection extends ParanoidModel< * Removes a document from this collection's structure and soft deletes it * along with all of its descendants. * - * @param ctx the API context, which attributes the deletion to the acting user. + * @param ctx the context, which attributes the deletion to the acting user. * @param document the document to delete. */ - deleteDocument = async (ctx: APIContext, document: Document) => { - const { transaction } = ctx.context; + deleteDocument = async (ctx: Context, document: Document) => { + const { transaction } = ctx; await this.removeDocumentInStructure(document, { transaction }); @@ -1030,11 +1031,11 @@ class Collection extends ParanoidModel< // Destroyed one at a time to ensure model hooks run for each document. for (const childDocumentId of childDocumentIds) { - await childDocumentsById[childDocumentId]?.destroy(ctx.context); + await childDocumentsById[childDocumentId]?.destroy(toHookContext(ctx)); } } - await document.destroy(ctx.context); + await document.destroy(toHookContext(ctx)); }; removeDocumentInStructure = async ( diff --git a/server/models/Document.test.ts b/server/models/Document.test.ts index 5356f96830..5da5be3e50 100644 --- a/server/models/Document.test.ts +++ b/server/models/Document.test.ts @@ -15,7 +15,7 @@ import { buildUser, buildGuestUser, } from "@server/test/factories"; -import { withAPIContext } from "@server/test/support"; +import { withContext } from "@server/test/support"; import { sequelize } from "@server/storage/database"; import GroupMembership from "./GroupMembership"; import GroupUser from "./GroupUser"; @@ -47,7 +47,7 @@ describe("#restoreTo", () => { { deprecatedReason: "Outdated" }, { where: { id: document.id }, paranoid: false } ); - await withAPIContext(user, (ctx) => + await withContext(user, (ctx) => document.restoreTo(ctx, { collectionId: collection.id }) ); await document.reload(); @@ -83,7 +83,7 @@ describe("#destroyWithCtx", () => { it("should soft delete and set last modified", async () => { const document = await buildDocument(); const user = await buildUser(); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); const newDocument = await Document.findByPk(document.id, { paranoid: false, @@ -97,7 +97,7 @@ describe("#destroyWithCtx", () => { archivedAt: new Date(), }); const user = await buildUser(); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); const newDocument = await Document.findByPk(document.id, { paranoid: false, }); @@ -120,7 +120,7 @@ describe("#destroyWithCtx", () => { }); await collection.addDocumentToStructure(document, 0); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); const [newDocument, newCollection] = await Promise.all([ document.reload({ paranoid: false }), collection.reload(), @@ -134,7 +134,7 @@ describe("#destroyWithCtx", () => { it("should delete draft without collection", async () => { const user = await buildUser(); const document = await buildDraftDocument(); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); const deletedDocument = await Document.findByPk(document.id, { paranoid: false, }); diff --git a/server/models/Document.ts b/server/models/Document.ts index 943e42d7e1..28eeb412e1 100644 --- a/server/models/Document.ts +++ b/server/models/Document.ts @@ -81,7 +81,8 @@ import { CounterCache } from "./decorators/CounterCache"; import { DocumentHelper } from "./helpers/DocumentHelper"; import IsHexColor from "./validators/IsHexColor"; import Length from "./validators/Length"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; +import { toHookContext, type HookContextFields } from "@server/context"; import { APIUpdateExtension } from "@server/collaboration/APIUpdateExtension"; import { SkipChangeset } from "./decorators/Changeset"; import type { EventOverrideOptions, HookContext } from "./base/Model"; @@ -649,7 +650,7 @@ class Document extends ArchivableModel< @AfterUpdate static async publishTitleChangeEvent( model: Document, - ctx: APIContext["context"] + ctx: HookContextFields ) { if (model.changed("title")) { const hookContext = { @@ -1285,7 +1286,7 @@ class Document extends ArchivableModel< }; publish = async ( - ctx: APIContext, + ctx: Context, { index = 0, collectionId, @@ -1300,8 +1301,8 @@ class Document extends ArchivableModel< data?: Record; } ): Promise => { - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; this.lastModifiedById = user.id; this.updatedBy = user; @@ -1392,19 +1393,19 @@ class Document extends ArchivableModel< /** * Unpublishes a published document, converting it back to a draft. * - * @param ctx the API context. + * @param ctx the context. * @param options.detach whether to detach the document from the containing collection. * @returns updated document. * @throws if the document has child documents. */ - unpublishWithCtx = async (ctx: APIContext, options: { detach: boolean }) => { + unpublishWithCtx = async (ctx: Context, options: { detach: boolean }) => { // If the document is already a draft then calling unpublish should act like save if (!this.publishedAt) { return this.save(); } - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const childDocumentIds = await this.findAllChildDocumentIds( { archivedAt: { [Op.eq]: null } }, @@ -1467,8 +1468,8 @@ class Document extends ArchivableModel< // Moves a document from being visible to the team within a collection // to the archived area, where it can be subsequently restored. - archiveWithCtx = async (ctx: APIContext) => { - const { transaction } = ctx.state; + archiveWithCtx = async (ctx: Context) => { + const { transaction } = ctx; const collection = this.collectionId ? await Collection.findByPk(this.collectionId, { includeDocumentStructure: true, @@ -1490,10 +1491,10 @@ class Document extends ArchivableModel< // Restore an archived document back to being visible to the team restoreTo = async ( - ctx: APIContext, + ctx: Context, { collectionId }: { collectionId: string } ) => { - const { transaction } = ctx.state; + const { transaction } = ctx; const collection = collectionId ? await Collection.findByPk(collectionId, { includeDocumentStructure: true, @@ -1544,11 +1545,11 @@ class Document extends ArchivableModel< // Delete a document, archived or otherwise. destroyWithCtx = async ( - ctx: APIContext, + ctx: Context, eventOpts?: EventOverrideOptions ): Promise => { - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; let deleted = false; if (this.collectionId) { @@ -1566,7 +1567,7 @@ class Document extends ArchivableModel< } if (!deleted) { - await this.destroy(ctx.context); + await this.destroy(toHookContext(ctx)); } this.lastModifiedById = user.id; @@ -1686,11 +1687,11 @@ class Document extends ArchivableModel< }); private restoreArchivedWithChildren = async ( - ctx: APIContext, + ctx: Context, { collectionId }: { collectionId: string } ) => { - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const restoreChildren = async (parentDocumentId: string) => { const childDocuments = await ( @@ -1723,9 +1724,9 @@ class Document extends ArchivableModel< return this.saveWithCtx(ctx, undefined, { name: "unarchive" }); }; - private archiveWithChildren = async (ctx: APIContext) => { - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + private archiveWithChildren = async (ctx: Context) => { + const { user } = ctx.auth; + const { transaction } = ctx; const archivedAt = new Date(); // Helper to archive all child documents for a document diff --git a/server/models/Event.ts b/server/models/Event.ts index e6d70df41a..7dcf29a74b 100644 --- a/server/models/Event.ts +++ b/server/models/Event.ts @@ -19,7 +19,7 @@ import { } from "sequelize-typescript"; import { globalEventQueue } from "../queues"; import { afterCommit } from "../storage/transaction"; -import type { APIContext } from "../types"; +import type { Context } from "../types"; import { AuthenticationType } from "../types"; import { normalizeIp } from "../utils/ip"; import Collection from "./Collection"; @@ -27,7 +27,7 @@ import Document from "./Document"; import Team from "./Team"; import User from "./User"; import IdModel from "./base/IdModel"; -import type { Context } from "koa"; +import type { AppContext } from "@server/types"; @Table({ tableName: "events", modelName: "event", updatedAt: false }) class Event extends IdModel< @@ -161,13 +161,13 @@ class Event extends IdModel< * @returns A promise resolving to the new event */ static createFromContext( - ctx: Context | APIContext, + ctx: AppContext | Context, attributes: Omit, "ip" | "teamId" | "actorId"> = {}, defaultAttributes: Pick, "ip" | "teamId" | "actorId"> = {}, options?: CreateOptions> ) { - const user = ctx.state.auth?.user; - const authType = ctx.state.auth?.type; + const user = ctx.auth?.user; + const authType = ctx.auth?.type; return this.create( { @@ -178,7 +178,7 @@ class Event extends IdModel< authType, }, { - transaction: ctx.state.transaction, + transaction: ctx.transaction, ...options, } ); diff --git a/server/models/FileOperation.ts b/server/models/FileOperation.ts index b062ab614e..b31d9d8ec9 100644 --- a/server/models/FileOperation.ts +++ b/server/models/FileOperation.ts @@ -26,7 +26,7 @@ import { FileOperationType, } from "@shared/types"; import FileStorage from "@server/storage/files"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { ValidateKey } from "@server/validation"; import Collection from "./Collection"; import Document from "./Document"; @@ -155,10 +155,10 @@ class FileOperation extends ParanoidModel< * @returns the new file operation with its source associations set. */ static async createExport( - ctx: APIContext, + ctx: Context, options: CreateExportOptions ): Promise { - const { user } = ctx.state.auth; + const { user } = ctx.auth; const format = options.format ?? FileOperationFormat.MarkdownZip; // The owner is stored on the export, as a document can move out of the @@ -171,7 +171,7 @@ class FileOperation extends ParanoidModel< ? await Collection.unscoped().findOne({ attributes: ["ownerId"], where: { id: sourceCollectionId }, - transaction: ctx.state.transaction, + transaction: ctx.transaction, }) : null; const personalOwnerId = sourceCollection?.ownerId ?? undefined; diff --git a/server/models/GroupMembership.ts b/server/models/GroupMembership.ts index df0d176bda..6fdd4b6745 100644 --- a/server/models/GroupMembership.ts +++ b/server/models/GroupMembership.ts @@ -26,7 +26,7 @@ import type { DocumentPermission } from "@shared/types"; import { CollectionPermission } from "@shared/types"; import { ValidationError } from "@server/errors"; import { LockHelper } from "@server/storage/LockHelper"; -import type { APIContext } from "@server/types"; +import type { HookContextFields } from "@server/context"; import Collection from "./Collection"; import Document from "./Document"; import Group from "./Group"; @@ -252,7 +252,7 @@ class GroupMembership extends ParanoidModel< @AfterCreate static async publishAddGroupEventAfterCreate( model: GroupMembership, - context: APIContext["context"] + context: HookContextFields ) { await model.insertEvent(context, "add_group", { membershipId: model.id, @@ -295,7 +295,7 @@ class GroupMembership extends ParanoidModel< @BeforeUpdate static async checkLastAdminBeforeUpdate( model: GroupMembership, - ctx: APIContext["context"] + ctx: HookContextFields ) { if ( model.permission === CollectionPermission.Admin || @@ -310,7 +310,7 @@ class GroupMembership extends ParanoidModel< @BeforeDestroy static async checkLastAdminBeforeDestroy( model: GroupMembership, - ctx: APIContext["context"] + ctx: HookContextFields ) { // Only check for last admin permission if this permission is admin if ( @@ -325,7 +325,7 @@ class GroupMembership extends ParanoidModel< @AfterUpdate static async publishAddGroupEventAfterUpdate( model: GroupMembership, - context: APIContext["context"] + context: HookContextFields ) { await model.insertEvent(context, "add_group", { membershipId: model.id, @@ -355,7 +355,7 @@ class GroupMembership extends ParanoidModel< @AfterDestroy static async publishRemoveGroupEvent( model: GroupMembership, - context: APIContext["context"] + context: HookContextFields ) { await model.insertEvent(context, "remove_group", { membershipId: model.id, @@ -469,7 +469,7 @@ class GroupMembership extends ParanoidModel< } private async insertEvent( - ctx: APIContext["context"], + ctx: HookContextFields, name: string, data: Record ) { @@ -487,7 +487,7 @@ class GroupMembership extends ParanoidModel< private static async validateLastAdminPermission( model: GroupMembership, - { transaction }: APIContext["context"] + { transaction }: HookContextFields ) { // Both models guard the same invariant, so they share one lock name, // otherwise the last user manager and the last group manager can be diff --git a/server/models/Reaction.ts b/server/models/Reaction.ts index f3ede25206..b9ff1bd961 100644 --- a/server/models/Reaction.ts +++ b/server/models/Reaction.ts @@ -17,7 +17,7 @@ import { Table, } from "sequelize-typescript"; import { createContext } from "@server/context"; -import type { APIContext } from "@server/types"; +import type { HookContextFields } from "@server/context"; import Comment from "./Comment"; import User from "./User"; import IdModel from "./base/IdModel"; @@ -54,7 +54,7 @@ class Reaction extends IdModel< @AfterCreate public static async addReactionToCommentCache( model: Reaction, - ctx: APIContext["context"] & + ctx: HookContextFields & FindOrCreateOptions, CreationAttributes> ) { const { transaction } = ctx; @@ -86,7 +86,7 @@ class Reaction extends IdModel< comment.reactions = reactions; - // Pass only the fields needed in APIContext; otherwise sequelize props will be overwritten. + // Pass only the fields needed in Context; otherwise sequelize props will be overwritten. const context = createContext({ user: ctx.auth.user, authType: ctx.auth.type, @@ -106,7 +106,7 @@ class Reaction extends IdModel< @AfterDestroy public static async removeReactionFromCommentCache( model: Reaction, - ctx: APIContext["context"] & InstanceDestroyOptions + ctx: HookContextFields & InstanceDestroyOptions ) { const { transaction } = ctx; @@ -139,7 +139,7 @@ class Reaction extends IdModel< comment.reactions = reactions; - // Pass only the fields needed in APIContext; otherwise sequelize props will be overwritten. + // Pass only the fields needed in Context; otherwise sequelize props will be overwritten. const context = createContext({ user: ctx.auth.user, authType: ctx.auth.type, diff --git a/server/models/Revision.ts b/server/models/Revision.ts index 395a47975c..cee2354ea7 100644 --- a/server/models/Revision.ts +++ b/server/models/Revision.ts @@ -16,7 +16,7 @@ import { } from "sequelize-typescript"; import type { ProsemirrorData, SourceMetadata } from "@shared/types"; import { DocumentValidation, RevisionValidation } from "@shared/validations"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import Document from "./Document"; import User from "./User"; import ParanoidModel from "./base/ParanoidModel"; @@ -266,12 +266,12 @@ class Revision extends ParanoidModel< * @returns A Promise that resolves when saved */ static createFromDocument( - ctx: APIContext, + ctx: Context, document: Document, collaboratorIds?: string[] ) { const revision = this.buildFromDocument(document); - const authType = ctx.context.auth?.type; + const authType = ctx.auth?.type; revision.sourceMetadata = authType ? { authType } : null; if (collaboratorIds) { diff --git a/server/models/Share.ts b/server/models/Share.ts index cc6e45c87f..af9e28890b 100644 --- a/server/models/Share.ts +++ b/server/models/Share.ts @@ -18,7 +18,7 @@ import { UrlHelper } from "@shared/utils/UrlHelper"; import { ShareValidation } from "@shared/validations"; import env from "@server/env"; import { ValidationError } from "@server/errors"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import Collection from "./Collection"; import Document from "./Document"; import Team from "./Team"; @@ -323,8 +323,8 @@ class Share extends IdModel< @Column(DataType.UUID) documentId: string | null; - revoke(ctx: APIContext) { - const { user } = ctx.state.auth; + revoke(ctx: Context) { + const { user } = ctx.auth; this.revokedAt = new Date(); this.revokedById = user.id; return this.saveWithCtx(ctx, undefined, { name: "revoke" }); diff --git a/server/models/User.ts b/server/models/User.ts index fb3f78c0e1..6a98df6511 100644 --- a/server/models/User.ts +++ b/server/models/User.ts @@ -1,7 +1,6 @@ import crypto from "node:crypto"; import { addHours, addMinutes, subMinutes } from "date-fns"; import JWT from "jsonwebtoken"; -import type { Context } from "koa"; import type { Transaction, SaveOptions, @@ -52,7 +51,8 @@ import env from "@server/env"; import DeleteAttachmentTask from "@server/queues/tasks/DeleteAttachmentTask"; import { LockHelper } from "@server/storage/LockHelper"; import { afterCommit } from "@server/storage/transaction"; -import type { APIContext } from "@server/types"; +import type { Context, AppContext } from "@server/types"; +import { toHookContext } from "@server/context"; import { VerificationCode } from "@server/utils/VerificationCode"; import parseAttachmentIds from "@server/utils/parseAttachmentIds"; import { CacheHelper } from "@server/utils/CacheHelper"; @@ -582,7 +582,7 @@ class User extends ParanoidModel< * @param force whether to update even if the last update was recent. * @returns a promise that resolves with the updated user. */ - updateActiveAt = async (ctx?: Context, force = false) => { + updateActiveAt = async (ctx?: AppContext, force = false) => { const fiveMinutesAgo = subMinutes(new Date(), 5); // ensure this is updated only every few minutes otherwise @@ -609,13 +609,13 @@ class User extends ParanoidModel< }); }; - updateSignedIn = (ctx: Context | APIContext) => { + updateSignedIn = (ctx: AppContext | Context) => { const now = new Date(); this.lastActiveAt = now; this.lastActiveIp = ctx.request.ip; this.lastSignedInAt = now; this.lastSignedInIp = ctx.request.ip; - return this.save({ hooks: false, transaction: ctx.state.transaction }); + return this.save({ hooks: false, transaction: ctx.transaction }); }; /** @@ -693,7 +693,7 @@ class User extends ParanoidModel< * @param ctx The request context, used to get the IP address of the request * @returns The email signin token */ - getEmailSigninToken = (ctx: Context) => + getEmailSigninToken = (ctx: AppContext) => JWT.sign( { id: this.id, @@ -990,15 +990,15 @@ class User extends ParanoidModel< static findByEmail = async function ( this: typeof User, - ctx: APIContext, + ctx: Context, email: string ) { return this.findOne({ where: { - teamId: ctx.state.auth.user.teamId, + teamId: ctx.auth.user.teamId, email: email.trim().toLowerCase(), }, - ...ctx.context, + ...toHookContext(ctx), }); }; diff --git a/server/models/UserMembership.test.ts b/server/models/UserMembership.test.ts index b3c5c3e50e..0c3457dccf 100644 --- a/server/models/UserMembership.test.ts +++ b/server/models/UserMembership.test.ts @@ -7,7 +7,7 @@ import { buildUser, } from "@server/test/factories"; import { sequelize } from "@server/storage/database"; -import { withAPIContext } from "@server/test/support"; +import { withContext } from "@server/test/support"; import Event from "./Event"; import GroupMembership from "./GroupMembership"; import UserMembership from "./UserMembership"; @@ -87,14 +87,14 @@ describe("UserMembership", () => { }); // The user membership goes first, leaving the group as the only manager. - const one = withAPIContext(user, async (ctx) => { + const one = withContext(user, async (ctx) => { await userMembership.destroyWithCtx(ctx); removed(); await held; }); await first; - const two = withAPIContext(user, (ctx) => + const two = withContext(user, (ctx) => groupMembership.destroyWithCtx(ctx) ); await sleep(250); diff --git a/server/models/UserMembership.ts b/server/models/UserMembership.ts index bde81a2beb..9c5fdc1cf0 100644 --- a/server/models/UserMembership.ts +++ b/server/models/UserMembership.ts @@ -29,7 +29,7 @@ import { CollectionPermission } from "@shared/types"; import { ValidationError } from "@server/errors"; import { LockHelper } from "@server/storage/LockHelper"; import { afterCommit } from "@server/storage/transaction"; -import type { APIContext } from "@server/types"; +import type { HookContextFields } from "@server/context"; import { CacheHelper } from "@server/utils/CacheHelper"; import { RedisPrefixHelper } from "@server/utils/RedisPrefixHelper"; import Collection from "./Collection"; @@ -259,7 +259,7 @@ class UserMembership extends IdModel< @AfterCreate static async publishAddUserEventAfterCreate( model: UserMembership, - context: APIContext["context"] + context: HookContextFields ) { await model.insertEvent(context, "add_user", { isNew: true, @@ -311,7 +311,7 @@ class UserMembership extends IdModel< @BeforeUpdate static async checkLastAdminBeforeUpdate( model: UserMembership, - ctx: APIContext["context"] + ctx: HookContextFields ) { if ( model.permission === CollectionPermission.Admin || @@ -326,7 +326,7 @@ class UserMembership extends IdModel< @BeforeDestroy static async checkLastAdminBeforeDestroy( model: UserMembership, - ctx: APIContext["context"] + ctx: HookContextFields ) { // Only check for last admin permission if this permission is admin if ( @@ -341,7 +341,7 @@ class UserMembership extends IdModel< @AfterUpdate static async publishAddUserEventAfterUpdate( model: UserMembership, - context: APIContext["context"] + context: HookContextFields ) { await model.insertEvent(context, "add_user", { isNew: false, @@ -351,7 +351,7 @@ class UserMembership extends IdModel< @AfterDestroy static async publishRemoveUserEvent( model: UserMembership, - context: APIContext["context"] + context: HookContextFields ) { await model.insertEvent(context, "remove_user"); } @@ -454,7 +454,7 @@ class UserMembership extends IdModel< } private async insertEvent( - ctx: APIContext["context"], + ctx: HookContextFields, name: string, data?: Record ) { @@ -487,7 +487,7 @@ class UserMembership extends IdModel< private static async validateLastAdminPermission( model: UserMembership, - { transaction }: APIContext["context"] + { transaction }: HookContextFields ) { // Both models guard the same invariant, so they share one lock name, // otherwise the last user manager and the last group manager can be diff --git a/server/models/View.ts b/server/models/View.ts index d465106284..810dad5117 100644 --- a/server/models/View.ts +++ b/server/models/View.ts @@ -13,7 +13,7 @@ import { DataType, Scopes, } from "sequelize-typescript"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import Document from "./Document"; import Event from "./Event"; import User from "./User"; @@ -61,7 +61,7 @@ class View extends IdModel< documentId: string; static async incrementOrCreate( - ctx: APIContext, + ctx: Context, where: { userId: string; documentId: string; diff --git a/server/models/base/Model.ts b/server/models/base/Model.ts index c8000325c8..c6804fac65 100644 --- a/server/models/base/Model.ts +++ b/server/models/base/Model.ts @@ -23,7 +23,8 @@ import { Model as SequelizeModel, } from "sequelize-typescript"; import Logger from "@server/logging/Logger"; -import type { Replace, APIContext } from "@server/types"; +import type { Replace, Context } from "@server/types"; +import { toHookContext, type HookContextFields } from "@server/context"; import { getChangesetSkipped } from "../decorators/Changeset"; import { InternalError } from "@server/errors"; import { afterCommit } from "@server/storage/transaction"; @@ -46,7 +47,7 @@ type EventOptions = EventOverrideOptions & { publish: boolean; }; -export type HookContext = APIContext["context"] & { event?: EventOptions }; +export type HookContext = HookContextFields & { event?: EventOptions }; class Model< // oxlint-disable-next-line @typescript-eslint/no-explicit-any -- Sequelize's Attributes resolves to never under object default; load-bearing for static helpers like saveWithCtx. @@ -69,12 +70,12 @@ class Model< * Validates this instance, and if the validation passes, persists it to the database. */ public saveWithCtx( - ctx: APIContext, + ctx: Context, options?: SaveOptions>, eventOpts?: EventOverrideOptions ) { const hookContext: HookContext = { - ...ctx.context, + ...toHookContext(ctx), event: { ...eventOpts, publish: true, @@ -87,12 +88,12 @@ class Model< * This is the same as calling `fill` and then calling `save`. */ public updateWithCtx( - ctx: APIContext, + ctx: Context, keys: Partial, eventOpts?: EventOverrideOptions ) { const hookContext: HookContext = { - ...ctx.context, + ...toHookContext(ctx), event: { ...eventOpts, publish: true, @@ -117,9 +118,9 @@ class Model< * Destroy the row corresponding to this instance. Depending on your setting for paranoid, the row will * either be completely deleted, or have its deletedAt timestamp set to the current time. */ - public destroyWithCtx(ctx: APIContext, eventOpts?: EventOverrideOptions) { + public destroyWithCtx(ctx: Context, eventOpts?: EventOverrideOptions) { const hookContext: HookContext = { - ...ctx.context, + ...toHookContext(ctx), event: { ...eventOpts, publish: true, @@ -131,9 +132,9 @@ class Model< /** * Restore the row corresponding to this instance. Only available for paranoid models. */ - public restoreWithCtx(ctx: APIContext, eventOpts?: EventOverrideOptions) { + public restoreWithCtx(ctx: Context, eventOpts?: EventOverrideOptions) { const hookContext: HookContext = { - ...ctx.context, + ...toHookContext(ctx), event: { ...eventOpts, publish: true, @@ -146,25 +147,25 @@ class Model< * Find a row that matches the query, or build and save the row if none is found. * The successful result of the promise will be (instance, created) - Make sure to use `.then(([...]))` * - * @param ctx The API context. + * @param ctx The context. * @param options The find or create options. * @param eventOpts Optional event override options. * @returns a tuple of the instance and a boolean indicating if it was created. */ public static async findOrCreateWithCtx( this: ModelStatic, - ctx: APIContext, + ctx: Context, options: FindOrCreateOptions, CreationAttributes>, eventOpts?: EventOverrideOptions ): Promise<[M, boolean]> { const hookContext: HookContext = { - ...ctx.context, + ...toHookContext(ctx), event: { ...eventOpts, publish: true, }, }; - const transaction = ctx.context.transaction; + const transaction = ctx.transaction; // First, try to find an existing record const existing = await this.findOne({ @@ -206,19 +207,19 @@ class Model< * each. Rows are matched when the destroy runs, so rows written after the * options were prepared are destroyed too. * - * @param ctx The API context. + * @param ctx The context. * @param options The destroy options. * @param eventOpts Optional event override options. * @returns the number of destroyed rows. */ public static destroyWithCtx( this: ModelStatic, - ctx: APIContext, + ctx: Context, options: DestroyOptions>, eventOpts?: EventOverrideOptions ) { const hookContext = { - ...ctx.context, + ...toHookContext(ctx), ...options, individualHooks: true, event: { @@ -234,13 +235,13 @@ class Model< */ public static createWithCtx( this: ModelStatic, - ctx: APIContext, + ctx: Context, values?: CreationAttributes, eventOpts?: EventOverrideOptions, createOpts?: CreateOptions ) { const hookContext = { - ...ctx.context, + ...toHookContext(ctx), ...createOpts, event: { ...eventOpts, @@ -300,7 +301,7 @@ class Model< * * @param name The name of the event. * @param model The model that was mutated. - * @param context The API context. + * @param context The context. */ protected static async insertEvent( name: string, diff --git a/server/models/base/ParanoidModel.test.ts b/server/models/base/ParanoidModel.test.ts index 0d5c40ea24..abb28a8ec4 100644 --- a/server/models/base/ParanoidModel.test.ts +++ b/server/models/base/ParanoidModel.test.ts @@ -1,4 +1,4 @@ -import { createContext } from "@server/context"; +import { createContext, toHookContext } from "@server/context"; import { buildCollection, buildDocument, @@ -12,7 +12,7 @@ describe("ParanoidModel", () => { const user = await buildUser(); const document = await buildDocument({ teamId: user.teamId }); - await document.destroy(createContext({ user }).context); + await document.destroy(toHookContext(createContext({ user }))); await document.reload({ paranoid: false }); expect(document.deletedAt).toBeTruthy(); @@ -23,7 +23,7 @@ describe("ParanoidModel", () => { const user = await buildUser(); const document = await buildDocument({ teamId: user.teamId }); - await document.destroy(createContext({ user }).context); + await document.destroy(toHookContext(createContext({ user }))); await document.restore(); await document.reload(); @@ -51,7 +51,7 @@ describe("ParanoidModel", () => { userId: user.id, }); - await collection.destroy(createContext({ user }).context); + await collection.destroy(toHookContext(createContext({ user }))); expect(collection.deletedAt).toBeTruthy(); }); diff --git a/server/models/helpers/ProsemirrorHelper.tsx b/server/models/helpers/ProsemirrorHelper.tsx index 739cfae56a..2ecc1ed4be 100644 --- a/server/models/helpers/ProsemirrorHelper.tsx +++ b/server/models/helpers/ProsemirrorHelper.tsx @@ -55,7 +55,7 @@ import { trace } from "@server/logging/tracing"; import Attachment from "@server/models/Attachment"; import User from "@server/models/User"; import FileStorage from "@server/storage/files"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; export type HTMLOptions = { /** A title, if it should be included */ @@ -1242,13 +1242,13 @@ export class ProsemirrorHelper extends SharedProsemirrorHelper { * images — a PDF bundled alongside a document, for example — do not remain * embedded in the document as base64. * - * @param ctx The API context. + * @param ctx The context. * @param doc The Prosemirror node to process. * @param user The user context. * @returns A new Prosemirror node with images and embedded files replaced. */ static async replaceImagesWithAttachments( - ctx: APIContext, + ctx: Context, doc: Node, user: User ): Promise { diff --git a/server/models/helpers/TextHelper.ts b/server/models/helpers/TextHelper.ts index e1cea6ea76..1f736550af 100644 --- a/server/models/helpers/TextHelper.ts +++ b/server/models/helpers/TextHelper.ts @@ -9,7 +9,7 @@ import { trace } from "@server/logging/tracing"; import type { User } from "@server/models"; import { Attachment } from "@server/models"; import FileStorage from "@server/storage/files"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import parseAttachmentIds from "@server/utils/parseAttachmentIds"; import parseImages from "@server/utils/parseImages"; @@ -61,13 +61,13 @@ export class TextHelper { * Replaces remote and base64 encoded images in the given text with attachment * urls and uploads the images to the storage provider. * - * @param ctx The API context + * @param ctx The context * @param markdown The text to replace the images in * @param user The user context * @returns The text with the images replaced */ static async replaceImagesWithAttachments( - ctx: APIContext, + ctx: Context, markdown: string, user: User, options: { diff --git a/server/presenters/collection.ts b/server/presenters/collection.ts index 9b1b08bb48..b69e9d5d47 100644 --- a/server/presenters/collection.ts +++ b/server/presenters/collection.ts @@ -1,7 +1,7 @@ import { Hour } from "@shared/utils/time"; import type Collection from "@server/models/Collection"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import presentUser from "./user"; type Options = { @@ -18,7 +18,7 @@ type Options = { }; export default async function presentCollection( - ctx: APIContext | undefined, + ctx: Context | undefined, collection: Collection, options: Options = {} ) { diff --git a/server/presenters/document.test.ts b/server/presenters/document.test.ts index 562984cea9..04f4790aec 100644 --- a/server/presenters/document.test.ts +++ b/server/presenters/document.test.ts @@ -5,7 +5,7 @@ import { buildDocument, buildUser, } from "@server/test/factories"; -import { withAPIContext } from "@server/test/support"; +import { withContext } from "@server/test/support"; import { sequelize } from "@server/storage/database"; describe("presentDocuments", () => { @@ -19,7 +19,7 @@ describe("presentDocuments", () => { teamId: user.teamId, collectionId: collection.id, }); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); } const documents = await Document.scope("withDrafts").findAll({ @@ -65,8 +65,8 @@ describe("presentDocuments", () => { teamId: userA.teamId, collectionId: collection.id, }); - await withAPIContext(userA, (ctx) => documentA.destroyWithCtx(ctx)); - await withAPIContext(userB, (ctx) => documentB.destroyWithCtx(ctx)); + await withContext(userA, (ctx) => documentA.destroyWithCtx(ctx)); + await withContext(userB, (ctx) => documentB.destroyWithCtx(ctx)); // One document arrives with the association loaded, the other without. const loaded = await Document.scope("withDrafts").findOne({ diff --git a/server/presenters/document.ts b/server/presenters/document.ts index a8d132b190..b2d6ec7f55 100644 --- a/server/presenters/document.ts +++ b/server/presenters/document.ts @@ -5,7 +5,7 @@ import type { Document } from "@server/models"; import FileOperation from "@server/models/FileOperation"; import User from "@server/models/User"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import presentUser from "./user"; type Options = { @@ -27,7 +27,7 @@ type Options = { }; async function presentDocument( - ctx: APIContext | undefined, + ctx: Context | undefined, document: Document, options: Options | null | undefined = {} ) { @@ -159,13 +159,13 @@ export default traceFunction({ * Batch-present multiple documents, fetching all related FileOperation and * deleting User records in a single query instead of one per document. * - * @param ctx the API context. + * @param ctx the context. * @param documents the documents to present. * @param options presentation options forwarded to presentDocument. * @returns array of presented document objects. */ export async function presentDocuments( - ctx: APIContext | undefined, + ctx: Context | undefined, documents: Document[], options?: Options | null ) { diff --git a/server/presenters/integration.ts b/server/presenters/integration.ts index 523fb40c07..05cf5a812d 100644 --- a/server/presenters/integration.ts +++ b/server/presenters/integration.ts @@ -1,15 +1,15 @@ import type { Integration } from "@server/models"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; /** * Presents an integration for API responses. * - * @param ctx the API context, used to find the user the integration is presented to. + * @param ctx the context, used to find the user the integration is presented to. * @param integration the integration to present. * @returns the presented integration. */ export default function presentIntegration( - ctx: APIContext | undefined, + ctx: Context | undefined, integration: Integration ) { return { @@ -20,7 +20,7 @@ export default function presentIntegration( authenticationId: integration.authenticationId, service: integration.service, events: integration.events, - settings: integration.presentSettings(ctx?.state.auth.user), + settings: integration.presentSettings(ctx?.auth.user), createdAt: integration.createdAt, updatedAt: integration.updatedAt, }; diff --git a/server/presenters/notification.ts b/server/presenters/notification.ts index 79004b0f3d..ca4970e1e8 100644 --- a/server/presenters/notification.ts +++ b/server/presenters/notification.ts @@ -1,12 +1,12 @@ import type { Notification } from "@server/models"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import presentFileOperation from "./fileOperation"; import presentGroup from "./group"; import presentUser from "./user"; import { presentComment, presentDocument } from "."; export default async function presentNotification( - ctx: APIContext | undefined, + ctx: Context | undefined, notification: Notification ) { return { diff --git a/server/queues/tasks/MarkdownAPIImportTask.test.ts b/server/queues/tasks/MarkdownAPIImportTask.test.ts index 92fba4e30b..7c5fa4dffb 100644 --- a/server/queues/tasks/MarkdownAPIImportTask.test.ts +++ b/server/queues/tasks/MarkdownAPIImportTask.test.ts @@ -17,7 +17,7 @@ import { buildDocument, buildImport, } from "@server/test/factories"; -import { withAPIContext } from "@server/test/support"; +import { withContext } from "@server/test/support"; import MarkdownImportsProcessor from "../processors/MarkdownImportsProcessor"; import UploadAttachmentsForImportTask from "./UploadAttachmentsForImportTask"; import MarkdownAPIImportTask, { @@ -529,7 +529,7 @@ describe("MarkdownAPIImportTask document export archives", () => { userId: admin.id, rejectOnEmpty: true, }); - await withAPIContext(admin, (ctx) => archivable.archiveWithCtx(ctx)); + await withContext(admin, (ctx) => archivable.archiveWithCtx(ctx)); await new MarkdownImportsProcessor().perform({ name: "imports.delete", diff --git a/server/queues/tasks/ShareSubscriptionNotificationsTask.test.ts b/server/queues/tasks/ShareSubscriptionNotificationsTask.test.ts index f696dd6a5d..754af44d74 100644 --- a/server/queues/tasks/ShareSubscriptionNotificationsTask.test.ts +++ b/server/queues/tasks/ShareSubscriptionNotificationsTask.test.ts @@ -11,7 +11,7 @@ import { buildTeam, buildUser, } from "@server/test/factories"; -import { withAPIContext } from "@server/test/support"; +import { withContext } from "@server/test/support"; import ShareSubscriptionNotificationsTask from "./ShareSubscriptionNotificationsTask"; const ip = "127.0.0.1"; @@ -431,7 +431,7 @@ describe("ShareSubscriptionNotificationsTask", () => { confirmedAt: new Date(), }); - await withAPIContext(user, (ctx) => + await withContext(user, (ctx) => documentMover(ctx, { document, collectionId: other.id }) ); diff --git a/server/routes/api/accessRequests/accessRequests.ts b/server/routes/api/accessRequests/accessRequests.ts index 3ab19d5d6b..6c43fd1962 100644 --- a/server/routes/api/accessRequests/accessRequests.ts +++ b/server/routes/api/accessRequests/accessRequests.ts @@ -7,7 +7,7 @@ import { Document, AccessRequest, UserMembership } from "@server/models"; import { AccessRequestStatus } from "@server/models/AccessRequest"; import { authorize, can } from "@server/policies"; import { presentAccessRequest, presentPolicies } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import * as T from "./schema"; import { InvalidRequestError, NotFoundError } from "@server/errors"; @@ -20,10 +20,10 @@ router.post( auth(), validate(T.AccessRequestsCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { documentId } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const document = await Document.findByPk(documentId, { userId: user.id, @@ -57,8 +57,8 @@ router.post( rateLimiter(RateLimiterStrategy.TwentyFivePerMinute), auth(), validate(T.AccessRequestsInfoSchema), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const { id, documentId } = ctx.input.body; let accessRequest: AccessRequest | null = null; @@ -91,10 +91,10 @@ router.post( auth(), validate(T.AccessRequestsApproveSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, permission } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const accessRequest = await AccessRequest.findByPk(id, { rejectOnEmpty: true, @@ -143,10 +143,10 @@ router.post( auth(), validate(T.AccessRequestsDismissSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const accessRequest = await AccessRequest.findByPk(id, { rejectOnEmpty: true, diff --git a/server/routes/api/apiKeys/apiKeys.ts b/server/routes/api/apiKeys/apiKeys.ts index 3bbbaff7d5..5b8391516a 100644 --- a/server/routes/api/apiKeys/apiKeys.ts +++ b/server/routes/api/apiKeys/apiKeys.ts @@ -7,7 +7,7 @@ import validate from "@server/middlewares/validate"; import { ApiKey, User } from "@server/models"; import { authorize, cannot } from "@server/policies"; import { presentApiKey } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { AuthenticationType } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { QueryHelper } from "@server/storage/QueryHelper"; @@ -24,9 +24,9 @@ router.post( }), validate(T.APIKeysCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { name, scope, expiresAt } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "createApiKey", user.team); @@ -50,10 +50,10 @@ router.post( auth(), pagination(), validate(T.APIKeysListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { userId, query, sort, direction } = ctx.input.body; const { pagination } = ctx.state; - const actor = ctx.state.auth.user; + const actor = ctx.auth.user; let userWhere: WhereOptions = { teamId: actor.teamId, @@ -120,10 +120,10 @@ router.post( }), validate(T.APIKeysDeleteSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const key = await ApiKey.scope("withUser").findByPk(id, { lock: { diff --git a/server/routes/api/attachments/attachments.ts b/server/routes/api/attachments/attachments.ts index 18f203f77e..f9a6d9befb 100644 --- a/server/routes/api/attachments/attachments.ts +++ b/server/routes/api/attachments/attachments.ts @@ -5,7 +5,7 @@ import { AttachmentPreset } from "@shared/types"; import { bytesToHumanReadable, getFileNameFromUrl } from "@shared/utils/files"; import env from "@server/env"; import { AttachmentValidation } from "@shared/validations"; -import { createContext } from "@server/context"; +import { withTransaction } from "@server/context"; import { AuthorizationError, InvalidRequestError, @@ -25,7 +25,7 @@ import pagination from "@server/routes/api/middlewares/pagination"; import { sequelize } from "@server/storage/database"; import FileStorage from "@server/storage/files"; import BaseStorage from "@server/storage/files/BaseStorage"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { assertIn } from "@server/validation"; import * as T from "./schema"; @@ -68,9 +68,9 @@ router.post( auth(), pagination(), validate(T.AttachmentsListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { documentId, userId } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const where: WhereOptions = { teamId: user.teamId, @@ -115,9 +115,9 @@ router.post( auth(), validate(T.AttachmentsCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, name, documentId, contentType, size, preset } = ctx.input.body; - const { auth, transaction } = ctx.state; + const { auth, transaction } = ctx; const { user } = auth; if (documentId) { @@ -228,9 +228,9 @@ router.post( rateLimiter(RateLimiterStrategy.TwentyFivePerMinute), auth(), validate(T.AttachmentsCreateFromUrlSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, url, documentId, preset } = ctx.input.body; - const { user, type } = ctx.state.auth; + const { user } = ctx.auth; if (preset !== AttachmentPreset.DocumentAttachment || !documentId) { throw ValidationError( @@ -252,25 +252,17 @@ router.post( // Does not use transaction middleware, as attachment must be persisted // before the job is scheduled. const attachment = await sequelize.transaction(async (transaction) => - Attachment.createWithCtx( - createContext({ - authType: type, - user, - ip: ctx.ip, - transaction, - }), - { - id: modelId, - key, - acl, - size: 0, - expiresAt: AttachmentHelper.presetToExpiry(preset), - contentType: "application/octet-stream", - documentId, - teamId: user.teamId, - userId: user.id, - } - ) + Attachment.createWithCtx(withTransaction(ctx, transaction), { + id: modelId, + key, + acl, + size: 0, + expiresAt: AttachmentHelper.presetToExpiry(preset), + contentType: "application/octet-stream", + documentId, + teamId: user.teamId, + userId: user.id, + }) ); const job = await new UploadAttachmentFromUrlTask().schedule({ @@ -296,10 +288,10 @@ router.post( auth(), validate(T.AttachmentDeleteSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const attachment = await Attachment.findByPk(id, { rejectOnEmpty: true, lock: transaction.LOCK.UPDATE, @@ -320,11 +312,11 @@ router.post( ); const handleAttachmentsRedirect = async ( - ctx: APIContext + ctx: Context ) => { const id = (ctx.input.body.id ?? ctx.input.query.id) as string; - const user = ctx.state.auth?.user; + const user = ctx.auth?.user; const attachment = await Attachment.findByPk(id, { rejectOnEmpty: true, }); diff --git a/server/routes/api/auth/auth.ts b/server/routes/api/auth/auth.ts index 16bc88f02e..3a45d527d1 100644 --- a/server/routes/api/auth/auth.ts +++ b/server/routes/api/auth/auth.ts @@ -19,7 +19,7 @@ import { presentGroupUser, } from "@server/presenters"; import ValidateSSOAccessTask from "@server/queues/tasks/ValidateSSOAccessTask"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { AuthenticationType } from "@server/types"; import { clearCSRFCookie } from "@server/utils/csrf"; import { getJWTPayload } from "@server/utils/jwt"; @@ -29,7 +29,7 @@ import type * as T from "./schema"; const router = new Router(); -router.post("auth.config", async (ctx: APIContext) => { +router.post("auth.config", async (ctx: Context) => { // If self hosted AND there is only one team then that team becomes the // brand for the knowledge base and its guest sign-in option is used for the // root login page. @@ -122,8 +122,8 @@ router.post("auth.config", async (ctx: APIContext) => { /** Authentication services that don't require SSO validation. */ const NON_SSO_SERVICES = ["email", "passkeys"]; -router.post("auth.info", auth(), async (ctx: APIContext) => { - const { user, service, type, token } = ctx.state.auth; +router.post("auth.info", auth(), async (ctx: Context) => { + const { user, service, type, token } = ctx.auth; const [team, groups, availableTeams] = await Promise.all([ Team.scope("withDomains").findByPk(user.teamId, { rejectOnEmpty: true, @@ -194,8 +194,8 @@ router.post( "auth.delete", auth(), transaction(), - async (ctx: APIContext) => { - const { auth, transaction } = ctx.state; + async (ctx: Context) => { + const { auth, transaction } = ctx; const { user, token } = auth; await user.rotateJwtSecret({ transaction }); diff --git a/server/routes/api/authenticationProviders/authenticationProviders.ts b/server/routes/api/authenticationProviders/authenticationProviders.ts index 34580ecff0..03d6876d66 100644 --- a/server/routes/api/authenticationProviders/authenticationProviders.ts +++ b/server/routes/api/authenticationProviders/authenticationProviders.ts @@ -13,7 +13,7 @@ import { presentAuthenticationProvider, presentPolicies, } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import * as T from "./schema"; const router = new Router(); @@ -22,9 +22,9 @@ router.post( "authenticationProviders.info", auth({ role: UserRole.Admin }), validate(T.AuthenticationProvidersInfoSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const authenticationProvider = await AuthenticationProvider.findByPk(id); authorize(user, "read", authenticationProvider); @@ -41,10 +41,10 @@ router.post( auth({ role: UserRole.Admin }), validate(T.AuthenticationProvidersUpdateSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { id, isEnabled, settings } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const authenticationProvider = await AuthenticationProvider.findByPk(id, { transaction, @@ -102,8 +102,8 @@ router.post( "authenticationProviders.startGroupSync", auth({ role: UserRole.Admin }), validate(T.AuthenticationProvidersStartGroupSyncSchema), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const authenticationProvider = await AuthenticationProvider.findByPk( ctx.input.body.id ); @@ -140,10 +140,10 @@ router.post( auth({ role: UserRole.Admin }), validate(T.AuthenticationProvidersDeleteSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { id } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const authenticationProvider = await AuthenticationProvider.findByPk(id, { transaction, @@ -173,8 +173,8 @@ router.post( router.post( "authenticationProviders.list", auth({ role: UserRole.Admin }), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; authorize(user, "read", user.team); const teamAuthenticationProviders = (await user.team.$get( diff --git a/server/routes/api/batch/batch.ts b/server/routes/api/batch/batch.ts index 555f145cba..95ecb1a386 100644 --- a/server/routes/api/batch/batch.ts +++ b/server/routes/api/batch/batch.ts @@ -14,7 +14,7 @@ import { rateLimiter, } from "@server/middlewares/rateLimiter"; import validate from "@server/middlewares/validate"; -import type { APIContext, AppContext } from "@server/types"; +import type { Context, AppContext } from "@server/types"; import { AuthenticationType } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { BatchableApiMethods } from "@shared/constants"; @@ -115,9 +115,11 @@ function createSubContext( body: T.BatchRequestBody ) { const sub: AppContext = Object.create(ctx); - // A shallow copy so middleware writes (auth, transaction) don't leak between - // concurrent sub-requests or back to the parent. + // Own copies so middleware writes don't leak between concurrent sub-requests + // or back to the parent. sub.state = { ...ctx.state }; + sub.auth = ctx.auth; + sub.transaction = ctx.transaction; sub.request = Object.create(ctx.request); // The parent's credential is the actor for every sub-request, so a token in // the sub-request body must not re-authenticate it as a different one. @@ -153,16 +155,6 @@ function createSubContext( captured.status = value; }, }); - // Re-bind ctx.context to this child so mutations use the child's transaction - // rather than the parent's (the getter from apiContext closes over its ctx). - Object.defineProperty(sub, "context", { - configurable: true, - get: () => ({ - auth: sub.state.auth, - transaction: sub.state.transaction, - ip: sub.request.ip, - }), - }); return { sub, captured }; } @@ -275,7 +267,7 @@ router.post( rateLimiter(RateLimiterStrategy.TwentyFivePerMinute), auth({ type: AuthenticationType.APP }), validate(T.BatchSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { requests } = ctx.input.body; // Sub-request routes would otherwise be appended to the APM route name. diff --git a/server/routes/api/collections/collections.ts b/server/routes/api/collections/collections.ts index 725060b5a3..240580a155 100644 --- a/server/routes/api/collections/collections.ts +++ b/server/routes/api/collections/collections.ts @@ -46,7 +46,8 @@ import { presentGroupMembership, presentFileOperation, } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; +import { toHookContext } from "@server/context"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { collectionIndexing } from "@server/utils/indexing"; import { QueryHelper } from "@server/storage/QueryHelper"; @@ -62,8 +63,8 @@ router.post( auth(), validate(T.CollectionsCreateSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { name, color, @@ -78,7 +79,7 @@ router.post( templateManagement, } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "createCollection", user.team); const collection = Collection.build({ @@ -119,10 +120,10 @@ router.post( auth(), validate(T.CollectionsDuplicateSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { id, name } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const collection = await Collection.findByPk(id, { userId: user.id, @@ -147,9 +148,9 @@ router.post( "collections.info", auth(), validate(T.CollectionsInfoSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const collection = await Collection.findByPk(id, { userId: user.id, includeArchivedBy: true, @@ -169,9 +170,9 @@ router.post( "collections.documents", auth(), validate(T.CollectionsDocumentsSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const collection = await Collection.findByPk(id, { userId: user.id, }); @@ -192,10 +193,10 @@ router.post( auth(), validate(T.CollectionsImportSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { attachmentId, permission, format } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "importCollection", user.team); const attachment = await Attachment.findByPk(attachmentId, { @@ -237,10 +238,10 @@ router.post( auth(), validate(T.CollectionsAddGroupSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, groupId, permission } = ctx.input.body; - const { transaction } = ctx.state; - const { user } = ctx.state.auth; + const { transaction } = ctx; + const { user } = ctx.auth; const [collection, group] = await Promise.all([ Collection.findByPk(id, { userId: user.id, transaction }), @@ -257,7 +258,7 @@ router.post( if (membership) { if (permission !== undefined) { membership.permission = permission; - await membership.save(ctx.context); + await membership.save(toHookContext(ctx)); } } else { membership = await GroupMembership.create( @@ -267,7 +268,7 @@ router.post( permission: permission ?? CollectionPermission.ReadWrite, createdById: user.id, }, - ctx.context + toHookContext(ctx) ); } @@ -286,10 +287,10 @@ router.post( auth(), validate(T.CollectionsRemoveGroupSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, groupId } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const [collection, group] = await Promise.all([ Collection.findByPk(id, { @@ -314,7 +315,7 @@ router.post( ); } - await membership.destroy(ctx.context); + await membership.destroy(toHookContext(ctx)); ctx.body = { success: true, @@ -327,9 +328,9 @@ router.post( auth(), pagination(), validate(T.CollectionsMembershipsSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, query, permission } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const collection = await Collection.findByPk(id, { userId: user.id, @@ -393,9 +394,9 @@ router.post( rateLimiter(RateLimiterStrategy.OneHundredPerHour), validate(T.CollectionsAddUserSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; - const { user: actor } = ctx.state.auth; + async (ctx: Context) => { + const { transaction } = ctx; + const { user: actor } = ctx.auth; const { id, userId, permission } = ctx.input.body; const [collection, user] = await Promise.all([ @@ -413,7 +414,7 @@ router.post( if (membership) { if (permission !== undefined) { membership.permission = permission; - await membership.save(ctx.context); + await membership.save(toHookContext(ctx)); } } else { membership = await UserMembership.create( @@ -423,7 +424,7 @@ router.post( permission: permission || user.defaultCollectionPermission, createdById: actor.id, }, - ctx.context + toHookContext(ctx) ); } @@ -441,9 +442,9 @@ router.post( auth(), validate(T.CollectionsRemoveUserSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; - const { user: actor } = ctx.state.auth; + async (ctx: Context) => { + const { transaction } = ctx; + const { user: actor } = ctx.auth; const { id, userId } = ctx.input.body; const [collection, user] = await Promise.all([ @@ -461,7 +462,7 @@ router.post( ctx.throw(InvalidRequestError("User is not a collection member")); } - await membership.destroy(ctx.context); + await membership.destroy(toHookContext(ctx)); ctx.body = { success: true, @@ -474,9 +475,9 @@ router.post( auth(), pagination(), validate(T.CollectionsMembershipsSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, query, permission } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const collection = await Collection.findByPk(id, { userId: user.id, @@ -536,10 +537,10 @@ router.post( auth({ role: UserRole.Member }), validate(T.CollectionsExportSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, format, includeAttachments } = ctx.input.body; - const { transaction } = ctx.state; - const { user } = ctx.state.auth; + const { transaction } = ctx; + const { user } = ctx.auth; const { team } = user; const collection = await Collection.findByPk(id, { @@ -570,10 +571,10 @@ router.post( auth({ role: UserRole.Admin }), validate(T.CollectionsExportAllSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { format, includeAttachments, includePrivate } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const team = await Team.findByPk(user.teamId, { transaction }); authorize(user, "createExport", team); @@ -598,8 +599,8 @@ router.post( auth(), validate(T.CollectionsUpdateSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { id, name, @@ -621,7 +622,7 @@ router.post( (key) => key === "id" || key === "deprecatedReason" ); - const { user } = ctx.state.auth; + const { user } = ctx.auth; const collection = await Collection.findByPk(id, { userId: user.id, includeArchivedBy: updatingDeprecatedReason, @@ -723,15 +724,15 @@ router.post( validate(T.CollectionsListSchema), pagination(), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { includeListOnly, query, statusFilter, filters: rawFilters, } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const collectionIds = await user.collectionIds({ transaction }); const where: WhereOptions & { @@ -833,10 +834,10 @@ router.post( auth(), validate(T.CollectionsDeleteSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { id, reason } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const collection = await Collection.findByPk(id, { userId: user.id, @@ -862,10 +863,10 @@ router.post( auth(), validate(T.CollectionsArchiveSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { id, reason } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const collection = await Collection.findByPk(id, { userId: user.id, @@ -893,10 +894,10 @@ router.post( auth(), validate(T.CollectionsRestoreSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { id } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; let collection = await Collection.findByPk(id, { userId: user.id, @@ -943,10 +944,10 @@ router.post( auth(), validate(T.CollectionsMoveSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { id, index } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; let collection = await Collection.findByPk(id, { transaction, diff --git a/server/routes/api/comments/comments.ts b/server/routes/api/comments/comments.ts index 84041db547..2cd446f0b0 100644 --- a/server/routes/api/comments/comments.ts +++ b/server/routes/api/comments/comments.ts @@ -16,7 +16,8 @@ import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; import { TextHelper } from "@server/models/helpers/TextHelper"; import { authorize } from "@server/policies"; import { presentComment, presentPolicies } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; +import { toHookContext } from "@server/context"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -30,7 +31,7 @@ router.post( commentingEnabled(), validate(T.CommentsCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, documentId, @@ -40,8 +41,8 @@ router.post( anchorSuffix, anchorNodeId, } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const anchored = !!(anchorText || anchorNodeId); if (anchored) { @@ -109,7 +110,7 @@ router.post( // as updated by adding a comment. await document.update( { state: updated.state, content: updated.content }, - { ...ctx.context, transaction, silent: true } + { ...toHookContext(ctx), transaction, silent: true } ); } @@ -135,9 +136,9 @@ router.post( auth(), commentingEnabled(), validate(T.CommentsInfoSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, includeAnchorText } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const comment = await Comment.findByPk(id, { rejectOnEmpty: true, @@ -165,7 +166,7 @@ router.post( pagination(), commentingEnabled(), validate(T.CommentsListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { sort, direction, @@ -175,7 +176,7 @@ router.post( collectionId, includeAnchorText, } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "listComments", user.team); let document: Document | null = null; @@ -221,10 +222,10 @@ router.post( commentingEnabled(), validate(T.CommentsUpdateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const comment = await Comment.findByPk(id, { transaction, @@ -297,10 +298,10 @@ router.post( commentingEnabled(), validate(T.CommentsDeleteSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const comment = await Comment.findByPk(id, { transaction, @@ -331,10 +332,10 @@ router.post( commentingEnabled(), validate(T.CommentsResolveSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const comment = await Comment.findByPk(id, { transaction, @@ -367,10 +368,10 @@ router.post( commentingEnabled(), validate(T.CommentsUnresolveSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const comment = await Comment.findByPk(id, { transaction, @@ -404,10 +405,10 @@ router.post( commentingEnabled(), validate(T.CommentsReactionSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, emoji } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const comment = await Comment.findByPk(id, { transaction, @@ -460,10 +461,10 @@ router.post( commentingEnabled(), validate(T.CommentsReactionSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, emoji } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const comment = await Comment.findByPk(id, { transaction, @@ -488,7 +489,7 @@ router.post( }); authorize(user, "delete", reaction); - await reaction.destroy(ctx.context); + await reaction.destroy(toHookContext(ctx)); ctx.body = { success: true, diff --git a/server/routes/api/cron/cron.ts b/server/routes/api/cron/cron.ts index a4d56b1d91..09dc88652b 100644 --- a/server/routes/api/cron/cron.ts +++ b/server/routes/api/cron/cron.ts @@ -5,7 +5,7 @@ import Logger from "@server/logging/Logger"; import validate from "@server/middlewares/validate"; import tasks from "@server/queues/tasks"; import { CronTask, TaskInterval } from "@server/queues/tasks/base/CronTask"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { safeEqual } from "@server/utils/crypto"; import * as T from "./schema"; import { Minute } from "@shared/utils/time"; @@ -13,7 +13,7 @@ import { Minute } from "@shared/utils/time"; const router = new Router(); const receivedPeriods = new Set(); -const cronHandler = async (ctx: APIContext) => { +const cronHandler = async (ctx: Context) => { const period = Object.values(TaskInterval).includes( ctx.params.period as TaskInterval ) diff --git a/server/routes/api/developer/developer.ts b/server/routes/api/developer/developer.ts index dfa7166dce..655bc28589 100644 --- a/server/routes/api/developer/developer.ts +++ b/server/routes/api/developer/developer.ts @@ -1,4 +1,4 @@ -import type { Context, Next } from "koa"; +import type { Next } from "koa"; import Router from "@koa/router"; import { Op } from "sequelize"; import { randomString, randomElement } from "@shared/random"; @@ -12,13 +12,16 @@ import validate from "@server/middlewares/validate"; import { Document, Notification, User } from "@server/models"; import presentNotification from "@server/presenters/notification"; import { presentUser } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context, AppContext } from "@server/types"; import * as T from "./schema"; const router = new Router(); function dev() { - return async function checkDevelopmentMiddleware(ctx: Context, next: Next) { + return async function checkDevelopmentMiddleware( + ctx: AppContext, + next: Next + ) { if (env.ENVIRONMENT !== "development") { throw new Error("Attempted to access development route in production"); } @@ -32,7 +35,7 @@ router.post( dev(), auth(), validate(T.CreateTestUsersSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { count } = ctx.input.body; const invites = Array(Math.min(count, 100)) .fill(0) @@ -69,9 +72,9 @@ router.post( dev(), auth(), validate(T.CreateTestNotificationsSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { count } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const events = [ NotificationEventType.UpdateDocument, diff --git a/server/routes/api/documents/documents.test.ts b/server/routes/api/documents/documents.test.ts index 4ad98e48e7..99d11e0309 100644 --- a/server/routes/api/documents/documents.test.ts +++ b/server/routes/api/documents/documents.test.ts @@ -53,7 +53,7 @@ import { import { getTestServer, readZipResponse, - withAPIContext, + withContext, } from "@server/test/support"; const server = getTestServer(); @@ -210,7 +210,7 @@ describe("#documents.info", () => { userId: user.id, teamId: user.teamId, }); - await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); + await withContext(user, (ctx) => document.archiveWithCtx(ctx)); const res = await server.post("/api/documents.info", user, { body: { id: document.id, @@ -491,7 +491,7 @@ describe("#documents.info", () => { teamId: document.teamId, userId: user.id, }); - await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); + await withContext(user, (ctx) => document.archiveWithCtx(ctx)); const res = await server.post("/api/documents.info", { body: { shareId: share.id, @@ -690,7 +690,7 @@ describe("#documents.export", () => { userId: user.id, teamId: user.teamId, }); - await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); + await withContext(user, (ctx) => document.archiveWithCtx(ctx)); const res = await server.post("/api/documents.export", user, { body: { id: document.id, @@ -1044,7 +1044,7 @@ describe("#documents.list", () => { collectionId: collection.id, }), ]); - await withAPIContext(user, (ctx) => docs[0].archiveWithCtx(ctx)); + await withContext(user, (ctx) => docs[0].archiveWithCtx(ctx)); const res = await server.post("/api/documents.list", user, { body: { statusFilter: [StatusFilter.Archived], @@ -1085,8 +1085,8 @@ describe("#documents.list", () => { }), ]); await Promise.all([ - withAPIContext(user, (ctx) => docs[0].archiveWithCtx(ctx)), - withAPIContext(user, (ctx) => docs[1].archiveWithCtx(ctx)), + withContext(user, (ctx) => docs[0].archiveWithCtx(ctx)), + withContext(user, (ctx) => docs[1].archiveWithCtx(ctx)), ]); const res = await server.post("/api/documents.list", user, { body: { @@ -3519,7 +3519,7 @@ describe("#documents.search", () => { text: "search term", teamId: user.teamId, }); - await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); + await withContext(user, (ctx) => document.archiveWithCtx(ctx)); const res = await server.post("/api/documents.search", user, { body: { query: "search term", @@ -3538,7 +3538,7 @@ describe("#documents.search", () => { text: "search term", teamId: user.teamId, }); - await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); + await withContext(user, (ctx) => document.archiveWithCtx(ctx)); const res = await server.post("/api/documents.search", user, { body: { query: "search term", @@ -4652,10 +4652,8 @@ describe("#documents.archived", () => { ]); await Promise.all([ - withAPIContext(user, (ctx) => - documentInFirstCollection.archiveWithCtx(ctx) - ), - withAPIContext(user, (ctx) => + withContext(user, (ctx) => documentInFirstCollection.archiveWithCtx(ctx)), + withContext(user, (ctx) => documentInSecondCollection.archiveWithCtx(ctx) ), ]); @@ -4694,10 +4692,8 @@ describe("#documents.archived", () => { ]); await Promise.all([ - withAPIContext(user, (ctx) => - documentInFirstCollection.archiveWithCtx(ctx) - ), - withAPIContext(user, (ctx) => + withContext(user, (ctx) => documentInFirstCollection.archiveWithCtx(ctx)), + withContext(user, (ctx) => documentInSecondCollection.archiveWithCtx(ctx) ), ]); @@ -4714,7 +4710,7 @@ describe("#documents.archived", () => { userId: user.id, teamId: user.teamId, }); - await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); + await withContext(user, (ctx) => document.archiveWithCtx(ctx)); const res = await server.post("/api/documents.archived", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -4727,7 +4723,7 @@ describe("#documents.archived", () => { userId: user.id, teamId: user.teamId, }); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); const res = await server.post("/api/documents.archived", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -4743,7 +4739,7 @@ describe("#documents.archived", () => { teamId: user.teamId, collectionId: collection.id, }); - await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); + await withContext(user, (ctx) => document.archiveWithCtx(ctx)); const res = await server.post("/api/documents.archived", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -4769,7 +4765,7 @@ describe("#documents.deleted", () => { userId: user.id, teamId: user.teamId, }); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); const res = await server.post("/api/documents.deleted", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -4797,9 +4793,9 @@ describe("#documents.deleted", () => { collectionId: null, }); await Promise.all([ - withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)), - withAPIContext(user, (ctx) => draftDocument.destroyWithCtx(ctx)), - withAPIContext(user2, (ctx) => otherUserDraft.destroyWithCtx(ctx)), + withContext(user, (ctx) => document.destroyWithCtx(ctx)), + withContext(user, (ctx) => draftDocument.destroyWithCtx(ctx)), + withContext(user2, (ctx) => otherUserDraft.destroyWithCtx(ctx)), ]); const res = await server.post("/api/documents.deleted", user); const body = await res.json(); @@ -4816,7 +4812,7 @@ describe("#documents.deleted", () => { userId: admin.id, teamId: admin.teamId, }); - await withAPIContext(admin, (ctx) => document.destroyWithCtx(ctx)); + await withContext(admin, (ctx) => document.destroyWithCtx(ctx)); const res = await server.post("/api/documents.deleted", admin); const body = await res.json(); expect(res.status).toEqual(200); @@ -4835,7 +4831,7 @@ describe("#documents.deleted", () => { teamId: user.teamId, collectionId: collection.id, }); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); const res = await server.post("/api/documents.deleted", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -4856,8 +4852,8 @@ describe("#documents.deleted", () => { teamId: user.teamId, collectionId: collection.id, }); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); - await withAPIContext(other, (ctx) => otherDocument.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(other, (ctx) => otherDocument.destroyWithCtx(ctx)); const res = await server.post("/api/documents.deleted", user, { body: { @@ -4896,7 +4892,7 @@ describe("#documents.deleted", () => { collectionId: collection.id, parentDocumentId: document.id, }); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); await childDocument.reload({ paranoid: false }); expect(childDocument.deletedById).toEqual(user.id); @@ -4921,7 +4917,7 @@ describe("#documents.deleted", () => { teamId: user.teamId, collectionId: collection.id, }); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); const res = await server.post("/api/documents.info", user, { body: { id: document.id }, @@ -4965,7 +4961,7 @@ describe("#documents.deleted", () => { teamId: user.teamId, collectionId: collection.id, }); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); await Document.update( { deletedAt: subDays(new Date(), 10) }, { @@ -5014,9 +5010,9 @@ describe("#documents.deleted", () => { teamId: user.teamId, collectionId: collection.id, }); - await withAPIContext(user, (ctx) => ownDraft.destroyWithCtx(ctx)); - await withAPIContext(other, (ctx) => otherDraft.destroyWithCtx(ctx)); - await withAPIContext(other, (ctx) => otherDocument.destroyWithCtx(ctx)); + await withContext(user, (ctx) => ownDraft.destroyWithCtx(ctx)); + await withContext(other, (ctx) => otherDraft.destroyWithCtx(ctx)); + await withContext(other, (ctx) => otherDocument.destroyWithCtx(ctx)); const res = await server.post("/api/documents.deleted", user); const body = await res.json(); @@ -5043,7 +5039,7 @@ describe("#documents.deleted", () => { userId: user.id, permission: DocumentPermission.ReadWrite, }); - await withAPIContext(other, (ctx) => sharedDraft.destroyWithCtx(ctx)); + await withContext(other, (ctx) => sharedDraft.destroyWithCtx(ctx)); const res = await server.post("/api/documents.deleted", user); const body = await res.json(); @@ -5071,7 +5067,7 @@ describe("#documents.deleted", () => { permission: DocumentPermission.ReadWrite, createdById: other.id, }); - await withAPIContext(other, (ctx) => sharedDraft.destroyWithCtx(ctx)); + await withContext(other, (ctx) => sharedDraft.destroyWithCtx(ctx)); const res = await server.post("/api/documents.deleted", user); const body = await res.json(); @@ -5897,7 +5893,7 @@ describe("#documents.restore", () => { collectionId: collection.id, teamId: team.id, }); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); await collection.destroy({ hooks: false }); const res = await server.post("/api/documents.restore", user, { @@ -5926,7 +5922,7 @@ describe("#documents.restore", () => { collectionId: collection.id, teamId: team.id, }); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); await collection.destroy({ hooks: false }); const res = await server.post("/api/documents.restore", user, { @@ -5996,7 +5992,7 @@ describe("#documents.restore", () => { teamId: user.teamId, deprecatedReason: "Outdated", }); - await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); + await withContext(user, (ctx) => document.archiveWithCtx(ctx)); const res = await server.post("/api/documents.restore", user, { body: { id: document.id, @@ -6030,7 +6026,7 @@ describe("#documents.restore", () => { parentDocumentId: child.id, deprecatedReason: "Grandchild is outdated", }); - await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); + await withContext(user, (ctx) => document.archiveWithCtx(ctx)); const res = await server.post("/api/documents.restore", user, { body: { id: document.id }, }); @@ -6054,8 +6050,8 @@ describe("#documents.restore", () => { collectionId: document.collectionId, parentDocumentId: document.id, }); - await withAPIContext(user, (ctx) => childDocument.archiveWithCtx(ctx)); - await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); + await withContext(user, (ctx) => childDocument.archiveWithCtx(ctx)); + await withContext(user, (ctx) => document.archiveWithCtx(ctx)); const res = await server.post("/api/documents.restore", user, { body: { id: childDocument.id, @@ -7509,7 +7505,7 @@ describe("#documents.update", () => { userId: user.id, teamId: user.teamId, }); - await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); + await withContext(user, (ctx) => document.archiveWithCtx(ctx)); const res = await server.post("/api/documents.update", user, { body: { id: document.id, @@ -8195,7 +8191,7 @@ describe("#documents.unpublish", () => { teamId: user.teamId, parentDocumentId: document.id, }); - await withAPIContext(user, (ctx) => child.archiveWithCtx(ctx)); + await withContext(user, (ctx) => child.archiveWithCtx(ctx)); const res = await server.post("/api/documents.unpublish", user, { body: { id: document.id, @@ -8254,7 +8250,7 @@ describe("#documents.unpublish", () => { userId: user.id, teamId: user.teamId, }); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); const res = await server.post("/api/documents.unpublish", user, { body: { id: document.id, @@ -8269,7 +8265,7 @@ describe("#documents.unpublish", () => { userId: user.id, teamId: user.teamId, }); - await withAPIContext(user, (ctx) => document.archiveWithCtx(ctx)); + await withContext(user, (ctx) => document.archiveWithCtx(ctx)); const res = await server.post("/api/documents.unpublish", user, { body: { id: document.id, diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index 117f657a4a..ae10b936e1 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -97,7 +97,8 @@ import { import DocumentImportTask from "@server/queues/tasks/DocumentImportTask"; import EmptyTrashTask from "@server/queues/tasks/EmptyTrashTask"; import FileStorage from "@server/storage/files"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; +import { toHookContext } from "@server/context"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { convertBareUrlsToEmbedMarkdown } from "@server/utils/embeds"; import { streamZipResponse } from "@server/utils/koa"; @@ -184,7 +185,7 @@ router.post( auth(), pagination(), validate(T.DocumentsListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { sort, direction, @@ -198,7 +199,7 @@ router.post( const { offset, limit } = ctx.state.pagination; // always filter by the current team - const { user } = ctx.state.auth; + const { user } = ctx.auth; const where: WhereOptions & { [Op.and]: WhereOptions[]; } = { @@ -459,9 +460,9 @@ router.post( auth({ role: UserRole.Member }), pagination(), validate(T.DocumentsArchivedSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { sort, direction, collectionId } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; if (sort === "index") { throw ValidationError( @@ -516,9 +517,9 @@ router.post( auth({ role: UserRole.Member }), pagination(), validate(T.DocumentsDeletedSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { sort, direction, filters: rawFilters } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const collectionIds = await user.collectionIds({ paranoid: false, }); @@ -594,9 +595,9 @@ router.post( auth(), pagination(), validate(T.DocumentsViewedSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { sort, direction } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const viewIds = await View.findAccessibleIds(user, { sort, direction, @@ -642,9 +643,9 @@ router.post( auth(), pagination(), validate(T.DocumentsDraftsSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { collectionId, dateFilter, direction, sort } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; if (collectionId) { const collection = await Collection.findByPk(collectionId, { @@ -698,9 +699,9 @@ router.post( "documents.info", auth({ optional: true }), validate(T.DocumentsInfoSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, shareId } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const apiVersion = getAPIVersion(ctx); let document: Document | null; @@ -781,9 +782,9 @@ router.post( "documents.insights", auth(), validate(T.DocumentsInsightsSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, startDate, endDate } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const document = await Document.findByPk(id, { userId: user.id, @@ -820,9 +821,9 @@ router.post( auth(), pagination(), validate(T.DocumentsUsersSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, userId, query } = ctx.input.body; - const actor = ctx.state.auth.user; + const actor = ctx.auth.user; const document = await Document.findByPk(id, { userId: actor.id, includeContent: false, @@ -905,9 +906,9 @@ router.post( "documents.documents", auth(), validate(T.DocumentsChildrenSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const document = await Document.findByPk(id, { userId: user.id, includeContent: false, @@ -935,9 +936,9 @@ router.post( rateLimiter(RateLimiterStrategy.TwentyFivePerMinute), auth(), validate(T.DocumentsExportSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, signedUrls, includeChildDocuments } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const accept = ctx.request.headers["accept"]; const document = await documentLoader({ @@ -1141,10 +1142,10 @@ router.post( rateLimiter(RateLimiterStrategy.OneHundredPerMinute), validate(T.DocumentsRestoreSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, collectionId, revisionId } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const document = await Document.findByPk(id, { userId: user.id, paranoid: false, @@ -1167,12 +1168,12 @@ router.post( pagination(), rateLimiter(RateLimiterStrategy.OneHundredPerMinute), validate(T.DocumentsSearchTitlesSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { query, sort, direction, filters: rawFilters } = ctx.input.body; const { collectionId, userId, documentId, statusFilter, dateFilter } = ctx.input.body; const { offset, limit } = ctx.state.pagination; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const filter = combineFilters(rawFilters) ?? legacyParamsToFilter({ @@ -1217,7 +1218,7 @@ router.post( pagination(), rateLimiter(RateLimiterStrategy.OneHundredPerMinute), validate(T.DocumentsSearchSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { query, shareId, @@ -1239,7 +1240,7 @@ router.post( dateFilter, }); const { offset, limit } = ctx.state.pagination; - const { user } = ctx.state.auth; + const { user } = ctx.auth; let teamId; let response; @@ -1360,7 +1361,7 @@ router.post( shareId: share?.id, // auth.type values are a subset of search sources; unauthenticated share searches default to "app" source: - (ctx.state.auth.type as unknown as SearchQuerySource) || + (ctx.auth.type as unknown as SearchQuerySource) || SearchQuerySource.App, query, results: total, @@ -1383,10 +1384,10 @@ router.post( rateLimiter(RateLimiterStrategy.TwentyFivePerMinute), validate(T.DocumentsTemplatizeSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, collectionId, publish } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const original = await Document.findByPk(id, { userId: user.id, @@ -1438,8 +1439,8 @@ router.post( rateLimiter(RateLimiterStrategy.OneHundredPerMinute), validate(T.DocumentsUpdateSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { id, insightsEnabled, publish, collectionId, ...input } = ctx.input.body; const updatingDeprecatedReason = @@ -1449,7 +1450,7 @@ router.post( ); const editorVersion = ctx.headers["x-editor-version"] as string | undefined; - const { user } = ctx.state.auth; + const { user } = ctx.auth; let collection: Collection | null | undefined; let document = await Document.findByPk(id, { @@ -1507,11 +1508,11 @@ router.post( rateLimiter(RateLimiterStrategy.TwentyFivePerMinute), validate(T.DocumentsDuplicateSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { id, title, publish, recursive, collectionId, parentDocumentId } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const document = await Document.findByPk(id, { userId: user.id, @@ -1585,11 +1586,11 @@ router.post( rateLimiter(RateLimiterStrategy.OneHundredPerMinute), validate(T.DocumentsMoveSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { id, parentDocumentId, index } = ctx.input.body; let collectionId = ctx.input.body.collectionId; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const document = await Document.findByPk(id, { userId: user.id, transaction, @@ -1641,10 +1642,10 @@ router.post( rateLimiter(RateLimiterStrategy.OneHundredPerMinute), validate(T.DocumentsArchiveSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, reason } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const document = await Document.findByPk(id, { userId: user.id, @@ -1672,10 +1673,10 @@ router.post( rateLimiter(RateLimiterStrategy.OneHundredPerMinute), validate(T.DocumentsDeleteSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { id, permanent, reason } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; if (permanent) { const document = await Document.findByPk(id, { @@ -1721,9 +1722,9 @@ router.post( rateLimiter(RateLimiterStrategy.OneHundredPerMinute), validate(T.DocumentsUnpublishSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, detach } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const document = await Document.findByPk(id, { userId: user.id, @@ -1748,10 +1749,10 @@ router.post( optional: true, }), validate(T.DocumentsImportSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { collectionId, parentDocumentId, publish, attachmentId } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; if (!attachmentId && !ctx.input.file) { throw ValidationError("one of attachmentId or file is required"); @@ -1804,7 +1805,7 @@ router.post( collectionId: collection?.id, parentDocumentId, publish, - authType: ctx.state.auth.type, + authType: ctx.auth.type, ip: ctx.request.ip, }); @@ -1821,7 +1822,7 @@ router.post( rateLimiter(RateLimiterStrategy.TwentyFivePerMinute), validate(T.DocumentsCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, title, @@ -1839,8 +1840,8 @@ router.post( } = ctx.input.body; const editorVersion = ctx.headers["x-editor-version"] as string | undefined; - const { transaction } = ctx.state; - const { user } = ctx.state.auth; + const { transaction } = ctx; + const { user } = ctx.auth; const { collection } = await authorizeDocumentCreate(ctx, { collectionId, @@ -1900,9 +1901,9 @@ router.post( validate(T.DocumentsAddUserSchema), rateLimiter(RateLimiterStrategy.OneHundredPerHour), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; - const { user: actor } = ctx.state.auth; + async (ctx: Context) => { + const { transaction } = ctx; + const { user: actor } = ctx.auth; const { id, userId, permission } = ctx.input.body; if (userId === actor.id) { @@ -1955,7 +1956,7 @@ router.post( membership.permission = permission; // disconnect from the source if the permission is manually updated membership.sourceId = null; - await membership.save(ctx.context); + await membership.save(toHookContext(ctx)); } } else { membership = await UserMembership.create( @@ -1966,7 +1967,7 @@ router.post( permission: permission || user.defaultDocumentPermission, createdById: actor.id, }, - ctx.context + toHookContext(ctx) ); } @@ -1985,9 +1986,9 @@ router.post( rateLimiter(RateLimiterStrategy.OneHundredPerHour), validate(T.DocumentsRemoveUserSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; - const { user: actor } = ctx.state.auth; + async (ctx: Context) => { + const { transaction } = ctx; + const { user: actor } = ctx.auth; const { id, userId } = ctx.input.body; const [document, user] = await Promise.all([ @@ -2023,7 +2024,7 @@ router.post( ); } - await membership.destroy(ctx.context); + await membership.destroy(toHookContext(ctx)); ctx.body = { success: true, @@ -2037,10 +2038,10 @@ router.post( rateLimiter(RateLimiterStrategy.OneHundredPerHour), validate(T.DocumentsAddGroupSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, groupId, permission } = ctx.input.body; - const { transaction } = ctx.state; - const { user } = ctx.state.auth; + const { transaction } = ctx; + const { user } = ctx.auth; const [document, group] = await Promise.all([ Document.findByPk(id, { @@ -2066,7 +2067,7 @@ router.post( membership.permission = permission; // disconnect from the source if the permission is manually updated membership.sourceId = null; - await membership.save(ctx.context); + await membership.save(toHookContext(ctx)); } } else { membership = await GroupMembership.create( @@ -2076,7 +2077,7 @@ router.post( permission: permission ?? DocumentPermission.ReadWrite, createdById: user.id, }, - ctx.context + toHookContext(ctx) ); } @@ -2094,9 +2095,9 @@ router.post( rateLimiter(RateLimiterStrategy.OneHundredPerHour), validate(T.DocumentsRemoveGroupSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { transaction } = ctx; + const { user } = ctx.auth; const { id, groupId } = ctx.input.body; const [document, group] = await Promise.all([ @@ -2123,7 +2124,7 @@ router.post( rejectOnEmpty: true, }); - await membership.destroy(ctx.context); + await membership.destroy(toHookContext(ctx)); ctx.body = { success: true, @@ -2136,9 +2137,9 @@ router.post( auth(), pagination(), validate(T.DocumentsMembershipsSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, query, permission } = ctx.input.body; - const { user: actor } = ctx.state.auth; + const { user: actor } = ctx.auth; const document = await Document.findByPk(id, { userId: actor.id }); authorize(actor, "update", document); @@ -2196,9 +2197,9 @@ router.post( auth(), pagination(), validate(T.DocumentsMembershipsSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, query, permission } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const document = await Document.findByPk(id, { userId: user.id }); authorize(user, "update", document); @@ -2259,8 +2260,8 @@ router.post( "documents.empty_trash", auth({ role: UserRole.Admin }), rateLimiter(RateLimiterStrategy.TenPerHour), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const collectionIds = await user.collectionIds({ paranoid: false, @@ -2305,7 +2306,7 @@ router.post( ); // Remove this helper once apiVersion is removed (#6175) -function getAPIVersion(ctx: APIContext) { +function getAPIVersion(ctx: Context) { return Number( ctx.headers["x-api-version"] ?? (typeof ctx.input.body === "object" && diff --git a/server/routes/api/emojis/emojis.ts b/server/routes/api/emojis/emojis.ts index a91539472f..4e850ba1d8 100644 --- a/server/routes/api/emojis/emojis.ts +++ b/server/routes/api/emojis/emojis.ts @@ -9,7 +9,7 @@ import { Emoji, User, Attachment } from "@server/models"; import BaseStorage from "@server/storage/files/BaseStorage"; import { authorize } from "@server/policies"; import { presentEmoji, presentPolicies } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -24,9 +24,9 @@ router.post( "emojis.info", auth(), validate(T.EmojisInfoSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, name } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const include = [ { @@ -71,9 +71,9 @@ router.get( "emojis.redirect", auth({ optional: true }), validate(T.EmojisRedirectSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, shareId } = ctx.input.query; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const emoji = await Emoji.unscoped().findByPk(id, { rejectOnEmpty: true, @@ -116,8 +116,8 @@ router.post( auth(), pagination(), validate(T.EmojisListSchema), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const { query } = ctx.input.body; let where: WhereOptions = { @@ -169,10 +169,10 @@ router.post( auth(), validate(T.EmojisCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { name, attachmentId } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; authorize(user, "createEmoji", user.team); const attachment = await Attachment.findByPk(attachmentId, { @@ -207,10 +207,10 @@ router.post( auth(), validate(T.EmojisUpdateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, attachmentId } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const emoji = await Emoji.findByPk(id, { transaction, @@ -261,13 +261,13 @@ router.post( auth(), validate(T.EmojisDeleteSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const emoji = await Emoji.findByPk(id, { - transaction: ctx.state.transaction, + transaction: ctx.transaction, rejectOnEmpty: true, lock: transaction.LOCK.UPDATE, }); diff --git a/server/routes/api/events/events.ts b/server/routes/api/events/events.ts index 24c611fec3..d8cc1e45af 100644 --- a/server/routes/api/events/events.ts +++ b/server/routes/api/events/events.ts @@ -8,7 +8,7 @@ import validate from "@server/middlewares/validate"; import { Event, User, Collection, Document } from "@server/models"; import { authorize } from "@server/policies"; import { presentEvent } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -19,8 +19,8 @@ router.post( auth(), pagination(), validate(T.EventsListSchema), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const { name, events, diff --git a/server/routes/api/fileOperations/fileOperations.ts b/server/routes/api/fileOperations/fileOperations.ts index a710c609c6..8299780fcd 100644 --- a/server/routes/api/fileOperations/fileOperations.ts +++ b/server/routes/api/fileOperations/fileOperations.ts @@ -9,7 +9,7 @@ import { FileOperation, Team } from "@server/models"; import { authorize } from "@server/policies"; import { presentFileOperation, presentPolicies } from "@server/presenters"; import FileStorage from "@server/storage/files"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -19,9 +19,9 @@ router.post( "fileOperations.info", auth(), validate(T.FileOperationsInfoSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const fileOperation = await FileOperation.findByPk(id, { userId: user.id, @@ -41,9 +41,9 @@ router.post( auth({ role: UserRole.Admin }), pagination(), validate(T.FileOperationsListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { direction, sort, type } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const where: WhereOptions = { teamId: user.teamId, @@ -94,10 +94,10 @@ router.post( ); const handleFileOperationsRedirect = async ( - ctx: APIContext + ctx: Context ) => { const id = (ctx.input.body.id ?? ctx.input.query.id) as string; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const fileOperation = await FileOperation.findByPk(id, { userId: user.id, @@ -128,10 +128,10 @@ router.post( auth({ role: UserRole.Admin }), validate(T.FileOperationsDeleteSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const fileOperation = await FileOperation.unscoped().findByPk(id, { rejectOnEmpty: true, diff --git a/server/routes/api/groupMemberships/groupMemberships.ts b/server/routes/api/groupMemberships/groupMemberships.ts index 4af2d90180..1834979ba5 100644 --- a/server/routes/api/groupMemberships/groupMemberships.ts +++ b/server/routes/api/groupMemberships/groupMemberships.ts @@ -10,7 +10,7 @@ import { presentGroupMembership, presentPolicies, } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -21,9 +21,9 @@ router.post( auth(), pagination(), validate(T.GroupMembershipsListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { groupId } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const userId = user.id; // Filtering on the user's groups up front lets the query use the groupId diff --git a/server/routes/api/groups/groups.ts b/server/routes/api/groups/groups.ts index de64b47e1b..8a24e1a0f4 100644 --- a/server/routes/api/groups/groups.ts +++ b/server/routes/api/groups/groups.ts @@ -22,7 +22,7 @@ import { presentPolicies, presentUser, } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { QueryHelper } from "@server/storage/QueryHelper"; import pagination from "../middlewares/pagination"; @@ -49,10 +49,10 @@ router.post( auth(), pagination(), validate(T.GroupsListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { sort, direction, query, userId, externalId, name, source } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "listGroups", user.team); let where: WhereOptions = { @@ -195,9 +195,9 @@ router.post( "groups.info", auth(), validate(T.GroupsInfoSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, externalId } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const include = [ { @@ -235,10 +235,10 @@ router.post( auth(), validate(T.GroupsCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { name, description, icon, color, externalId, disableMentions } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "createGroup", user.team); const group = await Group.createWithCtx(ctx, { @@ -267,10 +267,10 @@ router.post( auth(), validate(T.GroupsUpdateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const group = await Group.findByPk(id, { transaction, @@ -325,10 +325,10 @@ router.post( auth(), validate(T.GroupsDeleteSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const group = await Group.findByPk(id, { transaction, @@ -353,10 +353,10 @@ router.post( auth({ role: UserRole.Admin }), validate(T.GroupsDeleteAllSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { authenticationProviderId } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const authenticationProvider = await AuthenticationProvider.findByPk( authenticationProviderId, @@ -401,9 +401,9 @@ router.post( auth(), pagination(), validate(T.GroupsMembershipsSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, query, permission } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const group = await Group.findByPk(id); authorize(user, "read", group); @@ -470,10 +470,10 @@ router.post( auth(), validate(T.GroupsAddUserSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, userId, permission } = ctx.input.body; - const actor = ctx.state.auth.user; - const { transaction } = ctx.state; + const actor = ctx.auth.user; + const { transaction } = ctx; const user = await User.findByPk(userId, { transaction, @@ -549,10 +549,10 @@ router.post( auth(), validate(T.GroupsRemoveUserSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, userId } = ctx.input.body; - const actor = ctx.state.auth.user; - const { transaction } = ctx.state; + const actor = ctx.auth.user; + const { transaction } = ctx; const group = await Group.findByPk(id, { transaction, @@ -606,10 +606,10 @@ router.post( auth(), validate(T.GroupsUpdateUserSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, userId, permission } = ctx.input.body; - const actor = ctx.state.auth.user; - const { transaction } = ctx.state; + const actor = ctx.auth.user; + const { transaction } = ctx; // Load group with group users for authorization const group = await Group.findByPk(id, { diff --git a/server/routes/api/imports/imports.ts b/server/routes/api/imports/imports.ts index 0d674f6481..80fecfdae0 100644 --- a/server/routes/api/imports/imports.ts +++ b/server/routes/api/imports/imports.ts @@ -13,7 +13,7 @@ import { Attachment, Collection, Document, Integration } from "@server/models"; import Import from "@server/models/Import"; import { authorize } from "@server/policies"; import { presentImport, presentPolicies } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -25,14 +25,14 @@ const router = new Router(); * is chosen the user must be able to create documents in it; when a document * is chosen the user must be able to add children to it. * - * @param ctx The API context for the create request. + * @param ctx The context for the create request. * @returns The resolved destination ids (both null when no destination set). */ async function resolveImportDestination( - ctx: APIContext + ctx: Context ): Promise<{ collectionId: string | null; documentId: string | null }> { - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const { collectionId, documentId } = ctx.input.body; if (collectionId) { @@ -65,9 +65,9 @@ router.post( auth({ role: UserRole.Admin }), validate(T.ImportsCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const body = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "createImport", user.team); @@ -141,9 +141,9 @@ router.post( auth({ role: UserRole.Admin }), pagination(), validate(T.ImportsListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { service, sort, direction } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "listImports", user.team); @@ -180,9 +180,9 @@ router.post( "imports.info", auth({ role: UserRole.Admin }), validate(T.ImportsInfoSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const importModel = await Import.findByPk(id, { rejectOnEmpty: true, @@ -201,10 +201,10 @@ router.post( auth({ role: UserRole.Admin }), validate(T.ImportsDeleteSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const importModel = await Import.findByPk(id, { rejectOnEmpty: true, @@ -226,10 +226,10 @@ router.post( auth({ role: UserRole.Admin }), validate(T.ImportsCancelSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; let importModel = await Import.findByPk(id, { rejectOnEmpty: true, diff --git a/server/routes/api/index.ts b/server/routes/api/index.ts index 7ab2c17b25..04edb3e2f0 100644 --- a/server/routes/api/index.ts +++ b/server/routes/api/index.ts @@ -3,7 +3,6 @@ import bodyParser from "koa-body"; import Router from "@koa/router"; import env from "@server/env"; import { NotFoundError } from "@server/errors"; -import { apiContext } from "@server/middlewares/apiContext"; import cleanupMultipartFiles from "@server/middlewares/cleanupMultipartFiles"; import coalesceBody from "@server/middlewares/coaleseBody"; import requestContextMiddleware from "@server/middlewares/requestContext"; @@ -78,7 +77,6 @@ api.use(requestTracer()); api.use(apiResponse()); api.use(apiErrorHandler()); api.use(editor()); -api.use(apiContext()); api.use(verifyCSRFToken()); // Register plugin API routes before others to allow for overrides diff --git a/server/routes/api/installation/installation.ts b/server/routes/api/installation/installation.ts index e6c3bcaa38..9d23a64277 100644 --- a/server/routes/api/installation/installation.ts +++ b/server/routes/api/installation/installation.ts @@ -6,7 +6,7 @@ import auth from "@server/middlewares/authentication"; import { transaction } from "@server/middlewares/transaction"; import validate from "@server/middlewares/validate"; import { Team, User } from "@server/models"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { signIn } from "@server/utils/authentication"; import { getVersion, getVersionInfo } from "@server/utils/getInstallationInfo"; import * as T from "./schema"; @@ -18,9 +18,9 @@ router.post( "installation.create", validate(T.InstallationCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { teamName, userName, userEmail } = ctx.input.body; - const { transaction } = ctx.state; + const { transaction } = ctx; // Check that this can only be called when there are no existing teams const existingTeamCount = await Team.count({ transaction }); @@ -51,7 +51,7 @@ router.post( } ); -router.post("installation.info", auth(), async (ctx: APIContext) => { +router.post("installation.info", auth(), async (ctx: Context) => { const currentVersion = getVersion(); const { latestVersion, versionsBehind } = await getVersionInfo(currentVersion); diff --git a/server/routes/api/integrations/integrations.ts b/server/routes/api/integrations/integrations.ts index b31b0038a7..6a4642ef81 100644 --- a/server/routes/api/integrations/integrations.ts +++ b/server/routes/api/integrations/integrations.ts @@ -9,7 +9,7 @@ import validate from "@server/middlewares/validate"; import Integration from "@server/models/Integration"; import { authorize } from "@server/policies"; import { presentIntegration, presentPolicies } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -21,9 +21,9 @@ router.post( auth(), pagination(), validate(T.IntegrationsListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { direction, service, type, sort } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; let where: WhereOptions = { teamId: user.teamId, @@ -77,9 +77,9 @@ router.post( auth({ role: UserRole.Admin }), validate(T.IntegrationsCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { type, service, settings } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "createIntegration", user.team); @@ -102,9 +102,9 @@ router.post( "integrations.info", auth(), validate(T.IntegrationsInfoSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const integration = await Integration.findByPk(id, { rejectOnEmpty: true, @@ -123,10 +123,10 @@ router.post( auth({ role: UserRole.Admin }), validate(T.IntegrationsUpdateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, events, settings } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const integration = await Integration.findByPk(id, { transaction, @@ -158,10 +158,10 @@ router.post( auth(), validate(T.IntegrationsDeleteSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const integration = await Integration.findByPk(id, { rejectOnEmpty: true, diff --git a/server/routes/api/middlewares/apiErrorHandler.test.ts b/server/routes/api/middlewares/apiErrorHandler.test.ts index e1df1d7b16..687a4a2bf7 100644 --- a/server/routes/api/middlewares/apiErrorHandler.test.ts +++ b/server/routes/api/middlewares/apiErrorHandler.test.ts @@ -1,7 +1,7 @@ import httpErrors from "http-errors"; -import type { Context } from "koa"; import { AuthenticationError } from "@server/errors"; import apiErrorHandler from "./apiErrorHandler"; +import type { AppContext } from "@server/types"; const createContext = (challenge?: string) => { const headers: Record = {}; @@ -12,10 +12,10 @@ const createContext = (challenge?: string) => { response: { get: (field: string) => headers[field.toLowerCase()] ?? "", }, - } as unknown as Context; + } as unknown as AppContext; }; -const runWithError = async (ctx: Context) => { +const runWithError = async (ctx: AppContext) => { try { await apiErrorHandler()(ctx, () => Promise.reject(AuthenticationError())); } catch (err) { diff --git a/server/routes/api/middlewares/apiErrorHandler.ts b/server/routes/api/middlewares/apiErrorHandler.ts index 0b99206c49..1d78477dfa 100644 --- a/server/routes/api/middlewares/apiErrorHandler.ts +++ b/server/routes/api/middlewares/apiErrorHandler.ts @@ -1,5 +1,5 @@ import httpErrors from "http-errors"; -import type { Context, Next } from "koa"; +import type { Next } from "koa"; import { ValidationError as SequelizeValidationError, EmptyResultError as SequelizeEmptyResultError, @@ -19,6 +19,7 @@ import { isDatabaseUnavailableError, isQueryCanceledError, } from "@server/storage/database"; +import type { AppContext } from "@server/types"; /** Postgres codes for a requested date the database cannot represent. */ const DATE_RANGE_ERROR_CODES = new Set(["22008", "22015"]); @@ -38,7 +39,7 @@ function sqlStateOf(err: SequelizeDatabaseError): string | undefined { } export default function apiErrorHandler() { - return async function apiErrorHandlerMiddleware(ctx: Context, next: Next) { + return async function apiErrorHandlerMiddleware(ctx: AppContext, next: Next) { try { await next(); } catch (err) { diff --git a/server/routes/api/middlewares/apiResponse.ts b/server/routes/api/middlewares/apiResponse.ts index afcc0a0c07..7d54cf4e8d 100644 --- a/server/routes/api/middlewares/apiResponse.ts +++ b/server/routes/api/middlewares/apiResponse.ts @@ -1,9 +1,10 @@ import stream from "node:stream"; -import type { Context, Next } from "koa"; +import type { Next } from "koa"; import { Readable } from "readable-stream"; +import type { AppContext } from "@server/types"; export default function apiResponse() { - return async function apiResponseMiddleware(ctx: Context, next: Next) { + return async function apiResponseMiddleware(ctx: AppContext, next: Next) { await next(); const ok = ctx.status < 400; diff --git a/server/routes/api/middlewares/editor.ts b/server/routes/api/middlewares/editor.ts index 389817b0be..f4c07a1511 100644 --- a/server/routes/api/middlewares/editor.ts +++ b/server/routes/api/middlewares/editor.ts @@ -1,7 +1,8 @@ -import type { Context, Next } from "koa"; +import type { Next } from "koa"; import semver from "semver"; import EDITOR_VERSION from "@shared/editor/version"; import { EditorUpdateError } from "@server/errors"; +import type { AppContext } from "@server/types"; export default function editor() { /** @@ -9,7 +10,7 @@ export default function editor() { * version. See the equivalent logic for collab server in: * /server/collaboration/EditorVersionExtension.ts */ - return async function editorMiddleware(ctx: Context, next: Next) { + return async function editorMiddleware(ctx: AppContext, next: Next) { const clientVersion = ctx.headers["x-editor-version"]; if (clientVersion) { diff --git a/server/routes/api/notifications/notifications.ts b/server/routes/api/notifications/notifications.ts index af56d48591..7ca72e5a8b 100644 --- a/server/routes/api/notifications/notifications.ts +++ b/server/routes/api/notifications/notifications.ts @@ -14,7 +14,7 @@ import NotificationSettingsHelper from "@server/models/helpers/NotificationSetti import { authorize } from "@server/policies"; import { presentPolicies } from "@server/presenters"; import presentNotification from "@server/presenters/notification"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { safeEqual } from "@server/utils/crypto"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -31,8 +31,8 @@ const pixel = Buffer.from( * @param ctx The request context. * @returns The updated user, or undefined if the token is not valid. */ -const unsubscribe = async (ctx: APIContext) => { - const { transaction } = ctx.state; +const unsubscribe = async (ctx: Context) => { + const { transaction } = ctx; const eventType = (ctx.input.body.eventType ?? ctx.input.query.eventType) as NotificationEventType; const userId = (ctx.input.body.userId ?? ctx.input.query.userId) as string; @@ -62,7 +62,7 @@ router.get( "notifications.unsubscribe", validate(T.NotificationsUnsubscribeSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { follow } = ctx.input.query; // The link in the email does not include the follow query param, this @@ -86,7 +86,7 @@ router.post( "notifications.unsubscribe", validate(T.NotificationsUnsubscribeSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const user = await unsubscribe(ctx); if (!user) { throw AuthenticationError("Invalid unsubscribe token"); @@ -103,9 +103,9 @@ router.post( auth(), pagination(), validate(T.NotificationsListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { eventType, archived } = ctx.input.body; - const user = ctx.state.auth.user; + const user = ctx.auth.user; let where: WhereOptions = { teamId: user.teamId, userId: user.id, @@ -163,9 +163,9 @@ router.get( "notifications.pixel", validate(T.NotificationsPixelSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, token } = ctx.input.query; - const { transaction } = ctx.state; + const { transaction } = ctx; const notification = await Notification.unscoped().findByPk(id, { lock: transaction.LOCK.UPDATE, @@ -203,10 +203,10 @@ router.post( auth(), validate(T.NotificationsUpdateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, viewedAt, archivedAt } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const notification = await Notification.findByPk(id, { lock: { @@ -233,10 +233,10 @@ router.post( auth(), validate(T.NotificationsUpdateAllSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { viewedAt, archivedAt } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const values: Partial = {}; let where: WhereOptions = { diff --git a/server/routes/api/oauthAuthentications/oauthAuthentications.ts b/server/routes/api/oauthAuthentications/oauthAuthentications.ts index 56a5dfb263..f54f04ba27 100644 --- a/server/routes/api/oauthAuthentications/oauthAuthentications.ts +++ b/server/routes/api/oauthAuthentications/oauthAuthentications.ts @@ -9,7 +9,7 @@ import { authorize } from "@server/policies"; import { presentPolicies } from "@server/presenters"; import presentOAuthAuthentication from "@server/presenters/oauthAuthentication"; import { sequelize } from "@server/storage/database"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -21,8 +21,8 @@ router.post( auth(), pagination(), validate(T.OAuthAuthenticationsListSchema), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const oauthAuthentications = await sequelize.query( ` @@ -64,8 +64,8 @@ router.post( auth(), validate(T.OAuthAuthenticationsDeleteSchema), transaction(), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const { oauthClientId, scope } = ctx.input.body; const where = { userId: user.id, @@ -75,7 +75,7 @@ router.post( const oauthAuthentications = await OAuthAuthentication.findAll({ where, - transaction: ctx.state.transaction, + transaction: ctx.transaction, }); for (const oauthAuthentication of oauthAuthentications) { diff --git a/server/routes/api/oauthClients/oauthClients.ts b/server/routes/api/oauthClients/oauthClients.ts index 1e78cf8aac..9d38f0dd48 100644 --- a/server/routes/api/oauthClients/oauthClients.ts +++ b/server/routes/api/oauthClients/oauthClients.ts @@ -14,7 +14,7 @@ import { presentOAuthClient, presentPublishedOAuthClient, } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { ClientMetadataHelper } from "@server/utils/oauth/ClientMetadataHelper"; import { OAuthHelper } from "@server/utils/oauth/OAuthHelper"; @@ -31,10 +31,10 @@ const router = new Router(); * @param ctx The request context. * @returns true if the credential's scope covers managing clients. */ -function hasManageScope(ctx: APIContext) { +function hasManageScope(ctx: Context) { return AuthenticationHelper.canAccess( "/api/oauthClients.update", - ctx.state.auth.scope ?? ["*"] + ctx.auth.scope ?? ["*"] ); } @@ -43,8 +43,8 @@ router.post( auth({ role: UserRole.Admin }), pagination(), validate(T.OAuthClientsListSchema), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const where = { teamId: user.teamId, createdById: { @@ -81,9 +81,9 @@ router.post( rateLimiter(RateLimiterStrategy.OneHundredPerHour), auth(), validate(T.OAuthClientsInfoSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, clientId, redirectUri } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const oauthClient = clientId ? await ClientMetadataHelper.findOrFetchByClientId(clientId, user.team) @@ -123,9 +123,9 @@ router.post( auth({ role: UserRole.Admin }), validate(T.OAuthClientsCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const input = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "createOAuthClient", user.team); @@ -147,10 +147,10 @@ router.post( auth({ role: UserRole.Admin }), validate(T.OAuthClientsUpdateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, ...input } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const oauthClient = await OAuthClient.findByPk(id, { transaction, @@ -176,10 +176,10 @@ router.post( auth({ role: UserRole.Admin }), validate(T.OAuthClientsRotateSecretSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const oauthClient = await OAuthClient.findByPk(id, { transaction, @@ -205,10 +205,10 @@ router.post( auth({ role: UserRole.Admin }), validate(T.OAuthClientsDeleteSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body as { id: string }; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const oauthClient = await OAuthClient.findByPk(id, { transaction, diff --git a/server/routes/api/pins/pins.ts b/server/routes/api/pins/pins.ts index 283397539c..cf8cdb02ee 100644 --- a/server/routes/api/pins/pins.ts +++ b/server/routes/api/pins/pins.ts @@ -12,7 +12,7 @@ import { presentDocuments, presentPolicies, } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -25,10 +25,10 @@ router.post( auth(), validate(T.PinsCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { documentId, collectionId, index } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const document = await Document.findByPk(documentId, { userId: user.id, transaction, @@ -65,8 +65,8 @@ router.post( "pins.info", auth(), validate(T.PinsInfoSchema), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const { documentId, collectionId } = ctx.input.body; const document = await Document.findByPk(documentId, { @@ -102,9 +102,9 @@ router.post( auth(), validate(T.PinsListSchema), pagination(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { collectionId } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; if (collectionId) { const collection = await Collection.findByPk(collectionId, { @@ -161,10 +161,10 @@ router.post( auth(), validate(T.PinsUpdateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, index } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const pin = await Pin.findByPk(id, { transaction, lock: Transaction.LOCK.UPDATE, @@ -196,11 +196,11 @@ router.post( auth(), validate(T.PinsDeleteSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { transaction } = ctx.state; + const { transaction } = ctx; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const pin = await Pin.findByPk(id, { transaction, lock: Transaction.LOCK.UPDATE, diff --git a/server/routes/api/reactions/reactions.ts b/server/routes/api/reactions/reactions.ts index 755cf08da7..891f420ccc 100644 --- a/server/routes/api/reactions/reactions.ts +++ b/server/routes/api/reactions/reactions.ts @@ -5,7 +5,7 @@ import validate from "@server/middlewares/validate"; import { Comment, Document, Reaction, User } from "@server/models"; import { authorize } from "@server/policies"; import { presentReaction } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -16,9 +16,9 @@ router.post( auth(), pagination(), validate(T.ReactionsListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { commentId } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const comment = await Comment.findByPk(commentId, { rejectOnEmpty: true, diff --git a/server/routes/api/relationships/relationships.ts b/server/routes/api/relationships/relationships.ts index 121bb7b9f4..b1d82fd0e2 100644 --- a/server/routes/api/relationships/relationships.ts +++ b/server/routes/api/relationships/relationships.ts @@ -9,7 +9,7 @@ import { presentDocuments, presentPolicies, } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -19,9 +19,9 @@ router.post( "relationships.info", auth(), validate(T.RelationshipsInfoSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const relationship = await Relationship.findByPk(id, { rejectOnEmpty: true, @@ -58,9 +58,9 @@ router.post( auth(), pagination(), validate(T.RelationshipsListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { type, documentId, reverseDocumentId } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; // Results are anchored to a single document, which the user must be able to // read. Documents on the opposite side of each relationship are filtered by diff --git a/server/routes/api/revisions/revisions.ts b/server/routes/api/revisions/revisions.ts index 86b6912bb6..4795ff284f 100644 --- a/server/routes/api/revisions/revisions.ts +++ b/server/routes/api/revisions/revisions.ts @@ -18,7 +18,7 @@ import { ProsemirrorHelper } from "@server/models/helpers/ProsemirrorHelper"; import TextBundleHelper from "@server/models/helpers/TextBundleHelper"; import { authorize } from "@server/policies"; import { presentPolicies, presentRevision } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { streamZipResponse } from "@server/utils/koa"; import pagination from "../middlewares/pagination"; @@ -30,9 +30,9 @@ router.post( "revisions.info", auth(), validate(T.RevisionsInfoSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, documentId } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; let revision: Revision; if (id) { @@ -71,9 +71,9 @@ router.post( "revisions.update", auth(), validate(T.RevisionsUpdateSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, name } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const revision = await Revision.findByPk(id, { rejectOnEmpty: true, @@ -101,10 +101,10 @@ router.post( auth({ role: UserRole.Admin }), validate(T.RevisionsDeleteSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const revision = await Revision.findByPk(id, { rejectOnEmpty: true, @@ -135,9 +135,9 @@ router.post( rateLimiter(RateLimiterStrategy.TwentyFivePerMinute), auth(), validate(T.RevisionsExportSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const accept = ctx.request.headers["accept"]; const revision = await Revision.findByPk(id, { @@ -280,9 +280,9 @@ router.post( auth(), pagination(), validate(T.RevisionsListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { direction, documentId, sort } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const document = await Document.findByPk(documentId, { userId: user.id, diff --git a/server/routes/api/searches/searches.ts b/server/routes/api/searches/searches.ts index 35200caa54..dd4a2f7c0a 100644 --- a/server/routes/api/searches/searches.ts +++ b/server/routes/api/searches/searches.ts @@ -4,7 +4,7 @@ import { transaction } from "@server/middlewares/transaction"; import validate from "@server/middlewares/validate"; import { SearchQuery } from "@server/models"; import { presentSearchQuery } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -15,8 +15,8 @@ router.post( auth(), validate(T.SearchesListSchema), pagination(), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const source = ctx.input.body?.source; const searches = await SearchQuery.findAll({ @@ -42,10 +42,10 @@ router.post( auth(), validate(T.SearchesUpdateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, score } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const search = await SearchQuery.findOne({ where: { @@ -70,9 +70,9 @@ router.post( "searches.delete", auth(), validate(T.SearchesDeleteSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, query } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; await SearchQuery.destroy({ where: { diff --git a/server/routes/api/shares/shares.test.ts b/server/routes/api/shares/shares.test.ts index a223e655aa..6b6051bbea 100644 --- a/server/routes/api/shares/shares.test.ts +++ b/server/routes/api/shares/shares.test.ts @@ -17,7 +17,7 @@ import { buildTeam, } from "@server/test/factories"; -import { getTestServer, withAPIContext } from "@server/test/support"; +import { getTestServer, withContext } from "@server/test/support"; const server = getTestServer(); @@ -174,7 +174,7 @@ describe("#shares.list", () => { teamId: user.teamId, userId: user.id, }); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); const res = await server.post("/api/shares.list", user); const body = await res.json(); expect(res.status).toEqual(200); @@ -1546,7 +1546,7 @@ describe("#shares.revoke", () => { teamId: user.teamId, userId: user.id, }); - await withAPIContext(user, (ctx) => document.destroyWithCtx(ctx)); + await withContext(user, (ctx) => document.destroyWithCtx(ctx)); const res = await server.post("/api/shares.revoke", user, { body: { id: share.id, diff --git a/server/routes/api/shares/shares.ts b/server/routes/api/shares/shares.ts index ccb3bd8da3..4b5cfc43ad 100644 --- a/server/routes/api/shares/shares.ts +++ b/server/routes/api/shares/shares.ts @@ -31,7 +31,7 @@ import { presentCollection, presentDocument, } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { getTeamFromContext } from "@server/utils/passport"; import { QueryHelper } from "@server/storage/QueryHelper"; @@ -52,9 +52,9 @@ router.post( "shares.info", auth({ optional: true }), validate(T.SharesInfoSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, collectionId, documentId } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; // only public link loads will send "id". if (id) { @@ -160,9 +160,9 @@ router.post( auth(), pagination(), validate(T.SharesListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { sort, direction, query } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "listShares", user.team); const collectionIds = await user.collectionIds(); @@ -261,7 +261,7 @@ router.post( auth(), validate(T.SharesCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { collectionId, documentId, @@ -274,7 +274,7 @@ router.post( showTOC, expiresAt, } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "createShare", user.team); const collection = collectionId @@ -350,7 +350,7 @@ router.post( auth(), validate(T.SharesUpdateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, includeChildDocuments, @@ -365,7 +365,7 @@ router.post( iconUrl, } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; authorize(user, "share", user.team); // fetch the share with document and collection. @@ -407,9 +407,9 @@ router.post( auth(), validate(T.SharesRevokeSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const share = await Share.scope({ method: ["withCollectionPermissions", user.id], }).findByPk(id); @@ -433,7 +433,7 @@ router.get( rateLimiter(RateLimiterStrategy.TwentyFivePerMinute), shareDomains(), validate(T.SharesSitemapSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.query; const team = await getTeamFromContext(ctx, { includeOAuthState: false }); @@ -461,13 +461,13 @@ router.post( rateLimiter(RateLimiterStrategy.TenPerHour), validate(T.SharesSubscribeSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { if (!env.EMAIL_ENABLED) { throw InvalidRequestError("Email is not configured"); } const { shareId, documentId, email } = ctx.input.body; - const { transaction } = ctx.state; + const { transaction } = ctx; const team = await getTeamFromContext(ctx, { includeOAuthState: false }); // Validate the share exists and is published @@ -551,9 +551,9 @@ router.get( rateLimiter(RateLimiterStrategy.TenPerMinute), validate(T.SharesConfirmSubscriptionSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, token, follow } = ctx.input.query; - const { transaction } = ctx.state; + const { transaction } = ctx; // Anti-prefetch: prevent email clients from pre-fetching the link if (!follow) { @@ -615,9 +615,9 @@ router.get( * @param ctx The request context. * @returns The updated subscription, or undefined if the token is not valid. */ -const unsubscribeShare = async (ctx: APIContext) => { +const unsubscribeShare = async (ctx: Context) => { const { id, token } = ctx.input.query; - const { transaction } = ctx.state; + const { transaction } = ctx; const subscription = await ShareSubscription.findByPk(id, { transaction, @@ -644,7 +644,7 @@ router.get( "shares.unsubscribe", validate(T.SharesUnsubscribeSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { follow } = ctx.input.query; // Anti-prefetch: prevent email clients from pre-fetching the link @@ -669,7 +669,7 @@ router.post( "shares.unsubscribe", validate(T.SharesUnsubscribeSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const subscription = await unsubscribeShare(ctx); if (!subscription) { throw AuthenticationError("Invalid unsubscribe token"); diff --git a/server/routes/api/stars/stars.ts b/server/routes/api/stars/stars.ts index 5b9dfcb378..96874aecf7 100644 --- a/server/routes/api/stars/stars.ts +++ b/server/routes/api/stars/stars.ts @@ -12,7 +12,7 @@ import { presentDocuments, presentPolicies, } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { starIndexing } from "@server/utils/indexing"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import pagination from "../middlewares/pagination"; @@ -26,10 +26,10 @@ router.post( auth(), validate(T.StarsCreateSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { documentId, collectionId, index } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; if (documentId) { const document = await Document.findByPk(documentId, { @@ -67,8 +67,8 @@ router.post( auth(), pagination(), validate(T.StarsListSchema), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const [stars, collectionIds] = await Promise.all([ Star.findAll({ @@ -124,10 +124,10 @@ router.post( auth(), validate(T.StarsUpdateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, index } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const star = await Star.findByPk(id, { transaction, @@ -149,10 +149,10 @@ router.post( auth(), validate(T.StarsDeleteSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id } = ctx.input.body; - const { user } = ctx.state.auth; - const { transaction } = ctx.state; + const { user } = ctx.auth; + const { transaction } = ctx; const star = await Star.findByPk(id, { transaction, diff --git a/server/routes/api/subscriptions/subscriptions.ts b/server/routes/api/subscriptions/subscriptions.ts index 012191adee..2c9497b96b 100644 --- a/server/routes/api/subscriptions/subscriptions.ts +++ b/server/routes/api/subscriptions/subscriptions.ts @@ -13,7 +13,7 @@ import { Subscription, Document, User, Collection } from "@server/models"; import SubscriptionHelper from "@server/models/helpers/SubscriptionHelper"; import { authorize } from "@server/policies"; import { presentSubscription } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { safeEqual } from "@server/utils/crypto"; import pagination from "../middlewares/pagination"; @@ -26,8 +26,8 @@ router.post( auth(), pagination(), validate(T.SubscriptionsListSchema), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const { event, collectionId, documentId } = ctx.input.body; const where: WhereOptions = { @@ -38,7 +38,7 @@ router.post( if (collectionId) { const collection = await Collection.findByPk(collectionId, { userId: user.id, - transaction: ctx.state.transaction, + transaction: ctx.transaction, }); authorize(user, "read", collection); @@ -72,8 +72,8 @@ router.post( "subscriptions.info", auth(), validate(T.SubscriptionsInfoSchema), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const { event, collectionId, documentId } = ctx.input.body; const where: WhereOptions = { @@ -121,8 +121,8 @@ router.post( auth(), validate(T.SubscriptionsCreateSchema), transaction(), - async (ctx: APIContext) => { - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { user } = ctx.auth; const { event, collectionId, documentId } = ctx.input.body; if (documentId) { @@ -159,8 +159,8 @@ router.get( validate(T.SubscriptionsDeleteTokenSchema), rateLimiter(RateLimiterStrategy.FivePerMinute), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; + async (ctx: Context) => { + const { transaction } = ctx; const { follow, userId, documentId, token } = ctx.input.query; // The link in the email does not include the follow query param, this @@ -237,9 +237,9 @@ router.post( auth(), validate(T.SubscriptionsDeleteSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { transaction } = ctx; + const { user } = ctx.auth; const { id } = ctx.input.body; const subscription = await Subscription.findByPk(id, { diff --git a/server/routes/api/suggestions/suggestions.ts b/server/routes/api/suggestions/suggestions.ts index ed674ee9ed..8d57b947da 100644 --- a/server/routes/api/suggestions/suggestions.ts +++ b/server/routes/api/suggestions/suggestions.ts @@ -19,7 +19,7 @@ import { presentGroup, presentUser, } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import pagination from "../middlewares/pagination"; import * as T from "./schema"; @@ -33,10 +33,10 @@ router.post( auth(), pagination(), validate(T.SuggestionsListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { query } = ctx.input.body; const { offset, limit } = ctx.state.pagination; - const actor = ctx.state.auth.user; + const actor = ctx.auth.user; const suggestUsers = async (): Promise<{ users: User[]; diff --git a/server/routes/api/teams/teams.ts b/server/routes/api/teams/teams.ts index 6746a617ff..e4de6424c3 100644 --- a/server/routes/api/teams/teams.ts +++ b/server/routes/api/teams/teams.ts @@ -12,16 +12,16 @@ import validate from "@server/middlewares/validate"; import { Team, TeamDomain, User } from "@server/models"; import { authorize } from "@server/policies"; import { presentTeam, presentPolicies } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { safeEqual } from "@server/utils/crypto"; import * as T from "./schema"; const router = new Router(); -const handleTeamUpdate = async (ctx: APIContext) => { - const { transaction } = ctx.state; - const { user } = ctx.state.auth; +const handleTeamUpdate = async (ctx: Context) => { + const { transaction } = ctx; + const { user } = ctx.auth; const team = await Team.findByPk(user.teamId, { include: [{ model: TeamDomain, separate: true }], lock: transaction.LOCK.NO_KEY_UPDATE, @@ -63,12 +63,12 @@ router.post( "teams.requestDelete", rateLimiter(RateLimiterStrategy.FivePerHour), auth(), - async (ctx: APIContext) => { + async (ctx: Context) => { if (!env.EMAIL_ENABLED) { throw ValidationError("Email support is not set up for this instance"); } - const { user } = ctx.state.auth; + const { user } = ctx.auth; const { team } = user; authorize(user, "delete", team); @@ -90,8 +90,8 @@ router.post( auth(), validate(T.TeamsDeleteSchema), transaction(), - async (ctx: APIContext) => { - const { auth } = ctx.state; + async (ctx: Context) => { + const { auth } = ctx; const { code } = ctx.input.body; const { user } = auth; const { team } = user; @@ -120,9 +120,9 @@ router.post( auth(), validate(T.TeamsCreateSchema), transaction(), - async (ctx: APIContext) => { - const { transaction } = ctx.state; - const { user } = ctx.state.auth; + async (ctx: Context) => { + const { transaction } = ctx; + const { user } = ctx.auth; const { name } = ctx.input.body; const existingTeam = await Team.scope( diff --git a/server/routes/api/templates/templates.ts b/server/routes/api/templates/templates.ts index 47c5619cea..dfbd191e0c 100644 --- a/server/routes/api/templates/templates.ts +++ b/server/routes/api/templates/templates.ts @@ -10,7 +10,7 @@ import validate from "@server/middlewares/validate"; import { Collection, Template } from "@server/models"; import { authorize } from "@server/policies"; import { presentPolicies, presentTemplate } from "@server/presenters"; -import type { APIContext } from "@server/types"; +import type { Context } from "@server/types"; import { RateLimiterStrategy } from "@server/utils/RateLimiter"; import { QueryHelper } from "@server/storage/QueryHelper"; import pagination from "../middlewares/pagination"; @@ -24,13 +24,13 @@ router.post( rateLimiter(RateLimiterStrategy.TwentyFivePerMinute), validate(T.TemplatesCreateSchema), transaction(), - async (ctx: APIContext) => { + async (ctx: Context) => { const { id, title, data, icon, color, collectionId, publish } = ctx.input.body; const editorVersion = ctx.headers["x-editor-version"] as string | undefined; - const { transaction } = ctx.state; - const { user } = ctx.state.auth; + const { transaction } = ctx; + const { user } = ctx.auth; if (publish && (!data || ProsemirrorDataHelper.isEmpty(data))) { throw ValidationError("A published template must have content"); @@ -79,9 +79,9 @@ router.post( auth(), pagination(), validate(T.TemplatesListSchema), - async (ctx: APIContext) => { + async (ctx: Context) => { const { sort, direction, collectionId, query } = ctx.input.body; - const { user } = ctx.state.auth; + const { user } = ctx.auth; const where: WhereOptions