Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

feat(workspaces): quiet-collaboration UX overhaul — explicit reversible sharing, honest workspace settings, working invitation journey

Gabriel Stein4eced705fa5e
diff --git a/src/components/AcceptInvitationModal.tsx b/src/components/AcceptInvitationModal.tsx
index b4184e874..90fc24075 100644
--- a/src/components/AcceptInvitationModal.tsx
+++ b/src/components/AcceptInvitationModal.tsx
@@ -1,5 +1,6 @@
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
+import { Loader2 } from "lucide-react";
import {
Dialog,
DialogContent,
@@ -15,32 +16,31 @@ import {
clearPendingInvitationToken,
} from "../utils/pendingInvitationToken";
import { useWorkspaceStore } from "../stores/workspaceStore";
+import { useAuth } from "../hooks/useAuth";
import { useToast } from "./ui/useToast";
+import SignInDialog from "./SignInDialog";
import type { InvitationPreview } from "../types/electron";
interface Props {
token: string | null;
onClose: () => void;
- isSignedIn: boolean;
- onSignIn: () => void;
}
-export default function AcceptInvitationModal({ token, onClose, isSignedIn, onSignIn }: Props) {
+export default function AcceptInvitationModal({ token, onClose }: Props) {
const { t } = useTranslation();
const { toast } = useToast();
+ const { isSignedIn, user } = useAuth();
const refresh = useWorkspaceStore((s) => s.refresh);
- const setActive = useWorkspaceStore((s) => s.setActiveWorkspaceId);
const [preview, setPreview] = useState<InvitationPreview | null>(null);
const [loading, setLoading] = useState(false);
const [accepting, setAccepting] = useState(false);
const [error, setError] = useState<string | null>(null);
+ const [signInOpen, setSignInOpen] = useState(false);
useEffect(() => {
- if (!token) {
- setPreview(null);
- setError(null);
- return;
- }
+ setPreview(null);
+ setError(null);
+ if (!token) return;
setLoading(true);
InvitationsService.preview(token)
.then(setPreview)
@@ -48,19 +48,24 @@ export default function AcceptInvitationModal({ token, onClose, isSignedIn, onSi
.finally(() => setLoading(false));
}, [token, t]);
+ const wrongAccount =
+ isSignedIn &&
+ !!preview &&
+ !!user?.email &&
+ user.email.toLowerCase() !== preview.email.toLowerCase();
+
async function handleAccept() {
if (!token) return;
if (!isSignedIn) {
storePendingInvitationToken(token);
- onSignIn();
+ setSignInOpen(true);
return;
}
setAccepting(true);
try {
- const result = await InvitationsService.accept(token);
+ await InvitationsService.accept(token);
clearPendingInvitationToken();
await refresh();
- setActive(result.workspace_id);
toast({
title: t("workspaces.accept.successTitle"),
description: preview
@@ -85,40 +90,61 @@ export default function AcceptInvitationModal({ token, onClose, isSignedIn, onSi
}
return (
- <Dialog open={!!token} onOpenChange={(open) => !open && handleDecline()}>
- <DialogContent className="max-w-md">
- <DialogHeader>
- <DialogTitle>{t("workspaces.accept.title")}</DialogTitle>
- {preview && (
- <>
- <DialogDescription>
- {t("workspaces.accept.description", {
- inviter: preview.inviter_name || preview.inviter_email || "",
- workspace: preview.workspace_name,
- role: preview.workspace_role,
- })}
- </DialogDescription>
- <DialogDescription className="text-xs text-muted-foreground/80 mt-1">
- {t("workspaces.accept.sentTo", { email: preview.email })}
- </DialogDescription>
- </>
- )}
- {error && <DialogDescription className="text-destructive">{error}</DialogDescription>}
- {loading && <DialogDescription>{t("workspaces.accept.loading")}</DialogDescription>}
- </DialogHeader>
- <DialogFooter>
- <Button variant="ghost" onClick={handleDecline} disabled={accepting}>
- {t("common.cancel")}
- </Button>
- <Button onClick={handleAccept} disabled={!preview || accepting || !!error}>
- {accepting
- ? t("workspaces.accept.accepting")
- : isSignedIn
- ? t("workspaces.accept.accept")
- : t("workspaces.accept.signInToAccept")}
- </Button>
- </DialogFooter>
- </DialogContent>
- </Dialog>
+ <>
+ <Dialog open={!!token} onOpenChange={(open) => !open && handleDecline()}>
+ <DialogContent className="max-w-md">
+ <DialogHeader>
+ <DialogTitle>{t("workspaces.accept.title")}</DialogTitle>
+ {preview && (
+ <>
+ <DialogDescription>
+ {t("workspaces.accept.description", {
+ inviter: preview.inviter_name || preview.inviter_email || "",
+ workspace: preview.workspace_name,
+ role: t(`settingsPage.workspace.role.${preview.workspace_role}`),
+ })}
+ </DialogDescription>
+ {wrongAccount ? (
+ <DialogDescription className="text-xs text-destructive mt-1">
+ {t("workspaces.accept.wrongAccount", {
+ email: preview.email,
+ current: user?.email,
+ })}
+ </DialogDescription>
+ ) : (
+ <DialogDescription className="text-xs text-muted-foreground/80 mt-1">
+ {t("workspaces.accept.sentTo", { email: preview.email })}
+ </DialogDescription>
+ )}
+ </>
+ )}
+ {error && <DialogDescription className="text-destructive">{error}</DialogDescription>}
+ {loading && <DialogDescription>{t("workspaces.accept.loading")}</DialogDescription>}
+ </DialogHeader>
+ <DialogFooter>
+ <Button variant="ghost" onClick={handleDecline} disabled={accepting}>
+ {t("common.cancel")}
+ </Button>
+ <Button
+ onClick={handleAccept}
+ disabled={loading || !preview || accepting || !!error || wrongAccount}
+ >
+ {accepting ? (
+ <>
+ <Loader2 className="w-3.5 h-3.5 animate-spin" />
+ {t("workspaces.accept.accepting")}
+ </>
+ ) : isSignedIn ? (
+ t("workspaces.accept.accept")
+ ) : (
+ t("workspaces.accept.signInToAccept")
+ )}
+ </Button>
+ </DialogFooter>
+ </DialogContent>
+ </Dialog>
+
+ <SignInDialog open={signInOpen} onOpenChange={setSignInOpen} />
+ </>
);
}
diff --git a/src/components/AuthenticationStep.tsx b/src/components/AuthenticationStep.tsx
index d09db672b..e26f0a5b3 100644
--- a/src/components/AuthenticationStep.tsx
+++ b/src/components/AuthenticationStep.tsx
@@ -19,7 +19,7 @@ import { getCachedPlatform } from "../utils/platform";
import ForgotPasswordView from "./ForgotPasswordView";
interface AuthenticationStepProps {
- onContinueWithoutAccount: () => void;
+ onContinueWithoutAccount?: () => void;
onAuthComplete: () => void;
onNeedsVerification: (email: string) => void;
}
@@ -316,10 +316,12 @@ export default function AuthenticationStep({
</p>
</div>
- <Button onClick={onContinueWithoutAccount} className="w-full h-9">
- <span className="text-sm font-medium">{t("auth.getStarted")}</span>
- <ArrowRight className="w-3.5 h-3.5" />
- </Button>
+ {onContinueWithoutAccount && (
+ <Button onClick={onContinueWithoutAccount} className="w-full h-9">
+ <span className="text-sm font-medium">{t("auth.getStarted")}</span>
+ <ArrowRight className="w-3.5 h-3.5" />
+ </Button>
+ )}
</div>
);
}
@@ -646,18 +648,20 @@ export default function AuthenticationStep({
</div>
)}
- <div className="pt-1">
- <Button
- type="button"
- variant="ghost"
- size="sm"
- onClick={onContinueWithoutAccount}
- className="w-full font-normal text-muted-foreground/85 hover:text-foreground hover:bg-muted/30"
- disabled={isSocialLoading !== null || isCheckingEmail || isSSOLoading}
- >
- {t("auth.emailStep.continueWithoutAccount")}
- </Button>
- </div>
+ {onContinueWithoutAccount && (
+ <div className="pt-1">
+ <Button
+ type="button"
+ variant="ghost"
+ size="sm"
+ onClick={onContinueWithoutAccount}
+ className="w-full font-normal text-muted-foreground/85 hover:text-foreground hover:bg-muted/30"
+ disabled={isSocialLoading !== null || isCheckingEmail || isSSOLoading}
+ >
+ {t("auth.emailStep.continueWithoutAccount")}
+ </Button>
+ </div>
+ )}
<p className="text-xs text-muted-foreground/80 leading-tight text-center">
{t("auth.legal.prefix")}{" "}
diff --git a/src/components/ControlPanel.tsx b/src/components/ControlPanel.tsx
index 41633fc3b..472729989 100644
--- a/src/components/ControlPanel.tsx
+++ b/src/components/ControlPanel.tsx
@@ -262,6 +262,9 @@ export default function ControlPanel({ initialSettingsSection }: ControlPanelPro
const unsubscribe = window.electronAPI?.onWorkspaceInvitationToken?.((token) => {
setInvitationToken(token);
});
+ window.electronAPI?.getPendingInvitationToken?.().then((token) => {
+ if (token) setInvitationToken(token);
+ });
return () => unsubscribe?.();
}, []);
@@ -699,14 +702,7 @@ export default function ControlPanel({ initialSettingsSection }: ControlPanelPro
</Suspense>
)}
- <AcceptInvitationModal
- token={invitationToken}
- onClose={() => setInvitationToken(null)}
- isSignedIn={isSignedIn}
- onSignIn={() => {
- setInvitationToken(null);
- }}
- />
+ <AcceptInvitationModal token={invitationToken} onClose={() => setInvitationToken(null)} />
{showSearch && (
<Suspense fallback={null}>
diff --git a/src/components/ControlPanelSidebar.tsx b/src/components/ControlPanelSidebar.tsx
index e773075c0..865b8c800 100644
--- a/src/components/ControlPanelSidebar.tsx
+++ b/src/components/ControlPanelSidebar.tsx
@@ -10,7 +10,6 @@ import {
Settings,
HelpCircle,
UserCircle,
- UserPlus,
X,
Search,
} from "lucide-react";
@@ -19,10 +18,6 @@ import { useTranslation } from "react-i18next";
import { cn } from "./lib/utils";
import SupportDropdown from "./ui/SupportDropdown";
import { getCachedPlatform } from "../utils/platform";
-import WorkspaceSwitcher from "./WorkspaceSwitcher";
-import InviteTeammateDialog from "./InviteTeammateDialog";
-import CreateWorkspaceDialog from "./CreateWorkspaceDialog";
-import { useWorkspace } from "../hooks/useWorkspace";
const platform = getCachedPlatform();
@@ -68,9 +63,6 @@ export default function ControlPanelSidebar({
const [upgradeDismissed, setUpgradeDismissed] = useState(
() => localStorage.getItem("upgradeProDismissed") === "true"
);
- const [inviteOpen, setInviteOpen] = useState(false);
- const [createWorkspaceOpen, setCreateWorkspaceOpen] = useState(false);
- const { active: activeWorkspace } = useWorkspace();
const showLimitBanner = authLoaded && isSignedIn && !isProUser && isOverLimit;
const showUpgradeBanner =
@@ -100,12 +92,6 @@ export default function ControlPanelSidebar({
style={{ WebkitAppRegion: "drag" } as React.CSSProperties}
/>
- {isSignedIn && (
- <div className="px-2 pt-1 pb-1">
- <WorkspaceSwitcher userName={userName} />
- </div>
- )}
-
{onOpenSearch && (
<div className="px-2 pt-2 pb-1">
<button
@@ -248,24 +234,6 @@ export default function ControlPanelSidebar({
</button>
)}
- {isSignedIn && (
- <button
- onClick={() => (activeWorkspace ? setInviteOpen(true) : setCreateWorkspaceOpen(true))}
- aria-label={
- activeWorkspace ? t("sidebar.inviteTeammate") : t("sidebar.createWorkspace")
- }
- className="group flex items-center gap-2.5 w-full h-8 px-2.5 rounded-md text-left outline-none hover:bg-foreground/4 dark:hover:bg-white/4 focus-visible:ring-1 focus-visible:ring-primary/30 transition-colors duration-150"
- >
- <UserPlus
- size={15}
- className="shrink-0 text-foreground/60 group-hover:text-foreground/75 dark:text-foreground/50 dark:group-hover:text-foreground/65 transition-colors duration-150"
- />
- <span className="text-xs text-foreground/80 group-hover:text-foreground dark:text-foreground/70 dark:group-hover:text-foreground/85 transition-colors duration-150">
- {activeWorkspace ? t("sidebar.inviteTeammate") : t("sidebar.createWorkspace")}
- </span>
- </button>
- )}
-
<button
onClick={onOpenSettings}
aria-label={t("sidebar.settings")}
@@ -325,16 +293,6 @@ export default function ControlPanelSidebar({
</div>
</div>
</div>
-
- {activeWorkspace && (
- <InviteTeammateDialog
- open={inviteOpen}
- onOpenChange={setInviteOpen}
- workspaceId={activeWorkspace.id}
- workspaceName={activeWorkspace.name}
- />
- )}
- <CreateWorkspaceDialog open={createWorkspaceOpen} onOpenChange={setCreateWorkspaceOpen} />
</div>
);
}
diff --git a/src/components/CreateWorkspaceDialog.tsx b/src/components/CreateWorkspaceDialog.tsx
index 056062170..700bdd513 100644
--- a/src/components/CreateWorkspaceDialog.tsx
+++ b/src/components/CreateWorkspaceDialog.tsx
@@ -1,5 +1,6 @@
-import React, { useState } from "react";
+import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
+import { Loader2 } from "lucide-react";
import {
Dialog,
DialogContent,
@@ -28,6 +29,10 @@ export default function CreateWorkspaceDialog({ open, onOpenChange, onCreated }:
const [name, setName] = useState("");
const [submitting, setSubmitting] = useState(false);
+ useEffect(() => {
+ if (!open) setName("");
+ }, [open]);
+
async function handleSubmit(e: React.FormEvent) {
e.preventDefault();
if (!name.trim()) return;
@@ -35,13 +40,12 @@ export default function CreateWorkspaceDialog({ open, onOpenChange, onCreated }:
try {
const workspace = await createWorkspace(name.trim());
setActive(workspace.id);
- onCreated?.(workspace.id);
onOpenChange(false);
- setName("");
toast({
title: t("workspaces.created.title"),
description: t("workspaces.created.description", { name: workspace.name }),
});
+ onCreated?.(workspace.id);
} catch (error) {
toast({
title: t("workspaces.create.errorTitle"),
@@ -84,6 +88,7 @@ export default function CreateWorkspaceDialog({ open, onOpenChange, onCreated }:
{t("common.cancel")}
</Button>
<Button type="submit" disabled={!name.trim() || submitting}>
+ {submitting && <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />}
{submitting ? t("workspaces.create.submitting") : t("workspaces.create.submit")}
</Button>
</DialogFooter>
diff --git a/src/components/InviteTeammateDialog.tsx b/src/components/InviteTeammateDialog.tsx
index 924da2637..82a5fd62b 100644
--- a/src/components/InviteTeammateDialog.tsx
+++ b/src/components/InviteTeammateDialog.tsx
@@ -1,5 +1,6 @@
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
+import { Loader2 } from "lucide-react";
import {
Dialog,
DialogContent,
@@ -14,9 +15,9 @@ import { Label } from "./ui/label";
import { cn } from "./lib/utils";
import { useWorkspaceStore } from "../stores/workspaceStore";
import { InvitationsService } from "../services/InvitationsService";
-import { TeamsService } from "../services/TeamsService";
+import { CloudApiError } from "../services/cloudApi";
+import { WorkspacesService } from "../services/WorkspacesService";
import { useToast } from "./ui/useToast";
-import type { Team } from "../types/electron";
interface Props {
open: boolean;
@@ -24,6 +25,8 @@ interface Props {
workspaceId: string;
workspaceName: string;
onInvited?: () => void;
+ onNavigateToBilling?: () => void;
+ cancelLabel?: string;
}
export default function InviteTeammateDialog({
@@ -32,63 +35,71 @@ export default function InviteTeammateDialog({
workspaceId,
workspaceName,
onInvited,
+ onNavigateToBilling,
+ cancelLabel,
}: Props) {
const { t } = useTranslation();
const { toast } = useToast();
const [email, setEmail] = useState("");
const [role, setRole] = useState<"admin" | "member">("member");
- const [teams, setTeams] = useState<Team[]>([]);
- const [selectedTeams, setSelectedTeams] = useState<Set<string>>(new Set());
const [submitting, setSubmitting] = useState(false);
- const refreshTeams = useWorkspaceStore((s) => s.refreshTeams);
+ const [seatsUsed, setSeatsUsed] = useState<number | null>(null);
+ const [seatLimitSeats, setSeatLimitSeats] = useState<number | null>(null);
+ const seats = useWorkspaceStore(
+ (s) => s.workspaces.find((w) => w.id === workspaceId)?.seats ?? null
+ );
useEffect(() => {
if (!open) return;
- TeamsService.list(workspaceId)
- .then(setTeams)
- .catch(() => setTeams([]));
+ let cancelled = false;
+ WorkspacesService.previewSeats(workspaceId, 1)
+ .then((preview) => {
+ if (!cancelled) setSeatsUsed(preview.next_quantity - 1);
+ })
+ .catch(() => {
+ if (!cancelled) setSeatsUsed(null);
+ });
+ return () => {
+ cancelled = true;
+ };
}, [open, workspaceId]);
useEffect(() => {
if (!open) {
setEmail("");
setRole("member");
- setSelectedTeams(new Set());
+ setSeatsUsed(null);
+ setSeatLimitSeats(null);
}
}, [open]);
- function toggleTeam(id: string) {
- setSelectedTeams((prev) => {
- const next = new Set(prev);
- if (next.has(id)) next.delete(id);
- else next.add(id);
- return next;
- });
- }
-
async function handleSubmit(e: React.FormEvent) {
e.preventDefault();
if (!email.trim()) return;
setSubmitting(true);
+ setSeatLimitSeats(null);
try {
await InvitationsService.send(workspaceId, {
email: email.trim().toLowerCase(),
role,
- team_ids: Array.from(selectedTeams),
});
toast({
title: t("workspaces.invite.sentTitle"),
description: t("workspaces.invite.sentDescription", { email }),
});
- void refreshTeams(workspaceId);
onInvited?.();
onOpenChange(false);
} catch (error) {
- toast({
- title: t("workspaces.invite.errorTitle"),
- description: error instanceof Error ? error.message : t("common.unknownError"),
- variant: "destructive",
- });
+ if (error instanceof CloudApiError && error.code === "seat_limit_reached") {
+ const details = error.details as { seats?: number } | undefined;
+ setSeatLimitSeats(details?.seats ?? seats ?? 0);
+ } else {
+ toast({
+ title: t("workspaces.invite.errorTitle"),
+ description: error instanceof Error ? error.message : t("common.unknownError"),
+ variant: "destructive",
+ });
+ }
} finally {
setSubmitting(false);
}
@@ -100,6 +111,11 @@ export default function InviteTeammateDialog({
<DialogHeader>
<DialogTitle>{t("workspaces.invite.title", { workspace: workspaceName })}</DialogTitle>
<DialogDescription>{t("workspaces.invite.description")}</DialogDescription>
+ {seatsUsed !== null && seats !== null && (
+ <p className="text-xs text-muted-foreground">
+ {t("workspaces.invite.seatUsage", { used: seatsUsed, seats })}
+ </p>
+ )}
</DialogHeader>
<form onSubmit={handleSubmit} className="space-y-4">
<div className="space-y-1.5">
@@ -112,7 +128,7 @@ export default function InviteTeammateDialog({
autoFocus
value={email}
onChange={(e) => setEmail(e.target.value)}
- placeholder="[email protected]"
+ placeholder={t("workspaces.invite.emailPlaceholder")}
required
/>
</div>
@@ -124,45 +140,51 @@ export default function InviteTeammateDialog({
<button
key={r}
type="button"
+ aria-pressed={role === r}
onClick={() => setRole(r)}
className={cn(
- "flex-1 h-9 px-3 rounded-md border text-xs font-medium transition-colors",
+ "flex-1 px-3 py-2 rounded-md border text-left transition-colors",
"outline-none focus-visible:ring-1 focus-visible:ring-primary/30",
role === r
- ? "border-primary/40 bg-primary/8 text-foreground"
- : "border-border/60 text-muted-foreground hover:bg-foreground/4 hover:text-foreground"
+ ? "border-primary/40 bg-primary/8"
+ : "border-border/60 hover:bg-foreground/4"
)}
>
- {t(`workspaces.invite.role.${r}`)}
+ <span
+ className={cn(
+ "block text-xs font-medium",
+ role === r ? "text-foreground" : "text-muted-foreground"
+ )}
+ >
+ {t(`workspaces.invite.role.${r}`)}
+ </span>
+ <span className="block text-[11px] text-muted-foreground mt-0.5">
+ {t(`workspaces.invite.roleDescription.${r}`)}
+ </span>
</button>
))}
</div>
</div>
- {teams.length > 0 && (
- <div className="space-y-1.5">
- <Label className="text-xs font-medium">{t("workspaces.invite.teamsLabel")}</Label>
- <div className="flex flex-wrap gap-1.5">
- {teams.map((team) => {
- const checked = selectedTeams.has(team.id);
- return (
- <button
- key={team.id}
- type="button"
- onClick={() => toggleTeam(team.id)}
- className={cn(
- "h-7 px-2.5 rounded-md border text-xs transition-colors outline-none",
- "focus-visible:ring-1 focus-visible:ring-primary/30",
- checked
- ? "border-primary/40 bg-primary/8 text-foreground"
- : "border-border/60 text-muted-foreground hover:bg-foreground/4 hover:text-foreground"
- )}
- >
- {team.name}
- </button>
- );
- })}
- </div>
+ {seatLimitSeats !== null && (
+ <div className="rounded-md border border-destructive/30 bg-destructive/5 px-3 py-2 flex items-center justify-between gap-3">
+ <p className="text-xs text-destructive">
+ {t("workspaces.invite.seatLimit", { seats: seatLimitSeats })}
+ </p>
+ {onNavigateToBilling && (
+ <Button
+ type="button"
+ variant="outline"
+ size="sm"
+ className="shrink-0"
+ onClick={() => {
+ onOpenChange(false);
+ onNavigateToBilling();
+ }}
+ >
+ {t("workspaces.invite.manageSeats")}
+ </Button>
+ )}
</div>
)}
@@ -173,9 +195,10 @@ export default function InviteTeammateDialog({
onClick={() => onOpenChange(false)}
disabled={submitting}
>
- {t("common.cancel")}
+ {cancelLabel ?? t("common.cancel")}
</Button>
<Button type="submit" disabled={!email.trim() || submitting}>
+ {submitting && <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />}
{submitting ? t("workspaces.invite.submitting") : t("workspaces.invite.submit")}
</Button>
</DialogFooter>
diff --git a/src/components/SettingsModal.tsx b/src/components/SettingsModal.tsx
index 8b6d67684..31540f05e 100644
--- a/src/components/SettingsModal.tsx
+++ b/src/components/SettingsModal.tsx
@@ -13,6 +13,7 @@ import {
} from "lucide-react";
import SidebarModal, { type SidebarItem } from "./ui/SidebarModal";
import SettingsPage, { SettingsSectionType } from "./SettingsPage";
+import { useAuth } from "../hooks/useAuth";
export type { SettingsSectionType };
@@ -53,8 +54,9 @@ interface SettingsModalProps {
export default function SettingsModal({ open, onOpenChange, initialSection }: SettingsModalProps) {
const { t } = useTranslation();
- const sidebarItems: SidebarItem<SettingsSectionType>[] = useMemo(
- () => [
+ const { isSignedIn } = useAuth();
+ const sidebarItems: SidebarItem<SettingsSectionType>[] = useMemo(() => {
+ const items: SidebarItem<SettingsSectionType>[] = [
{
id: "account",
label: t("settingsModal.sections.account.label"),
@@ -118,9 +120,9 @@ export default function SettingsModal({ open, onOpenChange, initialSection }: Se
description: t("settingsModal.sections.system.description"),
group: t("settingsModal.groups.system"),
},
- ],
- [t]
- );
+ ];
+ return isSignedIn ? items : items.filter((item) => item.id !== "workspace");
+ }, [t, isSignedIn]);
const resolveSection = (section: string | undefined): SettingsSectionType => {
if (!section) return "account";
diff --git a/src/components/SignInDialog.tsx b/src/components/SignInDialog.tsx
new file mode 100644
index 000000000..5f260b7dd
--- /dev/null
+++ b/src/components/SignInDialog.tsx
@@ -0,0 +1,40 @@
+import React, { useState } from "react";
+import { useTranslation } from "react-i18next";
+import { Dialog, DialogContent, DialogTitle } from "./ui/dialog";
+import AuthenticationStep from "./AuthenticationStep";
+import EmailVerificationStep from "./EmailVerificationStep";
+
+interface SignInDialogProps {
+ open: boolean;
+ onOpenChange: (open: boolean) => void;
+}
+
+export default function SignInDialog({ open, onOpenChange }: SignInDialogProps) {
+ const { t } = useTranslation();
+ const [pendingVerificationEmail, setPendingVerificationEmail] = useState<string | null>(null);
+
+ const handleOpenChange = (next: boolean) => {
+ if (!next) setPendingVerificationEmail(null);
+ onOpenChange(next);
+ };
+
+ return (
+ <Dialog open={open} onOpenChange={handleOpenChange}>
+ <DialogContent className="max-w-md">
+ <DialogTitle className="sr-only">{t("auth.welcomeTitle")}</DialogTitle>
+ {pendingVerificationEmail ? (
+ <EmailVerificationStep
+ email={pendingVerificationEmail}
+ onVerified={() => handleOpenChange(false)}
+ onBack={() => setPendingVerificationEmail(null)}
+ />
+ ) : (
+ <AuthenticationStep
+ onAuthComplete={() => handleOpenChange(false)}
+ onNeedsVerification={setPendingVerificationEmail}
+ />
+ )}
+ </DialogContent>
+ </Dialog>
+ );
+}
diff --git a/src/components/WorkspaceSwitcher.tsx b/src/components/WorkspaceSwitcher.tsx
deleted file mode 100644
index 49a906d31..000000000
--- a/src/components/WorkspaceSwitcher.tsx
+++ /dev/null
@@ -1,106 +0,0 @@
-import React, { useState } from "react";
-import { useTranslation } from "react-i18next";
-import { ChevronsUpDown, Plus, Check } from "lucide-react";
-import {
- DropdownMenu,
- DropdownMenuTrigger,
- DropdownMenuContent,
- DropdownMenuItem,
- DropdownMenuLabel,
- DropdownMenuSeparator,
-} from "./ui/dropdown-menu";
-import { useWorkspace } from "../hooks/useWorkspace";
-import { cn } from "./lib/utils";
-import CreateWorkspaceDialog from "./CreateWorkspaceDialog";
-
-function workspaceInitials(name: string): string {
- return name
- .trim()
- .split(/\s+/)
- .map((p) => p[0])
- .slice(0, 2)
- .join("")
- .toUpperCase();
-}
-
-export default function WorkspaceSwitcher({ userName }: { userName?: string | null }) {
- const { t } = useTranslation();
- const { workspaces, active, setActive } = useWorkspace();
- const [createOpen, setCreateOpen] = useState(false);
-
- const label = active ? active.name : t("workspaces.switcher.personal");
- const initials = active ? workspaceInitials(active.name) : (userName?.[0]?.toUpperCase() ?? "P");
-
- return (
- <>
- <DropdownMenu>
- <DropdownMenuTrigger
- className={cn(
- "group flex items-center w-full h-8 px-2 rounded-md outline-none gap-2",
- "hover:bg-foreground/5 dark:hover:bg-white/5 transition-colors",
- "focus-visible:ring-1 focus-visible:ring-primary/30"
- )}
- >
- <span
- className={cn(
- "shrink-0 w-5 h-5 rounded-md text-[10px] font-semibold flex items-center justify-center",
- active
- ? "bg-primary/12 text-primary"
- : "bg-foreground/8 text-foreground/70 dark:bg-white/8 dark:text-foreground/65"
- )}
- >
- {initials}
- </span>
- <span className="flex-1 text-xs text-left text-foreground/85 truncate">{label}</span>
- <ChevronsUpDown size={12} className="text-foreground/40 shrink-0" />
- </DropdownMenuTrigger>
- <DropdownMenuContent align="start" sideOffset={4} className="min-w-[12rem]">
- <DropdownMenuLabel className="text-[10px] uppercase tracking-wide text-muted-foreground/70 font-medium">
- {t("workspaces.switcher.workspaces")}
- </DropdownMenuLabel>
- {workspaces.length === 0 && (
- <div className="px-2 py-1.5 text-xs text-muted-foreground">
- {t("workspaces.switcher.empty")}
- </div>
- )}
- {workspaces.map((ws) => {
- const isActive = active?.id === ws.id;
- return (
- <DropdownMenuItem
- key={ws.id}
- onSelect={() => setActive(ws.id)}
- className="gap-2 text-xs"
- >
- <span
- className={cn(
- "shrink-0 w-5 h-5 rounded-md text-[10px] font-semibold flex items-center justify-center",
- "bg-primary/12 text-primary"
- )}
- >
- {workspaceInitials(ws.name)}
- </span>
- <span className="flex-1 truncate">{ws.name}</span>
- {isActive && <Check size={12} className="text-foreground/60" />}
- </DropdownMenuItem>
- );
- })}
- <DropdownMenuSeparator />
- <DropdownMenuItem onSelect={() => setActive(null)} className="gap-2 text-xs">
- <span className="shrink-0 w-5 h-5 rounded-md text-[10px] font-semibold flex items-center justify-center bg-foreground/8 text-foreground/70 dark:bg-white/8 dark:text-foreground/65">
- {userName?.[0]?.toUpperCase() ?? "P"}
- </span>
- <span className="flex-1 truncate">{t("workspaces.switcher.personal")}</span>
- {!active && <Check size={12} className="text-foreground/60" />}
- </DropdownMenuItem>
- <DropdownMenuSeparator />
- <DropdownMenuItem onSelect={() => setCreateOpen(true)} className="gap-2 text-xs">
- <Plus size={12} className="text-foreground/55" />
- <span>{t("workspaces.switcher.create")}</span>
- </DropdownMenuItem>
- </DropdownMenuContent>
- </DropdownMenu>
-
- <CreateWorkspaceDialog open={createOpen} onOpenChange={setCreateOpen} />
- </>
- );
-}
diff --git a/src/components/notes/NoteEditor.tsx b/src/components/notes/NoteEditor.tsx
index f5e00bdec..38eefe1e8 100644
--- a/src/components/notes/NoteEditor.tsx
+++ b/src/components/notes/NoteEditor.tsx
@@ -17,6 +17,7 @@ import {
} from "lucide-react";
import ShareNoteDialog from "./ShareNoteDialog";
import { useShareCacheEntry } from "../../stores/noteStore";
+import { useAuth } from "../../hooks/useAuth";
import { RichTextEditor } from "../ui/RichTextEditor";
import type { Editor } from "@tiptap/react";
import { MeetingTranscriptChat, SelectionBar } from "./MeetingTranscriptChat";
@@ -151,8 +152,11 @@ export default function NoteEditor({
const [newFolderName, setNewFolderName] = useState("");
const [isDiarizing, setIsDiarizing] = useState(false);
const [shareDialogOpen, setShareDialogOpen] = useState(false);
+ const { isSignedIn } = useAuth();
const shareCache = useShareCacheEntry(note.cloud_id);
- const isShared = (shareCache?.share.visibility ?? "private") !== "private";
+ // Persisted flag is the restart-safe truth; the live cache overlays it for
+ // the current session (it reflects server state before the flag persists).
+ const isShared = shareCache ? shareCache.share.visibility !== "private" : Boolean(note.is_shared);
const [diarizedSegments, setDiarizedSegments] = useState<TranscriptSegment[] | null>(null);
const [speakerMappings, setSpeakerMappings] = useState<Record<string, string>>({});
const [speakerProfiles, setSpeakerProfiles] = useState<
@@ -784,7 +788,7 @@ export default function NoteEditor({
)}
</div>
)}
- {note.cloud_id && (
+ {isSignedIn && (
<button
type="button"
onClick={() => setShareDialogOpen(true)}
@@ -978,7 +982,7 @@ export default function NoteEditor({
onNewChat={embeddedChat.startNewChat}
/>
)}
- {note.cloud_id && (
+ {isSignedIn && (
<ShareNoteDialog open={shareDialogOpen} onOpenChange={setShareDialogOpen} note={note} />
)}
</div>
diff --git a/src/components/notes/NoteListItem.tsx b/src/components/notes/NoteListItem.tsx
index 58b0be21e..6d0d74478 100644
--- a/src/components/notes/NoteListItem.tsx
+++ b/src/components/notes/NoteListItem.tsx
@@ -8,6 +8,7 @@ import {
Plus,
Search,
ExternalLink,
+ Share2,
} from "lucide-react";
import { Button } from "../ui/button";
import {
@@ -135,6 +136,13 @@ export default function NoteListItem({
{note.title || t("notes.list.untitled")}
</p>
<div className="flex items-center gap-0.5 shrink-0">
+ {Boolean(note.is_shared) && (
+ <Share2
+ size={11}
+ className="text-foreground/40 mr-1 group-hover:opacity-0 transition-opacity"
+ aria-label={t("notes.list.shared")}
+ />
+ )}
<span className="text-xs text-muted-foreground dark:text-muted-foreground/30 tabular-nums group-hover:opacity-0 transition-opacity">
{relativeTime(note.updated_at, t)}
</span>
diff --git a/src/components/notes/ShareNoteDialog.tsx b/src/components/notes/ShareNoteDialog.tsx
index 37e3ad3ec..38a5e643e 100644
--- a/src/components/notes/ShareNoteDialog.tsx
+++ b/src/components/notes/ShareNoteDialog.tsx
@@ -1,7 +1,7 @@
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
-import { Check, Copy, Loader2, MoreHorizontal } from "lucide-react";
-import { Dialog, DialogContent, DialogTitle } from "../ui/dialog";
+import { Check, Copy, Link2, Loader2, MoreHorizontal } from "lucide-react";
+import { Dialog, DialogContent, DialogDescription, DialogTitle } from "../ui/dialog";
import { Button } from "../ui/button";
import {
DropdownMenu,
@@ -11,21 +11,24 @@ import {
} from "../ui/dropdown-menu";
import { cn } from "../lib/utils";
import ShareVisibilityMenu from "./ShareVisibilityMenu";
+import { notesInputClass } from "./shared";
import { useAuth } from "../../hooks/useAuth";
-import { NoteSharingService } from "../../services/NoteSharingService.js";
-import { setShareCache, updateShareCache, useShareCacheEntry } from "../../stores/noteStore";
-import { useLocalStorage } from "../../hooks/useLocalStorage";
+import {
+ NoteSharingService,
+ type ShareMutationResponse,
+} from "../../services/NoteSharingService.js";
+import { syncService } from "../../services/SyncService.js";
+import {
+ getShareCacheEntry,
+ persistNoteShareState,
+ updateShareCache,
+ useShareCacheEntry,
+} from "../../stores/noteStore";
import { useToast } from "../ui/useToast";
import { emailDomain, isPersonalEmailDomain } from "../../utils/personalEmailDomains";
-import type {
- NoteItem,
- NoteShareInvitation,
- ShareSettings,
- ShareVisibility,
-} from "../../types/electron";
+import type { NoteItem, NoteShareInvitation, ShareVisibility } from "../../types/electron";
const SHARE_VIEWER_BASE_URL = "https://notes.openwhispr.com";
-const LAST_VISIBILITY_KEY = "openwhispr.shareDefaultVisibility";
const EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
interface ShareNoteDialogProps {
@@ -38,36 +41,59 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD
const { user } = useAuth();
const ownerName: string | null = user?.name ?? null;
const ownerEmail: string = user?.email ?? "";
- // The desktop has no concept of multi-user workspaces yet — the signed-in
- // user is always the note owner. When workspaces ship, this becomes a
- // server-side flag in the share settings response.
- const isOwner = Boolean(user);
const { t } = useTranslation();
const { toast } = useToast();
- const cloudId = note.cloud_id;
+
+ // A note synced from this dialog: markNoteSynced doesn't broadcast, so the
+ // note prop can lag behind the local DB until the next note-updated event.
+ const [syncedFor, setSyncedFor] = useState<{ noteId: number; cloudId: string } | null>(null);
+ const cloudId = note.cloud_id ?? (syncedFor?.noteId === note.id ? syncedFor.cloudId : null);
const cached = useShareCacheEntry(cloudId);
- const [defaultVisibility, setDefaultVisibility] = useLocalStorage<ShareVisibility>(
- LAST_VISIBILITY_KEY,
- "invited"
- );
const [loading, setLoading] = useState(false);
+ const [syncing, setSyncing] = useState(false);
const [savingVisibility, setSavingVisibility] = useState(false);
+ const [linkBusy, setLinkBusy] = useState(false);
const [emailInput, setEmailInput] = useState("");
const [inputError, setInputError] = useState<string | null>(null);
const [submitting, setSubmitting] = useState(false);
const [copied, setCopied] = useState(false);
+ const [resendingId, setResendingId] = useState<string | null>(null);
const emailInputRef = useRef<HTMLInputElement>(null);
const copyTimeoutRef = useRef<number | null>(null);
+ const localIsSharedRef = useRef(Boolean(note.is_shared));
+
+ useEffect(() => {
+ localIsSharedRef.current = Boolean(note.is_shared);
+ }, [note.is_shared]);
const ownerDomain = useMemo(() => emailDomain(ownerEmail), [ownerEmail]);
- const showDomainOption = ownerDomain && !isPersonalEmailDomain(ownerDomain);
+ const showDomainOption = Boolean(ownerDomain && !isPersonalEmailDomain(ownerDomain));
const share = cached?.share ?? null;
const invitations = useMemo(() => cached?.invitations ?? [], [cached?.invitations]);
+ const isPrivate = (share?.visibility ?? "private") === "private";
+
+ // The store's note can miss a cloud_id assigned by a background sync
+ // (markNoteSynced doesn't broadcast); read the DB before offering to sync.
+ useEffect(() => {
+ if (!open || note.cloud_id) return;
+ let cancelled = false;
+ window.electronAPI
+ .getNote?.(note.id)
+ ?.then((fresh) => {
+ if (!cancelled && fresh?.cloud_id) {
+ setSyncedFor({ noteId: note.id, cloudId: fresh.cloud_id });
+ }
+ })
+ .catch(() => {});
+ return () => {
+ cancelled = true;
+ };
+ }, [open, note.id, note.cloud_id]);
- // Load share state once per open. The dialog is the only place that reads
- // share settings — invalidating on close keeps the cache scoped.
+ // Pure read of server state on open, plus reconciling the local is_shared
+ // flag when it disagrees with the server.
useEffect(() => {
if (!open || !cloudId) return;
let cancelled = false;
@@ -75,11 +101,18 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD
NoteSharingService.getShareSettings(cloudId)
.then((res) => {
if (cancelled) return;
- setShareCache(cloudId, {
+ updateShareCache(cloudId, (entry) => ({
share: res.share,
invitations: res.invitations,
- rawToken: null,
- });
+ rawToken: entry?.rawToken ?? null,
+ }));
+ const serverShared = res.share.visibility !== "private";
+ if (serverShared !== localIsSharedRef.current) {
+ void persistNoteShareState(
+ note.id,
+ serverShared ? { is_shared: 1 } : { is_shared: 0, share_token: null }
+ );
+ }
})
.catch((err) => {
if (cancelled) return;
@@ -96,17 +129,7 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD
return () => {
cancelled = true;
};
- }, [open, cloudId, t, toast]);
-
- // Apply the user's last-used visibility on first open of a still-private note.
- useEffect(() => {
- if (!open || !cloudId || !share || !isOwner) return;
- if (share.visibility !== "private") return;
- void applyVisibility(defaultVisibility, share);
- // applyVisibility is stable-by-closure; suppressing exhaustive-deps lint
- // would obscure intent. We genuinely only want this on first hit.
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [open, share?.visibility]);
+ }, [open, cloudId, note.id, t, toast]);
useEffect(() => {
if (open) {
@@ -125,15 +148,15 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD
}, []);
const applyVisibility = useCallback(
- async (next: ShareVisibility, current: ShareSettings | null) => {
- if (!cloudId || !current) return;
- if (current.visibility === next) return;
+ async (next: ShareVisibility): Promise<ShareMutationResponse | null> => {
+ if (!cloudId) return null;
+ const previous = getShareCacheEntry(cloudId);
+ if (!previous || previous.share.visibility === next) return null;
setSavingVisibility(true);
- const previous = current;
// Optimistic update so the dropdown feels instant.
updateShareCache(cloudId, (entry) => ({
share: {
- ...(entry?.share ?? previous),
+ ...(entry?.share ?? previous.share),
visibility: next,
domain_allowlist:
next === "domain" && ownerDomain
@@ -146,6 +169,16 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD
rawToken: entry?.rawToken ?? null,
}));
try {
+ if (next === "private") {
+ const res = await NoteSharingService.clearShare(cloudId);
+ updateShareCache(cloudId, (entry) => ({
+ share: res.share,
+ invitations: entry?.invitations ?? [],
+ rawToken: null,
+ }));
+ await persistNoteShareState(note.id, { is_shared: 0, share_token: null });
+ return null;
+ }
const res = await NoteSharingService.updateShareSettings(
cloudId,
next,
@@ -156,36 +189,86 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD
invitations: entry?.invitations ?? [],
rawToken: res.raw_token ?? entry?.rawToken ?? null,
}));
- setDefaultVisibility(next);
+ await persistNoteShareState(
+ note.id,
+ res.raw_token ? { is_shared: 1, share_token: res.raw_token } : { is_shared: 1 }
+ );
+ return res;
} catch (err) {
- console.error("Failed to update visibility:", err);
+ console.error("Failed to update sharing:", err);
updateShareCache(cloudId, (entry) => ({
- share: previous,
- invitations: entry?.invitations ?? [],
- rawToken: entry?.rawToken ?? null,
+ share: previous.share,
+ invitations: entry?.invitations ?? previous.invitations,
+ rawToken: previous.rawToken,
}));
+ toast({
+ title: t("noteEditor.share.dialog.error.visibilityFailed"),
+ variant: "destructive",
+ });
+ return null;
} finally {
setSavingVisibility(false);
}
},
- [cloudId, ownerDomain, setDefaultVisibility]
+ [cloudId, ownerDomain, note.id, t, toast]
);
- const handleCopyLink = useCallback(async () => {
- if (!cached?.rawToken) {
- setInputError(t("noteEditor.share.dialog.error.linkUnavailable"));
- return;
- }
- const url = `${SHARE_VIEWER_BASE_URL}/n/${encodeURIComponent(cached.rawToken)}`;
+ const copyLink = useCallback(
+ async (token: string) => {
+ try {
+ await navigator.clipboard.writeText(
+ `${SHARE_VIEWER_BASE_URL}/n/${encodeURIComponent(token)}`
+ );
+ setCopied(true);
+ if (copyTimeoutRef.current) window.clearTimeout(copyTimeoutRef.current);
+ copyTimeoutRef.current = window.setTimeout(() => setCopied(false), 1500);
+ } catch (err) {
+ console.error("Clipboard write failed:", err);
+ toast({ title: t("noteEditor.share.dialog.error.copyFailed"), variant: "destructive" });
+ }
+ },
+ [t, toast]
+ );
+
+ // Legacy shares can predate local token persistence; rotating is the only
+ // way to recover a copyable link (the old one stops working by design).
+ const rotateAndCopy = useCallback(async () => {
+ if (!cloudId) return;
try {
- await navigator.clipboard.writeText(url);
- setCopied(true);
- if (copyTimeoutRef.current) window.clearTimeout(copyTimeoutRef.current);
- copyTimeoutRef.current = window.setTimeout(() => setCopied(false), 1500);
+ const res = await NoteSharingService.rotateToken(cloudId);
+ updateShareCache(cloudId, (entry) => ({
+ share: res.share,
+ invitations: entry?.invitations ?? [],
+ rawToken: res.raw_token,
+ }));
+ await persistNoteShareState(note.id, { is_shared: 1, share_token: res.raw_token });
+ await copyLink(res.raw_token);
} catch (err) {
- console.error("Clipboard write failed:", err);
+ console.error("Share link recovery failed:", err);
+ toast({ title: t("noteEditor.share.dialog.error.copyFailed"), variant: "destructive" });
}
- }, [cached?.rawToken, t]);
+ }, [cloudId, note.id, copyLink, t, toast]);
+
+ const handleLinkButton = useCallback(async () => {
+ if (!cloudId || !share) return;
+ setLinkBusy(true);
+ try {
+ if (share.visibility === "private") {
+ // Create link: the click is the sharing consent.
+ const res = await applyVisibility("link");
+ if (!res) return;
+ const token = res.raw_token ?? note.share_token ?? getShareCacheEntry(cloudId)?.rawToken;
+ if (token) await copyLink(token);
+ else await rotateAndCopy();
+ return;
+ }
+ const known = note.share_token ?? getShareCacheEntry(cloudId)?.rawToken;
+ if (known) await copyLink(known);
+ else await rotateAndCopy();
+ } finally {
+ setLinkBusy(false);
+ }
+ }, [cloudId, share, note.share_token, applyVisibility, copyLink, rotateAndCopy]);
const handleInvite = useCallback(async () => {
if (!cloudId) return;
@@ -213,43 +296,81 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD
invitations: refreshed.invitations,
rawToken: entry?.rawToken ?? null,
}));
+ // The invite itself is the sharing consent: a still-private note becomes
+ // invite-only once an invitation exists.
+ if (refreshed.share.visibility === "private" && res.created.length > 0) {
+ await applyVisibility("invited");
+ }
} catch (err) {
console.error("Invite failed:", err);
setInputError(t("noteEditor.share.dialog.error.inviteFailed"));
} finally {
setSubmitting(false);
}
- }, [cloudId, emailInput, t]);
+ }, [cloudId, emailInput, applyVisibility, t]);
const handleRevoke = useCallback(
async (invitation: NoteShareInvitation) => {
if (!cloudId) return;
+ const previous = getShareCacheEntry(cloudId);
+ if (!previous) return;
updateShareCache(cloudId, (entry) => ({
- share: entry?.share ?? share!,
- invitations: (entry?.invitations ?? invitations).filter((i) => i.id !== invitation.id),
- rawToken: entry?.rawToken ?? null,
+ share: entry?.share ?? previous.share,
+ invitations: (entry?.invitations ?? previous.invitations).filter(
+ (i) => i.id !== invitation.id
+ ),
+ rawToken: entry?.rawToken ?? previous.rawToken,
}));
try {
await NoteSharingService.revokeInvite(cloudId, invitation.id);
} catch (err) {
console.error("Revoke failed:", err);
+ updateShareCache(cloudId, (entry) => ({
+ share: entry?.share ?? previous.share,
+ invitations: previous.invitations,
+ rawToken: entry?.rawToken ?? previous.rawToken,
+ }));
+ toast({ title: t("noteEditor.share.dialog.error.revokeFailed"), variant: "destructive" });
}
},
- [cloudId, share, invitations]
+ [cloudId, t, toast]
);
const handleResend = useCallback(
async (invitation: NoteShareInvitation) => {
if (!cloudId) return;
+ setResendingId(invitation.id);
try {
- await NoteSharingService.resendInvite(cloudId, invitation.id);
+ const res = await NoteSharingService.resendInvite(cloudId, invitation.id);
+ if (res.resent) {
+ toast({ title: t("noteEditor.share.dialog.resendSent"), variant: "success" });
+ } else {
+ toast({ title: t("noteEditor.share.dialog.resendThrottled") });
+ }
} catch (err) {
console.error("Resend failed:", err);
+ toast({ title: t("noteEditor.share.dialog.error.resendFailed"), variant: "destructive" });
+ } finally {
+ setResendingId(null);
}
},
- [cloudId]
+ [cloudId, t, toast]
);
+ const handleSyncAndShare = useCallback(async () => {
+ setSyncing(true);
+ try {
+ const assignedCloudId = await syncService.ensureNoteSynced(note.id);
+ if (!assignedCloudId) throw new Error("Note sync did not assign a cloud id");
+ setSyncedFor({ noteId: note.id, cloudId: assignedCloudId });
+ } catch (err) {
+ console.error("Note sync for sharing failed:", err);
+ toast({ title: t("noteEditor.share.dialog.error.syncFailed"), variant: "destructive" });
+ } finally {
+ setSyncing(false);
+ }
+ }, [note.id, t, toast]);
+
const onKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
if (e.key === "Enter" || (e.metaKey && e.key === "Enter")) {
e.preventDefault();
@@ -257,146 +378,173 @@ export default function ShareNoteDialog({ open, onOpenChange, note }: ShareNoteD
}
};
- // NoteEditor only renders the dialog when cloud_id is set, so cloudId is
- // guaranteed non-null here. We early-return for type-narrowing.
- if (!cloudId) return null;
-
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-md gap-3 p-5">
<DialogTitle className="text-base">{t("noteEditor.share.dialog.title")}</DialogTitle>
- {/* Invite row */}
- <div className="flex items-center gap-2">
- <input
- ref={emailInputRef}
- type="email"
- value={emailInput}
- onChange={(e) => {
- setEmailInput(e.target.value);
- if (inputError) setInputError(null);
- }}
- onKeyDown={onKeyDown}
- placeholder={t("noteEditor.share.dialog.searchPlaceholder")}
- disabled={!isOwner || submitting}
- className={cn(
- "flex-1 h-8 px-2.5 rounded-md text-xs",
- "bg-foreground/4 dark:bg-white/5 text-foreground placeholder:text-foreground/40",
- "border border-transparent",
- "focus:outline-none focus:bg-background dark:focus:bg-surface-1 focus:border-border/60",
- "disabled:opacity-50 disabled:cursor-not-allowed transition-colors"
- )}
- aria-label={t("noteEditor.share.dialog.emailLabel")}
- />
- <Button
- size="sm"
- onClick={() => void handleInvite()}
- disabled={!isOwner || submitting || !emailInput.trim()}
- className="h-8 px-3 text-xs"
- >
- {submitting ? (
- <Loader2 size={12} className="animate-spin" />
- ) : (
- t("noteEditor.share.dialog.shareButton")
- )}
- </Button>
- </div>
+ {!cloudId ? (
+ <>
+ <DialogDescription className="text-xs text-foreground/50">
+ {t("noteEditor.share.dialog.syncPrompt")}
+ </DialogDescription>
+ <Button
+ size="sm"
+ onClick={() => void handleSyncAndShare()}
+ disabled={syncing}
+ className="h-8 px-3 text-xs gap-1.5 justify-self-start"
+ >
+ {syncing && <Loader2 size={12} className="animate-spin" />}
+ {t("noteEditor.share.dialog.syncAndShare")}
+ </Button>
+ </>
+ ) : (
+ <>
+ <DialogDescription className="sr-only">
+ {t("noteEditor.share.dialog.description")}
+ </DialogDescription>
- {inputError && <p className="text-xs text-red-500/90 -mt-1">{inputError}</p>}
+ {/* Invite row */}
+ <div className="flex items-center gap-2">
+ <input
+ ref={emailInputRef}
+ type="email"
+ value={emailInput}
+ onChange={(e) => {
+ setEmailInput(e.target.value);
+ if (inputError) setInputError(null);
+ }}
+ onKeyDown={onKeyDown}
+ placeholder={t("noteEditor.share.dialog.searchPlaceholder")}
+ disabled={submitting}
+ className={cn(
+ notesInputClass,
+ "flex-1 disabled:opacity-50 disabled:cursor-not-allowed"
+ )}
+ aria-label={t("noteEditor.share.dialog.emailLabel")}
+ aria-invalid={inputError ? true : undefined}
+ aria-describedby={inputError ? "share-invite-error" : undefined}
+ />
+ <Button
+ size="sm"
+ onClick={() => void handleInvite()}
+ disabled={submitting || !emailInput.trim()}
+ className="h-8 px-3 text-xs gap-1.5"
+ >
+ {submitting && <Loader2 size={12} className="animate-spin" />}
+ {t("noteEditor.share.dialog.shareButton")}
+ </Button>
+ </div>
- {/* Members list */}
- <div className="flex flex-col gap-1.5 mt-1">
- <MemberRow
- primary={ownerName || ownerEmail}
- secondary={ownerEmail}
- trailing={
- <span className="text-[11px] text-foreground/40">
- {t("noteEditor.share.dialog.owner")}
- </span>
- }
- />
+ <p
+ id="share-invite-error"
+ aria-live="polite"
+ className={cn("text-xs text-red-500/90 -mt-1", !inputError && "sr-only")}
+ >
+ {inputError}
+ </p>
- {invitations.map((invitation) => (
- <MemberRow
- key={invitation.id}
- primary={invitation.email}
- secondary={
- invitation.accepted_at
- ? t("noteEditor.share.dialog.accepted")
- : t("noteEditor.share.dialog.pending")
- }
- trailing={
- isOwner ? (
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <button
- type="button"
- className="h-6 w-6 flex items-center justify-center rounded-md hover:bg-foreground/8 dark:hover:bg-white/8 transition-colors"
- aria-label={t("noteEditor.share.dialog.invitationActions")}
- >
- <MoreHorizontal size={13} className="text-foreground/50" />
- </button>
- </DropdownMenuTrigger>
- <DropdownMenuContent align="end" sideOffset={4}>
- <DropdownMenuItem
- className="text-xs"
- onClick={() => void handleResend(invitation)}
- >
- {t("noteEditor.share.dialog.resend")}
- </DropdownMenuItem>
- <DropdownMenuItem
- className="text-xs text-red-500"
- onClick={() => void handleRevoke(invitation)}
- >
- {t("noteEditor.share.dialog.revoke")}
- </DropdownMenuItem>
- </DropdownMenuContent>
- </DropdownMenu>
- ) : null
- }
- />
- ))}
- </div>
+ {/* Members list */}
+ <div className="flex flex-col gap-1.5 mt-1">
+ <MemberRow
+ primary={ownerName || ownerEmail}
+ secondary={ownerEmail}
+ trailing={
+ <span className="text-[11px] text-foreground/40">
+ {t("noteEditor.share.dialog.owner")}
+ </span>
+ }
+ />
- {/* Footer: visibility + copy link */}
- <div className="flex items-center gap-2 pt-3 mt-1 border-t border-border/60">
- <ShareVisibilityMenu
- value={
- (share?.visibility ?? "invited") === "private"
- ? "invited"
- : (share?.visibility ?? "invited")
- }
- ownerDomain={ownerDomain}
- showDomainOption={Boolean(showDomainOption)}
- disabled={!isOwner || loading || savingVisibility}
- onChange={(v) => void applyVisibility(v, share)}
- />
- <div className="flex-1" />
- <Button
- variant="outline"
- size="sm"
- className="h-8 px-3 text-xs gap-1.5"
- disabled={!cached?.rawToken || copied}
- onClick={() => void handleCopyLink()}
- >
- {copied ? (
- <>
- <Check size={12} />
- {t("noteEditor.share.dialog.copied")}
- </>
- ) : (
- <>
- <Copy size={12} />
- {t("noteEditor.share.dialog.copyLink")}
- </>
- )}
- </Button>
- </div>
+ {invitations.map((invitation) => (
+ <MemberRow
+ key={invitation.id}
+ primary={invitation.email}
+ secondary={
+ invitation.accepted_at
+ ? t("noteEditor.share.dialog.accepted")
+ : t("noteEditor.share.dialog.pending")
+ }
+ trailing={
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <button
+ type="button"
+ className={cn(
+ "h-6 w-6 flex items-center justify-center rounded-md",
+ "hover:bg-foreground/8 dark:hover:bg-white/8",
+ "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
+ "transition-colors"
+ )}
+ aria-label={t("noteEditor.share.dialog.invitationActions")}
+ >
+ <MoreHorizontal size={13} className="text-foreground/50" />
+ </button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end" sideOffset={4}>
+ <DropdownMenuItem
+ className="text-xs"
+ disabled={resendingId === invitation.id}
+ onClick={() => void handleResend(invitation)}
+ >
+ {t("noteEditor.share.dialog.resend")}
+ </DropdownMenuItem>
+ <DropdownMenuItem
+ className="text-xs text-red-500"
+ onClick={() => void handleRevoke(invitation)}
+ >
+ {t("noteEditor.share.dialog.revoke")}
+ </DropdownMenuItem>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ }
+ />
+ ))}
+ </div>
- {!isOwner && (
- <p className="text-[11px] text-foreground/40 -mt-1">
- {t("noteEditor.share.dialog.permissionRequired")}
- </p>
+ {/* Footer: visibility + link */}
+ <div className="flex items-center gap-2 pt-3 mt-1 border-t border-border/60">
+ <ShareVisibilityMenu
+ value={share?.visibility ?? "private"}
+ ownerDomain={ownerDomain}
+ showDomainOption={showDomainOption}
+ disabled={loading || !share || savingVisibility || linkBusy}
+ onChange={(v) => void applyVisibility(v)}
+ />
+ <div className="flex-1" />
+ <Button
+ variant={isPrivate ? "default" : "outline"}
+ size="sm"
+ className="h-8 px-3 text-xs gap-1.5"
+ disabled={loading || !share || savingVisibility || linkBusy || copied}
+ onClick={() => void handleLinkButton()}
+ >
+ {linkBusy ? (
+ <>
+ <Loader2 size={12} className="animate-spin" />
+ {isPrivate
+ ? t("noteEditor.share.dialog.createLink")
+ : t("noteEditor.share.dialog.copyLink")}
+ </>
+ ) : copied ? (
+ <>
+ <Check size={12} />
+ {t("noteEditor.share.dialog.copied")}
+ </>
+ ) : isPrivate ? (
+ <>
+ <Link2 size={12} />
+ {t("noteEditor.share.dialog.createLink")}
+ </>
+ ) : (
+ <>
+ <Copy size={12} />
+ {t("noteEditor.share.dialog.copyLink")}
+ </>
+ )}
+ </Button>
+ </div>
+ </>
)}
</DialogContent>
</Dialog>
diff --git a/src/components/notes/ShareVisibilityMenu.tsx b/src/components/notes/ShareVisibilityMenu.tsx
index f844658a1..d5192ecd1 100644
--- a/src/components/notes/ShareVisibilityMenu.tsx
+++ b/src/components/notes/ShareVisibilityMenu.tsx
@@ -1,6 +1,6 @@
import * as React from "react";
import { useTranslation } from "react-i18next";
-import { Check, ChevronDown, Globe, Lock, Building2 } from "lucide-react";
+import { Check, ChevronDown, Globe, Lock, Building2, Users } from "lucide-react";
import { cn } from "../lib/utils";
import {
DropdownMenu,
@@ -53,6 +53,12 @@ export default function ShareVisibilityMenu({
<DropdownMenuContent align="start" sideOffset={4} className="min-w-[260px]">
<VisibilityItem
icon={<Lock size={13} className="text-foreground/50" />}
+ label={t("noteEditor.share.dialog.visibility.privateOption")}
+ active={value === "private"}
+ onSelect={() => onChange("private")}
+ />
+ <VisibilityItem
+ icon={<Users size={13} className="text-foreground/50" />}
label={t("noteEditor.share.dialog.visibility.invited")}
active={value === "invited"}
onSelect={() => onChange("invited")}
@@ -92,12 +98,16 @@ function renderCurrent(
icon: <Building2 size={12} className="text-foreground/60" />,
label: t("noteEditor.share.dialog.visibility.domain", { domain: ownerDomain }),
};
- case "private":
case "invited":
+ return {
+ icon: <Users size={12} className="text-foreground/60" />,
+ label: t("noteEditor.share.dialog.visibility.invited"),
+ };
+ case "private":
default:
return {
icon: <Lock size={12} className="text-foreground/60" />,
- label: t("noteEditor.share.dialog.visibility.invited"),
+ label: t("noteEditor.share.dialog.visibility.private"),
};
}
}
diff --git a/src/components/settings/WorkspaceBillingTab.tsx b/src/components/settings/WorkspaceBillingTab.tsx
index f263a7ea6..2388d586a 100644
--- a/src/components/settings/WorkspaceBillingTab.tsx
+++ b/src/components/settings/WorkspaceBillingTab.tsx
@@ -1,6 +1,6 @@
-import React, { useState } from "react";
+import React, { useCallback, useEffect, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
-import { ExternalLink } from "lucide-react";
+import { ExternalLink, Loader2 } from "lucide-react";
import { Button } from "../ui/button";
import { useToast } from "../ui/useToast";
import { WorkspacesService } from "../../services/WorkspacesService";
@@ -14,35 +14,53 @@ interface Props {
export default function WorkspaceBillingTab({ workspace }: Props) {
const { t } = useTranslation();
const { toast } = useToast();
- const members = useWorkspaceStore((s) => s.members);
+ const refresh = useWorkspaceStore((s) => s.refresh);
const isOwner = workspace.role === "owner";
const [busy, setBusy] = useState(false);
+ const [seatsUsed, setSeatsUsed] = useState<number | null>(null);
+ const focusCleanupRef = useRef<(() => void) | null>(null);
- const seatsUsed = members.length;
- const seatsTotal = Math.max(workspace.seats, seatsUsed);
- const pct = seatsTotal === 0 ? 0 : Math.min(100, (seatsUsed / seatsTotal) * 100);
-
- async function handleCheckout() {
- setBusy(true);
+ const loadSeats = useCallback(async () => {
try {
- const url = await WorkspacesService.billingCheckout(workspace.id, "monthly");
- window.electronAPI?.openExternal?.(url) ?? window.open(url, "_blank");
- } catch (error) {
- toast({
- title: t("common.error"),
- description: error instanceof Error ? error.message : t("common.unknownError"),
- variant: "destructive",
- });
- } finally {
- setBusy(false);
+ // Server truth: billable members + pending invites.
+ const preview = await WorkspacesService.previewSeats(workspace.id, 1);
+ setSeatsUsed(preview.next_quantity - 1);
+ } catch {
+ // No subscription yet or insufficient role — fall back to the member count.
+ try {
+ const members = await WorkspacesService.listMembers(workspace.id);
+ setSeatsUsed(members.length);
+ } catch {
+ setSeatsUsed(null);
+ }
}
+ }, [workspace.id]);
+
+ useEffect(() => {
+ setSeatsUsed(null);
+ void loadSeats();
+ }, [loadSeats]);
+
+ useEffect(() => () => focusCleanupRef.current?.(), []);
+
+ // The user finishes checkout / the portal in the browser; refresh when they return.
+ function refreshOnReturn() {
+ focusCleanupRef.current?.();
+ const onFocus = () => {
+ focusCleanupRef.current = null;
+ void refresh();
+ void loadSeats();
+ };
+ window.addEventListener("focus", onFocus, { once: true });
+ focusCleanupRef.current = () => window.removeEventListener("focus", onFocus);
}
- async function handlePortal() {
+ async function openBilling(getUrl: () => Promise<string>) {
setBusy(true);
try {
- const url = await WorkspacesService.billingPortal(workspace.id);
+ const url = await getUrl();
window.electronAPI?.openExternal?.(url) ?? window.open(url, "_blank");
+ refreshOnReturn();
} catch (error) {
toast({
title: t("common.error"),
@@ -54,6 +72,10 @@ export default function WorkspaceBillingTab({ workspace }: Props) {
}
}
+ const seatsTotal = Math.max(workspace.seats, seatsUsed ?? 0);
+ const pct =
+ seatsUsed === null || seatsTotal === 0 ? 0 : Math.min(100, (seatsUsed / seatsTotal) * 100);
+
return (
<div className="space-y-4">
<div>
@@ -99,7 +121,7 @@ export default function WorkspaceBillingTab({ workspace }: Props) {
{t("settingsPage.workspace.billing.seats")}
</span>
<span className="text-foreground font-medium">
- {seatsUsed} / {seatsTotal}
+ {seatsUsed ?? "–"} / {seatsTotal}
</span>
</div>
<div className="h-1.5 rounded-full bg-foreground/5 dark:bg-white/5 overflow-hidden">
@@ -120,13 +142,33 @@ export default function WorkspaceBillingTab({ workspace }: Props) {
{isOwner && (
<div className="flex gap-2">
{workspace.stripe_subscription_id ? (
- <Button onClick={handlePortal} disabled={busy} size="sm" variant="outline">
- <ExternalLink className="mr-1.5 h-3.5 w-3.5" />
- {t("settingsPage.workspace.billing.manageStripe")}
+ <Button
+ onClick={() => openBilling(() => WorkspacesService.billingPortal(workspace.id))}
+ disabled={busy}
+ size="sm"
+ variant="outline"
+ >
+ {busy ? (
+ <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />
+ ) : (
+ <ExternalLink className="mr-1.5 h-3.5 w-3.5" />
+ )}
+ {busy
+ ? t("settingsPage.workspace.billing.opening")
+ : t("settingsPage.workspace.billing.manageStripe")}
</Button>
) : (
- <Button onClick={handleCheckout} disabled={busy} size="sm">
- {t("settingsPage.workspace.billing.startSubscription")}
+ <Button
+ onClick={() =>
+ openBilling(() => WorkspacesService.billingCheckout(workspace.id, "monthly"))
+ }
+ disabled={busy}
+ size="sm"
+ >
+ {busy && <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />}
+ {busy
+ ? t("settingsPage.workspace.billing.opening")
+ : t("settingsPage.workspace.billing.startSubscription")}
</Button>
)}
</div>
diff --git a/src/components/settings/WorkspaceDeveloperTab.tsx b/src/components/settings/WorkspaceDeveloperTab.tsx
index e393b936c..5ee9a6aef 100644
--- a/src/components/settings/WorkspaceDeveloperTab.tsx
+++ b/src/components/settings/WorkspaceDeveloperTab.tsx
@@ -1,4 +1,4 @@
-import React, { useEffect, useState } from "react";
+import React, { useEffect, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import { Plus, Copy, Trash2, Check, Key } from "lucide-react";
import { Button } from "../ui/button";
@@ -70,7 +70,7 @@ export default function WorkspaceDeveloperTab({ workspace }: Props) {
const [name, setName] = useState("");
const [selectedScopes, setSelectedScopes] = useState<Set<string>>(new Set());
const [submitting, setSubmitting] = useState(false);
- const canManage = workspace.role === "owner" || workspace.role === "admin";
+ const copyTimerRef = useRef<ReturnType<typeof setTimeout> | null>(null);
async function refresh() {
try {
@@ -81,10 +81,17 @@ export default function WorkspaceDeveloperTab({ workspace }: Props) {
}
useEffect(() => {
- if (canManage) void refresh();
+ void refresh();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [workspace.id]);
+ useEffect(
+ () => () => {
+ if (copyTimerRef.current) clearTimeout(copyTimerRef.current);
+ },
+ []
+ );
+
function toggleScope(id: string) {
setSelectedScopes((prev) => {
const next = new Set(prev);
@@ -144,9 +151,14 @@ export default function WorkspaceDeveloperTab({ workspace }: Props) {
async function handleCopy() {
if (!newKey) return;
- await navigator.clipboard.writeText(newKey.key);
- setCopied(true);
- setTimeout(() => setCopied(false), 1500);
+ try {
+ await navigator.clipboard.writeText(newKey.key);
+ setCopied(true);
+ if (copyTimerRef.current) clearTimeout(copyTimerRef.current);
+ copyTimerRef.current = setTimeout(() => setCopied(false), 2000);
+ } catch {
+ // Clipboard write failed — user can still manually select+copy
+ }
}
return (
@@ -160,12 +172,10 @@ export default function WorkspaceDeveloperTab({ workspace }: Props) {
{t("settingsPage.workspace.developer.description")}
</p>
</div>
- {canManage && (
- <Button size="sm" onClick={() => setCreateOpen(true)}>
- <Plus className="mr-1.5 h-3.5 w-3.5" />
- {t("settingsPage.workspace.developer.new")}
- </Button>
- )}
+ <Button size="sm" onClick={() => setCreateOpen(true)}>
+ <Plus className="mr-1.5 h-3.5 w-3.5" />
+ {t("settingsPage.workspace.developer.new")}
+ </Button>
</div>
<div className="rounded-lg border border-border/50 dark:border-border-subtle/70 divide-y divide-border/30 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50">
@@ -192,16 +202,14 @@ export default function WorkspaceDeveloperTab({ workspace }: Props) {
})
: t("settingsPage.workspace.developer.neverUsed")}
</span>
- {canManage && (
- <button
- type="button"
- onClick={() => confirmRevoke(k)}
- aria-label={t("settingsPage.workspace.developer.revoke")}
- className="p-1 rounded-md text-muted-foreground hover:text-destructive hover:bg-destructive/8 outline-none focus-visible:ring-1 focus-visible:ring-primary/30"
- >
- <Trash2 className="w-3.5 h-3.5" />
- </button>
- )}
+ <button
+ type="button"
+ onClick={() => confirmRevoke(k)}
+ aria-label={t("settingsPage.workspace.developer.revoke")}
+ className="p-1 rounded-md text-muted-foreground hover:text-destructive hover:bg-destructive/8 outline-none focus-visible:ring-1 focus-visible:ring-primary/30"
+ >
+ <Trash2 className="w-3.5 h-3.5" />
+ </button>
</div>
))}
</div>
@@ -241,6 +249,7 @@ export default function WorkspaceDeveloperTab({ workspace }: Props) {
<button
key={s.id}
type="button"
+ aria-pressed={checked}
onClick={() => toggleScope(s.id)}
className={cn(
"h-7 px-2.5 rounded-md border text-xs transition-colors outline-none",
@@ -291,7 +300,15 @@ export default function WorkspaceDeveloperTab({ workspace }: Props) {
variant={confirmDialog.variant}
/>
- <Dialog open={!!newKey} onOpenChange={(open) => !open && setNewKey(null)}>
+ <Dialog
+ open={!!newKey}
+ onOpenChange={(open) => {
+ if (!open) {
+ setNewKey(null);
+ setCopied(false);
+ }
+ }}
+ >
<DialogContent className="max-w-lg">
<DialogHeader>
<DialogTitle>{t("settingsPage.workspace.developer.keyCreatedTitle")}</DialogTitle>
diff --git a/src/components/settings/WorkspaceMembersTab.tsx b/src/components/settings/WorkspaceMembersTab.tsx
index f8664ecd8..09318d7c2 100644
--- a/src/components/settings/WorkspaceMembersTab.tsx
+++ b/src/components/settings/WorkspaceMembersTab.tsx
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
-import { Trash2, MoreVertical, Mail, X } from "lucide-react";
+import { Trash2, MoreVertical, Mail, X, Loader2 } from "lucide-react";
import { useWorkspaceStore } from "../../stores/workspaceStore";
import { WorkspacesService } from "../../services/WorkspacesService";
import { InvitationsService } from "../../services/InvitationsService";
@@ -20,16 +20,23 @@ import { cn } from "../lib/utils";
interface Props {
workspace: Workspace;
+ onNavigateToBilling: () => void;
}
-export default function WorkspaceMembersTab({ workspace }: Props) {
+function invitationDaysLeft(inv: WorkspaceInvitation): number {
+ return Math.ceil((new Date(inv.expires_at).getTime() - Date.now()) / 86_400_000);
+}
+
+export default function WorkspaceMembersTab({ workspace, onNavigateToBilling }: Props) {
const { t } = useTranslation();
const { toast } = useToast();
const { confirmDialog, showConfirmDialog, hideConfirmDialog } = useDialogs();
const members = useWorkspaceStore((s) => s.members);
const refreshMembers = useWorkspaceStore((s) => s.refreshMembers);
+ const refresh = useWorkspaceStore((s) => s.refresh);
const [invitations, setInvitations] = useState<WorkspaceInvitation[]>([]);
const [inviteOpen, setInviteOpen] = useState(false);
+ const [resendingId, setResendingId] = useState<string | null>(null);
const canManage = workspace.role === "owner" || workspace.role === "admin";
async function refreshInvitations() {
@@ -51,6 +58,8 @@ export default function WorkspaceMembersTab({ workspace }: Props) {
try {
await WorkspacesService.updateMemberRole(workspace.id, userId, role);
await refreshMembers(workspace.id);
+ // Ownership transfer demotes the caller — refresh so workspace.role updates everywhere.
+ if (role === "owner") await refresh();
toast({
title: t("settingsPage.workspace.members.roleUpdated"),
});
@@ -63,6 +72,19 @@ export default function WorkspaceMembersTab({ workspace }: Props) {
}
}
+ function confirmTransferOwnership(member: WorkspaceMember) {
+ showConfirmDialog({
+ title: t("settingsPage.workspace.members.transferConfirm.title"),
+ description: t("settingsPage.workspace.members.transferConfirm.description", {
+ name: member.name || member.email,
+ workspace: workspace.name,
+ }),
+ confirmText: t("settingsPage.workspace.members.transferOwnership"),
+ variant: "destructive",
+ onConfirm: () => void handleRoleChange(member.user_id, "owner"),
+ });
+ }
+
function confirmRemoveMember(member: WorkspaceMember) {
showConfirmDialog({
title: t("settingsPage.workspace.members.removeConfirm.title"),
@@ -111,8 +133,10 @@ export default function WorkspaceMembersTab({ workspace }: Props) {
}
async function handleResend(inviteId: string) {
+ setResendingId(inviteId);
try {
await InvitationsService.resend(workspace.id, inviteId);
+ await refreshInvitations();
toast({ title: t("settingsPage.workspace.invites.resent") });
} catch (error) {
toast({
@@ -120,6 +144,8 @@ export default function WorkspaceMembersTab({ workspace }: Props) {
description: error instanceof Error ? error.message : t("common.unknownError"),
variant: "destructive",
});
+ } finally {
+ setResendingId(null);
}
}
@@ -197,7 +223,7 @@ export default function WorkspaceMembersTab({ workspace }: Props) {
</DropdownMenuItem>
)}
{workspace.role === "owner" && (
- <DropdownMenuItem onSelect={() => handleRoleChange(member.user_id, "owner")}>
+ <DropdownMenuItem onSelect={() => confirmTransferOwnership(member)}>
{t("settingsPage.workspace.members.transferOwnership")}
</DropdownMenuItem>
)}
@@ -226,33 +252,54 @@ export default function WorkspaceMembersTab({ workspace }: Props) {
{t("settingsPage.workspace.invites.title")}
</h4>
<div className="rounded-lg border border-border/50 dark:border-border-subtle/70 divide-y divide-border/30 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50">
- {invitations.map((inv) => (
- <div key={inv.id} className="flex items-center gap-3 px-4 h-12">
- <Mail className="w-3.5 h-3.5 text-muted-foreground shrink-0" />
- <div className="flex-1 min-w-0">
- <p className="text-xs text-foreground truncate">{inv.email}</p>
- </div>
- <span className="text-[10px] uppercase tracking-wide text-muted-foreground">
- {t(`settingsPage.workspace.role.${inv.workspace_role}`)}
- </span>
- <Button
- size="sm"
- variant="ghost"
- onClick={() => handleResend(inv.id)}
- className="h-7 px-2"
- >
- {t("settingsPage.workspace.invites.resend")}
- </Button>
- <button
- type="button"
- onClick={() => confirmRevokeInvitation(inv)}
- aria-label={t("settingsPage.workspace.invites.revoke")}
- className="p-1 rounded-md text-muted-foreground hover:text-destructive hover:bg-destructive/8 transition-colors outline-none focus-visible:ring-1 focus-visible:ring-primary/30"
+ {invitations.map((inv) => {
+ const daysLeft = invitationDaysLeft(inv);
+ const expired = daysLeft <= 0;
+ return (
+ <div
+ key={inv.id}
+ className={cn("flex items-center gap-3 px-4 h-12", expired && "opacity-60")}
>
- <X className="w-3.5 h-3.5" />
- </button>
- </div>
- ))}
+ <Mail className="w-3.5 h-3.5 text-muted-foreground shrink-0" />
+ <div className="flex-1 min-w-0">
+ <p className="text-xs text-foreground truncate">{inv.email}</p>
+ <p
+ className={cn(
+ "text-[11px]",
+ expired ? "text-destructive" : "text-muted-foreground"
+ )}
+ >
+ {expired
+ ? t("settingsPage.workspace.invites.expired")
+ : t("settingsPage.workspace.invites.expiresIn", { count: daysLeft })}
+ </p>
+ </div>
+ <span className="text-[10px] uppercase tracking-wide text-muted-foreground">
+ {t(`settingsPage.workspace.role.${inv.workspace_role}`)}
+ </span>
+ <Button
+ size="sm"
+ variant="ghost"
+ onClick={() => handleResend(inv.id)}
+ disabled={resendingId === inv.id}
+ className="h-7 px-2"
+ >
+ {resendingId === inv.id && <Loader2 className="mr-1.5 h-3 w-3 animate-spin" />}
+ {resendingId === inv.id
+ ? t("settingsPage.workspace.invites.resending")
+ : t("settingsPage.workspace.invites.resend")}
+ </Button>
+ <button
+ type="button"
+ onClick={() => confirmRevokeInvitation(inv)}
+ aria-label={t("settingsPage.workspace.invites.revoke")}
+ className="p-1 rounded-md text-muted-foreground hover:text-destructive hover:bg-destructive/8 transition-colors outline-none focus-visible:ring-1 focus-visible:ring-primary/30"
+ >
+ <X className="w-3.5 h-3.5" />
+ </button>
+ </div>
+ );
+ })}
</div>
</div>
)}
@@ -263,6 +310,7 @@ export default function WorkspaceMembersTab({ workspace }: Props) {
workspaceId={workspace.id}
workspaceName={workspace.name}
onInvited={refreshInvitations}
+ onNavigateToBilling={onNavigateToBilling}
/>
<ConfirmDialog
diff --git a/src/components/settings/WorkspaceSection.tsx b/src/components/settings/WorkspaceSection.tsx
index 960bf5599..27dae9e6e 100644
--- a/src/components/settings/WorkspaceSection.tsx
+++ b/src/components/settings/WorkspaceSection.tsx
@@ -1,23 +1,18 @@
import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
-import { Users, UserPlus, Trash2, Lock } from "lucide-react";
+import { Users, UserPlus, Trash2, LogOut, ChevronDown, Loader2 } from "lucide-react";
import { useWorkspaceStore } from "../../stores/workspaceStore";
import { WorkspacesService } from "../../services/WorkspacesService";
import { useAuth } from "../../hooks/useAuth";
+import { useDialogs } from "../../hooks/useDialogs";
import { useLocalStorage } from "../../hooks/useLocalStorage";
import { Button } from "../ui/button";
import { Input } from "../ui/input";
import { Label } from "../ui/label";
import { useToast } from "../ui/useToast";
-import {
- Dialog,
- DialogContent,
- DialogHeader,
- DialogTitle,
- DialogDescription,
- DialogFooter,
-} from "../ui/dialog";
+import { ConfirmDialog } from "../ui/dialog";
import CreateWorkspaceDialog from "../CreateWorkspaceDialog";
+import InviteTeammateDialog from "../InviteTeammateDialog";
import {
DropdownMenu,
DropdownMenuTrigger,
@@ -28,12 +23,11 @@ import {
} from "../ui/dropdown-menu";
import { cn } from "../lib/utils";
import WorkspaceMembersTab from "./WorkspaceMembersTab";
-import WorkspaceTeamsTab from "./WorkspaceTeamsTab";
import WorkspaceBillingTab from "./WorkspaceBillingTab";
import WorkspaceDeveloperTab from "./WorkspaceDeveloperTab";
import type { Workspace } from "../../types/electron";
-const SUB_TABS = ["general", "members", "teams", "billing", "developer"] as const;
+const SUB_TABS = ["general", "members", "billing", "developer"] as const;
type WorkspaceTab = (typeof SUB_TABS)[number];
interface Props {
@@ -43,51 +37,47 @@ interface Props {
export default function WorkspaceSection({ initialSubTab }: Props) {
const { t } = useTranslation();
const { isSignedIn } = useAuth();
- const { workspaces, activeWorkspaceId, setActiveWorkspaceId, loaded, refresh } =
+ const { workspaces, activeWorkspaceId, setActiveWorkspaceId, loaded, loading, error, refresh } =
useWorkspaceStore();
- const [tab, setTab] = useLocalStorage<WorkspaceTab>(
+ const [storedTab, setStoredTab] = useLocalStorage<string>(
"settings.workspaceTab",
SUB_TABS.includes(initialSubTab as WorkspaceTab) ? (initialSubTab as WorkspaceTab) : "members"
);
const [createOpen, setCreateOpen] = useState(false);
+ const [inviteWorkspaceId, setInviteWorkspaceId] = useState<string | null>(null);
useEffect(() => {
if (isSignedIn && !loaded) void refresh();
}, [isSignedIn, loaded, refresh]);
- const workspace = activeWorkspaceId
- ? workspaces.find((w) => w.id === activeWorkspaceId)
- : (workspaces[0] ?? null);
+ if (!isSignedIn) return null;
- useEffect(() => {
- if (!activeWorkspaceId && workspaces[0]) {
- setActiveWorkspaceId(workspaces[0].id);
- }
- }, [activeWorkspaceId, workspaces, setActiveWorkspaceId]);
-
- if (!isSignedIn) {
- return (
- <div className="space-y-4">
- <div>
- <h3 className="text-xs font-semibold text-foreground">
- {t("settingsPage.workspace.title")}
- </h3>
- <p className="text-xs text-muted-foreground/80 mt-0.5">
- {t("settingsPage.workspace.description")}
- </p>
- </div>
- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 p-6 text-center">
- <Lock className="w-5 h-5 text-muted-foreground/60 mx-auto mb-2" />
- <p className="text-xs font-medium text-foreground mb-1">
- {t("settingsPage.workspace.signInRequired.title")}
- </p>
- <p className="text-xs text-muted-foreground">
- {t("settingsPage.workspace.signInRequired.description")}
- </p>
- </div>
- </div>
- );
- }
+ // Rendered in both the empty and populated branches; creating a workspace
+ // chains straight into inviting a teammate (with a Skip affordance).
+ const inviteWorkspace = inviteWorkspaceId
+ ? (workspaces.find((w) => w.id === inviteWorkspaceId) ?? null)
+ : null;
+ const createDialog = (
+ <>
+ <CreateWorkspaceDialog
+ open={createOpen}
+ onOpenChange={setCreateOpen}
+ onCreated={setInviteWorkspaceId}
+ />
+ {inviteWorkspace && (
+ <InviteTeammateDialog
+ open
+ onOpenChange={(nextOpen) => {
+ if (!nextOpen) setInviteWorkspaceId(null);
+ }}
+ workspaceId={inviteWorkspace.id}
+ workspaceName={inviteWorkspace.name}
+ cancelLabel={t("common.skip")}
+ onNavigateToBilling={() => setStoredTab("billing")}
+ />
+ )}
+ </>
+ );
if (!loaded) {
return (
@@ -109,25 +99,45 @@ export default function WorkspaceSection({ initialSubTab }: Props) {
{t("settingsPage.workspace.description")}
</p>
</div>
- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 p-6 text-center">
- <Users className="w-5 h-5 text-muted-foreground/60 mx-auto mb-2" />
- <p className="text-xs font-medium text-foreground mb-1">
- {t("settingsPage.workspace.empty.title")}
- </p>
- <p className="text-xs text-muted-foreground mb-4">
- {t("settingsPage.workspace.empty.description")}
- </p>
- <Button size="sm" onClick={() => setCreateOpen(true)}>
- <UserPlus className="mr-1.5 h-3.5 w-3.5" />
- {t("settingsPage.workspace.empty.create")}
- </Button>
- </div>
- <CreateWorkspaceDialog open={createOpen} onOpenChange={setCreateOpen} />
+ {error ? (
+ <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 p-6 text-center">
+ <p className="text-xs font-medium text-foreground mb-1">
+ {t("settingsPage.workspace.loadError.title")}
+ </p>
+ <p className="text-xs text-muted-foreground mb-4">
+ {t("settingsPage.workspace.loadError.description")}
+ </p>
+ <Button size="sm" variant="outline" onClick={() => void refresh()} disabled={loading}>
+ {loading && <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />}
+ {t("settingsPage.workspace.loadError.retry")}
+ </Button>
+ </div>
+ ) : (
+ <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 bg-card/50 dark:bg-surface-2/50 p-6 text-center">
+ <Users className="w-5 h-5 text-muted-foreground/60 mx-auto mb-2" />
+ <p className="text-xs font-medium text-foreground mb-1">
+ {t("settingsPage.workspace.empty.title")}
+ </p>
+ <p className="text-xs text-muted-foreground mb-4">
+ {t("settingsPage.workspace.empty.description")}
+ </p>
+ <Button size="sm" onClick={() => setCreateOpen(true)}>
+ <UserPlus className="mr-1.5 h-3.5 w-3.5" />
+ {t("settingsPage.workspace.empty.create")}
+ </Button>
+ </div>
+ )}
+ {createDialog}
</div>
);
}
- if (!workspace) return null;
+ const workspace = workspaces.find((w) => w.id === activeWorkspaceId) ?? workspaces[0];
+ const canManage = workspace.role === "owner" || workspace.role === "admin";
+ const visibleTabs = SUB_TABS.filter((id) => id !== "developer" || canManage);
+ const tab: WorkspaceTab = visibleTabs.includes(storedTab as WorkspaceTab)
+ ? (storedTab as WorkspaceTab)
+ : "members";
return (
<div className="space-y-4">
@@ -142,7 +152,7 @@ export default function WorkspaceSection({ initialSubTab }: Props) {
)}
>
<h2 className="text-sm font-semibold text-foreground truncate">{workspace.name}</h2>
- <span className="text-xs text-muted-foreground">▾</span>
+ <ChevronDown className="h-3.5 w-3.5 text-muted-foreground" aria-hidden="true" />
</DropdownMenuTrigger>
<DropdownMenuContent align="start">
<DropdownMenuLabel className="text-[10px] uppercase tracking-wide text-muted-foreground/70 font-medium">
@@ -174,11 +184,13 @@ export default function WorkspaceSection({ initialSubTab }: Props) {
</div>
<div className="border-b border-border/40 dark:border-border-subtle/60 -mx-1">
- <div className="flex gap-0.5 px-1">
- {SUB_TABS.map((id) => (
+ <div role="tablist" className="flex gap-0.5 px-1">
+ {visibleTabs.map((id) => (
<button
key={id}
- onClick={() => setTab(id)}
+ role="tab"
+ aria-selected={tab === id}
+ onClick={() => setStoredTab(id)}
className={cn(
"px-3 h-8 text-xs font-medium outline-none transition-colors relative",
"focus-visible:ring-1 focus-visible:ring-primary/30 rounded-md",
@@ -196,28 +208,39 @@ export default function WorkspaceSection({ initialSubTab }: Props) {
<div className="pt-1">
{tab === "general" && <GeneralTab workspace={workspace} />}
- {tab === "members" && <WorkspaceMembersTab workspace={workspace} />}
- {tab === "teams" && <WorkspaceTeamsTab workspace={workspace} />}
+ {tab === "members" && (
+ <WorkspaceMembersTab
+ workspace={workspace}
+ onNavigateToBilling={() => setStoredTab("billing")}
+ />
+ )}
{tab === "billing" && <WorkspaceBillingTab workspace={workspace} />}
- {tab === "developer" && <WorkspaceDeveloperTab workspace={workspace} />}
+ {tab === "developer" && canManage && <WorkspaceDeveloperTab workspace={workspace} />}
</div>
- <CreateWorkspaceDialog open={createOpen} onOpenChange={setCreateOpen} />
+ {createDialog}
</div>
);
}
+const SLUG_PATTERN = /^[a-z0-9-]+$/;
+
function GeneralTab({ workspace }: { workspace: Workspace }) {
const { t } = useTranslation();
const { toast } = useToast();
+ const { user } = useAuth();
+ const { confirmDialog, showConfirmDialog, hideConfirmDialog } = useDialogs();
const refresh = useWorkspaceStore((s) => s.refresh);
const setActive = useWorkspaceStore((s) => s.setActiveWorkspaceId);
const [name, setName] = useState(workspace.name);
const [slug, setSlug] = useState(workspace.slug);
const [saving, setSaving] = useState(false);
- const [confirmOpen, setConfirmOpen] = useState(false);
+ const [deleting, setDeleting] = useState(false);
+ const [leaving, setLeaving] = useState(false);
const isOwner = workspace.role === "owner";
+ const canEdit = isOwner || workspace.role === "admin";
const dirty = name !== workspace.name || slug !== workspace.slug;
+ const slugInvalid = slug.length > 0 && !SLUG_PATTERN.test(slug);
useEffect(() => {
setName(workspace.name);
@@ -241,22 +264,57 @@ function GeneralTab({ workspace }: { workspace: Workspace }) {
}
}
- async function handleDelete() {
- setSaving(true);
- try {
- await WorkspacesService.remove(workspace.id);
- setActive(null);
- await refresh();
- setConfirmOpen(false);
- } catch (error) {
- toast({
- title: t("common.error"),
- description: error instanceof Error ? error.message : t("common.unknownError"),
- variant: "destructive",
- });
- } finally {
- setSaving(false);
- }
+ function confirmDelete() {
+ showConfirmDialog({
+ title: t("settingsPage.workspace.general.confirmTitle", { name: workspace.name }),
+ description: t("settingsPage.workspace.general.confirmDescription"),
+ confirmText: t("settingsPage.workspace.general.delete"),
+ variant: "destructive",
+ onConfirm: async () => {
+ setDeleting(true);
+ try {
+ await WorkspacesService.remove(workspace.id);
+ setActive(null);
+ await refresh();
+ toast({ title: t("settingsPage.workspace.general.deleted") });
+ } catch (error) {
+ toast({
+ title: t("common.error"),
+ description: error instanceof Error ? error.message : t("common.unknownError"),
+ variant: "destructive",
+ });
+ } finally {
+ setDeleting(false);
+ }
+ },
+ });
+ }
+
+ function confirmLeave() {
+ showConfirmDialog({
+ title: t("settingsPage.workspace.general.leaveConfirm.title", { name: workspace.name }),
+ description: t("settingsPage.workspace.general.leaveConfirm.description"),
+ confirmText: t("settingsPage.workspace.general.leave"),
+ variant: "destructive",
+ onConfirm: async () => {
+ if (!user?.id) return;
+ setLeaving(true);
+ try {
+ await WorkspacesService.removeMember(workspace.id, user.id);
+ setActive(null);
+ await refresh();
+ toast({ title: t("settingsPage.workspace.general.left", { name: workspace.name }) });
+ } catch (error) {
+ toast({
+ title: t("common.error"),
+ description: error instanceof Error ? error.message : t("common.unknownError"),
+ variant: "destructive",
+ });
+ } finally {
+ setLeaving(false);
+ }
+ },
+ });
}
return (
@@ -270,7 +328,7 @@ function GeneralTab({ workspace }: { workspace: Workspace }) {
id="ws-name"
value={name}
onChange={(e) => setName(e.target.value)}
- disabled={!isOwner && workspace.role !== "admin"}
+ disabled={!canEdit}
maxLength={80}
/>
</div>
@@ -282,22 +340,35 @@ function GeneralTab({ workspace }: { workspace: Workspace }) {
id="ws-slug"
value={slug}
onChange={(e) => setSlug(e.target.value)}
- disabled={!isOwner && workspace.role !== "admin"}
+ disabled={!canEdit}
maxLength={48}
- pattern="[a-z0-9-]+"
+ aria-invalid={slugInvalid}
/>
- <p className="text-[11px] text-muted-foreground">
- {t("settingsPage.workspace.general.slugHint")}
- </p>
- </div>
- <div className="pt-1">
- <Button onClick={handleSave} size="sm" disabled={!dirty || saving}>
- {saving ? t("common.saving") : t("common.save")}
- </Button>
+ {slugInvalid ? (
+ <p className="text-[11px] text-destructive">
+ {t("settingsPage.workspace.general.slugInvalid")}
+ </p>
+ ) : (
+ <p className="text-[11px] text-muted-foreground">
+ {t("settingsPage.workspace.general.slugHint")}
+ </p>
+ )}
</div>
+ {canEdit && (
+ <div className="pt-1">
+ <Button
+ onClick={handleSave}
+ size="sm"
+ disabled={!dirty || !name.trim() || !slug || slugInvalid || saving}
+ >
+ {saving && <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />}
+ {saving ? t("common.saving") : t("common.save")}
+ </Button>
+ </div>
+ )}
</div>
- {isOwner && (
+ {isOwner ? (
<div className="rounded-lg border border-destructive/30 bg-destructive/3 dark:bg-destructive/6 p-4 space-y-3">
<div>
<p className="text-xs font-medium text-foreground">
@@ -310,37 +381,59 @@ function GeneralTab({ workspace }: { workspace: Workspace }) {
<Button
variant="outline"
size="sm"
- onClick={() => setConfirmOpen(true)}
+ onClick={confirmDelete}
+ disabled={deleting}
className="text-destructive border-destructive/30 hover:bg-destructive/10 hover:border-destructive/50"
>
- <Trash2 className="mr-1.5 h-3.5 w-3.5" />
- {t("settingsPage.workspace.general.delete")}
+ {deleting ? (
+ <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />
+ ) : (
+ <Trash2 className="mr-1.5 h-3.5 w-3.5" />
+ )}
+ {deleting
+ ? t("settingsPage.workspace.general.deleting")
+ : t("settingsPage.workspace.general.delete")}
+ </Button>
+ </div>
+ ) : (
+ <div className="rounded-lg border border-destructive/30 bg-destructive/3 dark:bg-destructive/6 p-4 space-y-3">
+ <div>
+ <p className="text-xs font-medium text-foreground">
+ {t("settingsPage.workspace.general.leaveTitle")}
+ </p>
+ <p className="text-xs text-muted-foreground mt-0.5">
+ {t("settingsPage.workspace.general.leaveDescription")}
+ </p>
+ </div>
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={confirmLeave}
+ disabled={leaving}
+ className="text-destructive border-destructive/30 hover:bg-destructive/10 hover:border-destructive/50"
+ >
+ {leaving ? (
+ <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" />
+ ) : (
+ <LogOut className="mr-1.5 h-3.5 w-3.5" />
+ )}
+ {leaving
+ ? t("settingsPage.workspace.general.leaving")
+ : t("settingsPage.workspace.general.leave")}
</Button>
</div>
)}
- <Dialog open={confirmOpen} onOpenChange={setConfirmOpen}>
- <DialogContent className="max-w-md">
- <DialogHeader>
- <DialogTitle>{t("settingsPage.workspace.general.confirmTitle")}</DialogTitle>
- <DialogDescription>
- {t("settingsPage.workspace.general.confirmDescription", { name: workspace.name })}
- </DialogDescription>
- </DialogHeader>
- <DialogFooter>
- <Button variant="ghost" onClick={() => setConfirmOpen(false)} disabled={saving}>
- {t("common.cancel")}
- </Button>
- <Button
- onClick={handleDelete}
- disabled={saving}
- className="bg-destructive text-destructive-foreground hover:bg-destructive/90"
- >
- {saving ? t("common.saving") : t("settingsPage.workspace.general.delete")}
- </Button>
- </DialogFooter>
- </DialogContent>
- </Dialog>
+ <ConfirmDialog
+ open={confirmDialog.open}
+ onOpenChange={(open) => !open && hideConfirmDialog()}
+ title={confirmDialog.title}
+ description={confirmDialog.description}
+ confirmText={confirmDialog.confirmText}
+ cancelText={confirmDialog.cancelText}
+ onConfirm={confirmDialog.onConfirm}
+ variant={confirmDialog.variant}
+ />
</div>
);
}
diff --git a/src/components/settings/WorkspaceTeamsTab.tsx b/src/components/settings/WorkspaceTeamsTab.tsx
deleted file mode 100644
index da20b012f..000000000
--- a/src/components/settings/WorkspaceTeamsTab.tsx
+++ /dev/null
@@ -1,204 +0,0 @@
-import React, { useEffect, useState } from "react";
-import { useTranslation } from "react-i18next";
-import { Plus, Users, Trash2 } from "lucide-react";
-import { useWorkspaceStore } from "../../stores/workspaceStore";
-import { TeamsService } from "../../services/TeamsService";
-import { useDialogs } from "../../hooks/useDialogs";
-import { Button } from "../ui/button";
-import { Input } from "../ui/input";
-import { Label } from "../ui/label";
-import { useToast } from "../ui/useToast";
-import {
- ConfirmDialog,
- Dialog,
- DialogContent,
- DialogHeader,
- DialogTitle,
- DialogFooter,
-} from "../ui/dialog";
-import type { Workspace, Team } from "../../types/electron";
-
-interface Props {
- workspace: Workspace;
-}
-
-export default function WorkspaceTeamsTab({ workspace }: Props) {
- const { t } = useTranslation();
- const { toast } = useToast();
- const { confirmDialog, showConfirmDialog, hideConfirmDialog } = useDialogs();
- const teams = useWorkspaceStore((s) => s.teams);
- const refreshTeams = useWorkspaceStore((s) => s.refreshTeams);
- const [createOpen, setCreateOpen] = useState(false);
- const [name, setName] = useState("");
- const [description, setDescription] = useState("");
- const [submitting, setSubmitting] = useState(false);
- const canManage = workspace.role === "owner" || workspace.role === "admin";
-
- useEffect(() => {
- void refreshTeams(workspace.id);
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [workspace.id]);
-
- async function handleCreate(e: React.FormEvent) {
- e.preventDefault();
- if (!name.trim()) return;
- setSubmitting(true);
- try {
- await TeamsService.create(workspace.id, {
- name: name.trim(),
- description: description.trim() || undefined,
- });
- await refreshTeams(workspace.id);
- setName("");
- setDescription("");
- setCreateOpen(false);
- } catch (error) {
- toast({
- title: t("common.error"),
- description: error instanceof Error ? error.message : t("common.unknownError"),
- variant: "destructive",
- });
- } finally {
- setSubmitting(false);
- }
- }
-
- function confirmDelete(team: Team) {
- showConfirmDialog({
- title: t("settingsPage.workspace.teams.deleteConfirm.title"),
- description: t("settingsPage.workspace.teams.deleteConfirm.description", { name: team.name }),
- confirmText: t("common.delete"),
- variant: "destructive",
- onConfirm: async () => {
- try {
- await TeamsService.remove(team.id);
- await refreshTeams(workspace.id);
- } catch (error) {
- toast({
- title: t("common.error"),
- description: error instanceof Error ? error.message : t("common.unknownError"),
- variant: "destructive",
- });
- }
- },
- });
- }
-
- return (
- <div className="space-y-4">
- <div className="flex items-center justify-between">
- <div>
- <h3 className="text-xs font-semibold text-foreground">
- {t("settingsPage.workspace.teams.title")}
- </h3>
- <p className="text-xs text-muted-foreground/80 mt-0.5">
- {t("settingsPage.workspace.teams.description")}
- </p>
- </div>
- {canManage && (
- <Button size="sm" onClick={() => setCreateOpen(true)}>
- <Plus className="mr-1.5 h-3.5 w-3.5" />
- {t("settingsPage.workspace.teams.new")}
- </Button>
- )}
- </div>
-
- <div className="rounded-lg border border-border/50 dark:border-border-subtle/70 divide-y divide-border/30 dark:divide-border-subtle/50 bg-card/50 dark:bg-surface-2/50">
- {teams.length === 0 && (
- <div className="py-10 text-center">
- <Users className="w-5 h-5 text-muted-foreground/60 mx-auto mb-2" />
- <p className="text-xs text-muted-foreground mb-3">
- {t("settingsPage.workspace.teams.empty")}
- </p>
- {canManage && (
- <Button size="sm" variant="outline" onClick={() => setCreateOpen(true)}>
- {t("settingsPage.workspace.teams.createFirst")}
- </Button>
- )}
- </div>
- )}
- {teams.map((team) => (
- <div key={team.id} className="flex items-center gap-3 px-4 h-14">
- <div className="flex-1 min-w-0">
- <p className="text-xs font-medium text-foreground truncate">{team.name}</p>
- {team.description && (
- <p className="text-xs text-muted-foreground truncate">{team.description}</p>
- )}
- </div>
- <span className="text-xs text-muted-foreground">
- {t("settingsPage.workspace.teams.memberCount", { count: team.member_count ?? 0 })}
- </span>
- {canManage && (
- <button
- type="button"
- onClick={() => confirmDelete(team)}
- aria-label={t("common.delete")}
- className="p-1 rounded-md text-muted-foreground hover:text-destructive hover:bg-destructive/8 transition-colors outline-none focus-visible:ring-1 focus-visible:ring-primary/30"
- >
- <Trash2 className="w-3.5 h-3.5" />
- </button>
- )}
- </div>
- ))}
- </div>
-
- <ConfirmDialog
- open={confirmDialog.open}
- onOpenChange={(open) => !open && hideConfirmDialog()}
- title={confirmDialog.title}
- description={confirmDialog.description}
- confirmText={confirmDialog.confirmText}
- cancelText={confirmDialog.cancelText}
- onConfirm={confirmDialog.onConfirm}
- variant={confirmDialog.variant}
- />
-
- <Dialog open={createOpen} onOpenChange={setCreateOpen}>
- <DialogContent className="max-w-md">
- <DialogHeader>
- <DialogTitle>{t("settingsPage.workspace.teams.createTitle")}</DialogTitle>
- </DialogHeader>
- <form onSubmit={handleCreate} className="space-y-3">
- <div className="space-y-1.5">
- <Label htmlFor="team-name" className="text-xs font-medium">
- {t("settingsPage.workspace.teams.nameLabel")}
- </Label>
- <Input
- id="team-name"
- value={name}
- onChange={(e) => setName(e.target.value)}
- autoFocus
- maxLength={80}
- required
- />
- </div>
- <div className="space-y-1.5">
- <Label htmlFor="team-description" className="text-xs font-medium">
- {t("settingsPage.workspace.teams.descriptionLabel")}
- </Label>
- <Input
- id="team-description"
- value={description}
- onChange={(e) => setDescription(e.target.value)}
- maxLength={280}
- />
- </div>
- <DialogFooter className="pt-2">
- <Button
- type="button"
- variant="ghost"
- onClick={() => setCreateOpen(false)}
- disabled={submitting}
- >
- {t("common.cancel")}
- </Button>
- <Button type="submit" disabled={!name.trim() || submitting}>
- {submitting ? t("common.saving") : t("common.create")}
- </Button>
- </DialogFooter>
- </form>
- </DialogContent>
- </Dialog>
- </div>
- );
-}
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index 1e415719b..ad87f46d8 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -367,18 +367,6 @@
"today": "Heute",
"yesterday": "Gestern"
},
- "transcriptionFailed": "Transkription fehlgeschlagen",
- "failedCtaSettings": "Richten Sie Ihren Transkriptionsanbieter ein",
- "failedCtaAndRetry": "und klicken Sie dann auf Wiederholen",
- "failedCtaSettingsOnly": "Richten Sie Ihren Transkriptionsanbieter in den Einstellungen ein",
- "failedLimitReached": "Tageslimit erreicht",
- "failedOffline": "Offline",
- "clearAll": "Alle löschen",
- "clearAllTitle": "Alle Transkriptionen löschen",
- "clearAllDescription": "Alle Transkriptionen und Audiodateien werden dauerhaft entfernt.",
- "clearAllSuccess": "Verlauf gelöscht",
- "clearAllErrorTitle": "Verlauf konnte nicht gelöscht werden",
- "clearAllErrorDescription": "Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",
"copyText": "Text kopieren",
"deleteItem": "Löschen",
"viewRawTranscript": "Rohtranskript anzeigen",
@@ -391,7 +379,19 @@
"retryError": "Erneute Transkription fehlgeschlagen",
"audioNotFound": "Audiodatei nicht gefunden oder abgelaufen",
"noAiProcessing": "Auf diese Transkription wurde keine KI-Verarbeitung angewendet",
+ "transcriptionFailed": "Transkription fehlgeschlagen",
+ "failedCtaSettings": "Richten Sie Ihren Transkriptionsanbieter ein",
+ "failedCtaAndRetry": "und klicken Sie dann auf Wiederholen",
+ "failedCtaSettingsOnly": "Richten Sie Ihren Transkriptionsanbieter in den Einstellungen ein",
+ "failedLimitReached": "Tageslimit erreicht",
+ "failedOffline": "Offline",
"rawTranscript": "Rohtranskript",
+ "clearAll": "Alle löschen",
+ "clearAllTitle": "Alle Transkriptionen löschen",
+ "clearAllDescription": "Alle Transkriptionen und Audiodateien werden dauerhaft entfernt.",
+ "clearAllSuccess": "Verlauf gelöscht",
+ "clearAllErrorTitle": "Verlauf konnte nicht gelöscht werden",
+ "clearAllErrorDescription": "Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",
"discarded": {
"show": "Verworfene anzeigen",
"hide": "Verworfene ausblenden",
@@ -743,6 +743,46 @@
"welcomeTitle": "Willkommen bei OpenWhispr",
"sessionExpired": "Sitzung abgelaufen"
},
+ "calendar": {
+ "title": "Google Kalender",
+ "status": "Status",
+ "connected": "Verbunden",
+ "disconnected": "Getrennt",
+ "notConnectedDescription": "Verbinden, um Meetings zu erkennen und aufzuzeichnen",
+ "connectCta": {
+ "title": "Kalender-Integration",
+ "description": "Meetings automatisch erkennen und Transkriptionen aufzeichnen"
+ },
+ "connect": "Google Kalender verbinden",
+ "connecting": "Verbinde...",
+ "disconnect": "Trennen",
+ "disconnecting": "Trennen...",
+ "sync": "Synchronisieren",
+ "syncing": "Synchronisiere...",
+ "calendarsTitle": "Kalender",
+ "upcomingTitle": "Anstehend",
+ "noUpcoming": "Keine anstehenden Ereignisse",
+ "meetingStarting": "Meeting beginnt jetzt",
+ "today": "Heute",
+ "tomorrow": "Morgen"
+ },
+ "upcoming": {
+ "title": "Anstehende Meetings",
+ "transcriptions": "Transkriptionen",
+ "tomorrow": "Morgen",
+ "noMoreMeetings": "Keine weiteren Meetings heute",
+ "now": "Jetzt",
+ "join": "Beitreten",
+ "untitledEvent": "Unbenanntes Ereignis",
+ "systemAudioRequired": "Die Systemaudio-Berechtigung wird benötigt, um den Ton anderer Teilnehmer aufzunehmen.",
+ "openSettings": "Systemeinstellungen öffnen",
+ "signInRequired": "Melden Sie sich an, um Meeting-Aufnahmen zu nutzen",
+ "signInDescription": "Erstellen Sie ein Konto oder melden Sie sich an, um Meetings aufzunehmen und zu transkribieren.",
+ "connectCalendar": "Kalender verbinden",
+ "connectCalendarDescription": "Verknüpfe deinen Google Kalender, um anstehende Meetings zu sehen und automatisch Notizen aufzuzeichnen.",
+ "notABot": "OpenWhispr nimmt über dein Systemaudio auf — es tritt niemals als Bot deinen Meetings bei.",
+ "connectCalendarButton": "Kalender verbinden"
+ },
"cleanupPrompt": "Textbereinigung",
"developerSection": {
"currentLogFile": "Aktuelle Protokolldatei",
@@ -809,6 +849,54 @@
"title": "Was protokolliert wird"
}
},
+ "apiKeysSection": {
+ "title": "API-Schlüssel",
+ "description": "Erstellen Sie Schlüssel für den programmatischen Zugriff auf die OpenWhispr-API.",
+ "docsLink": "API-Dokumentation",
+ "empty": "Noch keine API-Schlüssel",
+ "createButton": "API-Schlüssel erstellen",
+ "create": {
+ "title": "API-Schlüssel erstellen",
+ "nameLabel": "Schlüsselname",
+ "namePlaceholder": "z. B. Meine Integration",
+ "scopesLabel": "Berechtigungen",
+ "expiryLabel": "Ablauf",
+ "expiryOptions": {
+ "never": "Läuft nicht ab",
+ "30days": "30 Tage",
+ "60days": "60 Tage",
+ "90days": "90 Tage",
+ "1year": "1 Jahr"
+ },
+ "submit": "Erstellen",
+ "cancel": "Abbrechen"
+ },
+ "created": {
+ "title": "API-Schlüssel erstellt",
+ "warning": "Kopieren Sie diesen Schlüssel jetzt. Er wird nicht erneut angezeigt.",
+ "copied": "Kopiert!",
+ "copyButton": "In die Zwischenablage kopieren",
+ "done": "Fertig"
+ },
+ "scopes": {
+ "notesRead": "Notizen lesen",
+ "notesWrite": "Notizen erstellen und bearbeiten",
+ "transcriptionsRead": "Transkriptionen lesen"
+ },
+ "revoke": {
+ "button": "Widerrufen",
+ "confirm": "Diesen Schlüssel widerrufen? Alle Integrationen, die ihn verwenden, funktionieren dann nicht mehr.",
+ "success": "API-Schlüssel widerrufen"
+ },
+ "neverUsed": "Nie verwendet",
+ "lastUsed": "Zuletzt verwendet {{time}}",
+ "maxKeysReached": "Maximal {{max}} Schlüssel erlaubt",
+ "errors": {
+ "loadFailed": "API-Schlüssel konnten nicht geladen werden",
+ "createFailed": "API-Schlüssel konnte nicht erstellt werden",
+ "revokeFailed": "API-Schlüssel konnte nicht widerrufen werden"
+ }
+ },
"dictionarySuffix": "Wörterbuch-Suffix",
"emailVerification": {
"checkEmailDescription": "Wir haben einen Bestätigungslink gesendet an",
@@ -1028,6 +1116,10 @@
"description": "Tarife, Nutzung & Abrechnung",
"label": "Tarife & Abrechnung"
},
+ "workspace": {
+ "description": "Mitglieder, Abrechnung und API-Schlüssel",
+ "label": "Workspace"
+ },
"general": {
"description": "Darstellung, Töne & Start",
"label": "Einstellungen"
@@ -1051,15 +1143,165 @@
"system": {
"description": "Updates, Speicher & Entwicklertools",
"label": "System"
- },
- "workspace": {
- "label": "Workspace",
- "description": "Mitglieder, Teams, Abrechnung und API-Schlüssel"
}
},
"title": "Einstellungen"
},
"settingsPage": {
+ "workspace": {
+ "title": "Workspace",
+ "description": "Arbeiten Sie zusammen, teilen Sie Notizen und verwalten Sie die Abrechnung an einem Ort.",
+ "empty": {
+ "title": "Ersten Workspace erstellen",
+ "description": "Workspaces ermöglichen die Zusammenarbeit und das Teilen von Notizen.",
+ "create": "Workspace erstellen"
+ },
+ "loadError": {
+ "title": "Workspaces konnten nicht geladen werden",
+ "description": "Prüfen Sie Ihre Verbindung und versuchen Sie es erneut.",
+ "retry": "Erneut versuchen"
+ },
+ "tab": {
+ "general": "Allgemein",
+ "members": "Mitglieder",
+ "billing": "Abrechnung",
+ "developer": "Entwickler"
+ },
+ "role": {
+ "owner": "Inhaber",
+ "admin": "Administrator",
+ "member": "Mitglied"
+ },
+ "general": {
+ "nameLabel": "Workspace-Name",
+ "slugLabel": "Slug",
+ "slugHint": "Wird in URLs verwendet. Nur Kleinbuchstaben, Ziffern und Bindestriche.",
+ "slugInvalid": "Nur Kleinbuchstaben, Ziffern und Bindestriche.",
+ "saved": "Workspace aktualisiert",
+ "dangerTitle": "Workspace löschen",
+ "dangerDescription": "Alle geteilten Notizen, Ordner und Integrationen werden gelöscht. Dies kann nicht rückgängig gemacht werden.",
+ "delete": "Workspace löschen",
+ "confirmTitle": "{{name}} löschen?",
+ "confirmDescription": "Dies kündigt das Abonnement und entfernt alle Workspace-Daten dauerhaft.",
+ "deleting": "Lösche…",
+ "deleted": "Workspace gelöscht",
+ "leaveTitle": "Workspace verlassen",
+ "leaveDescription": "Sie verlieren den Zugriff auf diesen Workspace und seine geteilten Notizen.",
+ "leave": "Workspace verlassen",
+ "leaving": "Verlasse…",
+ "leaveConfirm": {
+ "title": "{{name}} verlassen?",
+ "description": "Sie verlieren sofort den Zugriff. Ein Administrator kann Sie erneut einladen."
+ },
+ "left": "Sie haben {{name}} verlassen"
+ },
+ "members": {
+ "title": "Mitglieder",
+ "description": "{{count}} von {{seats}} Plätzen belegt.",
+ "invite": "Einladen",
+ "empty": "Noch keine Mitglieder.",
+ "roleUpdated": "Rolle aktualisiert",
+ "promote": "Zum Administrator machen",
+ "demote": "Zum Mitglied machen",
+ "transferOwnership": "Eigentum übertragen",
+ "remove": "Aus Workspace entfernen",
+ "removeConfirm": {
+ "title": "Dieses Mitglied entfernen?",
+ "description": "{{name}} verliert sofort den Zugriff auf {{workspace}}."
+ },
+ "transferConfirm": {
+ "title": "Eigentum übertragen?",
+ "description": "{{name}} wird Inhaber von {{workspace}}. Ihre Rolle ändert sich zu Administrator und nur der neue Inhaber kann das Eigentum zurückübertragen."
+ }
+ },
+ "invites": {
+ "title": "Ausstehende Einladungen",
+ "expiresIn_one": "Läuft in {{count}} Tag ab",
+ "expiresIn_other": "Läuft in {{count}} Tagen ab",
+ "expired": "Abgelaufen",
+ "resend": "Erneut senden",
+ "resending": "Sende erneut…",
+ "revoke": "Widerrufen",
+ "resent": "Einladung erneut gesendet",
+ "revokeFailed": "Einladung konnte nicht widerrufen werden",
+ "revokeConfirm": {
+ "title": "Diese Einladung widerrufen?",
+ "description": "Der Einladungslink für {{email}} funktioniert dann nicht mehr."
+ }
+ },
+ "billing": {
+ "title": "Abrechnung",
+ "description": "Plan, Plätze und Zahlung.",
+ "plan": "Plan",
+ "seats": "Plätze",
+ "nextInvoice": "Nächste Rechnung",
+ "manageStripe": "In Stripe verwalten",
+ "opening": "Öffne…",
+ "startSubscription": "Abonnement starten",
+ "planLabel": {
+ "business": "Business",
+ "pro": "Pro",
+ "free": "Free"
+ },
+ "status": {
+ "active": "Aktiv",
+ "trialing": "Testphase",
+ "past_due": "Überfällig",
+ "canceled": "Gekündigt",
+ "incomplete": "Unvollständig",
+ "unpaid": "Unbezahlt"
+ }
+ },
+ "developer": {
+ "title": "API-Schlüssel",
+ "description": "Programmatischer Zugriff auf diesen Workspace.",
+ "empty": "Noch keine API-Schlüssel. Erstellen Sie einen für Integrationen.",
+ "new": "Neuer Schlüssel",
+ "create": "Schlüssel erstellen",
+ "createTitle": "API-Schlüssel erstellen",
+ "createDescription": "Wählen Sie die Berechtigungen. Sie können den Schlüssel jederzeit widerrufen.",
+ "nameLabel": "Schlüsselname",
+ "namePlaceholder": "Produktionsintegration",
+ "revoke": "Schlüssel widerrufen",
+ "lastUsed": "Zuletzt verwendet {{date}}",
+ "neverUsed": "Nie verwendet",
+ "keyCreatedTitle": "API-Schlüssel erstellt",
+ "keyCreatedDescription": "Kopieren Sie diesen Schlüssel jetzt — Sie können ihn nicht erneut sehen.",
+ "revokeConfirm": {
+ "title": "Diesen Schlüssel widerrufen?",
+ "description": "{{name}} funktioniert sofort nicht mehr. Alle Integrationen, die ihn verwenden, schlagen dann fehl."
+ },
+ "scopes": {
+ "notes": {
+ "title": "Notizen",
+ "read": "Notizen lesen",
+ "write": "Notizen schreiben"
+ },
+ "folders": {
+ "title": "Ordner",
+ "read": "Ordner lesen",
+ "write": "Ordner schreiben"
+ },
+ "transcriptions": {
+ "title": "Transkriptionen",
+ "read": "Transkriptionen lesen"
+ },
+ "members": {
+ "title": "Mitglieder",
+ "read": "Mitglieder lesen",
+ "write": "Mitglieder verwalten"
+ },
+ "billing": {
+ "title": "Abrechnung",
+ "read": "Abrechnung lesen"
+ },
+ "full": {
+ "title": "Vollzugriff",
+ "admin": "Workspace-Administrator"
+ }
+ }
+ }
+ },
"account": {
"badges": {
"free": "Kostenlos",
@@ -1206,9 +1448,6 @@
"signingOut": "Abmeldung läuft..."
},
"signedIn": "Angemeldet",
- "signedOutPlans": {
- "button": "Kostenloses Konto erstellen"
- },
"title": "Konto",
"toasts": {
"approachingLimit": {
@@ -1221,6 +1460,9 @@
"description": "Unbegrenzte Transkriptionen, bevorzugte Verarbeitung und mehr.",
"title": "Pro 7 Tage kostenlos testen"
},
+ "signedOutPlans": {
+ "button": "Kostenloses Konto erstellen"
+ },
"user": "Benutzer",
"wordsRemaining": "{{remaining}} verbleibend",
"deleteAccount": {
@@ -1269,11 +1511,11 @@
"providers": "Cloud-Anbieter",
"local": "Lokal",
"selfHosted": "Selbst gehostet",
+ "enterprise": "Enterprise",
"openwhisprDesc": "Zuverlässige Ergebnisse. Keine Einrichtung nötig.",
"providersDesc": "Eigenen API-Schlüssel nutzen.",
"localDesc": "Modelle auf dem Gerät. Voll privat.",
"selfHostedDesc": "Eigener Server in Ihrem Netzwerk.",
- "enterprise": "Enterprise",
"enterpriseDesc": "Nutzen Sie das Cloud-Konto Ihrer Organisation (AWS, Azure, GCP)."
},
"openwhisprCloud": "OpenWhispr Cloud",
@@ -1370,13 +1612,13 @@
"floatingIcon": {
"autoHide": "Automatisch ausblenden bei Inaktivität",
"autoHideDescription": "Symbol ausblenden, bis Sie mit dem Diktieren beginnen",
- "description": "Steuern Sie, wann das Diktat-Symbol auf Ihrem Bildschirm sichtbar ist",
- "title": "Schwebendes Symbol",
"startPosition": "Startposition",
"startPositionDescription": "Wo das Sprachrekorder-Panel auf dem Bildschirm erscheint",
"bottomRight": "Unten rechts",
"center": "Unten Mitte",
- "bottomLeft": "Unten links"
+ "bottomLeft": "Unten links",
+ "description": "Steuern Sie, wann das Diktat-Symbol auf Ihrem Bildschirm sichtbar ist",
+ "title": "Schwebendes Symbol"
},
"hotkey": {
"activationMode": "Aktivierungsmodus",
@@ -1599,12 +1841,6 @@
"title": "Datenschutz",
"usageAnalytics": "Nutzungsanalysen",
"usageAnalyticsDescription": "Helfen Sie uns, OpenWhispr zu verbessern, indem Sie anonyme Leistungsdaten teilen. Wir senden niemals Transkriptionsinhalte – nur Timing- und Fehlerdaten.",
- "dataRetention": "Datenaufbewahrung",
- "dataRetentionDescription": "Transkriptionen und Audio lokal im Verlauf speichern. Wenn deaktiviert, werden Transkriptionen eingefügt, aber nicht gespeichert.",
- "hoursAgo": "vor {{count}} Std.",
- "justNow": "gerade eben",
- "lastSynced": "Zuletzt synchronisiert {{time}}",
- "minutesAgo": "vor {{count}} Min.",
"audioRetention": "Audio-Aufbewahrung",
"audioRetentionDescription": "Audioaufnahmen lokal für erneute Transkription und Download speichern. Dateien werden nach Ablauf der Aufbewahrungsfrist automatisch gelöscht.",
"audioRetentionDisabled": "Deaktiviert",
@@ -1615,6 +1851,12 @@
"audioStorageEmpty": "Keine Audiodateien gespeichert",
"clearAllAudio": "Alle Audiodateien löschen",
"clearAllAudioConfirm": "Alle gespeicherten Audiodateien löschen? Dies kann nicht rückgängig gemacht werden.",
+ "dataRetention": "Datenaufbewahrung",
+ "dataRetentionDescription": "Transkriptionen und Audio lokal im Verlauf speichern. Wenn deaktiviert, werden Transkriptionen eingefügt, aber nicht gespeichert.",
+ "hoursAgo": "vor {{count}} Std.",
+ "justNow": "gerade eben",
+ "lastSynced": "Zuletzt synchronisiert {{time}}",
+ "minutesAgo": "vor {{count}} Min.",
"saveDiscarded": "Verworfene Diktate speichern",
"saveDiscardedDescription": "Wenn Sie ein Diktat mit Escape abbrechen, bleibt das Audio im Verlauf, damit Sie es wiederherstellen können. Erfordert aktive Daten- und Audio-Aufbewahrung."
},
@@ -1752,163 +1994,18 @@
"endpointUrl": "Endpunkt-URL",
"serverUrl": "Server-URL",
"apiKeyOptional": "API-Schlüssel (optional)"
- },
- "workspace": {
- "title": "Workspace",
- "description": "Arbeiten Sie zusammen, teilen Sie Notizen und verwalten Sie die Abrechnung an einem Ort.",
- "empty": {
- "title": "Ersten Workspace erstellen",
- "description": "Workspaces ermöglichen die Zusammenarbeit und das Teilen von Notizen.",
- "create": "Workspace erstellen"
+ }
+ },
+ "models": {
+ "learnMore": "Mehr erfahren",
+ "descriptions": {
+ "parakeet": {
+ "parakeet_tdt_0_6b_v3": "Schnelle mehrsprachige ASR mit automatischer Spracherkennung (25 Sprachen)",
+ "parakeet_unified_en_0_6b": "Englisch-only ASR mit Spitzen-Genauigkeit (5,91% durchschnittliche WER)"
},
- "tab": {
- "general": "Allgemein",
- "members": "Mitglieder",
- "teams": "Teams",
- "billing": "Abrechnung",
- "developer": "Entwickler"
- },
- "role": {
- "owner": "Inhaber",
- "admin": "Administrator",
- "member": "Mitglied"
- },
- "general": {
- "nameLabel": "Workspace-Name",
- "slugLabel": "Slug",
- "slugHint": "Wird in URLs verwendet. Nur Kleinbuchstaben, Ziffern und Bindestriche.",
- "saved": "Workspace aktualisiert",
- "dangerTitle": "Workspace löschen",
- "dangerDescription": "Alle geteilten Notizen, Ordner und Integrationen werden gelöscht. Dies kann nicht rückgängig gemacht werden.",
- "delete": "Workspace löschen",
- "confirmTitle": "{{name}} löschen?",
- "confirmDescription": "Dies kündigt das Abonnement und entfernt alle Workspace-Daten dauerhaft."
- },
- "members": {
- "title": "Mitglieder",
- "description": "{{count}} von {{seats}} Plätzen belegt.",
- "invite": "Einladen",
- "empty": "Noch keine Mitglieder.",
- "roleUpdated": "Rolle aktualisiert",
- "promote": "Zum Administrator machen",
- "demote": "Zum Mitglied machen",
- "transferOwnership": "Eigentum übertragen",
- "remove": "Aus Workspace entfernen",
- "removeConfirm": {
- "title": "Remove this member?",
- "description": "{{name}} will lose access to {{workspace}} immediately."
- }
- },
- "invites": {
- "title": "Ausstehende Einladungen",
- "resend": "Erneut senden",
- "revoke": "Widerrufen",
- "resent": "Einladung erneut gesendet",
- "revokeFailed": "Could not revoke invitation",
- "revokeConfirm": {
- "title": "Revoke this invitation?",
- "description": "The invitation link for {{email}} will stop working."
- }
- },
- "teams": {
- "title": "Teams",
- "description": "Mitglieder gruppieren für gezieltes Teilen.",
- "new": "Neues Team",
- "empty": "Noch keine Teams.",
- "createFirst": "Erstellen Sie Ihr erstes Team",
- "createTitle": "Team erstellen",
- "nameLabel": "Team-Name",
- "descriptionLabel": "Beschreibung",
- "memberCount": "{{count}} Mitglieder",
- "deleteConfirm": {
- "title": "Delete this team?",
- "description": "{{name}} will be removed. Shared notes stay with the workspace."
- }
- },
- "billing": {
- "title": "Abrechnung",
- "description": "Plan, Plätze und Zahlung.",
- "plan": "Plan",
- "seats": "Plätze",
- "nextInvoice": "Nächste Rechnung",
- "manageStripe": "In Stripe verwalten",
- "startSubscription": "Abonnement starten",
- "planLabel": {
- "business": "Business",
- "pro": "Pro",
- "free": "Free"
- },
- "status": {
- "active": "Active",
- "trialing": "Trialing",
- "past_due": "Past due",
- "canceled": "Canceled",
- "incomplete": "Incomplete",
- "unpaid": "Unpaid"
- }
- },
- "developer": {
- "title": "API-Schlüssel",
- "description": "Programmatischer Zugriff auf diesen Workspace.",
- "empty": "Noch keine API-Schlüssel. Erstellen Sie einen für Integrationen.",
- "new": "Neuer Schlüssel",
- "create": "Schlüssel erstellen",
- "createTitle": "API-Schlüssel erstellen",
- "createDescription": "Wählen Sie die Berechtigungen. Sie können den Schlüssel jederzeit widerrufen.",
- "nameLabel": "Schlüsselname",
- "namePlaceholder": "Produktionsintegration",
- "revoke": "Schlüssel widerrufen",
- "lastUsed": "Zuletzt verwendet {{date}}",
- "neverUsed": "Nie verwendet",
- "keyCreatedTitle": "API-Schlüssel erstellt",
- "keyCreatedDescription": "Kopieren Sie diesen Schlüssel jetzt — Sie können ihn nicht erneut sehen.",
- "revokeConfirm": {
- "title": "Revoke this key?",
- "description": "{{name}} will stop working immediately. Any integration using it will start failing."
- },
- "scopes": {
- "notes": {
- "title": "Notes",
- "read": "Read notes",
- "write": "Write notes"
- },
- "folders": {
- "title": "Folders",
- "read": "Read folders",
- "write": "Write folders"
- },
- "transcriptions": {
- "title": "Transcriptions",
- "read": "Read transcriptions"
- },
- "members": {
- "title": "Members",
- "read": "Read members",
- "write": "Manage members"
- },
- "billing": {
- "title": "Billing",
- "read": "Read billing"
- },
- "full": {
- "title": "Full access",
- "admin": "Workspace admin"
- }
- }
- },
- "signInRequired": {
- "title": "Sign in to manage workspaces",
- "description": "Workspaces require an OpenWhispr account.",
- "signIn": "Sign in"
- }
- }
- },
- "models": {
- "learnMore": "Mehr erfahren",
- "descriptions": {
- "parakeet": {
- "parakeet_tdt_0_6b_v3": "Schnelle mehrsprachige ASR mit automatischer Spracherkennung (25 Sprachen)",
- "parakeet_unified_en_0_6b": "Englisch-only ASR mit Spitzen-Genauigkeit (5,91% durchschnittliche WER)"
+ "diarization": {
+ "segmentation": "Sprachgrenzerkennung für die Sprecherzuordnung",
+ "embedding_en": "Stimmerkennung zur Sprecheridentifikation"
},
"whisper": {
"tiny": "Am schnellsten, geringere Qualität",
@@ -2001,17 +2098,109 @@
"gemma_gemma_4_e2b_it_q4_k_m": "Kompaktes Gemma 4 von Google, schnell und effizient",
"gemma_gemma_3_12b_it_q4_k_m": "Googles Mittelklasse-Modell, starkes Reasoning",
"gemma_gemma_3_1b_it_q4_k_m": "Ultraschnelles Google-Modell, ideal für kurze Diktat-Bereinigung"
+ }
+ }
+ },
+ "sidebar": {
+ "home": "Startseite",
+ "notes": "Notizen",
+ "upload": "Hochladen",
+ "dictionary": "Wörterbuch",
+ "referral": "Gratis-Monat erhalten",
+ "settings": "Einstellungen",
+ "support": "Support",
+ "limitReached": "Wochenlimit erreicht",
+ "limitReachedDescription": "Upgraden Sie auf Pro für unbegrenzte Transkriptionen.",
+ "viewPlans": "Tarife ansehen",
+ "upgradeTitle": "Auf Pro upgraden",
+ "upgradeDescription": "Unbegrenzte Transkriptionen und mehr.",
+ "learnMore": "Mehr erfahren",
+ "integrations": "Integrationen",
+ "defaultUser": "Benutzer",
+ "notSignedIn": "Nicht angemeldet",
+ "chat": "Chat"
+ },
+ "workspaces": {
+ "switcher": {
+ "workspaces": "Workspaces",
+ "create": "Workspace erstellen…"
+ },
+ "create": {
+ "title": "Workspace erstellen",
+ "description": "Workspaces ermöglichen Zusammenarbeit, geteilte Notizen und gemeinsame Abrechnung.",
+ "nameLabel": "Workspace-Name",
+ "namePlaceholder": "Acme Corp",
+ "submit": "Workspace erstellen",
+ "submitting": "Erstelle…",
+ "errorTitle": "Workspace konnte nicht erstellt werden"
+ },
+ "created": {
+ "title": "Workspace erstellt",
+ "description": "Sie sind nun Inhaber von {{name}}."
+ },
+ "invite": {
+ "title": "Zu {{workspace}} einladen",
+ "description": "Fügen Sie Teammitglieder per E-Mail hinzu. Sie erhalten einen Beitrittslink.",
+ "emailLabel": "E-Mail",
+ "emailPlaceholder": "[email protected]",
+ "roleLabel": "Rolle",
+ "seatUsage": "{{used}} von {{seats}} Plätzen belegt",
+ "seatLimit": "Alle {{seats}} Plätze sind belegt.",
+ "manageSeats": "Plätze verwalten",
+ "submit": "Einladung senden",
+ "submitting": "Sende…",
+ "sentTitle": "Einladung gesendet",
+ "sentDescription": "Einladung an {{email}} gesendet.",
+ "errorTitle": "Einladung konnte nicht gesendet werden",
+ "role": {
+ "admin": "Administrator",
+ "member": "Mitglied"
},
- "diarization": {
- "segmentation": "Sprachgrenzerkennung für die Sprecherzuordnung",
- "embedding_en": "Stimmerkennung zur Sprecheridentifikation"
+ "roleDescription": {
+ "admin": "Verwaltet Mitglieder und Abrechnung",
+ "member": "Nutzt den Workspace"
}
+ },
+ "accept": {
+ "title": "Workspace beitreten",
+ "description": "{{inviter}} hat Sie eingeladen, {{workspace}} als {{role}} beizutreten.",
+ "loading": "Lade Einladung…",
+ "accept": "Einladung annehmen",
+ "accepting": "Annehmen…",
+ "signInToAccept": "Anmelden zum Annehmen",
+ "successTitle": "Beigetreten",
+ "successDescription": "Sie sind jetzt Mitglied von {{name}}. Verwalten Sie ihn unter Einstellungen → Workspace.",
+ "errorTitle": "Einladung konnte nicht angenommen werden",
+ "sentTo": "Einladung gesendet an {{email}}",
+ "wrongAccount": "Diese Einladung wurde an {{email}} gesendet. Sie sind als {{current}} angemeldet."
}
},
+ "chat": {
+ "newChat": "Neuer Chat",
+ "search": "Unterhaltungen suchen...",
+ "archived": "Archiviert",
+ "noConversations": "Starten Sie Ihre erste Unterhaltung",
+ "selectChat": "Wählen Sie eine Unterhaltung oder starten Sie eine neue",
+ "noResults": "Keine passenden Unterhaltungen",
+ "today": "Heute",
+ "yesterday": "Gestern",
+ "previousWeek": "Letzte 7 Tage",
+ "older": "Älter",
+ "archive": "Archivieren",
+ "unarchive": "Dearchivieren",
+ "delete": "Löschen",
+ "deleteConfirm": "Diese Unterhaltung wird dauerhaft gelöscht. Dies kann nicht rückgängig gemacht werden.",
+ "editTitle": "Doppelklick zum Bearbeiten des Titels",
+ "untitled": "Ohne Titel",
+ "searchChats": "Chats suchen",
+ "searchTitle": "Unterhaltungen suchen",
+ "searchDescription": "In allen Unterhaltungen suchen",
+ "newChatEmpty": "Fragen Sie zu Ihren Notizen, Transkripten oder anderem"
+ },
"referral": {
"title": "Empfehlen und Belohnungen erhalten",
- "subtitle": "Schenke einen Monat. Erhalte einen Monat.",
"modalTitle": "Freunde einladen",
+ "subtitle": "Schenke einen Monat. Erhalte einen Monat.",
"tabs": {
"refer": "Empfehlen",
"pastInvites": "Vergangene Einladungen"
@@ -2046,6 +2235,11 @@
"failed": "Fehlgeschlagen",
"sent": "Gesendet"
},
+ "friends": {
+ "title": "Freunde",
+ "completed": "Abgeschlossen",
+ "sentInvites": "Gesendete Einladungen"
+ },
"empty": {
"title": "Noch keine Einladungen gesendet",
"description": "Teile deinen Link oder sende eine Einladung, um loszulegen"
@@ -2073,13 +2267,28 @@
"audioSignature": "Deine Audio-Signatur",
"stop": "Stopp",
"playSignal": "Signal abspielen"
- },
- "friends": {
- "title": "Freunde",
- "completed": "Abgeschlossen",
- "sentInvites": "Gesendete Einladungen"
}
},
+ "usage": {
+ "approachingLimit": "Wochenlimit fast erreicht",
+ "approachingLimitDescription": "Du hast diese Woche {{wordsUsed}} von {{limit}} kostenlosen Wörtern verwendet.",
+ "yourPlan": "Dein Tarif",
+ "trial": "Testphase (noch {{days}} Tag)",
+ "trial_other": "Testphase (noch {{days}} Tage)",
+ "pro": "Pro",
+ "business": "Business",
+ "unlimitedTrial": "Unbegrenzte Transkriptionen während deiner Testphase",
+ "unlimited": "Unbegrenzte Transkriptionen",
+ "manageSubscription": "Abonnement verwalten",
+ "weeklyUsage": "Wöchentliche Nutzung",
+ "limitReached": "Limit erreicht",
+ "free": "Kostenlos",
+ "wordsRemaining": "Noch {{remaining}} Wörter",
+ "rollingLimit": "Rollierendes Wochenlimit",
+ "upgradeToPro": "Auf Pro upgraden",
+ "useYourOwnKey": "Eigenen API-Schlüssel verwenden",
+ "upgradeUnlimited": "Auf Pro upgraden – unbegrenzte Transkriptionen"
+ },
"notes": {
"sidebar": {
"newNote": "Neue Notiz",
@@ -2103,6 +2312,7 @@
"newNote": "Neue Notiz",
"untitled": "Unbenannt",
"untitledNote": "Unbenannte Notiz",
+ "shared": "Geteilt",
"timeNow": "Jetzt",
"minutesAgo": "vor {{count}}m",
"hoursAgo": "vor {{count}}h",
@@ -2172,9 +2382,9 @@
"noProviderDescription": "Fügen Sie einen API-Schlüssel hinzu oder laden Sie ein lokales Modell herunter, um mit der Transkription zu beginnen.",
"noProviderAction": "Transkriptionseinstellungen öffnen",
"fileTooLarge": "Diese Datei überschreitet das Limit von 500 MB.",
+ "paidPlanRequired": "Cloud-Transkription für Dateien über 25 MB erfordert einen kostenpflichtigen Plan. Große Dateien werden mit OpenWhispr Cloud für zuverlässige, hochwertige Ergebnisse verarbeitet.",
"largeFileNote": "Große Dateien werden aufgeteilt und parallel transkribiert.",
"chunkProgress": "Transkribiere Teil {{completed}} von {{total}}...",
- "paidPlanRequired": "Cloud-Transkription für Dateien über 25 MB erfordert einen kostenpflichtigen Plan. Große Dateien werden mit OpenWhispr Cloud für zuverlässige, hochwertige Ergebnisse verarbeitet.",
"byokTooLarge": "API-Schlüssel von Drittanbietern unterstützen nur Dateien bis 25 MB.",
"byokTooLargeDetail": "Für Dateien über 25 MB übernimmt OpenWhispr Cloud das Aufteilen, die parallele Verarbeitung und das Zusammenführen — so erhältst du zuverlässige Ergebnisse ohne die Einschränkungen von Drittanbietern.",
"byokTooLargeNeedsAccount": "Erstelle ein Konto und wechsle zu einem kostenpflichtigen Plan, um größere Dateien mit OpenWhispr Cloud zu transkribieren.",
@@ -2193,6 +2403,22 @@
"meetingPill": {
"returnToNote": "Zurück zur Aufnahme"
},
+ "empty": {
+ "title": "Noch keine Notizen hier",
+ "description": "Erstelle deine erste Notiz, um loszuschreiben",
+ "selectTitle": "Notiz auswählen",
+ "selectDescription": "Wähle eine Notiz aus der Seitenleiste",
+ "createNote": "Notiz erstellen",
+ "emptyFolder": "Keine Notizen in diesem Ordner"
+ },
+ "addToFolder": {
+ "title": "Notizen hinzufügen",
+ "searchPlaceholder": "Notizen zum Hinzufügen suchen...",
+ "addExisting": "Vorhandene hinzufügen",
+ "addCount": "{{count}} Notizen hinzufügen",
+ "noResults": "Keine passenden Notizen",
+ "noNotesAvailable": "Keine weiteren Notizen verfügbar"
+ },
"context": {
"moveToFolder": "In Ordner verschieben",
"delete": "Löschen",
@@ -2203,6 +2429,7 @@
"showInFileManager": "Im {{manager}} anzeigen"
},
"actions": {
+ "done": "Fertig",
"manage": "Aktionen verwalten...",
"manageTitle": "Benutzerdefinierte Aktionen",
"addAction": "Neue Aktion",
@@ -2220,7 +2447,6 @@
"emptyEditorDescription": "Wählen Sie eine Aktion aus der Liste oder erstellen Sie eine neue",
"runAction": "{{name}} ausführen",
"selectAction": "Aktion auswählen",
- "done": "Fertig",
"builtin": {
"generateNotes": {
"name": "Notizen generieren",
@@ -2232,22 +2458,6 @@
"actionFailed": "Aktion fehlgeschlagen"
}
},
- "empty": {
- "title": "Noch keine Notizen hier",
- "description": "Erstelle deine erste Notiz, um loszuschreiben",
- "selectTitle": "Notiz auswählen",
- "selectDescription": "Wähle eine Notiz aus der Seitenleiste",
- "createNote": "Notiz erstellen",
- "emptyFolder": "Keine Notizen in diesem Ordner"
- },
- "addToFolder": {
- "title": "Notizen hinzufügen",
- "searchPlaceholder": "Notizen zum Hinzufügen suchen...",
- "addExisting": "Vorhandene hinzufügen",
- "addCount": "{{count}} Notizen hinzufügen",
- "noResults": "Keine passenden Notizen",
- "noNotesAvailable": "Keine weiteren Notizen verfügbar"
- },
"onboarding": {
"llm": {
"title": "KI-Modell konfigurieren",
@@ -2285,8 +2495,14 @@
"liveAccuracyHint": "Sprecher werden noch identifiziert. Die Genauigkeit der Beschriftung verbessert sich, sobald das Gespräch endet.",
"speakersIdentified": "Sprecher identifiziert",
"typeNamePlaceholder": "Namen eingeben",
+ "nameOrEmailPlaceholder": "Name oder E-Mail eingeben",
"knownSpeakers": "Bekannte Sprecher",
"meetingAttendees": "Meeting-Teilnehmer",
+ "createNewPrefix": "Erstellen",
+ "addContact": "Kontakt hinzufügen",
+ "emailPlaceholder": "[email protected]",
+ "save": "Speichern",
+ "cancel": "Abbrechen",
"assignName": "Name zuweisen",
"isThisPerson": "Ist das {{name}}?",
"selected": "{{n}} ausgewählt",
@@ -2300,12 +2516,6 @@
"suggested": "Vorgeschlagen",
"locked": "Fixiert"
},
- "createNewPrefix": "Erstellen",
- "emailPlaceholder": "[email protected]",
- "nameOrEmailPlaceholder": "Name oder E-Mail eingeben",
- "addContact": "Kontakt hinzufügen",
- "save": "Speichern",
- "cancel": "Abbrechen",
"pill": {
"identifying": "Sprecher werden identifiziert",
"notLabeled": "Sprecher nicht beschriftet",
@@ -2321,12 +2531,12 @@
}
},
"dictionary": {
- "addWord": "Wort hinzufügen",
- "removeWord": "{{word}} entfernen",
- "clearAll": "Alle löschen",
"clearTitle": "Wörterbuch leeren?",
"clearDescription": "Dadurch werden alle Wörter aus deinem benutzerdefinierten Wörterbuch entfernt. Diese Aktion kann nicht rückgängig gemacht werden.",
+ "addWord": "Wort hinzufügen",
"addPlaceholder": "Wörter durch Kommas getrennt hinzufügen – OpenWhispr, Supabase, John Snow, ARR",
+ "removeWord": "{{word}} entfernen",
+ "clearAll": "Alle löschen",
"add": "Hinzufügen",
"importWords": "Wörter importieren",
"importPlaceholder": "Wörter durch Kommas getrennt einfügen...",
@@ -2375,69 +2585,6 @@
"importList": "Liste importieren",
"agentDefault": "Standardmäßig enthalten"
},
- "sidebar": {
- "home": "Startseite",
- "notes": "Notizen",
- "upload": "Hochladen",
- "dictionary": "Wörterbuch",
- "referral": "Gratis-Monat erhalten",
- "settings": "Einstellungen",
- "support": "Support",
- "limitReached": "Wochenlimit erreicht",
- "limitReachedDescription": "Upgraden Sie auf Pro für unbegrenzte Transkriptionen.",
- "viewPlans": "Tarife ansehen",
- "upgradeTitle": "Auf Pro upgraden",
- "upgradeDescription": "Unbegrenzte Transkriptionen und mehr.",
- "learnMore": "Mehr erfahren",
- "integrations": "Integrationen",
- "defaultUser": "Benutzer",
- "notSignedIn": "Nicht angemeldet",
- "chat": "Chat",
- "inviteTeammate": "Teammitglied einladen",
- "createWorkspace": "Workspace erstellen"
- },
- "chat": {
- "newChat": "Neuer Chat",
- "search": "Unterhaltungen suchen...",
- "archived": "Archiviert",
- "noConversations": "Starten Sie Ihre erste Unterhaltung",
- "selectChat": "Wählen Sie eine Unterhaltung oder starten Sie eine neue",
- "noResults": "Keine passenden Unterhaltungen",
- "today": "Heute",
- "yesterday": "Gestern",
- "previousWeek": "Letzte 7 Tage",
- "older": "Älter",
- "archive": "Archivieren",
- "unarchive": "Dearchivieren",
- "delete": "Löschen",
- "deleteConfirm": "Diese Unterhaltung wird dauerhaft gelöscht. Dies kann nicht rückgängig gemacht werden.",
- "editTitle": "Doppelklick zum Bearbeiten des Titels",
- "untitled": "Ohne Titel",
- "searchChats": "Chats suchen",
- "searchTitle": "Unterhaltungen suchen",
- "searchDescription": "In allen Unterhaltungen suchen",
- "newChatEmpty": "Fragen Sie zu Ihren Notizen, Transkripten oder anderem"
- },
- "usage": {
- "approachingLimit": "Wochenlimit fast erreicht",
- "approachingLimitDescription": "Du hast diese Woche {{wordsUsed}} von {{limit}} kostenlosen Wörtern verwendet.",
- "yourPlan": "Dein Tarif",
- "trial": "Testphase (noch {{days}} Tag)",
- "trial_other": "Testphase (noch {{days}} Tage)",
- "pro": "Pro",
- "business": "Business",
- "unlimitedTrial": "Unbegrenzte Transkriptionen während deiner Testphase",
- "unlimited": "Unbegrenzte Transkriptionen",
- "manageSubscription": "Abonnement verwalten",
- "weeklyUsage": "Wöchentliche Nutzung",
- "limitReached": "Limit erreicht",
- "free": "Kostenlos",
- "wordsRemaining": "Noch {{remaining}} Wörter",
- "rollingLimit": "Rollierendes Wochenlimit",
- "upgradeToPro": "Auf Pro upgraden",
- "useYourOwnKey": "Eigenen API-Schlüssel verwenden",
- "upgradeUnlimited": "Auf Pro upgraden – unbegrenzte Transkriptionen"
- },
"support": {
"documentation": "Dokumentation",
"joinDiscord": "Discord beitreten",
@@ -2540,11 +2687,11 @@
"providers": "Cloud-Anbieter",
"local": "Lokal",
"selfHosted": "Selbst gehostet",
+ "enterprise": "Enterprise",
"openwhisprDesc": "Zuverlässige Ergebnisse. Keine Einrichtung nötig.",
"providersDesc": "Eigenen API-Schlüssel verwenden.",
"localDesc": "Modelle auf dem Gerät. Vollständig privat.",
"selfHostedDesc": "Eigener Server in Ihrem Netzwerk.",
- "enterprise": "Enterprise",
"enterpriseDesc": "Nutzen Sie das Cloud-Konto Ihrer Organisation (AWS, Azure, GCP)."
},
"openwhisprCloud": "OpenWhispr Cloud",
@@ -2680,46 +2827,6 @@
"description": "OpenWhispr erfasst Audio direkt von deinem System — es nimmt niemals als Teilnehmer an deinen Meetings teil. Verbinde einfach deinen Kalender und mach Notizen wie gewohnt."
}
},
- "calendar": {
- "title": "Google Kalender",
- "status": "Status",
- "connected": "Verbunden",
- "disconnected": "Getrennt",
- "notConnectedDescription": "Verbinden, um Meetings zu erkennen und aufzuzeichnen",
- "connectCta": {
- "title": "Kalender-Integration",
- "description": "Meetings automatisch erkennen und Transkriptionen aufzeichnen"
- },
- "connect": "Google Kalender verbinden",
- "connecting": "Verbinde...",
- "disconnect": "Trennen",
- "disconnecting": "Trennen...",
- "sync": "Synchronisieren",
- "syncing": "Synchronisiere...",
- "calendarsTitle": "Kalender",
- "upcomingTitle": "Anstehend",
- "noUpcoming": "Keine anstehenden Ereignisse",
- "meetingStarting": "Meeting beginnt jetzt",
- "today": "Heute",
- "tomorrow": "Morgen"
- },
- "upcoming": {
- "title": "Anstehende Meetings",
- "transcriptions": "Transkriptionen",
- "tomorrow": "Morgen",
- "noMoreMeetings": "Keine weiteren Meetings heute",
- "now": "Jetzt",
- "join": "Beitreten",
- "untitledEvent": "Unbenanntes Ereignis",
- "systemAudioRequired": "Die Systemaudio-Berechtigung wird benötigt, um den Ton anderer Teilnehmer aufzunehmen.",
- "openSettings": "Systemeinstellungen öffnen",
- "signInRequired": "Melden Sie sich an, um Meeting-Aufnahmen zu nutzen",
- "signInDescription": "Erstellen Sie ein Konto oder melden Sie sich an, um Meetings aufzunehmen und zu transkribieren.",
- "connectCalendar": "Kalender verbinden",
- "connectCalendarDescription": "Verknüpfe deinen Google Kalender, um anstehende Meetings zu sehen und automatisch Notizen aufzuzeichnen.",
- "notABot": "OpenWhispr nimmt über dein Systemaudio auf — es tritt niemals als Bot deinen Meetings bei.",
- "connectCalendarButton": "Kalender verbinden"
- },
"notesView": {
"searchPlaceholder": "Notizen durchsuchen…",
"newNote": "Neue Notiz",
@@ -2747,9 +2854,11 @@
"button": "Teilen",
"dialog": {
"title": "Notiz teilen",
+ "description": "Lade Personen per E-Mail ein oder teile einen Link zu dieser Notiz.",
"searchPlaceholder": "Personen per E-Mail hinzufügen",
"emailLabel": "E-Mail des Empfängers",
"shareButton": "Teilen",
+ "createLink": "Link erstellen",
"copyLink": "Link kopieren",
"copied": "Kopiert",
"owner": "Eigentümer",
@@ -2758,9 +2867,14 @@
"resend": "Einladung erneut senden",
"revoke": "Entfernen",
"invitationActions": "Einladungsaktionen",
- "permissionRequired": "Nur der Notiz-Eigentümer kann die Freigabe ändern.",
+ "resendSent": "Einladung gesendet",
+ "resendThrottled": "Einladung wurde kürzlich gesendet. Versuche es in einer Minute erneut.",
+ "syncPrompt": "Beim Teilen wird eine Kopie dieser Notiz in deiner OpenWhispr-Cloud gespeichert.",
+ "syncAndShare": "Synchronisieren und teilen",
"visibility": {
"label": "Sichtbarkeit",
+ "private": "Privat",
+ "privateOption": "Privat — nur du",
"link": "Jeder mit dem Link",
"domain": "Alle bei {{domain}} mit dem Link",
"invited": "Nur eingeladene Personen"
@@ -2769,8 +2883,12 @@
"invalidEmail": "Gib eine gültige E-Mail-Adresse ein",
"alreadyInvited": "{{email}} ist bereits eingeladen",
"inviteFailed": "Die Einladung konnte nicht gesendet werden. Versuche es erneut.",
- "linkUnavailable": "Generiere oder rotiere den Link, um ihn zu kopieren",
- "loadFailed": "Couldn't load share settings"
+ "visibilityFailed": "Die Freigabe konnte nicht aktualisiert werden. Versuche es erneut.",
+ "copyFailed": "Der Link konnte nicht kopiert werden. Versuche es erneut.",
+ "revokeFailed": "Die Einladung konnte nicht entfernt werden. Versuche es erneut.",
+ "resendFailed": "Die Einladung konnte nicht erneut gesendet werden. Versuche es erneut.",
+ "syncFailed": "Die Notiz konnte nicht synchronisiert werden. Versuche es erneut.",
+ "loadFailed": "Freigabeeinstellungen konnten nicht geladen werden"
}
}
}
@@ -2802,54 +2920,6 @@
"description": "OpenWhispr benötigt einige Berechtigungen, um auf diesem Computer zu funktionieren.",
"continue": "Weiter"
},
- "apiKeysSection": {
- "title": "API-Schlüssel",
- "description": "Erstellen Sie Schlüssel für den programmatischen Zugriff auf die OpenWhispr-API.",
- "docsLink": "API-Dokumentation",
- "empty": "Noch keine API-Schlüssel",
- "createButton": "API-Schlüssel erstellen",
- "create": {
- "title": "API-Schlüssel erstellen",
- "nameLabel": "Schlüsselname",
- "namePlaceholder": "z. B. Meine Integration",
- "scopesLabel": "Berechtigungen",
- "expiryLabel": "Ablauf",
- "expiryOptions": {
- "never": "Läuft nicht ab",
- "30days": "30 Tage",
- "60days": "60 Tage",
- "90days": "90 Tage",
- "1year": "1 Jahr"
- },
- "submit": "Erstellen",
- "cancel": "Abbrechen"
- },
- "created": {
- "title": "API-Schlüssel erstellt",
- "warning": "Kopieren Sie diesen Schlüssel jetzt. Er wird nicht erneut angezeigt.",
- "copied": "Kopiert!",
- "copyButton": "In die Zwischenablage kopieren",
- "done": "Fertig"
- },
- "scopes": {
- "notesRead": "Notizen lesen",
- "notesWrite": "Notizen erstellen und bearbeiten",
- "transcriptionsRead": "Transkriptionen lesen"
- },
- "revoke": {
- "button": "Widerrufen",
- "confirm": "Diesen Schlüssel widerrufen? Alle Integrationen, die ihn verwenden, funktionieren dann nicht mehr.",
- "success": "API-Schlüssel widerrufen"
- },
- "neverUsed": "Nie verwendet",
- "lastUsed": "Zuletzt verwendet {{time}}",
- "maxKeysReached": "Maximal {{max}} Schlüssel erlaubt",
- "errors": {
- "loadFailed": "API-Schlüssel konnten nicht geladen werden",
- "createFailed": "API-Schlüssel konnte nicht erstellt werden",
- "revokeFailed": "API-Schlüssel konnte nicht widerrufen werden"
- }
- },
"embeddedChat": {
"askPlaceholder": "Frag etwas...",
"send": "Senden",
@@ -2875,54 +2945,5 @@
"you": "Du",
"others": "Andere"
}
- },
- "workspaces": {
- "switcher": {
- "personal": "Persönlich",
- "workspaces": "Workspaces",
- "empty": "Noch keine Workspaces",
- "create": "Workspace erstellen…"
- },
- "create": {
- "title": "Workspace erstellen",
- "description": "Workspaces ermöglichen Zusammenarbeit, geteilte Notizen und gemeinsame Abrechnung.",
- "nameLabel": "Workspace-Name",
- "namePlaceholder": "Acme Corp",
- "submit": "Workspace erstellen",
- "submitting": "Erstelle…",
- "errorTitle": "Workspace konnte nicht erstellt werden"
- },
- "created": {
- "title": "Workspace erstellt",
- "description": "Sie sind nun Inhaber von {{name}}."
- },
- "invite": {
- "title": "Zu {{workspace}} einladen",
- "description": "Fügen Sie Teammitglieder per E-Mail hinzu. Sie erhalten einen Beitrittslink.",
- "emailLabel": "E-Mail",
- "roleLabel": "Rolle",
- "teamsLabel": "Zu Teams hinzufügen",
- "submit": "Einladung senden",
- "submitting": "Sende…",
- "sentTitle": "Einladung gesendet",
- "sentDescription": "Einladung an {{email}} gesendet.",
- "errorTitle": "Einladung konnte nicht gesendet werden",
- "role": {
- "admin": "Administrator",
- "member": "Mitglied"
- }
- },
- "accept": {
- "title": "Workspace beitreten",
- "description": "{{inviter}} hat Sie eingeladen, {{workspace}} als {{role}} beizutreten.",
- "loading": "Lade Einladung…",
- "accept": "Einladung annehmen",
- "accepting": "Annehmen…",
- "signInToAccept": "Anmelden zum Annehmen",
- "successTitle": "Beigetreten",
- "successDescription": "Willkommen bei {{name}}.",
- "errorTitle": "Einladung konnte nicht angenommen werden",
- "sentTo": "Invitation sent to {{email}}"
- }
}
}
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index e9654649a..0664be29a 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -1117,7 +1117,7 @@
"label": "Plans & Billing"
},
"workspace": {
- "description": "Members, teams, billing & API keys",
+ "description": "Members, billing & API keys",
"label": "Workspace"
},
"general": {
@@ -1156,10 +1156,14 @@
"description": "Workspaces let you collaborate with teammates and share notes.",
"create": "Create workspace"
},
+ "loadError": {
+ "title": "Couldn't load workspaces",
+ "description": "Check your connection and try again.",
+ "retry": "Retry"
+ },
"tab": {
"general": "General",
"members": "Members",
- "teams": "Teams",
"billing": "Billing",
"developer": "Developer"
},
@@ -1172,12 +1176,24 @@
"nameLabel": "Workspace name",
"slugLabel": "Slug",
"slugHint": "Used in URLs and invite links. Lowercase letters, digits, and dashes only.",
+ "slugInvalid": "Only lowercase letters, digits, and dashes.",
"saved": "Workspace updated",
"dangerTitle": "Delete workspace",
"dangerDescription": "All shared notes, folders, and integrations will be deleted. This cannot be undone.",
"delete": "Delete workspace",
"confirmTitle": "Delete {{name}}?",
- "confirmDescription": "This cancels the subscription and removes all workspace data permanently."
+ "confirmDescription": "This cancels the subscription and removes all workspace data permanently.",
+ "deleting": "Deleting…",
+ "deleted": "Workspace deleted",
+ "leaveTitle": "Leave workspace",
+ "leaveDescription": "You'll lose access to this workspace and its shared notes.",
+ "leave": "Leave workspace",
+ "leaving": "Leaving…",
+ "leaveConfirm": {
+ "title": "Leave {{name}}?",
+ "description": "You'll lose access immediately. An admin can invite you back."
+ },
+ "left": "You left {{name}}"
},
"members": {
"title": "Members",
@@ -1192,11 +1208,19 @@
"removeConfirm": {
"title": "Remove this member?",
"description": "{{name}} will lose access to {{workspace}} immediately."
+ },
+ "transferConfirm": {
+ "title": "Transfer ownership?",
+ "description": "{{name}} becomes the owner of {{workspace}}. Your role changes to admin and only the new owner can transfer it back."
}
},
"invites": {
"title": "Pending invitations",
+ "expiresIn_one": "Expires in {{count}} day",
+ "expiresIn_other": "Expires in {{count}} days",
+ "expired": "Expired",
"resend": "Resend",
+ "resending": "Resending…",
"revoke": "Revoke",
"resent": "Invitation resent",
"revokeFailed": "Could not revoke invitation",
@@ -1205,21 +1229,6 @@
"description": "The invitation link for {{email}} will stop working."
}
},
- "teams": {
- "title": "Teams",
- "description": "Group members for scoped sharing.",
- "new": "New team",
- "empty": "No teams yet.",
- "createFirst": "Create your first team",
- "createTitle": "Create team",
- "nameLabel": "Team name",
- "descriptionLabel": "Description",
- "memberCount": "{{count}} members",
- "deleteConfirm": {
- "title": "Delete this team?",
- "description": "{{name}} will be removed. Shared notes stay with the workspace."
- }
- },
"billing": {
"title": "Billing",
"description": "Plan, seats, and payment.",
@@ -1227,6 +1236,7 @@
"seats": "Seats",
"nextInvoice": "Next invoice",
"manageStripe": "Manage in Stripe",
+ "opening": "Opening…",
"startSubscription": "Start subscription",
"planLabel": {
"business": "Business",
@@ -1290,11 +1300,6 @@
"admin": "Workspace admin"
}
}
- },
- "signInRequired": {
- "title": "Sign in to manage workspaces",
- "description": "Workspaces require an OpenWhispr account.",
- "signIn": "Sign in"
}
},
"account": {
@@ -2113,15 +2118,11 @@
"integrations": "Integrations",
"defaultUser": "User",
"notSignedIn": "Not signed in",
- "chat": "Chat",
- "inviteTeammate": "Invite teammate",
- "createWorkspace": "Create workspace"
+ "chat": "Chat"
},
"workspaces": {
"switcher": {
- "personal": "Personal",
"workspaces": "Workspaces",
- "empty": "No workspaces yet",
"create": "Create workspace…"
},
"create": {
@@ -2141,8 +2142,11 @@
"title": "Invite to {{workspace}}",
"description": "Add teammates by email. They'll get a link to join.",
"emailLabel": "Email",
+ "emailPlaceholder": "[email protected]",
"roleLabel": "Role",
- "teamsLabel": "Add to teams",
+ "seatUsage": "Using {{used}} of {{seats}} seats",
+ "seatLimit": "All {{seats}} seats are in use.",
+ "manageSeats": "Manage seats",
"submit": "Send invite",
"submitting": "Sending…",
"sentTitle": "Invite sent",
@@ -2151,6 +2155,10 @@
"role": {
"admin": "Admin",
"member": "Member"
+ },
+ "roleDescription": {
+ "admin": "Manages members and billing",
+ "member": "Uses the workspace"
}
},
"accept": {
@@ -2161,9 +2169,10 @@
"accepting": "Accepting…",
"signInToAccept": "Sign in to accept",
"successTitle": "You're in",
- "successDescription": "Welcome to {{name}}.",
+ "successDescription": "You're a member of {{name}}. Manage it in Settings → Workspace.",
"errorTitle": "Couldn't accept invitation",
- "sentTo": "Invitation sent to {{email}}"
+ "sentTo": "Invitation sent to {{email}}",
+ "wrongAccount": "This invitation was sent to {{email}}. You're signed in as {{current}}."
}
},
"chat": {
@@ -2303,6 +2312,7 @@
"newNote": "New note",
"untitled": "Untitled",
"untitledNote": "Untitled Note",
+ "shared": "Shared",
"timeNow": "now",
"minutesAgo": "{{count}}m",
"hoursAgo": "{{count}}h",
@@ -2844,9 +2854,11 @@
"button": "Share",
"dialog": {
"title": "Share note",
+ "description": "Invite people by email or share a link to this note.",
"searchPlaceholder": "Add people by email",
"emailLabel": "Recipient email",
"shareButton": "Share",
+ "createLink": "Create link",
"copyLink": "Copy link",
"copied": "Copied",
"owner": "Owner",
@@ -2855,9 +2867,14 @@
"resend": "Resend invite",
"revoke": "Remove",
"invitationActions": "Invitation actions",
- "permissionRequired": "Only the note owner can change sharing.",
+ "resendSent": "Invitation sent",
+ "resendThrottled": "Invitation sent recently. Try again in a minute.",
+ "syncPrompt": "Sharing keeps a copy of this note in your OpenWhispr cloud.",
+ "syncAndShare": "Sync and share",
"visibility": {
"label": "Visibility",
+ "private": "Private",
+ "privateOption": "Private — only you",
"link": "Anyone with the link",
"domain": "Everyone at {{domain}} with the link",
"invited": "Only people invited"
@@ -2866,7 +2883,11 @@
"invalidEmail": "Enter a valid email address",
"alreadyInvited": "{{email}} is already invited",
"inviteFailed": "Couldn't send the invitation. Try again.",
- "linkUnavailable": "Generate or rotate the link to copy it",
+ "visibilityFailed": "Couldn't update sharing. Try again.",
+ "copyFailed": "Couldn't copy the link. Try again.",
+ "revokeFailed": "Couldn't remove the invitation. Try again.",
+ "resendFailed": "Couldn't resend the invitation. Try again.",
+ "syncFailed": "Couldn't sync this note. Try again.",
"loadFailed": "Couldn't load share settings"
}
}
diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json
index bb22056f7..c3c0af80f 100644
--- a/src/locales/es/translation.json
+++ b/src/locales/es/translation.json
@@ -1102,7 +1102,7 @@
},
"workspace": {
"label": "Espacio de trabajo",
- "description": "Miembros, equipos, facturación y claves API"
+ "description": "Miembros, facturación y claves API"
}
},
"title": "Ajustes"
@@ -1809,10 +1809,14 @@
"description": "Los espacios de trabajo te permiten colaborar con compañeros y compartir notas.",
"create": "Crear espacio de trabajo"
},
+ "loadError": {
+ "title": "No se pudieron cargar los espacios de trabajo",
+ "description": "Comprueba tu conexión e inténtalo de nuevo.",
+ "retry": "Reintentar"
+ },
"tab": {
"general": "General",
"members": "Miembros",
- "teams": "Equipos",
"billing": "Facturación",
"developer": "Desarrollador"
},
@@ -1825,12 +1829,24 @@
"nameLabel": "Nombre del espacio de trabajo",
"slugLabel": "Slug",
"slugHint": "Se usa en URLs y enlaces de invitación. Solo letras minúsculas, dígitos y guiones.",
+ "slugInvalid": "Solo letras minúsculas, dígitos y guiones.",
"saved": "Espacio de trabajo actualizado",
"dangerTitle": "Eliminar espacio de trabajo",
"dangerDescription": "Todas las notas, carpetas e integraciones compartidas se eliminarán. Esto no se puede deshacer.",
"delete": "Eliminar espacio de trabajo",
"confirmTitle": "¿Eliminar {{name}}?",
- "confirmDescription": "Esto cancela la suscripción y elimina todos los datos del espacio de trabajo permanentemente."
+ "confirmDescription": "Esto cancela la suscripción y elimina todos los datos del espacio de trabajo permanentemente.",
+ "deleting": "Eliminando…",
+ "deleted": "Espacio de trabajo eliminado",
+ "leaveTitle": "Salir del espacio de trabajo",
+ "leaveDescription": "Perderás el acceso a este espacio de trabajo y a sus notas compartidas.",
+ "leave": "Salir del espacio de trabajo",
+ "leaving": "Saliendo…",
+ "leaveConfirm": {
+ "title": "¿Salir de {{name}}?",
+ "description": "Perderás el acceso de inmediato. Un administrador puede invitarte de nuevo."
+ },
+ "left": "Saliste de {{name}}"
},
"members": {
"title": "Miembros",
@@ -1843,34 +1859,27 @@
"transferOwnership": "Transferir propiedad",
"remove": "Quitar del espacio de trabajo",
"removeConfirm": {
- "title": "Remove this member?",
- "description": "{{name}} will lose access to {{workspace}} immediately."
+ "title": "¿Quitar a este miembro?",
+ "description": "{{name}} perderá el acceso a {{workspace}} de inmediato."
+ },
+ "transferConfirm": {
+ "title": "¿Transferir la propiedad?",
+ "description": "{{name}} pasa a ser el propietario de {{workspace}}. Tu rol cambia a administrador y solo el nuevo propietario puede transferirla de vuelta."
}
},
"invites": {
"title": "Invitaciones pendientes",
+ "expiresIn_one": "Expira en {{count}} día",
+ "expiresIn_other": "Expira en {{count}} días",
+ "expired": "Expirada",
"resend": "Reenviar",
+ "resending": "Reenviando…",
"revoke": "Revocar",
"resent": "Invitación reenviada",
- "revokeFailed": "Could not revoke invitation",
+ "revokeFailed": "No se pudo revocar la invitación",
"revokeConfirm": {
- "title": "Revoke this invitation?",
- "description": "The invitation link for {{email}} will stop working."
- }
- },
- "teams": {
- "title": "Equipos",
- "description": "Agrupa miembros para compartir con alcance limitado.",
- "new": "Nuevo equipo",
- "empty": "Aún no hay equipos.",
- "createFirst": "Crea tu primer equipo",
- "createTitle": "Crear equipo",
- "nameLabel": "Nombre del equipo",
- "descriptionLabel": "Descripción",
- "memberCount": "{{count}} miembros",
- "deleteConfirm": {
- "title": "Delete this team?",
- "description": "{{name}} will be removed. Shared notes stay with the workspace."
+ "title": "¿Revocar esta invitación?",
+ "description": "El enlace de invitación para {{email}} dejará de funcionar."
}
},
"billing": {
@@ -1880,19 +1889,20 @@
"seats": "Asientos",
"nextInvoice": "Próxima factura",
"manageStripe": "Administrar en Stripe",
+ "opening": "Abriendo…",
"startSubscription": "Iniciar suscripción",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "Free"
+ "free": "Gratis"
},
"status": {
- "active": "Active",
- "trialing": "Trialing",
- "past_due": "Past due",
- "canceled": "Canceled",
- "incomplete": "Incomplete",
- "unpaid": "Unpaid"
+ "active": "Activa",
+ "trialing": "En prueba",
+ "past_due": "Pago vencido",
+ "canceled": "Cancelada",
+ "incomplete": "Incompleta",
+ "unpaid": "Sin pagar"
}
},
"developer": {
@@ -1911,43 +1921,38 @@
"keyCreatedTitle": "Clave API creada",
"keyCreatedDescription": "Copia esta clave ahora — no podrás verla de nuevo.",
"revokeConfirm": {
- "title": "Revoke this key?",
- "description": "{{name}} will stop working immediately. Any integration using it will start failing."
+ "title": "¿Revocar esta clave?",
+ "description": "{{name}} dejará de funcionar de inmediato. Cualquier integración que la use empezará a fallar."
},
"scopes": {
"notes": {
- "title": "Notes",
- "read": "Read notes",
- "write": "Write notes"
+ "title": "Notas",
+ "read": "Leer notas",
+ "write": "Escribir notas"
},
"folders": {
- "title": "Folders",
- "read": "Read folders",
- "write": "Write folders"
+ "title": "Carpetas",
+ "read": "Leer carpetas",
+ "write": "Escribir carpetas"
},
"transcriptions": {
- "title": "Transcriptions",
- "read": "Read transcriptions"
+ "title": "Transcripciones",
+ "read": "Leer transcripciones"
},
"members": {
- "title": "Members",
- "read": "Read members",
- "write": "Manage members"
+ "title": "Miembros",
+ "read": "Leer miembros",
+ "write": "Administrar miembros"
},
"billing": {
- "title": "Billing",
- "read": "Read billing"
+ "title": "Facturación",
+ "read": "Leer facturación"
},
"full": {
- "title": "Full access",
- "admin": "Workspace admin"
+ "title": "Acceso completo",
+ "admin": "Administrador del espacio de trabajo"
}
}
- },
- "signInRequired": {
- "title": "Sign in to manage workspaces",
- "description": "Workspaces require an OpenWhispr account.",
- "signIn": "Sign in"
}
}
},
@@ -2151,6 +2156,7 @@
"newNote": "Nueva nota",
"untitled": "Sin título",
"untitledNote": "Nota sin título",
+ "shared": "Compartida",
"timeNow": "Ahora",
"minutesAgo": "hace {{count}}m",
"hoursAgo": "hace {{count}}h",
@@ -2440,9 +2446,7 @@
"integrations": "Integraciones",
"defaultUser": "Usuario",
"notSignedIn": "Sin sesión iniciada",
- "chat": "Chat",
- "inviteTeammate": "Invitar compañero",
- "createWorkspace": "Crear espacio de trabajo"
+ "chat": "Chat"
},
"chat": {
"newChat": "Nuevo chat",
@@ -2795,9 +2799,11 @@
"button": "Compartir",
"dialog": {
"title": "Compartir nota",
+ "description": "Invita a personas por correo o comparte un enlace a esta nota.",
"searchPlaceholder": "Añade personas por correo",
"emailLabel": "Correo del destinatario",
"shareButton": "Compartir",
+ "createLink": "Crear enlace",
"copyLink": "Copiar enlace",
"copied": "Copiado",
"owner": "Propietario",
@@ -2806,9 +2812,14 @@
"resend": "Reenviar invitación",
"revoke": "Quitar",
"invitationActions": "Acciones de la invitación",
- "permissionRequired": "Solo el propietario de la nota puede cambiar el uso compartido.",
+ "resendSent": "Invitación enviada",
+ "resendThrottled": "Invitación enviada hace poco. Inténtalo de nuevo en un minuto.",
+ "syncPrompt": "Al compartir se guarda una copia de esta nota en tu nube de OpenWhispr.",
+ "syncAndShare": "Sincronizar y compartir",
"visibility": {
"label": "Visibilidad",
+ "private": "Privada",
+ "privateOption": "Privada — solo tú",
"link": "Cualquiera con el enlace",
"domain": "Todos en {{domain}} con el enlace",
"invited": "Solo personas invitadas"
@@ -2817,8 +2828,12 @@
"invalidEmail": "Introduce un correo válido",
"alreadyInvited": "{{email}} ya está invitado",
"inviteFailed": "No se pudo enviar la invitación. Inténtalo de nuevo.",
- "linkUnavailable": "Genera o rota el enlace para copiarlo",
- "loadFailed": "Couldn't load share settings"
+ "visibilityFailed": "No se pudo actualizar el uso compartido. Inténtalo de nuevo.",
+ "copyFailed": "No se pudo copiar el enlace. Inténtalo de nuevo.",
+ "revokeFailed": "No se pudo quitar la invitación. Inténtalo de nuevo.",
+ "resendFailed": "No se pudo reenviar la invitación. Inténtalo de nuevo.",
+ "syncFailed": "No se pudo sincronizar esta nota. Inténtalo de nuevo.",
+ "loadFailed": "No se pudo cargar la configuración de uso compartido"
}
}
}
@@ -2878,9 +2893,7 @@
},
"workspaces": {
"switcher": {
- "personal": "Personal",
"workspaces": "Espacios de trabajo",
- "empty": "Aún no hay espacios de trabajo",
"create": "Crear espacio de trabajo…"
},
"create": {
@@ -2900,8 +2913,11 @@
"title": "Invitar a {{workspace}}",
"description": "Agrega compañeros por correo. Recibirán un enlace para unirse.",
"emailLabel": "Correo electrónico",
+ "emailPlaceholder": "[email protected]",
"roleLabel": "Rol",
- "teamsLabel": "Agregar a equipos",
+ "seatUsage": "Usando {{used}} de {{seats}} asientos",
+ "seatLimit": "Todos los {{seats}} asientos están en uso.",
+ "manageSeats": "Administrar asientos",
"submit": "Enviar invitación",
"submitting": "Enviando…",
"sentTitle": "Invitación enviada",
@@ -2910,6 +2926,10 @@
"role": {
"admin": "Administrador",
"member": "Miembro"
+ },
+ "roleDescription": {
+ "admin": "Administra miembros y facturación",
+ "member": "Usa el espacio de trabajo"
}
},
"accept": {
@@ -2920,9 +2940,10 @@
"accepting": "Aceptando…",
"signInToAccept": "Inicia sesión para aceptar",
"successTitle": "Te uniste",
- "successDescription": "Bienvenido a {{name}}.",
+ "successDescription": "Eres miembro de {{name}}. Adminístralo en Configuración → Espacio de trabajo.",
"errorTitle": "No se pudo aceptar la invitación",
- "sentTo": "Invitation sent to {{email}}"
+ "sentTo": "Invitación enviada a {{email}}",
+ "wrongAccount": "Esta invitación se envió a {{email}}. Has iniciado sesión como {{current}}."
}
}
}
diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json
index 648519771..792e03dc3 100644
--- a/src/locales/fr/translation.json
+++ b/src/locales/fr/translation.json
@@ -367,18 +367,6 @@
"today": "Aujourd'hui",
"yesterday": "Hier"
},
- "transcriptionFailed": "La transcription a échoué",
- "failedCtaSettings": "Configurez votre fournisseur de transcription",
- "failedCtaAndRetry": "puis cliquez sur réessayer",
- "failedCtaSettingsOnly": "Configurez votre fournisseur de transcription dans les Paramètres",
- "failedLimitReached": "Limite quotidienne atteinte",
- "failedOffline": "Hors ligne",
- "clearAll": "Tout effacer",
- "clearAllTitle": "Effacer toutes les transcriptions",
- "clearAllDescription": "Toutes les transcriptions et fichiers audio seront définitivement supprimés.",
- "clearAllSuccess": "Historique effacé",
- "clearAllErrorTitle": "Impossible d'effacer l'historique",
- "clearAllErrorDescription": "Une erreur est survenue. Veuillez réessayer.",
"copyText": "Copier le texte",
"deleteItem": "Supprimer",
"viewRawTranscript": "Voir la transcription brute",
@@ -391,7 +379,19 @@
"retryError": "Échec de la retranscription",
"audioNotFound": "Fichier audio introuvable ou expiré",
"noAiProcessing": "Aucun traitement IA n'a été appliqué à cette transcription",
+ "transcriptionFailed": "La transcription a échoué",
+ "failedCtaSettings": "Configurez votre fournisseur de transcription",
+ "failedCtaAndRetry": "puis cliquez sur réessayer",
+ "failedCtaSettingsOnly": "Configurez votre fournisseur de transcription dans les Paramètres",
+ "failedLimitReached": "Limite quotidienne atteinte",
+ "failedOffline": "Hors ligne",
"rawTranscript": "Transcription brute",
+ "clearAll": "Tout effacer",
+ "clearAllTitle": "Effacer toutes les transcriptions",
+ "clearAllDescription": "Toutes les transcriptions et fichiers audio seront définitivement supprimés.",
+ "clearAllSuccess": "Historique effacé",
+ "clearAllErrorTitle": "Impossible d'effacer l'historique",
+ "clearAllErrorDescription": "Une erreur est survenue. Veuillez réessayer.",
"discarded": {
"show": "Afficher les abandonnées",
"hide": "Masquer les abandonnées",
@@ -743,6 +743,46 @@
"welcomeTitle": "Bienvenue sur OpenWhispr",
"sessionExpired": "Session expirée. Veuillez relancer le processus d'inscription."
},
+ "calendar": {
+ "title": "Google Agenda",
+ "status": "Statut",
+ "connected": "Connecté",
+ "disconnected": "Déconnecté",
+ "notConnectedDescription": "Connecter pour détecter et enregistrer les réunions",
+ "connectCta": {
+ "title": "Intégration du Calendrier",
+ "description": "Détecter automatiquement les réunions et enregistrer les transcriptions"
+ },
+ "connect": "Connecter Google Agenda",
+ "connecting": "Connexion...",
+ "disconnect": "Déconnecter",
+ "disconnecting": "Déconnexion...",
+ "sync": "Synchroniser",
+ "syncing": "Synchronisation...",
+ "calendarsTitle": "Calendriers",
+ "upcomingTitle": "À venir",
+ "noUpcoming": "Aucun événement à venir",
+ "meetingStarting": "La réunion commence maintenant",
+ "today": "Aujourd'hui",
+ "tomorrow": "Demain"
+ },
+ "upcoming": {
+ "title": "Réunions à venir",
+ "transcriptions": "Transcriptions",
+ "tomorrow": "Demain",
+ "noMoreMeetings": "Plus de réunions aujourd'hui",
+ "now": "En cours",
+ "join": "Rejoindre",
+ "untitledEvent": "Événement sans titre",
+ "systemAudioRequired": "L'autorisation Audio Système est nécessaire pour capturer l'audio des autres participants.",
+ "openSettings": "Ouvrir les Réglages Système",
+ "signInRequired": "Connectez-vous pour utiliser l'enregistrement de réunions",
+ "signInDescription": "Créez un compte ou connectez-vous pour enregistrer et transcrire vos réunions.",
+ "connectCalendar": "Connectez votre calendrier",
+ "connectCalendarDescription": "Associez votre Google Calendar pour voir vos prochaines réunions et enregistrer des notes automatiquement.",
+ "notABot": "OpenWhispr enregistre via l'audio de votre système — il ne rejoint jamais vos réunions en tant que bot.",
+ "connectCalendarButton": "Connecter le calendrier"
+ },
"cleanupPrompt": "Correction",
"developerSection": {
"currentLogFile": "Fichier journal actuel",
@@ -1076,6 +1116,10 @@
"description": "Forfaits, utilisation & facturation",
"label": "Forfaits & facturation"
},
+ "workspace": {
+ "description": "Membres, facturation & clés API",
+ "label": "Espace de travail"
+ },
"general": {
"description": "Apparence, sons & démarrage",
"label": "Préférences"
@@ -1099,15 +1143,165 @@
"system": {
"description": "Mises à jour, stockage & outils de développement",
"label": "Système"
- },
- "workspace": {
- "label": "Espace de travail",
- "description": "Membres, équipes, facturation et clés API"
}
},
"title": "Paramètres"
},
"settingsPage": {
+ "workspace": {
+ "title": "Espace de travail",
+ "description": "Collaborez, partagez des notes et gérez la facturation au même endroit.",
+ "empty": {
+ "title": "Créez votre premier espace de travail",
+ "description": "Les espaces de travail vous permettent de collaborer et partager des notes.",
+ "create": "Créer un espace"
+ },
+ "loadError": {
+ "title": "Impossible de charger les espaces de travail",
+ "description": "Vérifiez votre connexion et réessayez.",
+ "retry": "Réessayer"
+ },
+ "tab": {
+ "general": "Général",
+ "members": "Membres",
+ "billing": "Facturation",
+ "developer": "Développeur"
+ },
+ "role": {
+ "owner": "Propriétaire",
+ "admin": "Administrateur",
+ "member": "Membre"
+ },
+ "general": {
+ "nameLabel": "Nom",
+ "slugLabel": "Slug",
+ "slugHint": "Utilisé dans les URL. Minuscules, chiffres et tirets uniquement.",
+ "slugInvalid": "Minuscules, chiffres et tirets uniquement.",
+ "saved": "Espace mis à jour",
+ "dangerTitle": "Supprimer l'espace",
+ "dangerDescription": "Toutes les notes, dossiers et intégrations partagés seront supprimés. Cette action est irréversible.",
+ "delete": "Supprimer l'espace",
+ "confirmTitle": "Supprimer {{name}} ?",
+ "confirmDescription": "Cela annule l'abonnement et supprime définitivement toutes les données.",
+ "deleting": "Suppression…",
+ "deleted": "Espace supprimé",
+ "leaveTitle": "Quitter l'espace",
+ "leaveDescription": "Vous perdrez l'accès à cet espace et à ses notes partagées.",
+ "leave": "Quitter l'espace",
+ "leaving": "Départ…",
+ "leaveConfirm": {
+ "title": "Quitter {{name}} ?",
+ "description": "Vous perdrez l'accès immédiatement. Un administrateur pourra vous réinviter."
+ },
+ "left": "Vous avez quitté {{name}}"
+ },
+ "members": {
+ "title": "Membres",
+ "description": "{{count}} sur {{seats}} sièges utilisés.",
+ "invite": "Inviter",
+ "empty": "Aucun membre pour l'instant.",
+ "roleUpdated": "Rôle mis à jour",
+ "promote": "Promouvoir administrateur",
+ "demote": "Rétrograder membre",
+ "transferOwnership": "Transférer la propriété",
+ "remove": "Retirer de l'espace",
+ "removeConfirm": {
+ "title": "Retirer ce membre ?",
+ "description": "{{name}} perdra immédiatement l'accès à {{workspace}}."
+ },
+ "transferConfirm": {
+ "title": "Transférer la propriété ?",
+ "description": "{{name}} devient propriétaire de {{workspace}}. Votre rôle passe à administrateur et seul le nouveau propriétaire pourra la retransférer."
+ }
+ },
+ "invites": {
+ "title": "Invitations en attente",
+ "expiresIn_one": "Expire dans {{count}} jour",
+ "expiresIn_other": "Expire dans {{count}} jours",
+ "expired": "Expirée",
+ "resend": "Renvoyer",
+ "resending": "Renvoi…",
+ "revoke": "Révoquer",
+ "resent": "Invitation renvoyée",
+ "revokeFailed": "Impossible de révoquer l'invitation",
+ "revokeConfirm": {
+ "title": "Révoquer cette invitation ?",
+ "description": "Le lien d'invitation pour {{email}} cessera de fonctionner."
+ }
+ },
+ "billing": {
+ "title": "Facturation",
+ "description": "Plan, sièges et paiement.",
+ "plan": "Plan",
+ "seats": "Sièges",
+ "nextInvoice": "Prochaine facture",
+ "manageStripe": "Gérer dans Stripe",
+ "opening": "Ouverture…",
+ "startSubscription": "Démarrer l'abonnement",
+ "planLabel": {
+ "business": "Business",
+ "pro": "Pro",
+ "free": "Gratuit"
+ },
+ "status": {
+ "active": "Actif",
+ "trialing": "Période d'essai",
+ "past_due": "En retard",
+ "canceled": "Annulé",
+ "incomplete": "Incomplet",
+ "unpaid": "Impayé"
+ }
+ },
+ "developer": {
+ "title": "Clés API",
+ "description": "Accès programmatique limité à cet espace.",
+ "empty": "Aucune clé API. Créez-en une pour vous intégrer.",
+ "new": "Nouvelle clé",
+ "create": "Créer la clé",
+ "createTitle": "Créer une clé API",
+ "createDescription": "Choisissez les permissions. Vous pouvez la révoquer à tout moment.",
+ "nameLabel": "Nom de la clé",
+ "namePlaceholder": "Intégration production",
+ "revoke": "Révoquer la clé",
+ "lastUsed": "Dernière utilisation {{date}}",
+ "neverUsed": "Jamais utilisée",
+ "keyCreatedTitle": "Clé API créée",
+ "keyCreatedDescription": "Copiez cette clé maintenant — vous ne pourrez plus la voir.",
+ "revokeConfirm": {
+ "title": "Révoquer cette clé ?",
+ "description": "{{name}} cessera de fonctionner immédiatement. Toute intégration qui l'utilise commencera à échouer."
+ },
+ "scopes": {
+ "notes": {
+ "title": "Notes",
+ "read": "Lire les notes",
+ "write": "Modifier les notes"
+ },
+ "folders": {
+ "title": "Dossiers",
+ "read": "Lire les dossiers",
+ "write": "Modifier les dossiers"
+ },
+ "transcriptions": {
+ "title": "Transcriptions",
+ "read": "Lire les transcriptions"
+ },
+ "members": {
+ "title": "Membres",
+ "read": "Lire les membres",
+ "write": "Gérer les membres"
+ },
+ "billing": {
+ "title": "Facturation",
+ "read": "Lire la facturation"
+ },
+ "full": {
+ "title": "Accès complet",
+ "admin": "Administrateur de l'espace"
+ }
+ }
+ }
+ },
"account": {
"badges": {
"free": "Gratuit",
@@ -1317,11 +1511,11 @@
"providers": "Fournisseurs cloud",
"local": "Local",
"selfHosted": "Auto-hébergé",
+ "enterprise": "Enterprise",
"openwhisprDesc": "Résultats fiables. Aucune configuration requise.",
"providersDesc": "Utilisez votre propre clé API.",
"localDesc": "Modèles sur l'appareil. 100 % privé.",
"selfHostedDesc": "Votre serveur sur votre réseau.",
- "enterprise": "Enterprise",
"enterpriseDesc": "Utilisez le compte cloud de votre organisation (AWS, Azure, GCP)."
},
"openwhisprCloud": "OpenWhispr Cloud",
@@ -1418,13 +1612,13 @@
"floatingIcon": {
"autoHide": "Masquer automatiquement au repos",
"autoHideDescription": "Garder l'icône masquée jusqu'au début de la dictée",
- "description": "Contrôlez quand l'icône de dictée est visible à l'écran",
- "title": "Icône flottante",
"startPosition": "Position de départ",
"startPositionDescription": "Emplacement du panneau d'enregistrement vocal à l'écran",
"bottomRight": "En bas à droite",
"center": "En bas au centre",
- "bottomLeft": "En bas à gauche"
+ "bottomLeft": "En bas à gauche",
+ "description": "Contrôlez quand l'icône de dictée est visible à l'écran",
+ "title": "Icône flottante"
},
"hotkey": {
"activationMode": "Mode d'activation",
@@ -1647,12 +1841,6 @@
"title": "Confidentialité",
"usageAnalytics": "Analyse d'utilisation",
"usageAnalyticsDescription": "Aidez-nous à améliorer OpenWhispr en partageant des métriques de performance anonymes. Nous n'envoyons jamais le contenu de vos transcriptions — uniquement des données de performance et d'erreurs.",
- "dataRetention": "Conservation des données",
- "dataRetentionDescription": "Stocker les transcriptions et l'audio localement dans votre historique. Lorsque désactivé, les transcriptions sont collées mais pas enregistrées.",
- "hoursAgo": "il y a {{count}}h",
- "justNow": "à l'instant",
- "lastSynced": "Dernière synchronisation {{time}}",
- "minutesAgo": "il y a {{count}}min",
"audioRetention": "Conservation de l'audio",
"audioRetentionDescription": "Stocke les enregistrements audio localement pour la retranscription et le téléchargement. Les fichiers sont automatiquement supprimés après la période de conservation.",
"audioRetentionDisabled": "Désactivé",
@@ -1663,6 +1851,12 @@
"audioStorageEmpty": "Aucun fichier audio stocké",
"clearAllAudio": "Supprimer tous les fichiers audio",
"clearAllAudioConfirm": "Supprimer tous les fichiers audio stockés ? Cette action est irréversible.",
+ "dataRetention": "Conservation des données",
+ "dataRetentionDescription": "Stocker les transcriptions et l'audio localement dans votre historique. Lorsque désactivé, les transcriptions sont collées mais pas enregistrées.",
+ "hoursAgo": "il y a {{count}}h",
+ "justNow": "à l'instant",
+ "lastSynced": "Dernière synchronisation {{time}}",
+ "minutesAgo": "il y a {{count}}min",
"saveDiscarded": "Enregistrer les dictées abandonnées",
"saveDiscardedDescription": "Quand vous annulez une dictée avec Échap, conserve son audio dans l'historique pour pouvoir la récupérer. Nécessite la conservation des données et de l'audio."
},
@@ -1800,155 +1994,6 @@
"endpointUrl": "URL du point d'accès",
"serverUrl": "URL du serveur",
"apiKeyOptional": "Clé API (facultative)"
- },
- "workspace": {
- "title": "Espace de travail",
- "description": "Collaborez, partagez des notes et gérez la facturation au même endroit.",
- "empty": {
- "title": "Créez votre premier espace de travail",
- "description": "Les espaces de travail vous permettent de collaborer et partager des notes.",
- "create": "Créer un espace"
- },
- "tab": {
- "general": "Général",
- "members": "Membres",
- "teams": "Équipes",
- "billing": "Facturation",
- "developer": "Développeur"
- },
- "role": {
- "owner": "Propriétaire",
- "admin": "Administrateur",
- "member": "Membre"
- },
- "general": {
- "nameLabel": "Nom",
- "slugLabel": "Slug",
- "slugHint": "Utilisé dans les URL. Minuscules, chiffres et tirets uniquement.",
- "saved": "Espace mis à jour",
- "dangerTitle": "Supprimer l'espace",
- "dangerDescription": "Toutes les notes, dossiers et intégrations partagés seront supprimés. Cette action est irréversible.",
- "delete": "Supprimer l'espace",
- "confirmTitle": "Supprimer {{name}} ?",
- "confirmDescription": "Cela annule l'abonnement et supprime définitivement toutes les données."
- },
- "members": {
- "title": "Membres",
- "description": "{{count}} sur {{seats}} sièges utilisés.",
- "invite": "Inviter",
- "empty": "Aucun membre pour l'instant.",
- "roleUpdated": "Rôle mis à jour",
- "promote": "Promouvoir administrateur",
- "demote": "Rétrograder membre",
- "transferOwnership": "Transférer la propriété",
- "remove": "Retirer de l'espace",
- "removeConfirm": {
- "title": "Remove this member?",
- "description": "{{name}} will lose access to {{workspace}} immediately."
- }
- },
- "invites": {
- "title": "Invitations en attente",
- "resend": "Renvoyer",
- "revoke": "Révoquer",
- "resent": "Invitation renvoyée",
- "revokeFailed": "Could not revoke invitation",
- "revokeConfirm": {
- "title": "Revoke this invitation?",
- "description": "The invitation link for {{email}} will stop working."
- }
- },
- "teams": {
- "title": "Équipes",
- "description": "Groupez les membres pour un partage ciblé.",
- "new": "Nouvelle équipe",
- "empty": "Aucune équipe.",
- "createFirst": "Créez votre première équipe",
- "createTitle": "Créer une équipe",
- "nameLabel": "Nom de l'équipe",
- "descriptionLabel": "Description",
- "memberCount": "{{count}} membres",
- "deleteConfirm": {
- "title": "Delete this team?",
- "description": "{{name}} will be removed. Shared notes stay with the workspace."
- }
- },
- "billing": {
- "title": "Facturation",
- "description": "Plan, sièges et paiement.",
- "plan": "Plan",
- "seats": "Sièges",
- "nextInvoice": "Prochaine facture",
- "manageStripe": "Gérer dans Stripe",
- "startSubscription": "Démarrer l'abonnement",
- "planLabel": {
- "business": "Business",
- "pro": "Pro",
- "free": "Free"
- },
- "status": {
- "active": "Active",
- "trialing": "Trialing",
- "past_due": "Past due",
- "canceled": "Canceled",
- "incomplete": "Incomplete",
- "unpaid": "Unpaid"
- }
- },
- "developer": {
- "title": "Clés API",
- "description": "Accès programmatique limité à cet espace.",
- "empty": "Aucune clé API. Créez-en une pour vous intégrer.",
- "new": "Nouvelle clé",
- "create": "Créer la clé",
- "createTitle": "Créer une clé API",
- "createDescription": "Choisissez les permissions. Vous pouvez la révoquer à tout moment.",
- "nameLabel": "Nom de la clé",
- "namePlaceholder": "Intégration production",
- "revoke": "Révoquer la clé",
- "lastUsed": "Dernière utilisation {{date}}",
- "neverUsed": "Jamais utilisée",
- "keyCreatedTitle": "Clé API créée",
- "keyCreatedDescription": "Copiez cette clé maintenant — vous ne pourrez plus la voir.",
- "revokeConfirm": {
- "title": "Revoke this key?",
- "description": "{{name}} will stop working immediately. Any integration using it will start failing."
- },
- "scopes": {
- "notes": {
- "title": "Notes",
- "read": "Read notes",
- "write": "Write notes"
- },
- "folders": {
- "title": "Folders",
- "read": "Read folders",
- "write": "Write folders"
- },
- "transcriptions": {
- "title": "Transcriptions",
- "read": "Read transcriptions"
- },
- "members": {
- "title": "Members",
- "read": "Read members",
- "write": "Manage members"
- },
- "billing": {
- "title": "Billing",
- "read": "Read billing"
- },
- "full": {
- "title": "Full access",
- "admin": "Workspace admin"
- }
- }
- },
- "signInRequired": {
- "title": "Sign in to manage workspaces",
- "description": "Workspaces require an OpenWhispr account.",
- "signIn": "Sign in"
- }
}
},
"models": {
@@ -1958,6 +2003,10 @@
"parakeet_tdt_0_6b_v3": "ASR multilingue rapide avec détection automatique de langue (25 langues)",
"parakeet_unified_en_0_6b": "ASR anglais uniquement avec précision de pointe (5,91 % WER moyen)"
},
+ "diarization": {
+ "segmentation": "Détection des limites de parole pour l'identification des intervenants",
+ "embedding_en": "Empreinte vocale pour l'identification des intervenants"
+ },
"whisper": {
"tiny": "Le plus rapide, qualité plus faible",
"base": "Bon équilibre",
@@ -2049,10 +2098,6 @@
"gemma_gemma_4_e2b_it_q4_k_m": "Gemma 4 compact de Google, rapide et efficace",
"gemma_gemma_3_12b_it_q4_k_m": "Modèle milieu de gamme de Google, raisonnement solide",
"gemma_gemma_3_1b_it_q4_k_m": "Modèle Google ultra-rapide, idéal pour le nettoyage de courtes dictées"
- },
- "diarization": {
- "segmentation": "Détection des limites de parole pour l'identification des intervenants",
- "embedding_en": "Empreinte vocale pour l'identification des intervenants"
}
}
},
@@ -2073,9 +2118,62 @@
"integrations": "Intégrations",
"defaultUser": "Utilisateur",
"notSignedIn": "Non connecté",
- "chat": "Chat",
- "inviteTeammate": "Inviter un coéquipier",
- "createWorkspace": "Créer un espace de travail"
+ "chat": "Chat"
+ },
+ "workspaces": {
+ "switcher": {
+ "workspaces": "Espaces de travail",
+ "create": "Créer un espace de travail…"
+ },
+ "create": {
+ "title": "Créer un espace de travail",
+ "description": "Les espaces de travail vous permettent de collaborer, partager des notes et gérer la facturation.",
+ "nameLabel": "Nom de l'espace de travail",
+ "namePlaceholder": "Acme Corp",
+ "submit": "Créer l'espace",
+ "submitting": "Création…",
+ "errorTitle": "Impossible de créer l'espace"
+ },
+ "created": {
+ "title": "Espace de travail créé",
+ "description": "Vous êtes maintenant propriétaire de {{name}}."
+ },
+ "invite": {
+ "title": "Inviter dans {{workspace}}",
+ "description": "Ajoutez des coéquipiers par e-mail. Ils recevront un lien pour rejoindre.",
+ "emailLabel": "E-mail",
+ "emailPlaceholder": "[email protected]",
+ "roleLabel": "Rôle",
+ "seatUsage": "{{used}} sur {{seats}} sièges utilisés",
+ "seatLimit": "Les {{seats}} sièges sont tous utilisés.",
+ "manageSeats": "Gérer les sièges",
+ "submit": "Envoyer l'invitation",
+ "submitting": "Envoi…",
+ "sentTitle": "Invitation envoyée",
+ "sentDescription": "Nous avons envoyé une invitation à {{email}}.",
+ "errorTitle": "Impossible d'envoyer l'invitation",
+ "role": {
+ "admin": "Administrateur",
+ "member": "Membre"
+ },
+ "roleDescription": {
+ "admin": "Gère les membres et la facturation",
+ "member": "Utilise l'espace de travail"
+ }
+ },
+ "accept": {
+ "title": "Rejoindre l'espace",
+ "description": "{{inviter}} vous a invité à rejoindre {{workspace}} en tant que {{role}}.",
+ "loading": "Chargement…",
+ "accept": "Accepter l'invitation",
+ "accepting": "Acceptation…",
+ "signInToAccept": "Connectez-vous pour accepter",
+ "successTitle": "Vous êtes membre",
+ "successDescription": "Vous êtes membre de {{name}}. Gérez-le dans Paramètres → Espace de travail.",
+ "errorTitle": "Impossible d'accepter l'invitation",
+ "sentTo": "Invitation envoyée à {{email}}",
+ "wrongAccount": "Cette invitation a été envoyée à {{email}}. Vous êtes connecté en tant que {{current}}."
+ }
},
"chat": {
"newChat": "Nouveau chat",
@@ -2214,6 +2312,7 @@
"newNote": "Nouvelle note",
"untitled": "Sans titre",
"untitledNote": "Note sans titre",
+ "shared": "Partagée",
"timeNow": "maintenant",
"minutesAgo": "il y a {{count}}m",
"hoursAgo": "il y a {{count}}h",
@@ -2283,9 +2382,9 @@
"noProviderDescription": "Ajoutez une clé API ou téléchargez un modèle local pour commencer à transcrire.",
"noProviderAction": "Ouvrir les paramètres de transcription",
"fileTooLarge": "Ce fichier dépasse la limite de 500 MB.",
+ "paidPlanRequired": "La transcription cloud pour les fichiers de plus de 25 Mo nécessite un abonnement payant. Les fichiers volumineux sont traités avec OpenWhispr Cloud pour des résultats fiables et de haute qualité.",
"largeFileNote": "Les fichiers volumineux sont découpés et transcrits en parallèle.",
"chunkProgress": "Transcription de la partie {{completed}} sur {{total}}...",
- "paidPlanRequired": "La transcription cloud pour les fichiers de plus de 25 Mo nécessite un abonnement payant. Les fichiers volumineux sont traités avec OpenWhispr Cloud pour des résultats fiables et de haute qualité.",
"byokTooLarge": "Les clés API tierces ne prennent en charge que les fichiers jusqu'à 25 Mo.",
"byokTooLargeDetail": "Pour les fichiers de plus de 25 Mo, OpenWhispr Cloud gère le découpage, le traitement parallèle et le réassemblage — pour des résultats fiables sans dépendre des limites des fournisseurs tiers.",
"byokTooLargeNeedsAccount": "Créez un compte et passez à un abonnement payant pour transcrire des fichiers plus volumineux avec OpenWhispr Cloud.",
@@ -2396,8 +2495,14 @@
"liveAccuracyHint": "Identification des intervenants en cours. La précision des étiquettes s'améliorera à la fin de l'appel.",
"speakersIdentified": "Intervenants identifiés",
"typeNamePlaceholder": "Saisir un nom",
+ "nameOrEmailPlaceholder": "Tapez un nom ou un e-mail",
"knownSpeakers": "Interlocuteurs connus",
"meetingAttendees": "Participants à la réunion",
+ "createNewPrefix": "Créer",
+ "addContact": "Ajouter un contact",
+ "emailPlaceholder": "[email protected]",
+ "save": "Enregistrer",
+ "cancel": "Annuler",
"assignName": "Attribuer un nom",
"isThisPerson": "Est-ce {{name}} ?",
"selected": "{{n}} sélectionné(s)",
@@ -2411,12 +2516,6 @@
"suggested": "Suggéré",
"locked": "Verrouillé"
},
- "createNewPrefix": "Créer",
- "emailPlaceholder": "[email protected]",
- "nameOrEmailPlaceholder": "Tapez un nom ou un e-mail",
- "addContact": "Ajouter un contact",
- "save": "Enregistrer",
- "cancel": "Annuler",
"pill": {
"identifying": "Identification des intervenants",
"notLabeled": "Intervenants non étiquetés",
@@ -2588,11 +2687,11 @@
"providers": "Fournisseurs Cloud",
"local": "Local",
"selfHosted": "Auto-hébergé",
+ "enterprise": "Enterprise",
"openwhisprDesc": "Résultats fiables. Aucune configuration requise.",
"providersDesc": "Apportez votre propre clé API.",
"localDesc": "Modèles sur l'appareil. Entièrement privé.",
"selfHostedDesc": "Votre propre serveur sur votre réseau.",
- "enterprise": "Enterprise",
"enterpriseDesc": "Utilisez le compte cloud de votre organisation (AWS, Azure, GCP)."
},
"openwhisprCloud": "OpenWhispr Cloud",
@@ -2728,46 +2827,6 @@
"description": "OpenWhispr capture l'audio directement depuis votre système — il ne rejoint jamais vos réunions en tant que participant. Connectez simplement votre calendrier et prenez vos notes normalement."
}
},
- "calendar": {
- "title": "Google Agenda",
- "status": "Statut",
- "connected": "Connecté",
- "disconnected": "Déconnecté",
- "notConnectedDescription": "Connecter pour détecter et enregistrer les réunions",
- "connectCta": {
- "title": "Intégration du Calendrier",
- "description": "Détecter automatiquement les réunions et enregistrer les transcriptions"
- },
- "connect": "Connecter Google Agenda",
- "connecting": "Connexion...",
- "disconnect": "Déconnecter",
- "disconnecting": "Déconnexion...",
- "sync": "Synchroniser",
- "syncing": "Synchronisation...",
- "calendarsTitle": "Calendriers",
- "upcomingTitle": "À venir",
- "noUpcoming": "Aucun événement à venir",
- "meetingStarting": "La réunion commence maintenant",
- "today": "Aujourd'hui",
- "tomorrow": "Demain"
- },
- "upcoming": {
- "title": "Réunions à venir",
- "transcriptions": "Transcriptions",
- "tomorrow": "Demain",
- "noMoreMeetings": "Plus de réunions aujourd'hui",
- "now": "En cours",
- "join": "Rejoindre",
- "untitledEvent": "Événement sans titre",
- "systemAudioRequired": "L'autorisation Audio Système est nécessaire pour capturer l'audio des autres participants.",
- "openSettings": "Ouvrir les Réglages Système",
- "signInRequired": "Connectez-vous pour utiliser l'enregistrement de réunions",
- "signInDescription": "Créez un compte ou connectez-vous pour enregistrer et transcrire vos réunions.",
- "connectCalendar": "Connectez votre calendrier",
- "connectCalendarDescription": "Associez votre Google Calendar pour voir vos prochaines réunions et enregistrer des notes automatiquement.",
- "notABot": "OpenWhispr enregistre via l'audio de votre système — il ne rejoint jamais vos réunions en tant que bot.",
- "connectCalendarButton": "Connecter le calendrier"
- },
"notesView": {
"searchPlaceholder": "Rechercher des notes…",
"newNote": "Nouvelle note",
@@ -2795,9 +2854,11 @@
"button": "Partager",
"dialog": {
"title": "Partager la note",
- "searchPlaceholder": "Ajoute des personnes par e-mail",
+ "description": "Invitez des personnes par e-mail ou partagez un lien vers cette note.",
+ "searchPlaceholder": "Ajoutez des personnes par e-mail",
"emailLabel": "E-mail du destinataire",
"shareButton": "Partager",
+ "createLink": "Créer un lien",
"copyLink": "Copier le lien",
"copied": "Copié",
"owner": "Propriétaire",
@@ -2806,19 +2867,28 @@
"resend": "Renvoyer l'invitation",
"revoke": "Retirer",
"invitationActions": "Actions de l'invitation",
- "permissionRequired": "Seul le propriétaire de la note peut modifier le partage.",
+ "resendSent": "Invitation envoyée",
+ "resendThrottled": "Invitation envoyée récemment. Réessayez dans une minute.",
+ "syncPrompt": "Le partage conserve une copie de cette note dans votre cloud OpenWhispr.",
+ "syncAndShare": "Synchroniser et partager",
"visibility": {
"label": "Visibilité",
+ "private": "Privée",
+ "privateOption": "Privée — vous uniquement",
"link": "Toute personne ayant le lien",
"domain": "Tout le monde chez {{domain}} avec le lien",
"invited": "Uniquement les personnes invitées"
},
"error": {
- "invalidEmail": "Entre une adresse e-mail valide",
+ "invalidEmail": "Entrez une adresse e-mail valide",
"alreadyInvited": "{{email}} est déjà invité(e)",
- "inviteFailed": "Impossible d'envoyer l'invitation. Réessaie.",
- "linkUnavailable": "Génère ou renouvelle le lien pour le copier",
- "loadFailed": "Couldn't load share settings"
+ "inviteFailed": "Impossible d'envoyer l'invitation. Réessayez.",
+ "visibilityFailed": "Impossible de modifier le partage. Réessayez.",
+ "copyFailed": "Impossible de copier le lien. Réessayez.",
+ "revokeFailed": "Impossible de retirer l'invitation. Réessayez.",
+ "resendFailed": "Impossible de renvoyer l'invitation. Réessayez.",
+ "syncFailed": "Impossible de synchroniser cette note. Réessayez.",
+ "loadFailed": "Impossible de charger les paramètres de partage"
}
}
}
@@ -2875,54 +2945,5 @@
"you": "Vous",
"others": "Autres"
}
- },
- "workspaces": {
- "switcher": {
- "personal": "Personnel",
- "workspaces": "Espaces de travail",
- "empty": "Aucun espace de travail",
- "create": "Créer un espace de travail…"
- },
- "create": {
- "title": "Créer un espace de travail",
- "description": "Les espaces de travail vous permettent de collaborer, partager des notes et gérer la facturation.",
- "nameLabel": "Nom de l'espace de travail",
- "namePlaceholder": "Acme Corp",
- "submit": "Créer l'espace",
- "submitting": "Création…",
- "errorTitle": "Impossible de créer l'espace"
- },
- "created": {
- "title": "Espace de travail créé",
- "description": "Vous êtes maintenant propriétaire de {{name}}."
- },
- "invite": {
- "title": "Inviter dans {{workspace}}",
- "description": "Ajoutez des coéquipiers par e-mail. Ils recevront un lien pour rejoindre.",
- "emailLabel": "E-mail",
- "roleLabel": "Rôle",
- "teamsLabel": "Ajouter aux équipes",
- "submit": "Envoyer l'invitation",
- "submitting": "Envoi…",
- "sentTitle": "Invitation envoyée",
- "sentDescription": "Nous avons envoyé une invitation à {{email}}.",
- "errorTitle": "Impossible d'envoyer l'invitation",
- "role": {
- "admin": "Administrateur",
- "member": "Membre"
- }
- },
- "accept": {
- "title": "Rejoindre l'espace",
- "description": "{{inviter}} vous a invité à rejoindre {{workspace}} en tant que {{role}}.",
- "loading": "Chargement…",
- "accept": "Accepter l'invitation",
- "accepting": "Acceptation…",
- "signInToAccept": "Connectez-vous pour accepter",
- "successTitle": "Vous êtes membre",
- "successDescription": "Bienvenue dans {{name}}.",
- "errorTitle": "Impossible d'accepter l'invitation",
- "sentTo": "Invitation sent to {{email}}"
- }
}
}
diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json
index 20baaf89e..8a5d9864f 100644
--- a/src/locales/it/translation.json
+++ b/src/locales/it/translation.json
@@ -149,16 +149,16 @@
"tap": "Tocca",
"close": "Chiudi",
"dismiss": "Ignora",
- "save": "Enregistrer",
- "saving": "Enregistrement…",
- "create": "Créer",
- "delete": "Supprimer",
- "actions": "Actions",
- "error": "Une erreur s'est produite",
- "unknownError": "Une erreur inconnue s'est produite",
- "copy": "Copier",
- "copied": "Copié",
- "done": "Terminé",
+ "save": "Salva",
+ "saving": "Salvataggio…",
+ "create": "Crea",
+ "delete": "Elimina",
+ "actions": "Azioni",
+ "error": "Si è verificato un errore",
+ "unknownError": "Si è verificato un errore sconosciuto",
+ "copy": "Copia",
+ "copied": "Copiato",
+ "done": "Fatto",
"skip": "Salta"
},
"onboarding": {
@@ -1053,8 +1053,8 @@
"label": "Sistema"
},
"workspace": {
- "label": "Espace de travail",
- "description": "Membres, équipes, facturation et clés API"
+ "description": "Membri, fatturazione e chiavi API",
+ "label": "Area di lavoro"
}
},
"title": "Impostazioni"
@@ -1754,152 +1754,157 @@
"apiKeyOptional": "API Key (opzionale)"
},
"workspace": {
- "title": "Espace de travail",
- "description": "Collaborez, partagez des notes et gérez la facturation au même endroit.",
+ "title": "Area di lavoro",
+ "description": "Collabora con il tuo team, condividi note e gestisci la fatturazione in un unico posto.",
"empty": {
- "title": "Créez votre premier espace de travail",
- "description": "Les espaces de travail vous permettent de collaborer et partager des notes.",
- "create": "Créer un espace"
+ "title": "Crea la tua prima area di lavoro",
+ "description": "Le aree di lavoro ti permettono di collaborare con il team e condividere note.",
+ "create": "Crea area di lavoro"
+ },
+ "loadError": {
+ "title": "Impossibile caricare le aree di lavoro",
+ "description": "Controlla la connessione e riprova.",
+ "retry": "Riprova"
},
"tab": {
- "general": "Général",
- "members": "Membres",
- "teams": "Équipes",
- "billing": "Facturation",
- "developer": "Développeur"
+ "general": "Generale",
+ "members": "Membri",
+ "billing": "Fatturazione",
+ "developer": "Sviluppatore"
},
"role": {
- "owner": "Propriétaire",
- "admin": "Administrateur",
- "member": "Membre"
+ "owner": "Proprietario",
+ "admin": "Amministratore",
+ "member": "Membro"
},
"general": {
- "nameLabel": "Nom",
+ "nameLabel": "Nome dell'area di lavoro",
"slugLabel": "Slug",
- "slugHint": "Utilisé dans les URL. Minuscules, chiffres et tirets uniquement.",
- "saved": "Espace mis à jour",
- "dangerTitle": "Supprimer l'espace",
- "dangerDescription": "Toutes les notes, dossiers et intégrations partagés seront supprimés. Cette action est irréversible.",
- "delete": "Supprimer l'espace",
- "confirmTitle": "Supprimer {{name}} ?",
- "confirmDescription": "Cela annule l'abonnement et supprime définitivement toutes les données."
+ "slugHint": "Usato negli URL e nei link di invito. Solo lettere minuscole, cifre e trattini.",
+ "slugInvalid": "Solo lettere minuscole, cifre e trattini.",
+ "saved": "Area di lavoro aggiornata",
+ "dangerTitle": "Elimina area di lavoro",
+ "dangerDescription": "Tutte le note, le cartelle e le integrazioni condivise verranno eliminate. Questa operazione non può essere annullata.",
+ "delete": "Elimina area di lavoro",
+ "confirmTitle": "Eliminare {{name}}?",
+ "confirmDescription": "Questa operazione annulla l'abbonamento e rimuove definitivamente tutti i dati dell'area di lavoro.",
+ "deleting": "Eliminazione…",
+ "deleted": "Area di lavoro eliminata",
+ "leaveTitle": "Abbandona area di lavoro",
+ "leaveDescription": "Perderai l'accesso a questa area di lavoro e alle sue note condivise.",
+ "leave": "Abbandona area di lavoro",
+ "leaving": "Uscita…",
+ "leaveConfirm": {
+ "title": "Abbandonare {{name}}?",
+ "description": "Perderai subito l'accesso. Un amministratore potrà invitarti di nuovo."
+ },
+ "left": "Hai abbandonato {{name}}"
},
"members": {
- "title": "Membres",
- "description": "{{count}} sur {{seats}} sièges utilisés.",
- "invite": "Inviter",
- "empty": "Aucun membre pour l'instant.",
- "roleUpdated": "Rôle mis à jour",
- "promote": "Promouvoir administrateur",
- "demote": "Rétrograder membre",
- "transferOwnership": "Transférer la propriété",
- "remove": "Retirer de l'espace",
+ "title": "Membri",
+ "description": "{{count}} di {{seats}} posti utilizzati.",
+ "invite": "Invita",
+ "empty": "Nessun membro per ora.",
+ "roleUpdated": "Ruolo aggiornato",
+ "promote": "Rendi amministratore",
+ "demote": "Rendi membro",
+ "transferOwnership": "Trasferisci proprietà",
+ "remove": "Rimuovi dall'area di lavoro",
"removeConfirm": {
- "title": "Remove this member?",
- "description": "{{name}} will lose access to {{workspace}} immediately."
+ "title": "Rimuovere questo membro?",
+ "description": "{{name}} perderà immediatamente l'accesso a {{workspace}}."
+ },
+ "transferConfirm": {
+ "title": "Trasferire la proprietà?",
+ "description": "{{name}} diventa il proprietario di {{workspace}}. Il tuo ruolo passa ad amministratore e solo il nuovo proprietario potrà ritrasferirla."
}
},
"invites": {
- "title": "Invitations en attente",
- "resend": "Renvoyer",
- "revoke": "Révoquer",
- "resent": "Invitation renvoyée",
- "revokeFailed": "Could not revoke invitation",
+ "title": "Inviti in sospeso",
+ "expiresIn_one": "Scade tra {{count}} giorno",
+ "expiresIn_other": "Scade tra {{count}} giorni",
+ "expired": "Scaduto",
+ "resend": "Reinvia",
+ "resending": "Reinvio…",
+ "revoke": "Revoca",
+ "resent": "Invito reinviato",
+ "revokeFailed": "Impossibile revocare l'invito",
"revokeConfirm": {
- "title": "Revoke this invitation?",
- "description": "The invitation link for {{email}} will stop working."
- }
- },
- "teams": {
- "title": "Équipes",
- "description": "Groupez les membres pour un partage ciblé.",
- "new": "Nouvelle équipe",
- "empty": "Aucune équipe.",
- "createFirst": "Créez votre première équipe",
- "createTitle": "Créer une équipe",
- "nameLabel": "Nom de l'équipe",
- "descriptionLabel": "Description",
- "memberCount": "{{count}} membres",
- "deleteConfirm": {
- "title": "Delete this team?",
- "description": "{{name}} will be removed. Shared notes stay with the workspace."
+ "title": "Revocare questo invito?",
+ "description": "Il link di invito per {{email}} smetterà di funzionare."
}
},
"billing": {
- "title": "Facturation",
- "description": "Plan, sièges et paiement.",
- "plan": "Plan",
- "seats": "Sièges",
- "nextInvoice": "Prochaine facture",
- "manageStripe": "Gérer dans Stripe",
- "startSubscription": "Démarrer l'abonnement",
+ "title": "Fatturazione",
+ "description": "Piano, posti e pagamento.",
+ "plan": "Piano",
+ "seats": "Posti",
+ "nextInvoice": "Prossima fattura",
+ "manageStripe": "Gestisci in Stripe",
+ "opening": "Apertura…",
+ "startSubscription": "Avvia abbonamento",
"planLabel": {
"business": "Business",
"pro": "Pro",
"free": "Free"
},
"status": {
- "active": "Active",
- "trialing": "Trialing",
- "past_due": "Past due",
- "canceled": "Canceled",
- "incomplete": "Incomplete",
- "unpaid": "Unpaid"
+ "active": "Attivo",
+ "trialing": "In prova",
+ "past_due": "In ritardo",
+ "canceled": "Annullato",
+ "incomplete": "Incompleto",
+ "unpaid": "Non pagato"
}
},
"developer": {
- "title": "Clés API",
- "description": "Accès programmatique limité à cet espace.",
- "empty": "Aucune clé API. Créez-en une pour vous intégrer.",
- "new": "Nouvelle clé",
- "create": "Créer la clé",
- "createTitle": "Créer une clé API",
- "createDescription": "Choisissez les permissions. Vous pouvez la révoquer à tout moment.",
- "nameLabel": "Nom de la clé",
- "namePlaceholder": "Intégration production",
- "revoke": "Révoquer la clé",
- "lastUsed": "Dernière utilisation {{date}}",
- "neverUsed": "Jamais utilisée",
- "keyCreatedTitle": "Clé API créée",
- "keyCreatedDescription": "Copiez cette clé maintenant — vous ne pourrez plus la voir.",
+ "title": "Chiavi API",
+ "description": "Accesso programmatico limitato a questa area di lavoro.",
+ "empty": "Nessuna chiave API. Creane una per integrarti con questa area di lavoro.",
+ "new": "Nuova chiave",
+ "create": "Crea chiave",
+ "createTitle": "Crea chiave API",
+ "createDescription": "Scegli i permessi necessari per questa chiave. Puoi revocarla in qualsiasi momento.",
+ "nameLabel": "Nome della chiave",
+ "namePlaceholder": "Integrazione di produzione",
+ "revoke": "Revoca chiave",
+ "lastUsed": "Ultimo utilizzo {{date}}",
+ "neverUsed": "Mai utilizzata",
+ "keyCreatedTitle": "Chiave API creata",
+ "keyCreatedDescription": "Copia questa chiave ora — non potrai più vederla.",
"revokeConfirm": {
- "title": "Revoke this key?",
- "description": "{{name}} will stop working immediately. Any integration using it will start failing."
+ "title": "Revocare questa chiave?",
+ "description": "{{name}} smetterà di funzionare immediatamente. Le integrazioni che la utilizzano inizieranno a fallire."
},
"scopes": {
"notes": {
- "title": "Notes",
- "read": "Read notes",
- "write": "Write notes"
+ "title": "Note",
+ "read": "Leggi note",
+ "write": "Scrivi note"
},
"folders": {
- "title": "Folders",
- "read": "Read folders",
- "write": "Write folders"
+ "title": "Cartelle",
+ "read": "Leggi cartelle",
+ "write": "Scrivi cartelle"
},
"transcriptions": {
- "title": "Transcriptions",
- "read": "Read transcriptions"
+ "title": "Trascrizioni",
+ "read": "Leggi trascrizioni"
},
"members": {
- "title": "Members",
- "read": "Read members",
- "write": "Manage members"
+ "title": "Membri",
+ "read": "Leggi membri",
+ "write": "Gestisci membri"
},
"billing": {
- "title": "Billing",
- "read": "Read billing"
+ "title": "Fatturazione",
+ "read": "Leggi fatturazione"
},
"full": {
- "title": "Full access",
- "admin": "Workspace admin"
+ "title": "Accesso completo",
+ "admin": "Amministratore dell'area di lavoro"
}
}
- },
- "signInRequired": {
- "title": "Sign in to manage workspaces",
- "description": "Workspaces require an OpenWhispr account.",
- "signIn": "Sign in"
}
}
},
@@ -2103,6 +2108,7 @@
"newNote": "Nuova nota",
"untitled": "Senza titolo",
"untitledNote": "Nota senza titolo",
+ "shared": "Condivisa",
"timeNow": "Adesso",
"minutesAgo": "{{count}}m",
"hoursAgo": "{{count}}h",
@@ -2392,9 +2398,7 @@
"integrations": "Integrazioni",
"defaultUser": "Utente",
"notSignedIn": "Non hai effettuato l'accesso",
- "chat": "Chat",
- "inviteTeammate": "Inviter un coéquipier",
- "createWorkspace": "Créer un espace de travail"
+ "chat": "Chat"
},
"chat": {
"newChat": "Nuova chat",
@@ -2747,9 +2751,11 @@
"button": "Condividi",
"dialog": {
"title": "Condividi nota",
+ "description": "Invita persone tramite email o condividi un link a questa nota.",
"searchPlaceholder": "Aggiungi persone tramite email",
"emailLabel": "Email del destinatario",
"shareButton": "Condividi",
+ "createLink": "Crea link",
"copyLink": "Copia link",
"copied": "Copiato",
"owner": "Proprietario",
@@ -2758,9 +2764,14 @@
"resend": "Reinvia invito",
"revoke": "Rimuovi",
"invitationActions": "Azioni invito",
- "permissionRequired": "Solo il proprietario della nota può modificare la condivisione.",
+ "resendSent": "Invito inviato",
+ "resendThrottled": "Invito inviato di recente. Riprova tra un minuto.",
+ "syncPrompt": "La condivisione mantiene una copia di questa nota nel tuo cloud OpenWhispr.",
+ "syncAndShare": "Sincronizza e condividi",
"visibility": {
"label": "Visibilità",
+ "private": "Privata",
+ "privateOption": "Privata — solo tu",
"link": "Chiunque con il link",
"domain": "Tutti in {{domain}} con il link",
"invited": "Solo le persone invitate"
@@ -2769,8 +2780,12 @@
"invalidEmail": "Inserisci un indirizzo email valido",
"alreadyInvited": "{{email}} è già stato invitato",
"inviteFailed": "Impossibile inviare l'invito. Riprova.",
- "linkUnavailable": "Genera o ruota il link per copiarlo",
- "loadFailed": "Couldn't load share settings"
+ "visibilityFailed": "Impossibile aggiornare la condivisione. Riprova.",
+ "copyFailed": "Impossibile copiare il link. Riprova.",
+ "revokeFailed": "Impossibile rimuovere l'invito. Riprova.",
+ "resendFailed": "Impossibile reinviare l'invito. Riprova.",
+ "syncFailed": "Impossibile sincronizzare questa nota. Riprova.",
+ "loadFailed": "Impossibile caricare le impostazioni di condivisione"
}
}
}
@@ -2878,51 +2893,57 @@
},
"workspaces": {
"switcher": {
- "personal": "Personnel",
- "workspaces": "Espaces de travail",
- "empty": "Aucun espace de travail",
- "create": "Créer un espace de travail…"
+ "workspaces": "Aree di lavoro",
+ "create": "Crea area di lavoro…"
},
"create": {
- "title": "Créer un espace de travail",
- "description": "Les espaces de travail vous permettent de collaborer, partager des notes et gérer la facturation.",
- "nameLabel": "Nom de l'espace de travail",
+ "title": "Crea area di lavoro",
+ "description": "Le aree di lavoro ti permettono di collaborare, condividere note e gestire la fatturazione in un unico posto.",
+ "nameLabel": "Nome dell'area di lavoro",
"namePlaceholder": "Acme Corp",
- "submit": "Créer l'espace",
- "submitting": "Création…",
- "errorTitle": "Impossible de créer l'espace"
+ "submit": "Crea area di lavoro",
+ "submitting": "Creazione…",
+ "errorTitle": "Impossibile creare l'area di lavoro"
},
"created": {
- "title": "Espace de travail créé",
- "description": "Vous êtes maintenant propriétaire de {{name}}."
+ "title": "Area di lavoro creata",
+ "description": "Ora sei il proprietario di {{name}}."
},
"invite": {
- "title": "Inviter dans {{workspace}}",
- "description": "Ajoutez des coéquipiers par e-mail. Ils recevront un lien pour rejoindre.",
- "emailLabel": "E-mail",
- "roleLabel": "Rôle",
- "teamsLabel": "Ajouter aux équipes",
- "submit": "Envoyer l'invitation",
- "submitting": "Envoi…",
- "sentTitle": "Invitation envoyée",
- "sentDescription": "Nous avons envoyé une invitation à {{email}}.",
- "errorTitle": "Impossible d'envoyer l'invitation",
+ "title": "Invita in {{workspace}}",
+ "description": "Aggiungi colleghi tramite email. Riceveranno un link per unirsi.",
+ "emailLabel": "Email",
+ "emailPlaceholder": "[email protected]",
+ "roleLabel": "Ruolo",
+ "seatUsage": "{{used}} di {{seats}} posti in uso",
+ "seatLimit": "Tutti i {{seats}} posti sono in uso.",
+ "manageSeats": "Gestisci posti",
+ "submit": "Invia invito",
+ "submitting": "Invio…",
+ "sentTitle": "Invito inviato",
+ "sentDescription": "Abbiamo inviato un invito a {{email}}.",
+ "errorTitle": "Impossibile inviare l'invito",
"role": {
- "admin": "Administrateur",
- "member": "Membre"
+ "admin": "Amministratore",
+ "member": "Membro"
+ },
+ "roleDescription": {
+ "admin": "Gestisce membri e fatturazione",
+ "member": "Utilizza l'area di lavoro"
}
},
"accept": {
- "title": "Rejoindre l'espace",
- "description": "{{inviter}} vous a invité à rejoindre {{workspace}} en tant que {{role}}.",
- "loading": "Chargement…",
- "accept": "Accepter l'invitation",
- "accepting": "Acceptation…",
- "signInToAccept": "Connectez-vous pour accepter",
- "successTitle": "Vous êtes membre",
- "successDescription": "Bienvenue dans {{name}}.",
- "errorTitle": "Impossible d'accepter l'invitation",
- "sentTo": "Invitation sent to {{email}}"
+ "title": "Unisciti all'area di lavoro",
+ "description": "{{inviter}} ti ha invitato a unirti a {{workspace}} come {{role}}.",
+ "loading": "Caricamento dell'invito…",
+ "accept": "Accetta invito",
+ "accepting": "Accettazione…",
+ "signInToAccept": "Accedi per accettare",
+ "successTitle": "Sei dentro",
+ "successDescription": "Sei membro di {{name}}. Gestiscila in Impostazioni → Area di lavoro.",
+ "errorTitle": "Impossibile accettare l'invito",
+ "sentTo": "Invito inviato a {{email}}",
+ "wrongAccount": "Questo invito è stato inviato a {{email}}. Hai effettuato l'accesso come {{current}}."
}
}
}
diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json
index e991ac068..930a7696d 100644
--- a/src/locales/ja/translation.json
+++ b/src/locales/ja/translation.json
@@ -149,16 +149,16 @@
"tap": "タップ",
"close": "閉じる",
"dismiss": "閉じる",
- "save": "Guardar",
- "saving": "Guardando…",
- "create": "Crear",
- "delete": "Eliminar",
- "actions": "Acciones",
- "error": "Algo salió mal",
- "unknownError": "Ocurrió un error desconocido",
- "copy": "Copiar",
- "copied": "Copiado",
- "done": "Listo",
+ "save": "保存",
+ "saving": "保存中…",
+ "create": "作成",
+ "delete": "削除",
+ "actions": "操作",
+ "error": "問題が発生しました",
+ "unknownError": "不明なエラーが発生しました",
+ "copy": "コピー",
+ "copied": "コピーしました",
+ "done": "完了",
"skip": "スキップ"
},
"onboarding": {
@@ -1053,8 +1053,8 @@
"label": "システム"
},
"workspace": {
- "label": "Espacio de trabajo",
- "description": "Miembros, equipos, facturación y claves API"
+ "description": "メンバー、請求、API キー",
+ "label": "ワークスペース"
}
},
"title": "設定"
@@ -1754,152 +1754,157 @@
"apiKeyOptional": "API キー(任意)"
},
"workspace": {
- "title": "Espacio de trabajo",
- "description": "Colabora con compañeros, comparte notas y administra la facturación en un solo lugar.",
+ "title": "ワークスペース",
+ "description": "チームメイトとのコラボレーション、ノートの共有、請求の管理を一括で行えます。",
"empty": {
- "title": "Crea tu primer espacio de trabajo",
- "description": "Los espacios de trabajo te permiten colaborar con compañeros y compartir notas.",
- "create": "Crear espacio de trabajo"
+ "title": "最初のワークスペースを作成",
+ "description": "ワークスペースでは、チームメイトとのコラボレーションやノートの共有ができます。",
+ "create": "ワークスペースを作成"
+ },
+ "loadError": {
+ "title": "ワークスペースを読み込めませんでした",
+ "description": "接続を確認して、もう一度お試しください。",
+ "retry": "再試行"
},
"tab": {
- "general": "General",
- "members": "Miembros",
- "teams": "Equipos",
- "billing": "Facturación",
- "developer": "Desarrollador"
+ "general": "一般",
+ "members": "メンバー",
+ "billing": "請求",
+ "developer": "開発者"
},
"role": {
- "owner": "Propietario",
- "admin": "Administrador",
- "member": "Miembro"
+ "owner": "オーナー",
+ "admin": "管理者",
+ "member": "メンバー"
},
"general": {
- "nameLabel": "Nombre del espacio de trabajo",
- "slugLabel": "Slug",
- "slugHint": "Se usa en URLs y enlaces de invitación. Solo letras minúsculas, dígitos y guiones.",
- "saved": "Espacio de trabajo actualizado",
- "dangerTitle": "Eliminar espacio de trabajo",
- "dangerDescription": "Todas las notas, carpetas e integraciones compartidas se eliminarán. Esto no se puede deshacer.",
- "delete": "Eliminar espacio de trabajo",
- "confirmTitle": "¿Eliminar {{name}}?",
- "confirmDescription": "Esto cancela la suscripción y elimina todos los datos del espacio de trabajo permanentemente."
+ "nameLabel": "ワークスペース名",
+ "slugLabel": "スラッグ",
+ "slugHint": "URL や招待リンクに使用されます。小文字の英字、数字、ハイフンのみ使用できます。",
+ "slugInvalid": "小文字の英字、数字、ハイフンのみ使用できます。",
+ "saved": "ワークスペースを更新しました",
+ "dangerTitle": "ワークスペースを削除",
+ "dangerDescription": "共有されているノート、フォルダ、連携がすべて削除されます。この操作は取り消せません。",
+ "delete": "ワークスペースを削除",
+ "confirmTitle": "{{name}} を削除しますか?",
+ "confirmDescription": "サブスクリプションがキャンセルされ、ワークスペースのすべてのデータが完全に削除されます。",
+ "deleting": "削除中…",
+ "deleted": "ワークスペースを削除しました",
+ "leaveTitle": "ワークスペースから退出",
+ "leaveDescription": "このワークスペースと共有ノートにアクセスできなくなります。",
+ "leave": "ワークスペースから退出",
+ "leaving": "退出中…",
+ "leaveConfirm": {
+ "title": "{{name}} から退出しますか?",
+ "description": "すぐにアクセスできなくなります。管理者が再度招待できます。"
+ },
+ "left": "{{name}} から退出しました"
},
"members": {
- "title": "Miembros",
- "description": "{{count}} de {{seats}} asientos utilizados.",
- "invite": "Invitar",
- "empty": "Aún no hay miembros.",
- "roleUpdated": "Rol actualizado",
- "promote": "Hacer administrador",
- "demote": "Hacer miembro",
- "transferOwnership": "Transferir propiedad",
- "remove": "Quitar del espacio de trabajo",
+ "title": "メンバー",
+ "description": "{{seats}} シート中 {{count}} シートを使用中。",
+ "invite": "招待",
+ "empty": "まだメンバーがいません。",
+ "roleUpdated": "役割を更新しました",
+ "promote": "管理者にする",
+ "demote": "メンバーにする",
+ "transferOwnership": "オーナー権限を譲渡",
+ "remove": "ワークスペースから削除",
"removeConfirm": {
- "title": "Remove this member?",
- "description": "{{name}} will lose access to {{workspace}} immediately."
+ "title": "このメンバーを削除しますか?",
+ "description": "{{name}} はすぐに {{workspace}} にアクセスできなくなります。"
+ },
+ "transferConfirm": {
+ "title": "オーナー権限を譲渡しますか?",
+ "description": "{{name}} が {{workspace}} のオーナーになります。あなたの役割は管理者に変わり、元に戻せるのは新しいオーナーのみです。"
}
},
"invites": {
- "title": "Invitaciones pendientes",
- "resend": "Reenviar",
- "revoke": "Revocar",
- "resent": "Invitación reenviada",
- "revokeFailed": "Could not revoke invitation",
+ "title": "保留中の招待",
+ "expiresIn_one": "有効期限まであと{{count}}日",
+ "expiresIn_other": "有効期限まであと{{count}}日",
+ "expired": "期限切れ",
+ "resend": "再送信",
+ "resending": "再送信中…",
+ "revoke": "取り消す",
+ "resent": "招待を再送信しました",
+ "revokeFailed": "招待を取り消せませんでした",
"revokeConfirm": {
- "title": "Revoke this invitation?",
- "description": "The invitation link for {{email}} will stop working."
- }
- },
- "teams": {
- "title": "Equipos",
- "description": "Agrupa miembros para compartir con alcance limitado.",
- "new": "Nuevo equipo",
- "empty": "Aún no hay equipos.",
- "createFirst": "Crea tu primer equipo",
- "createTitle": "Crear equipo",
- "nameLabel": "Nombre del equipo",
- "descriptionLabel": "Descripción",
- "memberCount": "{{count}} miembros",
- "deleteConfirm": {
- "title": "Delete this team?",
- "description": "{{name}} will be removed. Shared notes stay with the workspace."
+ "title": "この招待を取り消しますか?",
+ "description": "{{email}} への招待リンクが無効になります。"
}
},
"billing": {
- "title": "Facturación",
- "description": "Plan, asientos y pago.",
- "plan": "Plan",
- "seats": "Asientos",
- "nextInvoice": "Próxima factura",
- "manageStripe": "Administrar en Stripe",
- "startSubscription": "Iniciar suscripción",
+ "title": "請求",
+ "description": "プラン、シート、支払い。",
+ "plan": "プラン",
+ "seats": "シート",
+ "nextInvoice": "次回の請求",
+ "manageStripe": "Stripe で管理",
+ "opening": "開いています…",
+ "startSubscription": "サブスクリプションを開始",
"planLabel": {
"business": "Business",
"pro": "Pro",
"free": "Free"
},
"status": {
- "active": "Active",
- "trialing": "Trialing",
- "past_due": "Past due",
- "canceled": "Canceled",
- "incomplete": "Incomplete",
- "unpaid": "Unpaid"
+ "active": "有効",
+ "trialing": "トライアル中",
+ "past_due": "支払い期限超過",
+ "canceled": "キャンセル済み",
+ "incomplete": "未完了",
+ "unpaid": "未払い"
}
},
"developer": {
- "title": "Claves API",
- "description": "Acceso programático limitado a este espacio de trabajo.",
- "empty": "Aún no hay claves API. Crea una para integrarte con este espacio de trabajo.",
- "new": "Nueva clave",
- "create": "Crear clave",
- "createTitle": "Crear clave API",
- "createDescription": "Elige los permisos que necesita esta clave. Puedes revocarla en cualquier momento.",
- "nameLabel": "Nombre de la clave",
- "namePlaceholder": "Integración de producción",
- "revoke": "Revocar clave",
- "lastUsed": "Último uso {{date}}",
- "neverUsed": "Nunca utilizada",
- "keyCreatedTitle": "Clave API creada",
- "keyCreatedDescription": "Copia esta clave ahora — no podrás verla de nuevo.",
+ "title": "API キー",
+ "description": "このワークスペースに限定されたプログラムからのアクセス。",
+ "empty": "まだ API キーがありません。このワークスペースと連携するには作成してください。",
+ "new": "新規キー",
+ "create": "キーを作成",
+ "createTitle": "API キーを作成",
+ "createDescription": "このキーに必要な権限を選択してください。いつでも取り消せます。",
+ "nameLabel": "キー名",
+ "namePlaceholder": "本番環境の連携",
+ "revoke": "キーを取り消す",
+ "lastUsed": "最終使用: {{date}}",
+ "neverUsed": "未使用",
+ "keyCreatedTitle": "API キーを作成しました",
+ "keyCreatedDescription": "このキーを今すぐコピーしてください。後で再表示することはできません。",
"revokeConfirm": {
- "title": "Revoke this key?",
- "description": "{{name}} will stop working immediately. Any integration using it will start failing."
+ "title": "このキーを取り消しますか?",
+ "description": "{{name}} はすぐに使用できなくなります。このキーを使用している連携は失敗するようになります。"
},
"scopes": {
"notes": {
- "title": "Notes",
- "read": "Read notes",
- "write": "Write notes"
+ "title": "ノート",
+ "read": "ノートの読み取り",
+ "write": "ノートの書き込み"
},
"folders": {
- "title": "Folders",
- "read": "Read folders",
- "write": "Write folders"
+ "title": "フォルダ",
+ "read": "フォルダの読み取り",
+ "write": "フォルダの書き込み"
},
"transcriptions": {
- "title": "Transcriptions",
- "read": "Read transcriptions"
+ "title": "文字起こし",
+ "read": "文字起こしの読み取り"
},
"members": {
- "title": "Members",
- "read": "Read members",
- "write": "Manage members"
+ "title": "メンバー",
+ "read": "メンバーの読み取り",
+ "write": "メンバーの管理"
},
"billing": {
- "title": "Billing",
- "read": "Read billing"
+ "title": "請求",
+ "read": "請求の読み取り"
},
"full": {
- "title": "Full access",
- "admin": "Workspace admin"
+ "title": "フルアクセス",
+ "admin": "ワークスペース管理者"
}
}
- },
- "signInRequired": {
- "title": "Sign in to manage workspaces",
- "description": "Workspaces require an OpenWhispr account.",
- "signIn": "Sign in"
}
}
},
@@ -2120,6 +2125,7 @@
"newNote": "新規ノート",
"untitled": "無題",
"untitledNote": "無題のノート",
+ "shared": "共有中",
"timeNow": "たった今",
"minutesAgo": "{{count}}分前",
"hoursAgo": "{{count}}時間前",
@@ -2392,9 +2398,7 @@
"integrations": "連携",
"defaultUser": "ユーザー",
"notSignedIn": "未サインイン",
- "chat": "チャット",
- "inviteTeammate": "Invitar compañero",
- "createWorkspace": "Crear espacio de trabajo"
+ "chat": "チャット"
},
"chat": {
"newChat": "新しいチャット",
@@ -2747,9 +2751,11 @@
"button": "共有",
"dialog": {
"title": "ノートを共有",
+ "description": "メールで招待するか、このノートへのリンクを共有します。",
"searchPlaceholder": "メールアドレスでメンバーを追加",
"emailLabel": "受信者のメールアドレス",
"shareButton": "共有",
+ "createLink": "リンクを作成",
"copyLink": "リンクをコピー",
"copied": "コピーしました",
"owner": "オーナー",
@@ -2758,9 +2764,14 @@
"resend": "招待を再送信",
"revoke": "削除",
"invitationActions": "招待の操作",
- "permissionRequired": "共有設定を変更できるのはノートのオーナーのみです。",
+ "resendSent": "招待を送信しました",
+ "resendThrottled": "招待を送信したばかりです。1分ほど待ってからお試しください。",
+ "syncPrompt": "共有すると、このノートのコピーが OpenWhispr クラウドに保存されます。",
+ "syncAndShare": "同期して共有",
"visibility": {
"label": "公開範囲",
+ "private": "非公開",
+ "privateOption": "非公開 — 自分のみ",
"link": "リンクを持つ全員",
"domain": "{{domain}} の全員(リンクを持つ人)",
"invited": "招待された人のみ"
@@ -2769,8 +2780,12 @@
"invalidEmail": "有効なメールアドレスを入力してください",
"alreadyInvited": "{{email}} はすでに招待されています",
"inviteFailed": "招待を送信できませんでした。もう一度お試しください。",
- "linkUnavailable": "リンクをコピーするには生成またはローテーションしてください",
- "loadFailed": "Couldn't load share settings"
+ "visibilityFailed": "共有設定を更新できませんでした。もう一度お試しください。",
+ "copyFailed": "リンクをコピーできませんでした。もう一度お試しください。",
+ "revokeFailed": "招待を削除できませんでした。もう一度お試しください。",
+ "resendFailed": "招待を再送信できませんでした。もう一度お試しください。",
+ "syncFailed": "このノートを同期できませんでした。もう一度お試しください。",
+ "loadFailed": "共有設定を読み込めませんでした"
}
}
}
@@ -2878,51 +2893,57 @@
},
"workspaces": {
"switcher": {
- "personal": "Personal",
- "workspaces": "Espacios de trabajo",
- "empty": "Aún no hay espacios de trabajo",
- "create": "Crear espacio de trabajo…"
+ "workspaces": "ワークスペース",
+ "create": "ワークスペースを作成…"
},
"create": {
- "title": "Crear espacio de trabajo",
- "description": "Los espacios de trabajo te permiten colaborar, compartir notas y administrar la facturación.",
- "nameLabel": "Nombre del espacio de trabajo",
+ "title": "ワークスペースを作成",
+ "description": "ワークスペースでは、コラボレーション、ノートの共有、請求の管理を一括で行えます。",
+ "nameLabel": "ワークスペース名",
"namePlaceholder": "Acme Corp",
- "submit": "Crear espacio de trabajo",
- "submitting": "Creando…",
- "errorTitle": "No se pudo crear el espacio de trabajo"
+ "submit": "ワークスペースを作成",
+ "submitting": "作成中…",
+ "errorTitle": "ワークスペースを作成できませんでした"
},
"created": {
- "title": "Espacio de trabajo creado",
- "description": "Ahora eres el propietario de {{name}}."
+ "title": "ワークスペースを作成しました",
+ "description": "{{name}} のオーナーになりました。"
},
"invite": {
- "title": "Invitar a {{workspace}}",
- "description": "Agrega compañeros por correo. Recibirán un enlace para unirse.",
- "emailLabel": "Correo electrónico",
- "roleLabel": "Rol",
- "teamsLabel": "Agregar a equipos",
- "submit": "Enviar invitación",
- "submitting": "Enviando…",
- "sentTitle": "Invitación enviada",
- "sentDescription": "Enviamos una invitación a {{email}}.",
- "errorTitle": "No se pudo enviar la invitación",
+ "title": "{{workspace}} に招待",
+ "description": "メールアドレスでチームメイトを追加します。参加用のリンクが送信されます。",
+ "emailLabel": "メールアドレス",
+ "emailPlaceholder": "[email protected]",
+ "roleLabel": "役割",
+ "seatUsage": "{{seats}} シート中 {{used}} シートを使用中",
+ "seatLimit": "{{seats}} シートすべてが使用中です。",
+ "manageSeats": "シートを管理",
+ "submit": "招待を送信",
+ "submitting": "送信中…",
+ "sentTitle": "招待を送信しました",
+ "sentDescription": "{{email}} に招待を送信しました。",
+ "errorTitle": "招待を送信できませんでした",
"role": {
- "admin": "Administrador",
- "member": "Miembro"
+ "admin": "管理者",
+ "member": "メンバー"
+ },
+ "roleDescription": {
+ "admin": "メンバーと請求を管理できます",
+ "member": "ワークスペースを利用できます"
}
},
"accept": {
- "title": "Unirse al espacio de trabajo",
- "description": "{{inviter}} te invitó a unirte a {{workspace}} como {{role}}.",
- "loading": "Cargando invitación…",
- "accept": "Aceptar invitación",
- "accepting": "Aceptando…",
- "signInToAccept": "Inicia sesión para aceptar",
- "successTitle": "Te uniste",
- "successDescription": "Bienvenido a {{name}}.",
- "errorTitle": "No se pudo aceptar la invitación",
- "sentTo": "Invitation sent to {{email}}"
+ "title": "ワークスペースに参加",
+ "description": "{{inviter}} さんから、{{workspace}} に{{role}}として参加するよう招待されています。",
+ "loading": "招待を読み込み中…",
+ "accept": "招待を承諾",
+ "accepting": "承諾中…",
+ "signInToAccept": "サインインして承諾",
+ "successTitle": "参加しました",
+ "successDescription": "{{name}} のメンバーになりました。設定 → ワークスペースで管理できます。",
+ "errorTitle": "招待を承諾できませんでした",
+ "sentTo": "{{email}} に送信された招待です",
+ "wrongAccount": "この招待は {{email}} 宛てに送信されました。現在 {{current}} でサインインしています。"
}
}
}
diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json
index f0e2c2447..861867a08 100644
--- a/src/locales/pt/translation.json
+++ b/src/locales/pt/translation.json
@@ -1032,8 +1032,8 @@
"label": "Sistema"
},
"workspace": {
- "label": "Espacio de trabajo",
- "description": "Miembros, equipos, facturación y claves API"
+ "description": "Membros, cobrança e chaves de API",
+ "label": "Espaço de trabalho"
}
},
"title": "Configurações"
@@ -1733,152 +1733,157 @@
"apiKeyOptional": "API Key (opcional)"
},
"workspace": {
- "title": "Espacio de trabajo",
- "description": "Colabora con compañeros, comparte notas y administra la facturación en un solo lugar.",
+ "title": "Espaço de trabalho",
+ "description": "Colabore com colegas, compartilhe notas e gerencie a cobrança em um só lugar.",
"empty": {
- "title": "Crea tu primer espacio de trabajo",
- "description": "Los espacios de trabajo te permiten colaborar con compañeros y compartir notas.",
- "create": "Crear espacio de trabajo"
+ "title": "Crie seu primeiro espaço de trabalho",
+ "description": "Espaços de trabalho permitem colaborar com colegas e compartilhar notas.",
+ "create": "Criar espaço de trabalho"
+ },
+ "loadError": {
+ "title": "Não foi possível carregar os espaços de trabalho",
+ "description": "Verifique sua conexão e tente novamente.",
+ "retry": "Tentar novamente"
},
"tab": {
- "general": "General",
- "members": "Miembros",
- "teams": "Equipos",
- "billing": "Facturación",
- "developer": "Desarrollador"
+ "general": "Geral",
+ "members": "Membros",
+ "billing": "Cobrança",
+ "developer": "Desenvolvedor"
},
"role": {
- "owner": "Propietario",
+ "owner": "Proprietário",
"admin": "Administrador",
- "member": "Miembro"
+ "member": "Membro"
},
"general": {
- "nameLabel": "Nombre del espacio de trabajo",
+ "nameLabel": "Nome do espaço de trabalho",
"slugLabel": "Slug",
- "slugHint": "Se usa en URLs y enlaces de invitación. Solo letras minúsculas, dígitos y guiones.",
- "saved": "Espacio de trabajo actualizado",
- "dangerTitle": "Eliminar espacio de trabajo",
- "dangerDescription": "Todas las notas, carpetas e integraciones compartidas se eliminarán. Esto no se puede deshacer.",
- "delete": "Eliminar espacio de trabajo",
- "confirmTitle": "¿Eliminar {{name}}?",
- "confirmDescription": "Esto cancela la suscripción y elimina todos los datos del espacio de trabajo permanentemente."
+ "slugHint": "Usado em URLs e links de convite. Apenas letras minúsculas, dígitos e hifens.",
+ "slugInvalid": "Apenas letras minúsculas, dígitos e hifens.",
+ "saved": "Espaço de trabalho atualizado",
+ "dangerTitle": "Excluir espaço de trabalho",
+ "dangerDescription": "Todas as notas, pastas e integrações compartilhadas serão excluídas. Esta ação não pode ser desfeita.",
+ "delete": "Excluir espaço de trabalho",
+ "confirmTitle": "Excluir {{name}}?",
+ "confirmDescription": "Isso cancela a assinatura e remove todos os dados do espaço de trabalho permanentemente.",
+ "deleting": "Excluindo…",
+ "deleted": "Espaço de trabalho excluído",
+ "leaveTitle": "Sair do espaço de trabalho",
+ "leaveDescription": "Você perderá o acesso a este espaço de trabalho e às notas compartilhadas dele.",
+ "leave": "Sair do espaço de trabalho",
+ "leaving": "Saindo…",
+ "leaveConfirm": {
+ "title": "Sair de {{name}}?",
+ "description": "Você perderá o acesso imediatamente. Um administrador pode convidá-lo de volta."
+ },
+ "left": "Você saiu de {{name}}"
},
"members": {
- "title": "Miembros",
- "description": "{{count}} de {{seats}} asientos utilizados.",
- "invite": "Invitar",
- "empty": "Aún no hay miembros.",
- "roleUpdated": "Rol actualizado",
- "promote": "Hacer administrador",
- "demote": "Hacer miembro",
- "transferOwnership": "Transferir propiedad",
- "remove": "Quitar del espacio de trabajo",
+ "title": "Membros",
+ "description": "{{count}} de {{seats}} assentos usados.",
+ "invite": "Convidar",
+ "empty": "Ainda não há membros.",
+ "roleUpdated": "Função atualizada",
+ "promote": "Tornar administrador",
+ "demote": "Tornar membro",
+ "transferOwnership": "Transferir propriedade",
+ "remove": "Remover do espaço de trabalho",
"removeConfirm": {
- "title": "Remove this member?",
- "description": "{{name}} will lose access to {{workspace}} immediately."
+ "title": "Remover este membro?",
+ "description": "{{name}} perderá o acesso a {{workspace}} imediatamente."
+ },
+ "transferConfirm": {
+ "title": "Transferir a propriedade?",
+ "description": "{{name}} se torna o proprietário de {{workspace}}. Sua função muda para administrador e apenas o novo proprietário pode transferi-la de volta."
}
},
"invites": {
- "title": "Invitaciones pendientes",
+ "title": "Convites pendentes",
+ "expiresIn_one": "Expira em {{count}} dia",
+ "expiresIn_other": "Expira em {{count}} dias",
+ "expired": "Expirado",
"resend": "Reenviar",
- "revoke": "Revocar",
- "resent": "Invitación reenviada",
- "revokeFailed": "Could not revoke invitation",
+ "resending": "Reenviando…",
+ "revoke": "Revogar",
+ "resent": "Convite reenviado",
+ "revokeFailed": "Não foi possível revogar o convite",
"revokeConfirm": {
- "title": "Revoke this invitation?",
- "description": "The invitation link for {{email}} will stop working."
- }
- },
- "teams": {
- "title": "Equipos",
- "description": "Agrupa miembros para compartir con alcance limitado.",
- "new": "Nuevo equipo",
- "empty": "Aún no hay equipos.",
- "createFirst": "Crea tu primer equipo",
- "createTitle": "Crear equipo",
- "nameLabel": "Nombre del equipo",
- "descriptionLabel": "Descripción",
- "memberCount": "{{count}} miembros",
- "deleteConfirm": {
- "title": "Delete this team?",
- "description": "{{name}} will be removed. Shared notes stay with the workspace."
+ "title": "Revogar este convite?",
+ "description": "O link de convite de {{email}} deixará de funcionar."
}
},
"billing": {
- "title": "Facturación",
- "description": "Plan, asientos y pago.",
- "plan": "Plan",
- "seats": "Asientos",
- "nextInvoice": "Próxima factura",
- "manageStripe": "Administrar en Stripe",
- "startSubscription": "Iniciar suscripción",
+ "title": "Cobrança",
+ "description": "Plano, assentos e pagamento.",
+ "plan": "Plano",
+ "seats": "Assentos",
+ "nextInvoice": "Próxima fatura",
+ "manageStripe": "Gerenciar no Stripe",
+ "opening": "Abrindo…",
+ "startSubscription": "Iniciar assinatura",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "Free"
+ "free": "Gratuito"
},
"status": {
- "active": "Active",
- "trialing": "Trialing",
- "past_due": "Past due",
- "canceled": "Canceled",
- "incomplete": "Incomplete",
- "unpaid": "Unpaid"
+ "active": "Ativa",
+ "trialing": "Em teste",
+ "past_due": "Em atraso",
+ "canceled": "Cancelada",
+ "incomplete": "Incompleta",
+ "unpaid": "Não paga"
}
},
"developer": {
- "title": "Claves API",
- "description": "Acceso programático limitado a este espacio de trabajo.",
- "empty": "Aún no hay claves API. Crea una para integrarte con este espacio de trabajo.",
- "new": "Nueva clave",
- "create": "Crear clave",
- "createTitle": "Crear clave API",
- "createDescription": "Elige los permisos que necesita esta clave. Puedes revocarla en cualquier momento.",
- "nameLabel": "Nombre de la clave",
- "namePlaceholder": "Integración de producción",
- "revoke": "Revocar clave",
+ "title": "Chaves de API",
+ "description": "Acesso programático limitado a este espaço de trabalho.",
+ "empty": "Ainda não há chaves de API. Crie uma para integrar com este espaço de trabalho.",
+ "new": "Nova chave",
+ "create": "Criar chave",
+ "createTitle": "Criar chave de API",
+ "createDescription": "Escolha as permissões que esta chave precisa. Você pode revogá-la a qualquer momento.",
+ "nameLabel": "Nome da chave",
+ "namePlaceholder": "Integração de produção",
+ "revoke": "Revogar chave",
"lastUsed": "Último uso {{date}}",
- "neverUsed": "Nunca utilizada",
- "keyCreatedTitle": "Clave API creada",
- "keyCreatedDescription": "Copia esta clave ahora — no podrás verla de nuevo.",
+ "neverUsed": "Nunca usada",
+ "keyCreatedTitle": "Chave de API criada",
+ "keyCreatedDescription": "Copie esta chave agora — você não poderá vê-la novamente.",
"revokeConfirm": {
- "title": "Revoke this key?",
- "description": "{{name}} will stop working immediately. Any integration using it will start failing."
+ "title": "Revogar esta chave?",
+ "description": "{{name}} deixará de funcionar imediatamente. Qualquer integração que a utilize começará a falhar."
},
"scopes": {
"notes": {
- "title": "Notes",
- "read": "Read notes",
- "write": "Write notes"
+ "title": "Notas",
+ "read": "Ler notas",
+ "write": "Escrever notas"
},
"folders": {
- "title": "Folders",
- "read": "Read folders",
- "write": "Write folders"
+ "title": "Pastas",
+ "read": "Ler pastas",
+ "write": "Escrever pastas"
},
"transcriptions": {
- "title": "Transcriptions",
- "read": "Read transcriptions"
+ "title": "Transcrições",
+ "read": "Ler transcrições"
},
"members": {
- "title": "Members",
- "read": "Read members",
- "write": "Manage members"
+ "title": "Membros",
+ "read": "Ler membros",
+ "write": "Gerenciar membros"
},
"billing": {
- "title": "Billing",
- "read": "Read billing"
+ "title": "Cobrança",
+ "read": "Ler cobrança"
},
"full": {
- "title": "Full access",
- "admin": "Workspace admin"
+ "title": "Acesso total",
+ "admin": "Administrador do espaço de trabalho"
}
}
- },
- "signInRequired": {
- "title": "Sign in to manage workspaces",
- "description": "Workspaces require an OpenWhispr account.",
- "signIn": "Sign in"
}
}
},
@@ -2103,6 +2108,7 @@
"newNote": "Nova nota",
"untitled": "Sem título",
"untitledNote": "Nota sem título",
+ "shared": "Compartilhada",
"timeNow": "Agora",
"minutesAgo": "{{count}}m",
"hoursAgo": "{{count}}h",
@@ -2392,9 +2398,7 @@
"integrations": "Integrações",
"defaultUser": "Usuário",
"notSignedIn": "Não conectado",
- "chat": "Chat",
- "inviteTeammate": "Invitar compañero",
- "createWorkspace": "Crear espacio de trabajo"
+ "chat": "Chat"
},
"chat": {
"newChat": "Novo chat",
@@ -2747,9 +2751,11 @@
"button": "Compartilhar",
"dialog": {
"title": "Compartilhar nota",
+ "description": "Convide pessoas por e-mail ou compartilhe um link para esta nota.",
"searchPlaceholder": "Adicione pessoas por e-mail",
"emailLabel": "E-mail do destinatário",
"shareButton": "Compartilhar",
+ "createLink": "Criar link",
"copyLink": "Copiar link",
"copied": "Copiado",
"owner": "Proprietário",
@@ -2758,9 +2764,14 @@
"resend": "Reenviar convite",
"revoke": "Remover",
"invitationActions": "Ações do convite",
- "permissionRequired": "Apenas o proprietário da nota pode alterar o compartilhamento.",
+ "resendSent": "Convite enviado",
+ "resendThrottled": "Convite enviado há pouco. Tente novamente em um minuto.",
+ "syncPrompt": "O compartilhamento mantém uma cópia desta nota na sua nuvem OpenWhispr.",
+ "syncAndShare": "Sincronizar e compartilhar",
"visibility": {
"label": "Visibilidade",
+ "private": "Privada",
+ "privateOption": "Privada — apenas você",
"link": "Qualquer pessoa com o link",
"domain": "Todos em {{domain}} com o link",
"invited": "Apenas pessoas convidadas"
@@ -2769,8 +2780,12 @@
"invalidEmail": "Digite um endereço de e-mail válido",
"alreadyInvited": "{{email}} já foi convidado",
"inviteFailed": "Não foi possível enviar o convite. Tente novamente.",
- "linkUnavailable": "Gere ou rotacione o link para copiá-lo",
- "loadFailed": "Couldn't load share settings"
+ "visibilityFailed": "Não foi possível atualizar o compartilhamento. Tente novamente.",
+ "copyFailed": "Não foi possível copiar o link. Tente novamente.",
+ "revokeFailed": "Não foi possível remover o convite. Tente novamente.",
+ "resendFailed": "Não foi possível reenviar o convite. Tente novamente.",
+ "syncFailed": "Não foi possível sincronizar esta nota. Tente novamente.",
+ "loadFailed": "Não foi possível carregar as configurações de compartilhamento"
}
}
}
@@ -2878,51 +2893,57 @@
},
"workspaces": {
"switcher": {
- "personal": "Personal",
- "workspaces": "Espacios de trabajo",
- "empty": "Aún no hay espacios de trabajo",
- "create": "Crear espacio de trabajo…"
+ "workspaces": "Espaços de trabalho",
+ "create": "Criar espaço de trabalho…"
},
"create": {
- "title": "Crear espacio de trabajo",
- "description": "Los espacios de trabajo te permiten colaborar, compartir notas y administrar la facturación.",
- "nameLabel": "Nombre del espacio de trabajo",
+ "title": "Criar espaço de trabalho",
+ "description": "Espaços de trabalho permitem colaborar, compartilhar notas e gerenciar a cobrança em um só lugar.",
+ "nameLabel": "Nome do espaço de trabalho",
"namePlaceholder": "Acme Corp",
- "submit": "Crear espacio de trabajo",
- "submitting": "Creando…",
- "errorTitle": "No se pudo crear el espacio de trabajo"
+ "submit": "Criar espaço de trabalho",
+ "submitting": "Criando…",
+ "errorTitle": "Não foi possível criar o espaço de trabalho"
},
"created": {
- "title": "Espacio de trabajo creado",
- "description": "Ahora eres el propietario de {{name}}."
+ "title": "Espaço de trabalho criado",
+ "description": "Agora você é o proprietário de {{name}}."
},
"invite": {
- "title": "Invitar a {{workspace}}",
- "description": "Agrega compañeros por correo. Recibirán un enlace para unirse.",
- "emailLabel": "Correo electrónico",
- "roleLabel": "Rol",
- "teamsLabel": "Agregar a equipos",
- "submit": "Enviar invitación",
+ "title": "Convidar para {{workspace}}",
+ "description": "Adicione colegas por e-mail. Eles receberão um link para entrar.",
+ "emailLabel": "E-mail",
+ "emailPlaceholder": "[email protected]",
+ "roleLabel": "Função",
+ "seatUsage": "Usando {{used}} de {{seats}} assentos",
+ "seatLimit": "Todos os {{seats}} assentos estão em uso.",
+ "manageSeats": "Gerenciar assentos",
+ "submit": "Enviar convite",
"submitting": "Enviando…",
- "sentTitle": "Invitación enviada",
- "sentDescription": "Enviamos una invitación a {{email}}.",
- "errorTitle": "No se pudo enviar la invitación",
+ "sentTitle": "Convite enviado",
+ "sentDescription": "Enviamos um convite para {{email}}.",
+ "errorTitle": "Não foi possível enviar o convite",
"role": {
"admin": "Administrador",
- "member": "Miembro"
+ "member": "Membro"
+ },
+ "roleDescription": {
+ "admin": "Gerencia membros e cobrança",
+ "member": "Usa o espaço de trabalho"
}
},
"accept": {
- "title": "Unirse al espacio de trabajo",
- "description": "{{inviter}} te invitó a unirte a {{workspace}} como {{role}}.",
- "loading": "Cargando invitación…",
- "accept": "Aceptar invitación",
- "accepting": "Aceptando…",
- "signInToAccept": "Inicia sesión para aceptar",
- "successTitle": "Te uniste",
- "successDescription": "Bienvenido a {{name}}.",
- "errorTitle": "No se pudo aceptar la invitación",
- "sentTo": "Invitation sent to {{email}}"
+ "title": "Entrar no espaço de trabalho",
+ "description": "{{inviter}} convidou você para entrar em {{workspace}} como {{role}}.",
+ "loading": "Carregando convite…",
+ "accept": "Aceitar convite",
+ "accepting": "Aceitando…",
+ "signInToAccept": "Faça login para aceitar",
+ "successTitle": "Você entrou",
+ "successDescription": "Você é membro de {{name}}. Gerencie em Configurações → Espaço de trabalho.",
+ "errorTitle": "Não foi possível aceitar o convite",
+ "sentTo": "Convite enviado para {{email}}",
+ "wrongAccount": "Este convite foi enviado para {{email}}. Você está conectado como {{current}}."
}
}
}
diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json
index 9e2a28bd9..264ddccf3 100644
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@ -1053,8 +1053,8 @@
"label": "Система"
},
"workspace": {
- "label": "Workspace",
- "description": "Mitglieder, Teams, Abrechnung und API-Schlüssel"
+ "description": "Участники, оплата и API-ключи",
+ "label": "Рабочее пространство"
}
},
"title": "Настройки"
@@ -1754,152 +1754,159 @@
"apiKeyOptional": "API-ключ (необязательно)"
},
"workspace": {
- "title": "Workspace",
- "description": "Arbeiten Sie zusammen, teilen Sie Notizen und verwalten Sie die Abrechnung an einem Ort.",
+ "title": "Рабочее пространство",
+ "description": "Работайте с командой, делитесь заметками и управляйте оплатой в одном месте.",
"empty": {
- "title": "Ersten Workspace erstellen",
- "description": "Workspaces ermöglichen die Zusammenarbeit und das Teilen von Notizen.",
- "create": "Workspace erstellen"
+ "title": "Создайте первое рабочее пространство",
+ "description": "Рабочие пространства позволяют работать с командой и делиться заметками.",
+ "create": "Создать рабочее пространство"
+ },
+ "loadError": {
+ "title": "Не удалось загрузить рабочие пространства",
+ "description": "Проверьте подключение и попробуйте ещё раз.",
+ "retry": "Повторить"
},
"tab": {
- "general": "Allgemein",
- "members": "Mitglieder",
- "teams": "Teams",
- "billing": "Abrechnung",
- "developer": "Entwickler"
+ "general": "Общие",
+ "members": "Участники",
+ "billing": "Оплата",
+ "developer": "Разработчик"
},
"role": {
- "owner": "Inhaber",
- "admin": "Administrator",
- "member": "Mitglied"
+ "owner": "Владелец",
+ "admin": "Администратор",
+ "member": "Участник"
},
"general": {
- "nameLabel": "Workspace-Name",
+ "nameLabel": "Название рабочего пространства",
"slugLabel": "Slug",
- "slugHint": "Wird in URLs verwendet. Nur Kleinbuchstaben, Ziffern und Bindestriche.",
- "saved": "Workspace aktualisiert",
- "dangerTitle": "Workspace löschen",
- "dangerDescription": "Alle geteilten Notizen, Ordner und Integrationen werden gelöscht. Dies kann nicht rückgängig gemacht werden.",
- "delete": "Workspace löschen",
- "confirmTitle": "{{name}} löschen?",
- "confirmDescription": "Dies kündigt das Abonnement und entfernt alle Workspace-Daten dauerhaft."
+ "slugHint": "Используется в URL и ссылках-приглашениях. Только строчные буквы, цифры и дефисы.",
+ "slugInvalid": "Только строчные буквы, цифры и дефисы.",
+ "saved": "Рабочее пространство обновлено",
+ "dangerTitle": "Удалить рабочее пространство",
+ "dangerDescription": "Все общие заметки, папки и интеграции будут удалены. Это действие нельзя отменить.",
+ "delete": "Удалить рабочее пространство",
+ "confirmTitle": "Удалить {{name}}?",
+ "confirmDescription": "Подписка будет отменена, а все данные рабочего пространства безвозвратно удалены.",
+ "deleting": "Удаление…",
+ "deleted": "Рабочее пространство удалено",
+ "leaveTitle": "Покинуть рабочее пространство",
+ "leaveDescription": "Вы потеряете доступ к этому рабочему пространству и его общим заметкам.",
+ "leave": "Покинуть рабочее пространство",
+ "leaving": "Выход…",
+ "leaveConfirm": {
+ "title": "Покинуть {{name}}?",
+ "description": "Вы сразу потеряете доступ. Администратор сможет пригласить вас снова."
+ },
+ "left": "Вы покинули {{name}}"
},
"members": {
- "title": "Mitglieder",
- "description": "{{count}} von {{seats}} Plätzen belegt.",
- "invite": "Einladen",
- "empty": "Noch keine Mitglieder.",
- "roleUpdated": "Rolle aktualisiert",
- "promote": "Zum Administrator machen",
- "demote": "Zum Mitglied machen",
- "transferOwnership": "Eigentum übertragen",
- "remove": "Aus Workspace entfernen",
+ "title": "Участники",
+ "description": "Занято {{count}} из {{seats}} мест.",
+ "invite": "Пригласить",
+ "empty": "Пока нет участников.",
+ "roleUpdated": "Роль обновлена",
+ "promote": "Сделать администратором",
+ "demote": "Сделать участником",
+ "transferOwnership": "Передать владение",
+ "remove": "Удалить из рабочего пространства",
"removeConfirm": {
- "title": "Remove this member?",
- "description": "{{name}} will lose access to {{workspace}} immediately."
+ "title": "Удалить этого участника?",
+ "description": "{{name}} сразу потеряет доступ к {{workspace}}."
+ },
+ "transferConfirm": {
+ "title": "Передать владение?",
+ "description": "{{name}} станет владельцем {{workspace}}. Ваша роль изменится на администратора, и вернуть владение сможет только новый владелец."
}
},
"invites": {
- "title": "Ausstehende Einladungen",
- "resend": "Erneut senden",
- "revoke": "Widerrufen",
- "resent": "Einladung erneut gesendet",
- "revokeFailed": "Could not revoke invitation",
+ "title": "Ожидающие приглашения",
+ "expiresIn_one": "Истекает через {{count}} день",
+ "expiresIn_few": "Истекает через {{count}} дня",
+ "expiresIn_many": "Истекает через {{count}} дней",
+ "expiresIn_other": "Истекает через {{count}} дня",
+ "expired": "Истекло",
+ "resend": "Отправить снова",
+ "resending": "Отправка…",
+ "revoke": "Отозвать",
+ "resent": "Приглашение отправлено повторно",
+ "revokeFailed": "Не удалось отозвать приглашение",
"revokeConfirm": {
- "title": "Revoke this invitation?",
- "description": "The invitation link for {{email}} will stop working."
- }
- },
- "teams": {
- "title": "Teams",
- "description": "Mitglieder gruppieren für gezieltes Teilen.",
- "new": "Neues Team",
- "empty": "Noch keine Teams.",
- "createFirst": "Erstellen Sie Ihr erstes Team",
- "createTitle": "Team erstellen",
- "nameLabel": "Team-Name",
- "descriptionLabel": "Beschreibung",
- "memberCount": "{{count}} Mitglieder",
- "deleteConfirm": {
- "title": "Delete this team?",
- "description": "{{name}} will be removed. Shared notes stay with the workspace."
+ "title": "Отозвать это приглашение?",
+ "description": "Ссылка-приглашение для {{email}} перестанет работать."
}
},
"billing": {
- "title": "Abrechnung",
- "description": "Plan, Plätze und Zahlung.",
- "plan": "Plan",
- "seats": "Plätze",
- "nextInvoice": "Nächste Rechnung",
- "manageStripe": "In Stripe verwalten",
- "startSubscription": "Abonnement starten",
+ "title": "Оплата",
+ "description": "Тариф, места и оплата.",
+ "plan": "Тариф",
+ "seats": "Места",
+ "nextInvoice": "Следующий счёт",
+ "manageStripe": "Управлять в Stripe",
+ "opening": "Открытие…",
+ "startSubscription": "Оформить подписку",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "Free"
+ "free": "Бесплатный"
},
"status": {
- "active": "Active",
- "trialing": "Trialing",
- "past_due": "Past due",
- "canceled": "Canceled",
- "incomplete": "Incomplete",
- "unpaid": "Unpaid"
+ "active": "Активна",
+ "trialing": "Пробный период",
+ "past_due": "Просрочена",
+ "canceled": "Отменена",
+ "incomplete": "Не завершена",
+ "unpaid": "Не оплачена"
}
},
"developer": {
- "title": "API-Schlüssel",
- "description": "Programmatischer Zugriff auf diesen Workspace.",
- "empty": "Noch keine API-Schlüssel. Erstellen Sie einen für Integrationen.",
- "new": "Neuer Schlüssel",
- "create": "Schlüssel erstellen",
- "createTitle": "API-Schlüssel erstellen",
- "createDescription": "Wählen Sie die Berechtigungen. Sie können den Schlüssel jederzeit widerrufen.",
- "nameLabel": "Schlüsselname",
- "namePlaceholder": "Produktionsintegration",
- "revoke": "Schlüssel widerrufen",
- "lastUsed": "Zuletzt verwendet {{date}}",
- "neverUsed": "Nie verwendet",
- "keyCreatedTitle": "API-Schlüssel erstellt",
- "keyCreatedDescription": "Kopieren Sie diesen Schlüssel jetzt — Sie können ihn nicht erneut sehen.",
+ "title": "API-ключи",
+ "description": "Программный доступ в рамках этого рабочего пространства.",
+ "empty": "Пока нет API-ключей. Создайте ключ для интеграции с этим рабочим пространством.",
+ "new": "Новый ключ",
+ "create": "Создать ключ",
+ "createTitle": "Создать API-ключ",
+ "createDescription": "Выберите разрешения для этого ключа. Вы можете отозвать его в любой момент.",
+ "nameLabel": "Название ключа",
+ "namePlaceholder": "Интеграция для продакшена",
+ "revoke": "Отозвать ключ",
+ "lastUsed": "Последнее использование: {{date}}",
+ "neverUsed": "Не использовался",
+ "keyCreatedTitle": "API-ключ создан",
+ "keyCreatedDescription": "Скопируйте ключ сейчас — увидеть его снова будет невозможно.",
"revokeConfirm": {
- "title": "Revoke this key?",
- "description": "{{name}} will stop working immediately. Any integration using it will start failing."
+ "title": "Отозвать этот ключ?",
+ "description": "{{name}} сразу перестанет работать. Все интеграции, использующие этот ключ, начнут выдавать ошибки."
},
"scopes": {
"notes": {
- "title": "Notes",
- "read": "Read notes",
- "write": "Write notes"
+ "title": "Заметки",
+ "read": "Чтение заметок",
+ "write": "Запись заметок"
},
"folders": {
- "title": "Folders",
- "read": "Read folders",
- "write": "Write folders"
+ "title": "Папки",
+ "read": "Чтение папок",
+ "write": "Запись папок"
},
"transcriptions": {
- "title": "Transcriptions",
- "read": "Read transcriptions"
+ "title": "Транскрипции",
+ "read": "Чтение транскрипций"
},
"members": {
- "title": "Members",
- "read": "Read members",
- "write": "Manage members"
+ "title": "Участники",
+ "read": "Чтение участников",
+ "write": "Управление участниками"
},
"billing": {
- "title": "Billing",
- "read": "Read billing"
+ "title": "Оплата",
+ "read": "Чтение данных об оплате"
},
"full": {
- "title": "Full access",
- "admin": "Workspace admin"
+ "title": "Полный доступ",
+ "admin": "Администратор рабочего пространства"
}
}
- },
- "signInRequired": {
- "title": "Sign in to manage workspaces",
- "description": "Workspaces require an OpenWhispr account.",
- "signIn": "Sign in"
}
}
},
@@ -2103,6 +2110,7 @@
"newNote": "Новая заметка",
"untitled": "Без названия",
"untitledNote": "Заметка без названия",
+ "shared": "Общий доступ",
"timeNow": "Только что",
"minutesAgo": "{{count}} мин. назад",
"hoursAgo": "{{count}} ч. назад",
@@ -2396,9 +2404,7 @@
"integrations": "Интеграции",
"defaultUser": "Пользователь",
"notSignedIn": "Не авторизован",
- "chat": "Чат",
- "inviteTeammate": "Teammitglied einladen",
- "createWorkspace": "Workspace erstellen"
+ "chat": "Чат"
},
"chat": {
"newChat": "Новый чат",
@@ -2751,9 +2757,11 @@
"button": "Поделиться",
"dialog": {
"title": "Поделиться заметкой",
+ "description": "Приглашайте людей по эл. почте или поделитесь ссылкой на эту заметку.",
"searchPlaceholder": "Добавьте людей по эл. почте",
"emailLabel": "Эл. почта получателя",
"shareButton": "Поделиться",
+ "createLink": "Создать ссылку",
"copyLink": "Скопировать ссылку",
"copied": "Скопировано",
"owner": "Владелец",
@@ -2762,9 +2770,14 @@
"resend": "Отправить приглашение снова",
"revoke": "Удалить",
"invitationActions": "Действия с приглашением",
- "permissionRequired": "Изменять настройки публикации может только владелец заметки.",
+ "resendSent": "Приглашение отправлено",
+ "resendThrottled": "Приглашение недавно отправлено. Попробуйте через минуту.",
+ "syncPrompt": "При публикации копия этой заметки сохраняется в вашем облаке OpenWhispr.",
+ "syncAndShare": "Синхронизировать и поделиться",
"visibility": {
"label": "Видимость",
+ "private": "Приватная",
+ "privateOption": "Приватная — только вы",
"link": "Любой со ссылкой",
"domain": "Все в {{domain}} со ссылкой",
"invited": "Только приглашённые"
@@ -2773,8 +2786,12 @@
"invalidEmail": "Введите корректный адрес эл. почты",
"alreadyInvited": "{{email}} уже приглашён",
"inviteFailed": "Не удалось отправить приглашение. Попробуйте ещё раз.",
- "linkUnavailable": "Сгенерируйте или обновите ссылку, чтобы скопировать её",
- "loadFailed": "Couldn't load share settings"
+ "visibilityFailed": "Не удалось обновить настройки доступа. Попробуйте ещё раз.",
+ "copyFailed": "Не удалось скопировать ссылку. Попробуйте ещё раз.",
+ "revokeFailed": "Не удалось удалить приглашение. Попробуйте ещё раз.",
+ "resendFailed": "Не удалось отправить приглашение повторно. Попробуйте ещё раз.",
+ "syncFailed": "Не удалось синхронизировать заметку. Попробуйте ещё раз.",
+ "loadFailed": "Не удалось загрузить настройки доступа"
}
}
}
@@ -2882,51 +2899,57 @@
},
"workspaces": {
"switcher": {
- "personal": "Persönlich",
- "workspaces": "Workspaces",
- "empty": "Noch keine Workspaces",
- "create": "Workspace erstellen…"
+ "workspaces": "Рабочие пространства",
+ "create": "Создать рабочее пространство…"
},
"create": {
- "title": "Workspace erstellen",
- "description": "Workspaces ermöglichen Zusammenarbeit, geteilte Notizen und gemeinsame Abrechnung.",
- "nameLabel": "Workspace-Name",
+ "title": "Создать рабочее пространство",
+ "description": "Рабочие пространства позволяют работать с командой, делиться заметками и управлять оплатой в одном месте.",
+ "nameLabel": "Название рабочего пространства",
"namePlaceholder": "Acme Corp",
- "submit": "Workspace erstellen",
- "submitting": "Erstelle…",
- "errorTitle": "Workspace konnte nicht erstellt werden"
+ "submit": "Создать рабочее пространство",
+ "submitting": "Создание…",
+ "errorTitle": "Не удалось создать рабочее пространство"
},
"created": {
- "title": "Workspace erstellt",
- "description": "Sie sind nun Inhaber von {{name}}."
+ "title": "Рабочее пространство создано",
+ "description": "Теперь вы владелец {{name}}."
},
"invite": {
- "title": "Zu {{workspace}} einladen",
- "description": "Fügen Sie Teammitglieder per E-Mail hinzu. Sie erhalten einen Beitrittslink.",
- "emailLabel": "E-Mail",
- "roleLabel": "Rolle",
- "teamsLabel": "Zu Teams hinzufügen",
- "submit": "Einladung senden",
- "submitting": "Sende…",
- "sentTitle": "Einladung gesendet",
- "sentDescription": "Einladung an {{email}} gesendet.",
- "errorTitle": "Einladung konnte nicht gesendet werden",
+ "title": "Пригласить в {{workspace}}",
+ "description": "Добавьте коллег по эл. почте. Они получат ссылку для присоединения.",
+ "emailLabel": "Эл. почта",
+ "emailPlaceholder": "[email protected]",
+ "roleLabel": "Роль",
+ "seatUsage": "Занято {{used}} из {{seats}} мест",
+ "seatLimit": "Все {{seats}} мест заняты.",
+ "manageSeats": "Управлять местами",
+ "submit": "Отправить приглашение",
+ "submitting": "Отправка…",
+ "sentTitle": "Приглашение отправлено",
+ "sentDescription": "Мы отправили приглашение на {{email}}.",
+ "errorTitle": "Не удалось отправить приглашение",
"role": {
- "admin": "Administrator",
- "member": "Mitglied"
+ "admin": "Администратор",
+ "member": "Участник"
+ },
+ "roleDescription": {
+ "admin": "Управляет участниками и оплатой",
+ "member": "Пользуется рабочим пространством"
}
},
"accept": {
- "title": "Workspace beitreten",
- "description": "{{inviter}} hat Sie eingeladen, {{workspace}} als {{role}} beizutreten.",
- "loading": "Lade Einladung…",
- "accept": "Einladung annehmen",
- "accepting": "Annehmen…",
- "signInToAccept": "Anmelden zum Annehmen",
- "successTitle": "Beigetreten",
- "successDescription": "Willkommen bei {{name}}.",
- "errorTitle": "Einladung konnte nicht angenommen werden",
- "sentTo": "Invitation sent to {{email}}"
+ "title": "Присоединиться к рабочему пространству",
+ "description": "{{inviter}} приглашает вас в {{workspace}} с ролью «{{role}}».",
+ "loading": "Загрузка приглашения…",
+ "accept": "Принять приглашение",
+ "accepting": "Принятие…",
+ "signInToAccept": "Войдите, чтобы принять",
+ "successTitle": "Вы в команде",
+ "successDescription": "Вы участник {{name}}. Управляйте им в разделе Настройки → Рабочее пространство.",
+ "errorTitle": "Не удалось принять приглашение",
+ "sentTo": "Приглашение отправлено на {{email}}",
+ "wrongAccount": "Это приглашение было отправлено на {{email}}. Вы вошли как {{current}}."
}
}
}
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index c04c0644f..1cd7115f3 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -1053,8 +1053,8 @@
"label": "系统"
},
"workspace": {
- "label": "Espacio de trabajo",
- "description": "Miembros, equipos, facturación y claves API"
+ "description": "成员、账单和 API 密钥",
+ "label": "工作区"
}
},
"title": "设置"
@@ -1749,152 +1749,157 @@
"apiKeyOptional": "API Key(可选)"
},
"workspace": {
- "title": "Espacio de trabajo",
- "description": "Colabora con compañeros, comparte notas y administra la facturación en un solo lugar.",
+ "title": "工作区",
+ "description": "在一处与同事协作、共享笔记并管理账单。",
"empty": {
- "title": "Crea tu primer espacio de trabajo",
- "description": "Los espacios de trabajo te permiten colaborar con compañeros y compartir notas.",
- "create": "Crear espacio de trabajo"
+ "title": "创建你的第一个工作区",
+ "description": "工作区让你与同事协作并共享笔记。",
+ "create": "创建工作区"
+ },
+ "loadError": {
+ "title": "无法加载工作区",
+ "description": "请检查网络连接后重试。",
+ "retry": "重试"
},
"tab": {
- "general": "General",
- "members": "Miembros",
- "teams": "Equipos",
- "billing": "Facturación",
- "developer": "Desarrollador"
+ "general": "常规",
+ "members": "成员",
+ "billing": "账单",
+ "developer": "开发者"
},
"role": {
- "owner": "Propietario",
- "admin": "Administrador",
- "member": "Miembro"
+ "owner": "所有者",
+ "admin": "管理员",
+ "member": "成员"
},
"general": {
- "nameLabel": "Nombre del espacio de trabajo",
+ "nameLabel": "工作区名称",
"slugLabel": "Slug",
- "slugHint": "Se usa en URLs y enlaces de invitación. Solo letras minúsculas, dígitos y guiones.",
- "saved": "Espacio de trabajo actualizado",
- "dangerTitle": "Eliminar espacio de trabajo",
- "dangerDescription": "Todas las notas, carpetas e integraciones compartidas se eliminarán. Esto no se puede deshacer.",
- "delete": "Eliminar espacio de trabajo",
- "confirmTitle": "¿Eliminar {{name}}?",
- "confirmDescription": "Esto cancela la suscripción y elimina todos los datos del espacio de trabajo permanentemente."
+ "slugHint": "用于 URL 和邀请链接。仅限小写字母、数字和连字符。",
+ "slugInvalid": "仅限小写字母、数字和连字符。",
+ "saved": "工作区已更新",
+ "dangerTitle": "删除工作区",
+ "dangerDescription": "所有共享笔记、文件夹和集成都将被删除。此操作无法撤销。",
+ "delete": "删除工作区",
+ "confirmTitle": "删除 {{name}}?",
+ "confirmDescription": "这将取消订阅并永久删除工作区的所有数据。",
+ "deleting": "删除中…",
+ "deleted": "工作区已删除",
+ "leaveTitle": "退出工作区",
+ "leaveDescription": "你将失去对此工作区及其共享笔记的访问权限。",
+ "leave": "退出工作区",
+ "leaving": "退出中…",
+ "leaveConfirm": {
+ "title": "退出 {{name}}?",
+ "description": "你将立即失去访问权限。管理员可以重新邀请你。"
+ },
+ "left": "你已退出 {{name}}"
},
"members": {
- "title": "Miembros",
- "description": "{{count}} de {{seats}} asientos utilizados.",
- "invite": "Invitar",
- "empty": "Aún no hay miembros.",
- "roleUpdated": "Rol actualizado",
- "promote": "Hacer administrador",
- "demote": "Hacer miembro",
- "transferOwnership": "Transferir propiedad",
- "remove": "Quitar del espacio de trabajo",
+ "title": "成员",
+ "description": "已使用 {{count}}/{{seats}} 个席位。",
+ "invite": "邀请",
+ "empty": "暂无成员。",
+ "roleUpdated": "角色已更新",
+ "promote": "设为管理员",
+ "demote": "设为成员",
+ "transferOwnership": "转让所有权",
+ "remove": "从工作区移除",
"removeConfirm": {
- "title": "Remove this member?",
- "description": "{{name}} will lose access to {{workspace}} immediately."
+ "title": "移除此成员?",
+ "description": "{{name}} 将立即失去对 {{workspace}} 的访问权限。"
+ },
+ "transferConfirm": {
+ "title": "转让所有权?",
+ "description": "{{name}} 将成为 {{workspace}} 的所有者。你的角色将变为管理员,只有新所有者才能转回所有权。"
}
},
"invites": {
- "title": "Invitaciones pendientes",
- "resend": "Reenviar",
- "revoke": "Revocar",
- "resent": "Invitación reenviada",
- "revokeFailed": "Could not revoke invitation",
+ "title": "待处理的邀请",
+ "expiresIn_one": "{{count}} 天后过期",
+ "expiresIn_other": "{{count}} 天后过期",
+ "expired": "已过期",
+ "resend": "重新发送",
+ "resending": "重新发送中…",
+ "revoke": "撤销",
+ "resent": "邀请已重新发送",
+ "revokeFailed": "无法撤销邀请",
"revokeConfirm": {
- "title": "Revoke this invitation?",
- "description": "The invitation link for {{email}} will stop working."
- }
- },
- "teams": {
- "title": "Equipos",
- "description": "Agrupa miembros para compartir con alcance limitado.",
- "new": "Nuevo equipo",
- "empty": "Aún no hay equipos.",
- "createFirst": "Crea tu primer equipo",
- "createTitle": "Crear equipo",
- "nameLabel": "Nombre del equipo",
- "descriptionLabel": "Descripción",
- "memberCount": "{{count}} miembros",
- "deleteConfirm": {
- "title": "Delete this team?",
- "description": "{{name}} will be removed. Shared notes stay with the workspace."
+ "title": "撤销此邀请?",
+ "description": "发送给 {{email}} 的邀请链接将失效。"
}
},
"billing": {
- "title": "Facturación",
- "description": "Plan, asientos y pago.",
- "plan": "Plan",
- "seats": "Asientos",
- "nextInvoice": "Próxima factura",
- "manageStripe": "Administrar en Stripe",
- "startSubscription": "Iniciar suscripción",
+ "title": "账单",
+ "description": "套餐、席位和付款。",
+ "plan": "套餐",
+ "seats": "席位",
+ "nextInvoice": "下一张账单",
+ "manageStripe": "在 Stripe 中管理",
+ "opening": "正在打开...",
+ "startSubscription": "开始订阅",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "Free"
+ "free": "免费版"
},
"status": {
- "active": "Active",
- "trialing": "Trialing",
- "past_due": "Past due",
- "canceled": "Canceled",
- "incomplete": "Incomplete",
- "unpaid": "Unpaid"
+ "active": "生效中",
+ "trialing": "试用中",
+ "past_due": "逾期未付",
+ "canceled": "已取消",
+ "incomplete": "未完成",
+ "unpaid": "未支付"
}
},
"developer": {
- "title": "Claves API",
- "description": "Acceso programático limitado a este espacio de trabajo.",
- "empty": "Aún no hay claves API. Crea una para integrarte con este espacio de trabajo.",
- "new": "Nueva clave",
- "create": "Crear clave",
- "createTitle": "Crear clave API",
- "createDescription": "Elige los permisos que necesita esta clave. Puedes revocarla en cualquier momento.",
- "nameLabel": "Nombre de la clave",
- "namePlaceholder": "Integración de producción",
- "revoke": "Revocar clave",
- "lastUsed": "Último uso {{date}}",
- "neverUsed": "Nunca utilizada",
- "keyCreatedTitle": "Clave API creada",
- "keyCreatedDescription": "Copia esta clave ahora — no podrás verla de nuevo.",
+ "title": "API 密钥",
+ "description": "仅限此工作区的编程访问。",
+ "empty": "暂无 API 密钥。创建一个即可与此工作区集成。",
+ "new": "新建密钥",
+ "create": "创建密钥",
+ "createTitle": "创建 API 密钥",
+ "createDescription": "选择此密钥所需的权限。你可以随时撤销。",
+ "nameLabel": "密钥名称",
+ "namePlaceholder": "生产环境集成",
+ "revoke": "撤销密钥",
+ "lastUsed": "上次使用于 {{date}}",
+ "neverUsed": "从未使用",
+ "keyCreatedTitle": "API 密钥已创建",
+ "keyCreatedDescription": "请立即复制此密钥——之后将无法再次查看。",
"revokeConfirm": {
- "title": "Revoke this key?",
- "description": "{{name}} will stop working immediately. Any integration using it will start failing."
+ "title": "撤销此密钥?",
+ "description": "{{name}} 将立即失效。使用它的所有集成都将开始报错。"
},
"scopes": {
"notes": {
- "title": "Notes",
- "read": "Read notes",
- "write": "Write notes"
+ "title": "笔记",
+ "read": "读取笔记",
+ "write": "写入笔记"
},
"folders": {
- "title": "Folders",
- "read": "Read folders",
- "write": "Write folders"
+ "title": "文件夹",
+ "read": "读取文件夹",
+ "write": "写入文件夹"
},
"transcriptions": {
- "title": "Transcriptions",
- "read": "Read transcriptions"
+ "title": "转录",
+ "read": "读取转录"
},
"members": {
- "title": "Members",
- "read": "Read members",
- "write": "Manage members"
+ "title": "成员",
+ "read": "读取成员",
+ "write": "管理成员"
},
"billing": {
- "title": "Billing",
- "read": "Read billing"
+ "title": "账单",
+ "read": "读取账单"
},
"full": {
- "title": "Full access",
- "admin": "Workspace admin"
+ "title": "完全访问",
+ "admin": "工作区管理员"
}
}
- },
- "signInRequired": {
- "title": "Sign in to manage workspaces",
- "description": "Workspaces require an OpenWhispr account.",
- "signIn": "Sign in"
}
}
},
@@ -2098,6 +2103,7 @@
"newNote": "新建笔记",
"untitled": "无标题",
"untitledNote": "无标题笔记",
+ "shared": "已分享",
"timeNow": "刚刚",
"minutesAgo": "{{count}} 分钟前",
"hoursAgo": "{{count}} 小时前",
@@ -2387,9 +2393,7 @@
"integrations": "集成",
"defaultUser": "用户",
"notSignedIn": "未登录",
- "chat": "聊天",
- "inviteTeammate": "Invitar compañero",
- "createWorkspace": "Crear espacio de trabajo"
+ "chat": "聊天"
},
"chat": {
"newChat": "新对话",
@@ -2742,9 +2746,11 @@
"button": "分享",
"dialog": {
"title": "分享笔记",
+ "description": "通过电子邮件邀请他人,或分享此笔记的链接。",
"searchPlaceholder": "通过电子邮件添加成员",
"emailLabel": "收件人邮箱",
"shareButton": "分享",
+ "createLink": "创建链接",
"copyLink": "复制链接",
"copied": "已复制",
"owner": "所有者",
@@ -2753,9 +2759,14 @@
"resend": "重新发送邀请",
"revoke": "移除",
"invitationActions": "邀请操作",
- "permissionRequired": "只有笔记的所有者可以更改分享设置。",
+ "resendSent": "邀请已发送",
+ "resendThrottled": "邀请刚刚发送过,请一分钟后再试。",
+ "syncPrompt": "分享会在你的 OpenWhispr 云端保留此笔记的副本。",
+ "syncAndShare": "同步并分享",
"visibility": {
"label": "可见性",
+ "private": "私密",
+ "privateOption": "私密 — 仅自己",
"link": "拥有链接的任何人",
"domain": "{{domain}} 内拥有链接的所有人",
"invited": "仅受邀者"
@@ -2764,8 +2775,12 @@
"invalidEmail": "请输入有效的电子邮件地址",
"alreadyInvited": "{{email}} 已经被邀请",
"inviteFailed": "无法发送邀请。请重试。",
- "linkUnavailable": "生成或更换链接后即可复制",
- "loadFailed": "Couldn't load share settings"
+ "visibilityFailed": "无法更新分享设置。请重试。",
+ "copyFailed": "无法复制链接。请重试。",
+ "revokeFailed": "无法移除邀请。请重试。",
+ "resendFailed": "无法重新发送邀请。请重试。",
+ "syncFailed": "无法同步此笔记。请重试。",
+ "loadFailed": "无法加载分享设置"
}
}
}
@@ -2873,51 +2888,57 @@
},
"workspaces": {
"switcher": {
- "personal": "Personal",
- "workspaces": "Espacios de trabajo",
- "empty": "Aún no hay espacios de trabajo",
- "create": "Crear espacio de trabajo…"
+ "workspaces": "工作区",
+ "create": "创建工作区…"
},
"create": {
- "title": "Crear espacio de trabajo",
- "description": "Los espacios de trabajo te permiten colaborar, compartir notas y administrar la facturación.",
- "nameLabel": "Nombre del espacio de trabajo",
+ "title": "创建工作区",
+ "description": "工作区让你在一处协作、共享笔记并管理账单。",
+ "nameLabel": "工作区名称",
"namePlaceholder": "Acme Corp",
- "submit": "Crear espacio de trabajo",
- "submitting": "Creando…",
- "errorTitle": "No se pudo crear el espacio de trabajo"
+ "submit": "创建工作区",
+ "submitting": "创建中…",
+ "errorTitle": "无法创建工作区"
},
"created": {
- "title": "Espacio de trabajo creado",
- "description": "Ahora eres el propietario de {{name}}."
+ "title": "工作区已创建",
+ "description": "你现在是 {{name}} 的所有者。"
},
"invite": {
- "title": "Invitar a {{workspace}}",
- "description": "Agrega compañeros por correo. Recibirán un enlace para unirse.",
- "emailLabel": "Correo electrónico",
- "roleLabel": "Rol",
- "teamsLabel": "Agregar a equipos",
- "submit": "Enviar invitación",
- "submitting": "Enviando…",
- "sentTitle": "Invitación enviada",
- "sentDescription": "Enviamos una invitación a {{email}}.",
- "errorTitle": "No se pudo enviar la invitación",
+ "title": "邀请加入 {{workspace}}",
+ "description": "通过电子邮件添加同事。他们将收到加入链接。",
+ "emailLabel": "电子邮件",
+ "emailPlaceholder": "[email protected]",
+ "roleLabel": "角色",
+ "seatUsage": "已使用 {{used}}/{{seats}} 个席位",
+ "seatLimit": "全部 {{seats}} 个席位均已使用。",
+ "manageSeats": "管理席位",
+ "submit": "发送邀请",
+ "submitting": "发送中…",
+ "sentTitle": "邀请已发送",
+ "sentDescription": "我们已向 {{email}} 发送邀请。",
+ "errorTitle": "无法发送邀请",
"role": {
- "admin": "Administrador",
- "member": "Miembro"
+ "admin": "管理员",
+ "member": "成员"
+ },
+ "roleDescription": {
+ "admin": "管理成员和账单",
+ "member": "使用工作区"
}
},
"accept": {
- "title": "Unirse al espacio de trabajo",
- "description": "{{inviter}} te invitó a unirte a {{workspace}} como {{role}}.",
- "loading": "Cargando invitación…",
- "accept": "Aceptar invitación",
- "accepting": "Aceptando…",
- "signInToAccept": "Inicia sesión para aceptar",
- "successTitle": "Te uniste",
- "successDescription": "Bienvenido a {{name}}.",
- "errorTitle": "No se pudo aceptar la invitación",
- "sentTo": "Invitation sent to {{email}}"
+ "title": "加入工作区",
+ "description": "{{inviter}} 邀请你以{{role}}身份加入 {{workspace}}。",
+ "loading": "正在加载邀请…",
+ "accept": "接受邀请",
+ "accepting": "接受中…",
+ "signInToAccept": "登录以接受",
+ "successTitle": "你已加入",
+ "successDescription": "你已成为 {{name}} 的成员。可在设置 → 工作区中管理。",
+ "errorTitle": "无法接受邀请",
+ "sentTo": "邀请已发送至 {{email}}",
+ "wrongAccount": "此邀请发送给了 {{email}},而你当前登录的是 {{current}}。"
}
}
}
diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.json
index aa03a6f6e..d4a01205b 100644
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@ -149,16 +149,16 @@
"tap": "點按",
"close": "關閉",
"dismiss": "忽略",
- "save": "Guardar",
- "saving": "Guardando…",
- "create": "Crear",
- "delete": "Eliminar",
- "actions": "Acciones",
- "error": "Algo salió mal",
- "unknownError": "Ocurrió un error desconocido",
- "copy": "Copiar",
- "copied": "Copiado",
- "done": "Listo",
+ "save": "儲存",
+ "saving": "儲存中…",
+ "create": "建立",
+ "delete": "刪除",
+ "actions": "操作",
+ "error": "發生錯誤",
+ "unknownError": "發生未知錯誤",
+ "copy": "複製",
+ "copied": "已複製",
+ "done": "完成",
"skip": "略過"
},
"onboarding": {
@@ -1053,8 +1053,8 @@
"label": "系統"
},
"workspace": {
- "label": "Espacio de trabajo",
- "description": "Miembros, equipos, facturación y claves API"
+ "description": "成員、帳單與 API 金鑰",
+ "label": "工作區"
}
},
"title": "設定"
@@ -1749,152 +1749,157 @@
"apiKeyOptional": "API Key(選填)"
},
"workspace": {
- "title": "Espacio de trabajo",
- "description": "Colabora con compañeros, comparte notas y administra la facturación en un solo lugar.",
+ "title": "工作區",
+ "description": "與團隊成員協作、分享筆記,並在同一處管理帳單。",
"empty": {
- "title": "Crea tu primer espacio de trabajo",
- "description": "Los espacios de trabajo te permiten colaborar con compañeros y compartir notas.",
- "create": "Crear espacio de trabajo"
+ "title": "建立你的第一個工作區",
+ "description": "工作區讓你與團隊成員協作並分享筆記。",
+ "create": "建立工作區"
+ },
+ "loadError": {
+ "title": "無法載入工作區",
+ "description": "請檢查網路連線後再試一次。",
+ "retry": "重試"
},
"tab": {
- "general": "General",
- "members": "Miembros",
- "teams": "Equipos",
- "billing": "Facturación",
- "developer": "Desarrollador"
+ "general": "一般",
+ "members": "成員",
+ "billing": "帳單",
+ "developer": "開發者"
},
"role": {
- "owner": "Propietario",
- "admin": "Administrador",
- "member": "Miembro"
+ "owner": "擁有者",
+ "admin": "管理員",
+ "member": "成員"
},
"general": {
- "nameLabel": "Nombre del espacio de trabajo",
+ "nameLabel": "工作區名稱",
"slugLabel": "Slug",
- "slugHint": "Se usa en URLs y enlaces de invitación. Solo letras minúsculas, dígitos y guiones.",
- "saved": "Espacio de trabajo actualizado",
- "dangerTitle": "Eliminar espacio de trabajo",
- "dangerDescription": "Todas las notas, carpetas e integraciones compartidas se eliminarán. Esto no se puede deshacer.",
- "delete": "Eliminar espacio de trabajo",
- "confirmTitle": "¿Eliminar {{name}}?",
- "confirmDescription": "Esto cancela la suscripción y elimina todos los datos del espacio de trabajo permanentemente."
+ "slugHint": "用於網址與邀請連結。僅限小寫字母、數字與連字號。",
+ "slugInvalid": "僅限小寫字母、數字與連字號。",
+ "saved": "工作區已更新",
+ "dangerTitle": "刪除工作區",
+ "dangerDescription": "所有共享的筆記、資料夾與整合都會被刪除。此操作無法復原。",
+ "delete": "刪除工作區",
+ "confirmTitle": "要刪除 {{name}} 嗎?",
+ "confirmDescription": "這會取消訂閱並永久移除所有工作區資料。",
+ "deleting": "刪除中…",
+ "deleted": "工作區已刪除",
+ "leaveTitle": "離開工作區",
+ "leaveDescription": "你將失去此工作區及其共享筆記的存取權。",
+ "leave": "離開工作區",
+ "leaving": "離開中…",
+ "leaveConfirm": {
+ "title": "要離開 {{name}} 嗎?",
+ "description": "你將立即失去存取權。管理員可以再次邀請你加入。"
+ },
+ "left": "你已離開 {{name}}"
},
"members": {
- "title": "Miembros",
- "description": "{{count}} de {{seats}} asientos utilizados.",
- "invite": "Invitar",
- "empty": "Aún no hay miembros.",
- "roleUpdated": "Rol actualizado",
- "promote": "Hacer administrador",
- "demote": "Hacer miembro",
- "transferOwnership": "Transferir propiedad",
- "remove": "Quitar del espacio de trabajo",
+ "title": "成員",
+ "description": "已使用 {{count}} / {{seats}} 個席次。",
+ "invite": "邀請",
+ "empty": "尚無成員。",
+ "roleUpdated": "角色已更新",
+ "promote": "設為管理員",
+ "demote": "設為成員",
+ "transferOwnership": "轉移擁有權",
+ "remove": "從工作區移除",
"removeConfirm": {
- "title": "Remove this member?",
- "description": "{{name}} will lose access to {{workspace}} immediately."
+ "title": "要移除這位成員嗎?",
+ "description": "{{name}} 將立即失去 {{workspace}} 的存取權。"
+ },
+ "transferConfirm": {
+ "title": "要轉移擁有權嗎?",
+ "description": "{{name}} 將成為 {{workspace}} 的擁有者。你的角色會變更為管理員,且只有新擁有者能將擁有權轉回。"
}
},
"invites": {
- "title": "Invitaciones pendientes",
- "resend": "Reenviar",
- "revoke": "Revocar",
- "resent": "Invitación reenviada",
- "revokeFailed": "Could not revoke invitation",
+ "title": "待處理的邀請",
+ "expiresIn_one": "{{count}} 天後到期",
+ "expiresIn_other": "{{count}} 天後到期",
+ "expired": "已到期",
+ "resend": "重新傳送",
+ "resending": "重新傳送中…",
+ "revoke": "撤銷",
+ "resent": "邀請已重新傳送",
+ "revokeFailed": "無法撤銷邀請",
"revokeConfirm": {
- "title": "Revoke this invitation?",
- "description": "The invitation link for {{email}} will stop working."
- }
- },
- "teams": {
- "title": "Equipos",
- "description": "Agrupa miembros para compartir con alcance limitado.",
- "new": "Nuevo equipo",
- "empty": "Aún no hay equipos.",
- "createFirst": "Crea tu primer equipo",
- "createTitle": "Crear equipo",
- "nameLabel": "Nombre del equipo",
- "descriptionLabel": "Descripción",
- "memberCount": "{{count}} miembros",
- "deleteConfirm": {
- "title": "Delete this team?",
- "description": "{{name}} will be removed. Shared notes stay with the workspace."
+ "title": "要撤銷此邀請嗎?",
+ "description": "{{email}} 的邀請連結將會失效。"
}
},
"billing": {
- "title": "Facturación",
- "description": "Plan, asientos y pago.",
- "plan": "Plan",
- "seats": "Asientos",
- "nextInvoice": "Próxima factura",
- "manageStripe": "Administrar en Stripe",
- "startSubscription": "Iniciar suscripción",
+ "title": "帳單",
+ "description": "方案、席次與付款。",
+ "plan": "方案",
+ "seats": "席次",
+ "nextInvoice": "下期帳單",
+ "manageStripe": "在 Stripe 中管理",
+ "opening": "開啟中…",
+ "startSubscription": "開始訂閱",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "Free"
+ "free": "免費"
},
"status": {
- "active": "Active",
- "trialing": "Trialing",
- "past_due": "Past due",
- "canceled": "Canceled",
- "incomplete": "Incomplete",
- "unpaid": "Unpaid"
+ "active": "使用中",
+ "trialing": "試用中",
+ "past_due": "逾期未付",
+ "canceled": "已取消",
+ "incomplete": "未完成",
+ "unpaid": "未付款"
}
},
"developer": {
- "title": "Claves API",
- "description": "Acceso programático limitado a este espacio de trabajo.",
- "empty": "Aún no hay claves API. Crea una para integrarte con este espacio de trabajo.",
- "new": "Nueva clave",
- "create": "Crear clave",
- "createTitle": "Crear clave API",
- "createDescription": "Elige los permisos que necesita esta clave. Puedes revocarla en cualquier momento.",
- "nameLabel": "Nombre de la clave",
- "namePlaceholder": "Integración de producción",
- "revoke": "Revocar clave",
- "lastUsed": "Último uso {{date}}",
- "neverUsed": "Nunca utilizada",
- "keyCreatedTitle": "Clave API creada",
- "keyCreatedDescription": "Copia esta clave ahora — no podrás verla de nuevo.",
+ "title": "API 金鑰",
+ "description": "範圍限於此工作區的程式化存取。",
+ "empty": "尚無 API 金鑰。建立一個以整合此工作區。",
+ "new": "新增金鑰",
+ "create": "建立金鑰",
+ "createTitle": "建立 API 金鑰",
+ "createDescription": "選擇此金鑰所需的權限。你隨時可以撤銷它。",
+ "nameLabel": "金鑰名稱",
+ "namePlaceholder": "正式環境整合",
+ "revoke": "撤銷金鑰",
+ "lastUsed": "上次使用於 {{date}}",
+ "neverUsed": "從未使用",
+ "keyCreatedTitle": "API 金鑰已建立",
+ "keyCreatedDescription": "請立即複製此金鑰 — 之後將無法再次檢視。",
"revokeConfirm": {
- "title": "Revoke this key?",
- "description": "{{name}} will stop working immediately. Any integration using it will start failing."
+ "title": "要撤銷此金鑰嗎?",
+ "description": "{{name}} 將立即失效。所有使用它的整合都會開始失敗。"
},
"scopes": {
"notes": {
- "title": "Notes",
- "read": "Read notes",
- "write": "Write notes"
+ "title": "筆記",
+ "read": "讀取筆記",
+ "write": "寫入筆記"
},
"folders": {
- "title": "Folders",
- "read": "Read folders",
- "write": "Write folders"
+ "title": "資料夾",
+ "read": "讀取資料夾",
+ "write": "寫入資料夾"
},
"transcriptions": {
- "title": "Transcriptions",
- "read": "Read transcriptions"
+ "title": "轉錄",
+ "read": "讀取轉錄"
},
"members": {
- "title": "Members",
- "read": "Read members",
- "write": "Manage members"
+ "title": "成員",
+ "read": "讀取成員",
+ "write": "管理成員"
},
"billing": {
- "title": "Billing",
- "read": "Read billing"
+ "title": "帳單",
+ "read": "讀取帳單"
},
"full": {
- "title": "Full access",
- "admin": "Workspace admin"
+ "title": "完整存取",
+ "admin": "工作區管理員"
}
}
- },
- "signInRequired": {
- "title": "Sign in to manage workspaces",
- "description": "Workspaces require an OpenWhispr account.",
- "signIn": "Sign in"
}
}
},
@@ -2098,6 +2103,7 @@
"newNote": "新增筆記",
"untitled": "未命名",
"untitledNote": "未命名筆記",
+ "shared": "已分享",
"timeNow": "剛剛",
"minutesAgo": "{{count}} 分鐘前",
"hoursAgo": "{{count}} 小時前",
@@ -2387,9 +2393,7 @@
"integrations": "整合",
"defaultUser": "使用者",
"notSignedIn": "尚未登入",
- "chat": "聊天",
- "inviteTeammate": "Invitar compañero",
- "createWorkspace": "Crear espacio de trabajo"
+ "chat": "聊天"
},
"chat": {
"newChat": "新對話",
@@ -2742,9 +2746,11 @@
"button": "分享",
"dialog": {
"title": "分享筆記",
+ "description": "透過電子郵件邀請成員,或分享此筆記的連結。",
"searchPlaceholder": "透過電子郵件新增成員",
"emailLabel": "收件人電子郵件",
"shareButton": "分享",
+ "createLink": "建立連結",
"copyLink": "複製連結",
"copied": "已複製",
"owner": "擁有者",
@@ -2753,9 +2759,14 @@
"resend": "重新傳送邀請",
"revoke": "移除",
"invitationActions": "邀請操作",
- "permissionRequired": "只有筆記的擁有者可以變更分享設定。",
+ "resendSent": "邀請已傳送",
+ "resendThrottled": "邀請剛剛已傳送,請一分鐘後再試。",
+ "syncPrompt": "分享後,這則筆記會在你的 OpenWhispr 雲端保留一份副本。",
+ "syncAndShare": "同步並分享",
"visibility": {
"label": "可見性",
+ "private": "私人",
+ "privateOption": "私人 — 只有你",
"link": "任何擁有連結的人",
"domain": "{{domain}} 中擁有連結的所有人",
"invited": "僅限受邀者"
@@ -2764,8 +2775,12 @@
"invalidEmail": "請輸入有效的電子郵件地址",
"alreadyInvited": "{{email}} 已被邀請",
"inviteFailed": "無法傳送邀請。請再試一次。",
- "linkUnavailable": "產生或更換連結後即可複製",
- "loadFailed": "Couldn't load share settings"
+ "visibilityFailed": "無法更新分享設定。請再試一次。",
+ "copyFailed": "無法複製連結。請再試一次。",
+ "revokeFailed": "無法移除邀請。請再試一次。",
+ "resendFailed": "無法重新傳送邀請。請再試一次。",
+ "syncFailed": "無法同步此筆記。請再試一次。",
+ "loadFailed": "無法載入分享設定"
}
}
}
@@ -2873,51 +2888,57 @@
},
"workspaces": {
"switcher": {
- "personal": "Personal",
- "workspaces": "Espacios de trabajo",
- "empty": "Aún no hay espacios de trabajo",
- "create": "Crear espacio de trabajo…"
+ "workspaces": "工作區",
+ "create": "建立工作區…"
},
"create": {
- "title": "Crear espacio de trabajo",
- "description": "Los espacios de trabajo te permiten colaborar, compartir notas y administrar la facturación.",
- "nameLabel": "Nombre del espacio de trabajo",
+ "title": "建立工作區",
+ "description": "工作區讓你在同一處協作、分享筆記並管理帳單。",
+ "nameLabel": "工作區名稱",
"namePlaceholder": "Acme Corp",
- "submit": "Crear espacio de trabajo",
- "submitting": "Creando…",
- "errorTitle": "No se pudo crear el espacio de trabajo"
+ "submit": "建立工作區",
+ "submitting": "建立中…",
+ "errorTitle": "無法建立工作區"
},
"created": {
- "title": "Espacio de trabajo creado",
- "description": "Ahora eres el propietario de {{name}}."
+ "title": "工作區已建立",
+ "description": "你現在是 {{name}} 的擁有者。"
},
"invite": {
- "title": "Invitar a {{workspace}}",
- "description": "Agrega compañeros por correo. Recibirán un enlace para unirse.",
- "emailLabel": "Correo electrónico",
- "roleLabel": "Rol",
- "teamsLabel": "Agregar a equipos",
- "submit": "Enviar invitación",
- "submitting": "Enviando…",
- "sentTitle": "Invitación enviada",
- "sentDescription": "Enviamos una invitación a {{email}}.",
- "errorTitle": "No se pudo enviar la invitación",
+ "title": "邀請加入 {{workspace}}",
+ "description": "透過電子郵件新增團隊成員,他們會收到加入連結。",
+ "emailLabel": "電子郵件",
+ "emailPlaceholder": "[email protected]",
+ "roleLabel": "角色",
+ "seatUsage": "已使用 {{used}} / {{seats}} 個席次",
+ "seatLimit": "{{seats}} 個席次已全數使用。",
+ "manageSeats": "管理席次",
+ "submit": "傳送邀請",
+ "submitting": "傳送中…",
+ "sentTitle": "邀請已傳送",
+ "sentDescription": "我們已將邀請傳送至 {{email}}。",
+ "errorTitle": "無法傳送邀請",
"role": {
- "admin": "Administrador",
- "member": "Miembro"
+ "admin": "管理員",
+ "member": "成員"
+ },
+ "roleDescription": {
+ "admin": "管理成員與帳單",
+ "member": "使用工作區"
}
},
"accept": {
- "title": "Unirse al espacio de trabajo",
- "description": "{{inviter}} te invitó a unirte a {{workspace}} como {{role}}.",
- "loading": "Cargando invitación…",
- "accept": "Aceptar invitación",
- "accepting": "Aceptando…",
- "signInToAccept": "Inicia sesión para aceptar",
- "successTitle": "Te uniste",
- "successDescription": "Bienvenido a {{name}}.",
- "errorTitle": "No se pudo aceptar la invitación",
- "sentTo": "Invitation sent to {{email}}"
+ "title": "加入工作區",
+ "description": "{{inviter}} 邀請你以 {{role}} 的身分加入 {{workspace}}。",
+ "loading": "正在載入邀請…",
+ "accept": "接受邀請",
+ "accepting": "接受中…",
+ "signInToAccept": "登入以接受",
+ "successTitle": "你已加入",
+ "successDescription": "你已成為 {{name}} 的成員。可前往「設定 → 工作區」進行管理。",
+ "errorTitle": "無法接受邀請",
+ "sentTo": "邀請已傳送至 {{email}}",
+ "wrongAccount": "此邀請是傳送給 {{email}} 的。你目前以 {{current}} 的身分登入。"
}
}
}
diff --git a/src/services/InvitationsService.ts b/src/services/InvitationsService.ts
index 165ea7e94..166f8a5eb 100644
--- a/src/services/InvitationsService.ts
+++ b/src/services/InvitationsService.ts
@@ -1,10 +1,6 @@
-import { cloudGet, cloudPost, cloudDelete } from "./cloudApi.js";
+import { cloudGet, cloudGetPublic, cloudPost, cloudDelete, type DataWrap } from "./cloudApi.js";
import type { WorkspaceInvitation, InvitationPreview } from "../types/electron";
-interface DataWrap<T> {
- data: T;
-}
-
async function list(workspaceId: string): Promise<WorkspaceInvitation[]> {
const res = await cloudGet<DataWrap<WorkspaceInvitation[]>>(
`/api/workspaces/${workspaceId}/invitations`
@@ -14,7 +10,7 @@ async function list(workspaceId: string): Promise<WorkspaceInvitation[]> {
async function send(
workspaceId: string,
- input: { email: string; role?: "admin" | "member"; team_ids?: string[] }
+ input: { email: string; role?: "admin" | "member" }
): Promise<WorkspaceInvitation> {
const res = await cloudPost<DataWrap<WorkspaceInvitation>>(
`/api/workspaces/${workspaceId}/invitations`,
@@ -32,7 +28,7 @@ async function resend(workspaceId: string, invitationId: string): Promise<void>
}
async function preview(token: string): Promise<InvitationPreview> {
- const res = await cloudGet<DataWrap<InvitationPreview>>(
+ const res = await cloudGetPublic<DataWrap<InvitationPreview>>(
`/api/invitations/${encodeURIComponent(token)}`
);
return res.data;
diff --git a/src/services/SyncService.ts b/src/services/SyncService.ts
index 62867cb57..3f0fa7d3e 100644
--- a/src/services/SyncService.ts
+++ b/src/services/SyncService.ts
@@ -59,6 +59,15 @@ class SyncService {
);
}
+ // Sharing a note is per-note consent: shared notes keep syncing even when
+ // the global cloud-backup toggle is off, as long as the account can sync.
+ private canSyncSharedNotes(): boolean {
+ return (
+ localStorage.getItem("isSignedIn") === "true" &&
+ localStorage.getItem("isSubscribed") === "true"
+ );
+ }
+
// lastSyncedAt is written only when a syncAll() pass completes, and
// localStorage is shared across windows, so it doubles as the global
// "last completed sync" stamp for throttling.
@@ -92,7 +101,21 @@ class SyncService {
}
async syncAll(waitForLock = false): Promise<void> {
- if (!this.canSync()) return;
+ if (!this.canSync()) {
+ // Backup is off, but shared-note deletes must still reach the cloud so
+ // revoked notes stop being served (edits flow through debouncedPush).
+ if (this.canSyncSharedNotes() && !this.syncing) {
+ this.syncing = true;
+ try {
+ await this.pushNoteDeletes(true);
+ } catch (err) {
+ console.error("Shared note sync failed:", err);
+ } finally {
+ this.syncing = false;
+ }
+ }
+ return;
+ }
// A pass already running may have synced past the data this request covers,
// so flag a re-run instead of dropping it.
if (this.syncing) {
@@ -134,7 +157,7 @@ class SyncService {
}
requestSyncAll(reason: "start" | "focus" | "interval" | "online" | "manual"): void {
- if (!this.canSync()) return;
+ if (!this.canSync() && !this.canSyncSharedNotes()) return;
if (
reason !== "manual" &&
(this.syncing || Date.now() - this.lastCompletedSyncAt() < AUTO_SYNC_THROTTLE_MS)
@@ -185,7 +208,7 @@ class SyncService {
}
debouncedPush(entityType: string, entityId: number): void {
- if (!this.canSync()) return;
+ if (!this.canSync() && !(entityType === "note" && this.canSyncSharedNotes())) return;
const key = `${entityType}:${entityId}`;
const existing = this.pushTimers.get(key);
if (existing) clearTimeout(existing);
@@ -199,7 +222,13 @@ class SyncService {
}
private async pushEntity(entityType: string, entityId: number): Promise<void> {
- if (!this.canSync()) return;
+ if (!this.canSync()) {
+ // Only shared notes may push without the global backup toggle.
+ if (entityType !== "note" || !this.canSyncSharedNotes()) return;
+ const note = await window.electronAPI.getNote?.(entityId);
+ if (!note?.is_shared) return;
+ return this.pushNote(entityId);
+ }
switch (entityType) {
case "folder":
return this.pushFolder(entityId);
@@ -282,6 +311,18 @@ class SyncService {
}
}
+ // Sharing requires a cloud copy. Deliberate single-note push that does not
+ // depend on the global backup toggle; returns the note's cloud id.
+ async ensureNoteSynced(localId: number): Promise<string | null> {
+ const note = await window.electronAPI.getNote?.(localId);
+ if (!note) return null;
+ if (note.cloud_id) return note.cloud_id;
+ if (!this.canSyncSharedNotes()) return null;
+ await this.pushNote(localId);
+ const synced = await window.electronAPI.getNote?.(localId);
+ return synced?.cloud_id ?? null;
+ }
+
private async pushConversation(id: number): Promise<void> {
const full = await window.electronAPI.getAgentConversation?.(id);
if (!full) return;
@@ -538,9 +579,10 @@ class SyncService {
}
}
- private async pushNoteDeletes(): Promise<void> {
+ private async pushNoteDeletes(sharedOnly = false): Promise<void> {
const deletes = (await window.electronAPI.getPendingNoteDeletes?.()) ?? [];
for (const note of deletes) {
+ if (sharedOnly && !note.is_shared) continue;
try {
await NotesService.delete(note.cloud_id!);
await window.electronAPI.hardDeleteNote?.(note.id);
diff --git a/src/services/TeamsService.ts b/src/services/TeamsService.ts
deleted file mode 100644
index db0f3ef5f..000000000
--- a/src/services/TeamsService.ts
+++ /dev/null
@@ -1,58 +0,0 @@
-import { cloudGet, cloudPost, cloudPatch, cloudDelete } from "./cloudApi.js";
-import type { Team, TeamMember } from "../types/electron";
-
-interface DataWrap<T> {
- data: T;
-}
-
-async function list(workspaceId: string): Promise<Team[]> {
- const res = await cloudGet<DataWrap<Team[]>>(`/api/workspaces/${workspaceId}/teams`);
- return res.data;
-}
-
-async function create(
- workspaceId: string,
- input: { name: string; description?: string }
-): Promise<Team> {
- const res = await cloudPost<DataWrap<Team>>(`/api/workspaces/${workspaceId}/teams`, input);
- return res.data;
-}
-
-async function update(
- teamId: string,
- patch: { name?: string; description?: string }
-): Promise<Team> {
- const res = await cloudPatch<DataWrap<Team>>(`/api/teams/${teamId}`, patch);
- return res.data;
-}
-
-async function remove(teamId: string): Promise<void> {
- await cloudDelete(`/api/teams/${teamId}`);
-}
-
-async function listMembers(teamId: string): Promise<TeamMember[]> {
- const res = await cloudGet<DataWrap<TeamMember[]>>(`/api/teams/${teamId}/members`);
- return res.data;
-}
-
-async function addMember(
- teamId: string,
- userId: string,
- role: "admin" | "member" = "member"
-): Promise<void> {
- await cloudPost(`/api/teams/${teamId}/members`, { user_id: userId, role });
-}
-
-async function removeMember(teamId: string, userId: string): Promise<void> {
- await cloudDelete(`/api/teams/${teamId}/members/${userId}`);
-}
-
-export const TeamsService = {
- list,
- create,
- update,
- remove,
- listMembers,
- addMember,
- removeMember,
-};
diff --git a/src/services/WorkspacesService.ts b/src/services/WorkspacesService.ts
index cd8be8fca..22bbe6076 100644
--- a/src/services/WorkspacesService.ts
+++ b/src/services/WorkspacesService.ts
@@ -1,10 +1,6 @@
-import { cloudGet, cloudPost, cloudPatch, cloudDelete } from "./cloudApi.js";
+import { cloudGet, cloudPost, cloudPatch, cloudDelete, type DataWrap } from "./cloudApi.js";
import type { Workspace, WorkspaceMember } from "../types/electron";
-interface DataWrap<T> {
- data: T;
-}
-
async function list(): Promise<Workspace[]> {
const res = await cloudGet<DataWrap<Workspace[]>>("/api/workspaces");
return res.data;
@@ -15,11 +11,6 @@ async function create(name: string): Promise<Workspace> {
return res.data;
}
-async function get(workspaceId: string): Promise<Workspace> {
- const res = await cloudGet<DataWrap<Workspace>>(`/api/workspaces/${workspaceId}`);
- return res.data;
-}
-
async function update(
workspaceId: string,
patch: { name?: string; slug?: string }
@@ -82,7 +73,6 @@ async function previewSeats(
export const WorkspacesService = {
list,
create,
- get,
update,
remove,
listMembers,
diff --git a/src/stores/noteStore.ts b/src/stores/noteStore.ts
index 23df641a6..b9affe97f 100644
--- a/src/stores/noteStore.ts
+++ b/src/stores/noteStore.ts
@@ -1,4 +1,5 @@
import { create } from "zustand";
+import { syncService } from "../services/SyncService.js";
import type { NoteItem, NoteShareInvitation, ShareSettings } from "../types/electron";
export interface NoteShareCacheEntry {
@@ -52,6 +53,11 @@ function ensureIpcListeners() {
const dispose = window.electronAPI.onNoteUpdated((note) => {
if (note) {
updateNoteInStore(note);
+ // Sharing is per-note consent: edits to a shared note must reach the
+ // cloud even when the global backup toggle is off.
+ if (note.is_shared) {
+ syncService.debouncedPush("note", note.id);
+ }
}
});
if (typeof dispose === "function") {
@@ -205,11 +211,15 @@ export async function startMigration(): Promise<void> {
useNoteStore.setState({ migration: null });
}
-export function setShareCache(cloudId: string, entry: NoteShareCacheEntry): void {
- const { shareByCloudId } = useNoteStore.getState();
- const next = new Map(shareByCloudId);
- next.set(cloudId, entry);
- useNoteStore.setState({ shareByCloudId: next });
+export async function persistNoteShareState(
+ noteId: number,
+ updates: { is_shared: number; share_token?: string | null }
+): Promise<void> {
+ await window.electronAPI?.updateNote(noteId, updates);
+}
+
+export function getShareCacheEntry(cloudId: string): NoteShareCacheEntry | null {
+ return useNoteStore.getState().shareByCloudId.get(cloudId) ?? null;
}
export function updateShareCache(
@@ -222,14 +232,6 @@ export function updateShareCache(
useNoteStore.setState({ shareByCloudId: next });
}
-export function clearShareCache(cloudId: string): void {
- const { shareByCloudId } = useNoteStore.getState();
- if (!shareByCloudId.has(cloudId)) return;
- const next = new Map(shareByCloudId);
- next.delete(cloudId);
- useNoteStore.setState({ shareByCloudId: next });
-}
-
export function useShareCacheEntry(cloudId: string | null): NoteShareCacheEntry | null {
return useNoteStore((state) => (cloudId ? (state.shareByCloudId.get(cloudId) ?? null) : null));
}
diff --git a/src/stores/workspaceStore.ts b/src/stores/workspaceStore.ts
index 88aab6639..2b3e15335 100644
--- a/src/stores/workspaceStore.ts
+++ b/src/stores/workspaceStore.ts
@@ -1,23 +1,20 @@
import { create } from "zustand";
-import type { Workspace, WorkspaceMember, Team } from "../types/electron";
+import type { Workspace, WorkspaceMember } from "../types/electron";
import { WorkspacesService } from "../services/WorkspacesService";
-import { TeamsService } from "../services/TeamsService";
import logger from "../utils/logger";
interface WorkspaceState {
workspaces: Workspace[];
loaded: boolean;
loading: boolean;
+ error: boolean;
activeWorkspaceId: string | null;
members: WorkspaceMember[];
- teams: Team[];
setActiveWorkspaceId: (id: string | null) => void;
refresh: () => Promise<void>;
createWorkspace: (name: string) => Promise<Workspace>;
refreshMembers: (workspaceId: string) => Promise<void>;
- refreshTeams: (workspaceId: string) => Promise<void>;
- current: () => Workspace | null;
}
const ACTIVE_WORKSPACE_KEY = "activeWorkspaceId";
@@ -33,37 +30,50 @@ function writeActiveWorkspaceId(id: string | null): void {
else localStorage.removeItem(ACTIVE_WORKSPACE_KEY);
}
+let refreshPromise: Promise<void> | null = null;
+let membersRequestSeq = 0;
+
export const useWorkspaceStore = create<WorkspaceState>((set, get) => ({
workspaces: [],
loaded: false,
loading: false,
+ error: false,
activeWorkspaceId: readActiveWorkspaceId(),
members: [],
- teams: [],
setActiveWorkspaceId: (id) => {
writeActiveWorkspaceId(id);
- set({ activeWorkspaceId: id, members: [], teams: [] });
+ set({ activeWorkspaceId: id, members: [] });
},
- refresh: async () => {
- if (get().loading) return;
+ refresh: () => {
+ if (refreshPromise) return refreshPromise;
set({ loading: true });
- try {
- const workspaces = await WorkspacesService.list();
- const activeId = get().activeWorkspaceId;
- const stillValid = activeId && workspaces.some((w) => w.id === activeId);
- set({
- workspaces,
- loaded: true,
- loading: false,
- activeWorkspaceId: stillValid ? activeId : null,
- });
- if (!stillValid && activeId) writeActiveWorkspaceId(null);
- } catch (error) {
- logger.error("Failed to load workspaces", { error: (error as Error).message }, "workspaces");
- set({ loading: false, loaded: true });
- }
+ refreshPromise = (async () => {
+ try {
+ const workspaces = await WorkspacesService.list();
+ const activeId = get().activeWorkspaceId;
+ const stillValid = activeId && workspaces.some((w) => w.id === activeId);
+ set({
+ workspaces,
+ loaded: true,
+ loading: false,
+ error: false,
+ activeWorkspaceId: stillValid ? activeId : null,
+ });
+ if (!stillValid && activeId) writeActiveWorkspaceId(null);
+ } catch (error) {
+ logger.error(
+ "Failed to load workspaces",
+ { error: (error as Error).message },
+ "workspaces"
+ );
+ set({ loading: false, loaded: true, error: true });
+ } finally {
+ refreshPromise = null;
+ }
+ })();
+ return refreshPromise;
},
createWorkspace: async (name) => {
@@ -73,8 +83,11 @@ export const useWorkspaceStore = create<WorkspaceState>((set, get) => ({
},
refreshMembers: async (workspaceId) => {
+ const seq = ++membersRequestSeq;
try {
const members = await WorkspacesService.listMembers(workspaceId);
+ // Discard stale responses when a newer request targets another workspace.
+ if (seq !== membersRequestSeq) return;
set({ members });
} catch (error) {
logger.error(
@@ -84,23 +97,4 @@ export const useWorkspaceStore = create<WorkspaceState>((set, get) => ({
);
}
},
-
- refreshTeams: async (workspaceId) => {
- try {
- const teams = await TeamsService.list(workspaceId);
- set({ teams });
- } catch (error) {
- logger.error(
- "Failed to load workspace teams",
- { error: (error as Error).message },
- "workspaces"
- );
- }
- },
-
- current: () => {
- const { activeWorkspaceId, workspaces } = get();
- if (!activeWorkspaceId) return null;
- return workspaces.find((w) => w.id === activeWorkspaceId) ?? null;
- },
}));
diff --git a/src/types/electron.ts b/src/types/electron.ts
index 63b4323c1..47c5bcedf 100644
--- a/src/types/electron.ts
+++ b/src/types/electron.ts
@@ -127,7 +127,6 @@ export interface SnippetEntryItem {
}
export type WorkspaceRole = "owner" | "admin" | "member";
-export type TeamRole = "admin" | "member";
export interface Workspace {
id: string;
@@ -156,30 +155,10 @@ export interface WorkspaceMember {
image: string | null;
}
-export interface Team {
- id: string;
- workspace_id: string;
- name: string;
- slug: string;
- description: string | null;
- created_at: string;
- updated_at: string;
- member_count?: number;
-}
-
-export interface TeamMember {
- user_id: string;
- role: TeamRole;
- joined_at: string;
- email: string;
- name: string | null;
- image: string | null;
-}
-
export interface WorkspaceInvitation {
id: string;
email: string;
- workspace_role: TeamRole;
+ workspace_role: WorkspaceRole;
team_ids: string[];
invited_by_user_id: string;
expires_at: string;
@@ -191,7 +170,7 @@ export interface WorkspaceInvitation {
export interface InvitationPreview {
id: string;
email: string;
- workspace_role: TeamRole;
+ workspace_role: WorkspaceRole;
team_ids: string[];
expires_at: string;
workspace_id: string;
@@ -626,6 +605,8 @@ declare global {
participants?: string | null;
diarization_enabled?: number | null;
expected_speaker_count?: number | null;
+ is_shared?: number;
+ share_token?: string | null;
}
) => Promise<{ success: boolean; note?: NoteItem }>;
deleteNote: (id: number) => Promise<{ success: boolean }>;