Skip to content

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

fix: quality cleanup

Chadpihaa5bad8c2e510
diff --git a/src/components/SettingsPage.tsx b/src/components/SettingsPage.tsx
index 95e5856d9..cb5f748f6 100644
--- a/src/components/SettingsPage.tsx
+++ b/src/components/SettingsPage.tsx
@@ -105,9 +105,7 @@ import { useWorkspaceStore } from "../stores/workspaceStore";
import { canManageSystemAudioInApp } from "../utils/systemAudioAccess";
import WorkspaceSection from "./settings/WorkspaceSection";
import WorkspaceBillingOverview from "./settings/WorkspaceBillingOverview";
-
-const formatAmount = (cents: number, currency: string) =>
- (cents / 100).toLocaleString(undefined, { style: "currency", currency });
+import { formatAmount } from "../utils/formatAmount";
export type SettingsSectionType =
| "account"
@@ -1734,7 +1732,7 @@ export default function SettingsPage({
case "plansBilling":
return (
- <div className="flex flex-col gap-5">
+ <div className="space-y-5">
{!AUTH_URL ? (
<>
<SectionHeader
@@ -1754,12 +1752,237 @@ export default function SettingsPage({
</>
) : isLoaded ? (
<>
- {isSignedIn && (
- <div className="order-1">
- <WorkspaceBillingOverview onRefreshEntitlement={usage?.refetch} />
+ {isSignedIn && <WorkspaceBillingOverview onRefreshEntitlement={usage?.refetch} />}
+ {isSignedIn ? (
+ <div className="space-y-5">
+ <SectionHeader title={t("settingsPage.unifiedBilling.personalPlanTitle")} />
+ {!usage || !usage.hasLoaded ? (
+ <SettingsPanel>
+ <SettingsPanelRow>
+ <div className="flex items-center justify-between">
+ <Skeleton className="h-4 w-24" />
+ <Skeleton className="h-5 w-16 rounded-full" />
+ </div>
+ </SettingsPanelRow>
+ <SettingsPanelRow>
+ <div className="space-y-2">
+ <Skeleton className="h-3 w-48" />
+ <Skeleton className="h-8 w-full rounded" />
+ </div>
+ </SettingsPanelRow>
+ </SettingsPanel>
+ ) : (
+ <SettingsPanel>
+ {usage.isPastDue && (
+ <SettingsPanelRow>
+ <Alert
+ variant="warning"
+ className="dark:bg-amber-950/50 dark:border-amber-800 dark:text-amber-200 dark:[&>svg]:text-amber-400"
+ >
+ <AlertTriangle className="h-4 w-4" />
+ <AlertTitle>{t("settingsPage.account.pastDue.title")}</AlertTitle>
+ <AlertDescription>
+ {t("settingsPage.account.pastDue.description")}
+ </AlertDescription>
+ </Alert>
+ </SettingsPanelRow>
+ )}
+
+ <SettingsPanelRow>
+ <SettingsRow
+ label={
+ usage.isTrial
+ ? t("settingsPage.account.planLabels.trial")
+ : usage.isPastDue
+ ? t("settingsPage.account.planLabels.free")
+ : usage.isPersonallySubscribed
+ ? usage.plan === "business"
+ ? t("settingsPage.account.planLabels.business")
+ : t("settingsPage.account.planLabels.pro")
+ : t("settingsPage.account.planLabels.free")
+ }
+ description={
+ usage.isTrial
+ ? t("settingsPage.account.planDescriptions.trial", {
+ days: usage.trialDaysLeft,
+ })
+ : usage.isPastDue
+ ? t("settingsPage.account.planDescriptions.pastDue", {
+ used: usage.wordsUsed.toLocaleString(i18n.language),
+ limit: usage.limit.toLocaleString(i18n.language),
+ })
+ : usage.isPersonallySubscribed
+ ? usage.currentPeriodEnd
+ ? t("settingsPage.account.planDescriptions.nextBilling", {
+ date: new Date(usage.currentPeriodEnd).toLocaleDateString(
+ i18n.language,
+ { month: "short", day: "numeric", year: "numeric" }
+ ),
+ })
+ : t("settingsPage.account.planDescriptions.unlimited")
+ : coveringWorkspaceNames.length > 0
+ ? t("settingsPage.unifiedBilling.providedBy", {
+ workspaces: coveringWorkspaceNames.join(", "),
+ })
+ : t("settingsPage.account.planDescriptions.freeUsage", {
+ used: usage.wordsUsed.toLocaleString(i18n.language),
+ limit: usage.limit.toLocaleString(i18n.language),
+ })
+ }
+ >
+ {usage.isTrial ? (
+ <Badge variant="info">{t("settingsPage.account.badges.trial")}</Badge>
+ ) : usage.isPastDue ? (
+ <Badge variant="destructive">
+ {t("settingsPage.account.badges.pastDue")}
+ </Badge>
+ ) : usage.isPersonallySubscribed ? (
+ <Badge variant="success">
+ {usage.plan === "business"
+ ? t("settingsPage.account.badges.business")
+ : t("settingsPage.account.badges.pro")}
+ </Badge>
+ ) : usage.isOverLimit ? (
+ <Badge variant="warning">
+ {t("settingsPage.account.badges.limitReached")}
+ </Badge>
+ ) : (
+ <Badge variant="outline">
+ {t("settingsPage.account.badges.free")}
+ </Badge>
+ )}
+ </SettingsRow>
+ </SettingsPanelRow>
+
+ {!usage.isSubscribed && !usage.isTrial && (
+ <SettingsPanelRow>
+ <div className="space-y-1.5">
+ <Progress
+ value={
+ usage.limit > 0
+ ? Math.min(100, (usage.wordsUsed / usage.limit) * 100)
+ : 0
+ }
+ className={cn(
+ "h-1.5",
+ usage.isOverLimit
+ ? "[&>div]:bg-destructive"
+ : usage.isApproachingLimit
+ ? "[&>div]:bg-warning"
+ : "[&>div]:bg-primary"
+ )}
+ />
+ <div className="flex items-center justify-between text-xs text-muted-foreground">
+ <span className="tabular-nums">
+ {usage.wordsUsed.toLocaleString(i18n.language)} /{" "}
+ {usage.limit.toLocaleString(i18n.language)}
+ </span>
+ {usage.isApproachingLimit && (
+ <span className="text-warning">
+ {t("settingsPage.account.wordsRemaining", {
+ remaining: usage.wordsRemaining.toLocaleString(i18n.language),
+ })}
+ </span>
+ )}
+ {!usage.isApproachingLimit && !usage.isOverLimit && (
+ <span>{t("settingsPage.account.rollingWeeklyLimit")}</span>
+ )}
+ </div>
+ </div>
+ </SettingsPanelRow>
+ )}
+
+ <SettingsPanelRow>
+ {usage.isPastDue ? (
+ <Button
+ onClick={async () => {
+ setIsOpeningBilling(true);
+ try {
+ const result = await usage.openBillingPortal();
+ if (!result.success) {
+ toast({
+ title: t("settingsPage.account.billing.couldNotOpenTitle"),
+ description: t(
+ "settingsPage.account.billing.couldNotOpenDescription"
+ ),
+ variant: "destructive",
+ });
+ }
+ } finally {
+ setIsOpeningBilling(false);
+ }
+ }}
+ disabled={isOpeningBilling}
+ size="sm"
+ className="w-full"
+ >
+ {isOpeningBilling ? (
+ <>
+ <Loader2 size={14} className="animate-spin" />
+ {t("settingsPage.account.billing.opening")}
+ </>
+ ) : (
+ t("settingsPage.account.billing.updatePaymentMethod")
+ )}
+ </Button>
+ ) : usage.isPersonallySubscribed && !usage.isTrial ? (
+ <Button
+ onClick={async () => {
+ const result = await usage.openBillingPortal();
+ if (!result.success) {
+ toast({
+ title: t("settingsPage.account.billing.couldNotOpenTitle"),
+ description: t(
+ "settingsPage.account.billing.couldNotOpenDescription"
+ ),
+ variant: "destructive",
+ });
+ }
+ }}
+ variant="outline"
+ size="sm"
+ className="w-full"
+ disabled={usage.checkoutLoading}
+ >
+ {usage.checkoutLoading
+ ? t("settingsPage.account.billing.opening")
+ : t("settingsPage.account.billing.manageBilling")}
+ </Button>
+ ) : (
+ <Button
+ onClick={async () => {
+ setCheckoutTier("plan-upgrade");
+ const result = await usage.openCheckout({
+ plan: billingState.pro ? "annual" : "monthly",
+ tier: "pro",
+ });
+ setCheckoutTier(null);
+ if (!result.success) {
+ toast({
+ title: t("settingsPage.account.checkout.couldNotOpenTitle"),
+ description: t(
+ "settingsPage.account.checkout.couldNotOpenDescription"
+ ),
+ variant: "destructive",
+ });
+ }
+ }}
+ size="sm"
+ className="w-full"
+ disabled={checkoutTier === "plan-upgrade"}
+ >
+ {checkoutTier === "plan-upgrade"
+ ? t("settingsPage.account.checkout.opening")
+ : t("settingsPage.account.checkout.upgradeToPro")}
+ </Button>
+ )}
+ </SettingsPanelRow>
+ </SettingsPanel>
+ )}
</div>
- )}
- <div className="order-3 space-y-5">
+ ) : null}
+
+ <div className="space-y-5">
<SectionHeader title={t("settingsPage.account.pricing.title")} />
<div className={`grid gap-1.5 ${isCompact ? "grid-cols-2" : "grid-cols-4"}`}>
{/* Free */}
@@ -2140,235 +2363,6 @@ export default function SettingsPage({
</DialogContent>
</Dialog>
</div>
-
- {isSignedIn ? (
- <div className="order-2 space-y-5">
- <SectionHeader title={t("settingsPage.unifiedBilling.personalPlanTitle")} />
- {!usage || !usage.hasLoaded ? (
- <SettingsPanel>
- <SettingsPanelRow>
- <div className="flex items-center justify-between">
- <Skeleton className="h-4 w-24" />
- <Skeleton className="h-5 w-16 rounded-full" />
- </div>
- </SettingsPanelRow>
- <SettingsPanelRow>
- <div className="space-y-2">
- <Skeleton className="h-3 w-48" />
- <Skeleton className="h-8 w-full rounded" />
- </div>
- </SettingsPanelRow>
- </SettingsPanel>
- ) : (
- <SettingsPanel>
- {usage.isPastDue && (
- <SettingsPanelRow>
- <Alert
- variant="warning"
- className="dark:bg-amber-950/50 dark:border-amber-800 dark:text-amber-200 dark:[&>svg]:text-amber-400"
- >
- <AlertTriangle className="h-4 w-4" />
- <AlertTitle>{t("settingsPage.account.pastDue.title")}</AlertTitle>
- <AlertDescription>
- {t("settingsPage.account.pastDue.description")}
- </AlertDescription>
- </Alert>
- </SettingsPanelRow>
- )}
-
- <SettingsPanelRow>
- <SettingsRow
- label={
- usage.isTrial
- ? t("settingsPage.account.planLabels.trial")
- : usage.isPastDue
- ? t("settingsPage.account.planLabels.free")
- : usage.isPersonallySubscribed
- ? usage.plan === "business"
- ? t("settingsPage.account.planLabels.business")
- : t("settingsPage.account.planLabels.pro")
- : t("settingsPage.account.planLabels.free")
- }
- description={
- usage.isTrial
- ? t("settingsPage.account.planDescriptions.trial", {
- days: usage.trialDaysLeft,
- })
- : usage.isPastDue
- ? t("settingsPage.account.planDescriptions.pastDue", {
- used: usage.wordsUsed.toLocaleString(i18n.language),
- limit: usage.limit.toLocaleString(i18n.language),
- })
- : usage.isPersonallySubscribed
- ? usage.currentPeriodEnd
- ? t("settingsPage.account.planDescriptions.nextBilling", {
- date: new Date(usage.currentPeriodEnd).toLocaleDateString(
- i18n.language,
- { month: "short", day: "numeric", year: "numeric" }
- ),
- })
- : t("settingsPage.account.planDescriptions.unlimited")
- : coveringWorkspaceNames.length > 0
- ? t("settingsPage.unifiedBilling.providedBy", {
- workspaces: coveringWorkspaceNames.join(", "),
- })
- : t("settingsPage.account.planDescriptions.freeUsage", {
- used: usage.wordsUsed.toLocaleString(i18n.language),
- limit: usage.limit.toLocaleString(i18n.language),
- })
- }
- >
- {usage.isTrial ? (
- <Badge variant="info">{t("settingsPage.account.badges.trial")}</Badge>
- ) : usage.isPastDue ? (
- <Badge variant="destructive">
- {t("settingsPage.account.badges.pastDue")}
- </Badge>
- ) : usage.isPersonallySubscribed ? (
- <Badge variant="success">
- {usage.plan === "business"
- ? t("settingsPage.account.badges.business")
- : t("settingsPage.account.badges.pro")}
- </Badge>
- ) : usage.isOverLimit ? (
- <Badge variant="warning">
- {t("settingsPage.account.badges.limitReached")}
- </Badge>
- ) : (
- <Badge variant="outline">
- {t("settingsPage.account.badges.free")}
- </Badge>
- )}
- </SettingsRow>
- </SettingsPanelRow>
-
- {!usage.isSubscribed && !usage.isTrial && (
- <SettingsPanelRow>
- <div className="space-y-1.5">
- <Progress
- value={
- usage.limit > 0
- ? Math.min(100, (usage.wordsUsed / usage.limit) * 100)
- : 0
- }
- className={cn(
- "h-1.5",
- usage.isOverLimit
- ? "[&>div]:bg-destructive"
- : usage.isApproachingLimit
- ? "[&>div]:bg-warning"
- : "[&>div]:bg-primary"
- )}
- />
- <div className="flex items-center justify-between text-xs text-muted-foreground">
- <span className="tabular-nums">
- {usage.wordsUsed.toLocaleString(i18n.language)} /{" "}
- {usage.limit.toLocaleString(i18n.language)}
- </span>
- {usage.isApproachingLimit && (
- <span className="text-warning">
- {t("settingsPage.account.wordsRemaining", {
- remaining: usage.wordsRemaining.toLocaleString(i18n.language),
- })}
- </span>
- )}
- {!usage.isApproachingLimit && !usage.isOverLimit && (
- <span>{t("settingsPage.account.rollingWeeklyLimit")}</span>
- )}
- </div>
- </div>
- </SettingsPanelRow>
- )}
-
- <SettingsPanelRow>
- {usage.isPastDue ? (
- <Button
- onClick={async () => {
- setIsOpeningBilling(true);
- try {
- const result = await usage.openBillingPortal();
- if (!result.success) {
- toast({
- title: t("settingsPage.account.billing.couldNotOpenTitle"),
- description: t(
- "settingsPage.account.billing.couldNotOpenDescription"
- ),
- variant: "destructive",
- });
- }
- } finally {
- setIsOpeningBilling(false);
- }
- }}
- disabled={isOpeningBilling}
- size="sm"
- className="w-full"
- >
- {isOpeningBilling ? (
- <>
- <Loader2 size={14} className="animate-spin" />
- {t("settingsPage.account.billing.opening")}
- </>
- ) : (
- t("settingsPage.account.billing.updatePaymentMethod")
- )}
- </Button>
- ) : usage.isPersonallySubscribed && !usage.isTrial ? (
- <Button
- onClick={async () => {
- const result = await usage.openBillingPortal();
- if (!result.success) {
- toast({
- title: t("settingsPage.account.billing.couldNotOpenTitle"),
- description: t(
- "settingsPage.account.billing.couldNotOpenDescription"
- ),
- variant: "destructive",
- });
- }
- }}
- variant="outline"
- size="sm"
- className="w-full"
- disabled={usage.checkoutLoading}
- >
- {usage.checkoutLoading
- ? t("settingsPage.account.billing.opening")
- : t("settingsPage.account.billing.manageBilling")}
- </Button>
- ) : (
- <Button
- onClick={async () => {
- setCheckoutTier("plan-upgrade");
- const result = await usage.openCheckout({
- plan: billingState.pro ? "annual" : "monthly",
- tier: "pro",
- });
- setCheckoutTier(null);
- if (!result.success) {
- toast({
- title: t("settingsPage.account.checkout.couldNotOpenTitle"),
- description: t(
- "settingsPage.account.checkout.couldNotOpenDescription"
- ),
- variant: "destructive",
- });
- }
- }}
- size="sm"
- className="w-full"
- disabled={checkoutTier === "plan-upgrade"}
- >
- {checkoutTier === "plan-upgrade"
- ? t("settingsPage.account.checkout.opening")
- : t("settingsPage.account.checkout.upgradeToPro")}
- </Button>
- )}
- </SettingsPanelRow>
- </SettingsPanel>
- )}
- </div>
- ) : null}
</>
) : (
<>
diff --git a/src/components/settings/WorkspaceBillingCard.tsx b/src/components/settings/WorkspaceBillingCard.tsx
index d0ae6ec52..5a4081630 100644
--- a/src/components/settings/WorkspaceBillingCard.tsx
+++ b/src/components/settings/WorkspaceBillingCard.tsx
@@ -13,6 +13,7 @@ import {
import { useToast } from "../ui/useToast";
import { WorkspacesService } from "../../services/WorkspacesService";
import { useWorkspaceStore } from "../../stores/workspaceStore";
+import { formatAmount } from "../../utils/formatAmount";
import type { Workspace } from "../../types/electron";
interface SeatPreview {
@@ -30,9 +31,6 @@ interface Props {
onRefreshEntitlement?: () => Promise<void>;
}
-const formatAmount = (cents: number, currency: string) =>
- (cents / 100).toLocaleString(undefined, { style: "currency", currency });
-
export default function WorkspaceBillingCard({
workspace,
requestedAdditionalSeats = 0,
diff --git a/src/components/settings/WorkspaceBillingOverview.tsx b/src/components/settings/WorkspaceBillingOverview.tsx
index 61e5fa8bb..d854b3535 100644
--- a/src/components/settings/WorkspaceBillingOverview.tsx
+++ b/src/components/settings/WorkspaceBillingOverview.tsx
@@ -2,24 +2,9 @@ import React, { useEffect, useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
import { useShallow } from "zustand/react/shallow";
import { useWorkspaceStore } from "../../stores/workspaceStore";
+import { clearSeatIntent, readSeatIntent, type SeatIntent } from "../../utils/billingSeatIntent";
import WorkspaceBillingCard from "./WorkspaceBillingCard";
-const SEAT_INTENT_KEY = "settings.billingSeatIntent";
-
-interface SeatIntent {
- workspaceId: string;
- additionalSeats: number;
-}
-
-function readSeatIntent(): SeatIntent | null {
- try {
- const value = localStorage.getItem(SEAT_INTENT_KEY);
- return value ? (JSON.parse(value) as SeatIntent) : null;
- } catch {
- return null;
- }
-}
-
export default function WorkspaceBillingOverview({
onRefreshEntitlement,
}: {
@@ -50,8 +35,8 @@ export default function WorkspaceBillingOverview({
});
}, [activeWorkspaceId, workspaces]);
- function clearSeatIntent() {
- localStorage.removeItem(SEAT_INTENT_KEY);
+ function consumeSeatIntent() {
+ clearSeatIntent();
setSeatIntent(null);
}
@@ -84,7 +69,7 @@ export default function WorkspaceBillingOverview({
seatIntent?.workspaceId === workspace.id ? seatIntent.additionalSeats : 0
}
onSeatIntentConsumed={
- seatIntent?.workspaceId === workspace.id ? clearSeatIntent : undefined
+ seatIntent?.workspaceId === workspace.id ? consumeSeatIntent : undefined
}
onRefreshEntitlement={onRefreshEntitlement}
/>
diff --git a/src/components/settings/WorkspaceSection.tsx b/src/components/settings/WorkspaceSection.tsx
index 171204fc3..273c2b511 100644
--- a/src/components/settings/WorkspaceSection.tsx
+++ b/src/components/settings/WorkspaceSection.tsx
@@ -23,6 +23,7 @@ import {
DropdownMenuSeparator,
} from "../ui/dropdown-menu";
import { cn } from "../lib/utils";
+import { storeSeatIntent } from "../../utils/billingSeatIntent";
import WorkspaceMembersTab from "./WorkspaceMembersTab";
import WorkspaceTeamsTab from "./WorkspaceTeamsTab";
import WorkspaceDeveloperTab from "./WorkspaceDeveloperTab";
@@ -60,10 +61,7 @@ export default function WorkspaceSection({ initialSubTab, onNavigateToBilling }:
function navigateToBilling(workspaceId: string) {
setActiveWorkspaceId(workspaceId);
- localStorage.setItem(
- "settings.billingSeatIntent",
- JSON.stringify({ workspaceId, additionalSeats: 1 })
- );
+ storeSeatIntent(workspaceId, 1);
onNavigateToBilling?.();
}
diff --git a/src/locales/de/translation.json b/src/locales/de/translation.json
index d6588720b..a441959b2 100644
--- a/src/locales/de/translation.json
+++ b/src/locales/de/translation.json
@@ -1206,7 +1206,6 @@
"general": "Allgemein",
"members": "Mitglieder",
"teams": "Team-Bereiche",
- "billing": "Abrechnung",
"developer": "Entwickler"
},
"role": {
@@ -1300,19 +1299,17 @@
}
},
"billing": {
- "title": "Abrechnung",
- "description": "Plan, Plätze und Zahlung.",
"plan": "Plan",
"seats": "Plätze",
"ownerOnly": "Nur der Workspace-Inhaber kann das Abonnement verwalten.",
"nextInvoice": "Nächste Rechnung",
"manageStripe": "In Stripe verwalten",
- "opening": "Öffne…",
"startSubscription": "Abonnement starten",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "Free"
+ "free": "Free",
+ "enterprise": "Enterprise"
},
"status": {
"active": "Aktiv",
@@ -1375,24 +1372,27 @@
}
},
"unifiedBilling": {
- "workspaceTitle": "Workspace billing",
- "workspaceDescription": "Each workspace has its own plan, seats, and billing owner.",
- "billableSeat": "Your seat is billable",
- "nonBillableSeat": "Admin-only access · no paid seat",
- "managedBy": "Billing is managed by {{owner}}.",
- "addSeat": "Add seat",
- "startWithSeats": "Start Business with {{count}} seats",
- "seatUpdated": "Workspace capacity updated to {{count}} seats",
- "seatUpdateFailed": "Couldn't update workspace seats",
- "businessWorkspaceOnly": "Available for workspaces",
- "personalPlanTitle": "Personal plan",
- "providedBy": "Personal plan: Free · Paid access provided by {{workspaces}}",
+ "workspaceTitle": "Workspace-Abrechnung",
+ "workspaceDescription": "Jeder Workspace hat seinen eigenen Plan, eigene Plätze und einen Abrechnungsinhaber.",
+ "billableSeat": "Ihr Platz wird abgerechnet",
+ "nonBillableSeat": "Nur Admin-Zugriff · kein kostenpflichtiger Platz",
+ "managedBy": "Die Abrechnung wird von {{owner}} verwaltet.",
+ "addSeat": "Platz hinzufügen",
+ "startWithSeats_one": "Business mit {{count}} Platz starten",
+ "startWithSeats_other": "Business mit {{count}} Plätzen starten",
+ "seatUpdated_one": "Workspace-Kapazität auf {{count}} Platz aktualisiert",
+ "seatUpdated_other": "Workspace-Kapazität auf {{count}} Plätze aktualisiert",
+ "seatUpdateFailed": "Workspace-Plätze konnten nicht aktualisiert werden",
+ "businessWorkspaceOnly": "Für Workspaces verfügbar",
+ "personalPlanTitle": "Persönlicher Plan",
+ "providedBy": "Persönlicher Plan: Free · Bezahlter Zugriff bereitgestellt von {{workspaces}}",
"confirmSeats": {
- "title": "Add a workspace seat?",
- "description": "Increase {{workspace}} to {{count}} seats. Stripe will prorate the change.",
- "newCapacity": "New capacity",
- "chargeToday": "Charge today",
- "confirm": "Add seat"
+ "title": "Workspace-Platz hinzufügen?",
+ "description_one": "{{workspace}} auf {{count}} Platz erweitern. Stripe berechnet die Änderung anteilig.",
+ "description_other": "{{workspace}} auf {{count}} Plätze erweitern. Stripe berechnet die Änderung anteilig.",
+ "newCapacity": "Neue Kapazität",
+ "chargeToday": "Heute fällig",
+ "confirm": "Platz hinzufügen"
}
},
"account": {
@@ -1441,7 +1441,6 @@
"business": "Business",
"trial": "Testversion"
},
- "planTitle": "Tarif",
"pricing": {
"title": "Tarife",
"billedYearly": "Jährliche Abrechnung",
diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json
index f65b904ae..ce9288bd7 100644
--- a/src/locales/en/translation.json
+++ b/src/locales/en/translation.json
@@ -1206,7 +1206,6 @@
"general": "General",
"members": "Members",
"teams": "Team spaces",
- "billing": "Billing",
"developer": "Developer"
},
"role": {
@@ -1300,19 +1299,17 @@
}
},
"billing": {
- "title": "Billing",
- "description": "Plan, seats, and payment.",
"plan": "Plan",
"seats": "Seats",
"ownerOnly": "Only the workspace owner can manage the subscription.",
"nextInvoice": "Next invoice",
"manageStripe": "Manage in Stripe",
- "opening": "Opening…",
"startSubscription": "Start subscription",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "Free"
+ "free": "Free",
+ "enterprise": "Enterprise"
},
"status": {
"active": "Active",
@@ -1381,15 +1378,18 @@
"nonBillableSeat": "Admin-only access · no paid seat",
"managedBy": "Billing is managed by {{owner}}.",
"addSeat": "Add seat",
- "startWithSeats": "Start Business with {{count}} seats",
- "seatUpdated": "Workspace capacity updated to {{count}} seats",
+ "startWithSeats_one": "Start Business with {{count}} seat",
+ "startWithSeats_other": "Start Business with {{count}} seats",
+ "seatUpdated_one": "Workspace capacity updated to {{count}} seat",
+ "seatUpdated_other": "Workspace capacity updated to {{count}} seats",
"seatUpdateFailed": "Couldn't update workspace seats",
"businessWorkspaceOnly": "Available for workspaces",
"personalPlanTitle": "Personal plan",
"providedBy": "Personal plan: Free · Paid access provided by {{workspaces}}",
"confirmSeats": {
"title": "Add a workspace seat?",
- "description": "Increase {{workspace}} to {{count}} seats. Stripe will prorate the change.",
+ "description_one": "Increase {{workspace}} to {{count}} seat. Stripe will prorate the change.",
+ "description_other": "Increase {{workspace}} to {{count}} seats. Stripe will prorate the change.",
"newCapacity": "New capacity",
"chargeToday": "Charge today",
"confirm": "Add seat"
@@ -1441,7 +1441,6 @@
"business": "Business",
"trial": "Trial"
},
- "planTitle": "Plan",
"pricing": {
"title": "Plans",
"billedYearly": "Billed yearly",
diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json
index db35fadb7..e5e214ba5 100644
--- a/src/locales/es/translation.json
+++ b/src/locales/es/translation.json
@@ -1150,24 +1150,27 @@
},
"settingsPage": {
"unifiedBilling": {
- "workspaceTitle": "Workspace billing",
- "workspaceDescription": "Each workspace has its own plan, seats, and billing owner.",
- "billableSeat": "Your seat is billable",
- "nonBillableSeat": "Admin-only access · no paid seat",
- "managedBy": "Billing is managed by {{owner}}.",
- "addSeat": "Add seat",
- "startWithSeats": "Start Business with {{count}} seats",
- "seatUpdated": "Workspace capacity updated to {{count}} seats",
- "seatUpdateFailed": "Couldn't update workspace seats",
- "businessWorkspaceOnly": "Available for workspaces",
- "personalPlanTitle": "Personal plan",
- "providedBy": "Personal plan: Free · Paid access provided by {{workspaces}}",
+ "workspaceTitle": "Facturación del espacio de trabajo",
+ "workspaceDescription": "Cada espacio de trabajo tiene su propio plan, asientos y responsable de facturación.",
+ "billableSeat": "Tu asiento es facturable",
+ "nonBillableSeat": "Acceso solo de administrador · sin asiento de pago",
+ "managedBy": "La facturación la gestiona {{owner}}.",
+ "addSeat": "Añadir asiento",
+ "startWithSeats_one": "Empezar Business con {{count}} asiento",
+ "startWithSeats_other": "Empezar Business con {{count}} asientos",
+ "seatUpdated_one": "Capacidad del espacio de trabajo actualizada a {{count}} asiento",
+ "seatUpdated_other": "Capacidad del espacio de trabajo actualizada a {{count}} asientos",
+ "seatUpdateFailed": "No se pudieron actualizar los asientos del espacio de trabajo",
+ "businessWorkspaceOnly": "Disponible para espacios de trabajo",
+ "personalPlanTitle": "Plan personal",
+ "providedBy": "Plan personal: Gratis · Acceso de pago proporcionado por {{workspaces}}",
"confirmSeats": {
- "title": "Add a workspace seat?",
- "description": "Increase {{workspace}} to {{count}} seats. Stripe will prorate the change.",
- "newCapacity": "New capacity",
- "chargeToday": "Charge today",
- "confirm": "Add seat"
+ "title": "¿Añadir un asiento al espacio de trabajo?",
+ "description_one": "Ampliar {{workspace}} a {{count}} asiento. Stripe prorrateará el cambio.",
+ "description_other": "Ampliar {{workspace}} a {{count}} asientos. Stripe prorrateará el cambio.",
+ "newCapacity": "Nueva capacidad",
+ "chargeToday": "Cargo de hoy",
+ "confirm": "Añadir asiento"
}
},
"account": {
@@ -1216,7 +1219,6 @@
"business": "Business",
"trial": "Prueba"
},
- "planTitle": "Plan",
"pricing": {
"title": "Planes",
"billedYearly": "Facturación anual",
@@ -1889,7 +1891,6 @@
"general": "General",
"members": "Miembros",
"teams": "Espacios de equipo",
- "billing": "Facturación",
"developer": "Desarrollador"
},
"role": {
@@ -1983,19 +1984,17 @@
}
},
"billing": {
- "title": "Facturación",
- "description": "Plan, asientos y pago.",
"plan": "Plan",
"seats": "Asientos",
"ownerOnly": "Solo el propietario del espacio de trabajo puede gestionar la suscripción.",
"nextInvoice": "Próxima factura",
"manageStripe": "Administrar en Stripe",
- "opening": "Abriendo…",
"startSubscription": "Iniciar suscripción",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "Gratis"
+ "free": "Gratis",
+ "enterprise": "Enterprise"
},
"status": {
"active": "Activa",
diff --git a/src/locales/fr/translation.json b/src/locales/fr/translation.json
index eedc9f702..60d296963 100644
--- a/src/locales/fr/translation.json
+++ b/src/locales/fr/translation.json
@@ -1206,7 +1206,6 @@
"general": "Général",
"members": "Membres",
"teams": "Espaces d'équipe",
- "billing": "Facturation",
"developer": "Développeur"
},
"role": {
@@ -1300,19 +1299,17 @@
}
},
"billing": {
- "title": "Facturation",
- "description": "Plan, sièges et paiement.",
"plan": "Plan",
"seats": "Sièges",
"ownerOnly": "Seul le propriétaire de l'espace de travail peut gérer l'abonnement.",
"nextInvoice": "Prochaine facture",
"manageStripe": "Gérer dans Stripe",
- "opening": "Ouverture…",
"startSubscription": "Démarrer l'abonnement",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "Gratuit"
+ "free": "Gratuit",
+ "enterprise": "Enterprise"
},
"status": {
"active": "Actif",
@@ -1375,24 +1372,27 @@
}
},
"unifiedBilling": {
- "workspaceTitle": "Workspace billing",
- "workspaceDescription": "Each workspace has its own plan, seats, and billing owner.",
- "billableSeat": "Your seat is billable",
- "nonBillableSeat": "Admin-only access · no paid seat",
- "managedBy": "Billing is managed by {{owner}}.",
- "addSeat": "Add seat",
- "startWithSeats": "Start Business with {{count}} seats",
- "seatUpdated": "Workspace capacity updated to {{count}} seats",
- "seatUpdateFailed": "Couldn't update workspace seats",
- "businessWorkspaceOnly": "Available for workspaces",
- "personalPlanTitle": "Personal plan",
- "providedBy": "Personal plan: Free · Paid access provided by {{workspaces}}",
+ "workspaceTitle": "Facturation de l'espace de travail",
+ "workspaceDescription": "Chaque espace de travail a son propre plan, ses sièges et son responsable de facturation.",
+ "billableSeat": "Votre siège est facturable",
+ "nonBillableSeat": "Accès administrateur uniquement · aucun siège payant",
+ "managedBy": "La facturation est gérée par {{owner}}.",
+ "addSeat": "Ajouter un siège",
+ "startWithSeats_one": "Démarrer Business avec {{count}} siège",
+ "startWithSeats_other": "Démarrer Business avec {{count}} sièges",
+ "seatUpdated_one": "Capacité de l'espace de travail mise à jour : {{count}} siège",
+ "seatUpdated_other": "Capacité de l'espace de travail mise à jour : {{count}} sièges",
+ "seatUpdateFailed": "Impossible de mettre à jour les sièges de l'espace de travail",
+ "businessWorkspaceOnly": "Disponible pour les espaces de travail",
+ "personalPlanTitle": "Plan personnel",
+ "providedBy": "Plan personnel : Gratuit · Accès payant fourni par {{workspaces}}",
"confirmSeats": {
- "title": "Add a workspace seat?",
- "description": "Increase {{workspace}} to {{count}} seats. Stripe will prorate the change.",
- "newCapacity": "New capacity",
- "chargeToday": "Charge today",
- "confirm": "Add seat"
+ "title": "Ajouter un siège à l'espace de travail ?",
+ "description_one": "Passer {{workspace}} à {{count}} siège. Stripe calculera le changement au prorata.",
+ "description_other": "Passer {{workspace}} à {{count}} sièges. Stripe calculera le changement au prorata.",
+ "newCapacity": "Nouvelle capacité",
+ "chargeToday": "Montant facturé aujourd'hui",
+ "confirm": "Ajouter un siège"
}
},
"account": {
@@ -1441,7 +1441,6 @@
"business": "Business",
"trial": "Essai"
},
- "planTitle": "Plan",
"pricing": {
"title": "Forfaits",
"billedYearly": "Facturation annuelle",
diff --git a/src/locales/it/translation.json b/src/locales/it/translation.json
index 231b341fa..4d75c73e1 100644
--- a/src/locales/it/translation.json
+++ b/src/locales/it/translation.json
@@ -1102,24 +1102,27 @@
},
"settingsPage": {
"unifiedBilling": {
- "workspaceTitle": "Workspace billing",
- "workspaceDescription": "Each workspace has its own plan, seats, and billing owner.",
- "billableSeat": "Your seat is billable",
- "nonBillableSeat": "Admin-only access · no paid seat",
- "managedBy": "Billing is managed by {{owner}}.",
- "addSeat": "Add seat",
- "startWithSeats": "Start Business with {{count}} seats",
- "seatUpdated": "Workspace capacity updated to {{count}} seats",
- "seatUpdateFailed": "Couldn't update workspace seats",
- "businessWorkspaceOnly": "Available for workspaces",
- "personalPlanTitle": "Personal plan",
- "providedBy": "Personal plan: Free · Paid access provided by {{workspaces}}",
+ "workspaceTitle": "Fatturazione dell'area di lavoro",
+ "workspaceDescription": "Ogni area di lavoro ha il proprio piano, i propri posti e un responsabile della fatturazione.",
+ "billableSeat": "Il tuo posto è fatturabile",
+ "nonBillableSeat": "Accesso solo amministratore · nessun posto a pagamento",
+ "managedBy": "La fatturazione è gestita da {{owner}}.",
+ "addSeat": "Aggiungi posto",
+ "startWithSeats_one": "Avvia Business con {{count}} posto",
+ "startWithSeats_other": "Avvia Business con {{count}} posti",
+ "seatUpdated_one": "Capacità dell'area di lavoro aggiornata a {{count}} posto",
+ "seatUpdated_other": "Capacità dell'area di lavoro aggiornata a {{count}} posti",
+ "seatUpdateFailed": "Impossibile aggiornare i posti dell'area di lavoro",
+ "businessWorkspaceOnly": "Disponibile per le aree di lavoro",
+ "personalPlanTitle": "Piano personale",
+ "providedBy": "Piano personale: Free · Accesso a pagamento fornito da {{workspaces}}",
"confirmSeats": {
- "title": "Add a workspace seat?",
- "description": "Increase {{workspace}} to {{count}} seats. Stripe will prorate the change.",
- "newCapacity": "New capacity",
- "chargeToday": "Charge today",
- "confirm": "Add seat"
+ "title": "Aggiungere un posto all'area di lavoro?",
+ "description_one": "Amplia {{workspace}} a {{count}} posto. Stripe calcolerà la modifica in modo proporzionale.",
+ "description_other": "Amplia {{workspace}} a {{count}} posti. Stripe calcolerà la modifica in modo proporzionale.",
+ "newCapacity": "Nuova capacità",
+ "chargeToday": "Addebito di oggi",
+ "confirm": "Aggiungi posto"
}
},
"account": {
@@ -1168,7 +1171,6 @@
"business": "Business",
"trial": "Prova"
},
- "planTitle": "Piano",
"rollingWeeklyLimit": "Limite settimanale progressivo",
"signOut": {
"failedDescription": "Qualcosa è andato storto durante la disconnessione. Riprova.",
@@ -1841,7 +1843,6 @@
"general": "Generale",
"members": "Membri",
"teams": "Spazi del team",
- "billing": "Fatturazione",
"developer": "Sviluppatore"
},
"role": {
@@ -1935,19 +1936,17 @@
}
},
"billing": {
- "title": "Fatturazione",
- "description": "Piano, posti e pagamento.",
"plan": "Piano",
"seats": "Posti",
"ownerOnly": "Solo il proprietario dell'area di lavoro può gestire l'abbonamento.",
"nextInvoice": "Prossima fattura",
"manageStripe": "Gestisci in Stripe",
- "opening": "Apertura…",
"startSubscription": "Avvia abbonamento",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "Free"
+ "free": "Free",
+ "enterprise": "Enterprise"
},
"status": {
"active": "Attivo",
diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json
index ed1241d67..d8a6ca0b6 100644
--- a/src/locales/ja/translation.json
+++ b/src/locales/ja/translation.json
@@ -1102,24 +1102,24 @@
},
"settingsPage": {
"unifiedBilling": {
- "workspaceTitle": "Workspace billing",
- "workspaceDescription": "Each workspace has its own plan, seats, and billing owner.",
- "billableSeat": "Your seat is billable",
- "nonBillableSeat": "Admin-only access · no paid seat",
- "managedBy": "Billing is managed by {{owner}}.",
- "addSeat": "Add seat",
- "startWithSeats": "Start Business with {{count}} seats",
- "seatUpdated": "Workspace capacity updated to {{count}} seats",
- "seatUpdateFailed": "Couldn't update workspace seats",
- "businessWorkspaceOnly": "Available for workspaces",
- "personalPlanTitle": "Personal plan",
- "providedBy": "Personal plan: Free · Paid access provided by {{workspaces}}",
+ "workspaceTitle": "ワークスペースの請求",
+ "workspaceDescription": "各ワークスペースには独自のプラン、シート、請求管理者があります。",
+ "billableSeat": "あなたのシートは課金対象です",
+ "nonBillableSeat": "管理者専用アクセス · 有料シートなし",
+ "managedBy": "請求は {{owner}} が管理しています。",
+ "addSeat": "シートを追加",
+ "startWithSeats": "{{count}} シートで Business を開始",
+ "seatUpdated": "ワークスペースの容量を {{count}} シートに更新しました",
+ "seatUpdateFailed": "ワークスペースのシートを更新できませんでした",
+ "businessWorkspaceOnly": "ワークスペースで利用可能",
+ "personalPlanTitle": "個人プラン",
+ "providedBy": "個人プラン: Free · 有料アクセスは {{workspaces}} から提供",
"confirmSeats": {
- "title": "Add a workspace seat?",
- "description": "Increase {{workspace}} to {{count}} seats. Stripe will prorate the change.",
- "newCapacity": "New capacity",
- "chargeToday": "Charge today",
- "confirm": "Add seat"
+ "title": "ワークスペースのシートを追加しますか?",
+ "description": "{{workspace}} を {{count}} シートに拡張します。Stripe が日割りで請求します。",
+ "newCapacity": "新しい容量",
+ "chargeToday": "本日の請求額",
+ "confirm": "シートを追加"
}
},
"account": {
@@ -1168,7 +1168,6 @@
"business": "Business",
"trial": "トライアル"
},
- "planTitle": "プラン",
"pricing": {
"title": "プラン",
"billedYearly": "年払い",
@@ -1841,7 +1840,6 @@
"general": "一般",
"members": "メンバー",
"teams": "チームスペース",
- "billing": "請求",
"developer": "開発者"
},
"role": {
@@ -1935,19 +1933,17 @@
}
},
"billing": {
- "title": "請求",
- "description": "プラン、シート、支払い。",
"plan": "プラン",
"seats": "シート",
"ownerOnly": "サブスクリプションを管理できるのはワークスペースのオーナーのみです。",
"nextInvoice": "次回の請求",
"manageStripe": "Stripe で管理",
- "opening": "開いています…",
"startSubscription": "サブスクリプションを開始",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "Free"
+ "free": "Free",
+ "enterprise": "Enterprise"
},
"status": {
"active": "有効",
diff --git a/src/locales/pt/translation.json b/src/locales/pt/translation.json
index 618abdc2a..7d38665a3 100644
--- a/src/locales/pt/translation.json
+++ b/src/locales/pt/translation.json
@@ -1081,24 +1081,27 @@
},
"settingsPage": {
"unifiedBilling": {
- "workspaceTitle": "Workspace billing",
- "workspaceDescription": "Each workspace has its own plan, seats, and billing owner.",
- "billableSeat": "Your seat is billable",
- "nonBillableSeat": "Admin-only access · no paid seat",
- "managedBy": "Billing is managed by {{owner}}.",
- "addSeat": "Add seat",
- "startWithSeats": "Start Business with {{count}} seats",
- "seatUpdated": "Workspace capacity updated to {{count}} seats",
- "seatUpdateFailed": "Couldn't update workspace seats",
- "businessWorkspaceOnly": "Available for workspaces",
- "personalPlanTitle": "Personal plan",
- "providedBy": "Personal plan: Free · Paid access provided by {{workspaces}}",
+ "workspaceTitle": "Cobrança do workspace",
+ "workspaceDescription": "Cada workspace tem seu próprio plano, assentos e responsável pela cobrança.",
+ "billableSeat": "Seu assento é faturável",
+ "nonBillableSeat": "Acesso somente de administrador · sem assento pago",
+ "managedBy": "A cobrança é gerenciada por {{owner}}.",
+ "addSeat": "Adicionar assento",
+ "startWithSeats_one": "Iniciar o Business com {{count}} assento",
+ "startWithSeats_other": "Iniciar o Business com {{count}} assentos",
+ "seatUpdated_one": "Capacidade do workspace atualizada para {{count}} assento",
+ "seatUpdated_other": "Capacidade do workspace atualizada para {{count}} assentos",
+ "seatUpdateFailed": "Não foi possível atualizar os assentos do workspace",
+ "businessWorkspaceOnly": "Disponível para workspaces",
+ "personalPlanTitle": "Plano pessoal",
+ "providedBy": "Plano pessoal: Gratuito · Acesso pago fornecido por {{workspaces}}",
"confirmSeats": {
- "title": "Add a workspace seat?",
- "description": "Increase {{workspace}} to {{count}} seats. Stripe will prorate the change.",
- "newCapacity": "New capacity",
- "chargeToday": "Charge today",
- "confirm": "Add seat"
+ "title": "Adicionar um assento ao workspace?",
+ "description_one": "Aumentar {{workspace}} para {{count}} assento. O Stripe fará o rateio da alteração.",
+ "description_other": "Aumentar {{workspace}} para {{count}} assentos. O Stripe fará o rateio da alteração.",
+ "newCapacity": "Nova capacidade",
+ "chargeToday": "Cobrança de hoje",
+ "confirm": "Adicionar assento"
}
},
"account": {
@@ -1147,7 +1150,6 @@
"business": "Business",
"trial": "Teste"
},
- "planTitle": "Plano",
"rollingWeeklyLimit": "Limite semanal contínuo",
"signOut": {
"failedDescription": "Algo deu errado ao sair. Tente novamente.",
@@ -1820,7 +1822,6 @@
"general": "Geral",
"members": "Membros",
"teams": "Espaços de equipe",
- "billing": "Cobrança",
"developer": "Desenvolvedor"
},
"role": {
@@ -1914,19 +1915,17 @@
}
},
"billing": {
- "title": "Cobrança",
- "description": "Plano, assentos e pagamento.",
"plan": "Plano",
"seats": "Assentos",
"ownerOnly": "Apenas o proprietário do espaço de trabalho pode gerenciar a assinatura.",
"nextInvoice": "Próxima fatura",
"manageStripe": "Gerenciar no Stripe",
- "opening": "Abrindo…",
"startSubscription": "Iniciar assinatura",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "Gratuito"
+ "free": "Gratuito",
+ "enterprise": "Enterprise"
},
"status": {
"active": "Ativa",
diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json
index 889b0742b..83179df0f 100644
--- a/src/locales/ru/translation.json
+++ b/src/locales/ru/translation.json
@@ -1102,24 +1102,33 @@
},
"settingsPage": {
"unifiedBilling": {
- "workspaceTitle": "Workspace billing",
- "workspaceDescription": "Each workspace has its own plan, seats, and billing owner.",
- "billableSeat": "Your seat is billable",
- "nonBillableSeat": "Admin-only access · no paid seat",
- "managedBy": "Billing is managed by {{owner}}.",
- "addSeat": "Add seat",
- "startWithSeats": "Start Business with {{count}} seats",
- "seatUpdated": "Workspace capacity updated to {{count}} seats",
- "seatUpdateFailed": "Couldn't update workspace seats",
- "businessWorkspaceOnly": "Available for workspaces",
- "personalPlanTitle": "Personal plan",
- "providedBy": "Personal plan: Free · Paid access provided by {{workspaces}}",
+ "workspaceTitle": "Оплата рабочих пространств",
+ "workspaceDescription": "У каждого рабочего пространства свой тариф, места и ответственный за оплату.",
+ "billableSeat": "Ваше место оплачивается",
+ "nonBillableSeat": "Доступ только для администратора · без платного места",
+ "managedBy": "Оплатой управляет {{owner}}.",
+ "addSeat": "Добавить место",
+ "startWithSeats_one": "Начать Business с {{count}} местом",
+ "startWithSeats_few": "Начать Business с {{count}} местами",
+ "startWithSeats_many": "Начать Business с {{count}} местами",
+ "startWithSeats_other": "Начать Business с {{count}} местами",
+ "seatUpdated_one": "Вместимость рабочего пространства обновлена до {{count}} места",
+ "seatUpdated_few": "Вместимость рабочего пространства обновлена до {{count}} мест",
+ "seatUpdated_many": "Вместимость рабочего пространства обновлена до {{count}} мест",
+ "seatUpdated_other": "Вместимость рабочего пространства обновлена до {{count}} мест",
+ "seatUpdateFailed": "Не удалось обновить места рабочего пространства",
+ "businessWorkspaceOnly": "Доступно для рабочих пространств",
+ "personalPlanTitle": "Личный тариф",
+ "providedBy": "Личный тариф: Бесплатный · Платный доступ через {{workspaces}}",
"confirmSeats": {
- "title": "Add a workspace seat?",
- "description": "Increase {{workspace}} to {{count}} seats. Stripe will prorate the change.",
- "newCapacity": "New capacity",
- "chargeToday": "Charge today",
- "confirm": "Add seat"
+ "title": "Добавить место в рабочее пространство?",
+ "description_one": "Увеличить {{workspace}} до {{count}} места. Stripe пересчитает стоимость пропорционально.",
+ "description_few": "Увеличить {{workspace}} до {{count}} мест. Stripe пересчитает стоимость пропорционально.",
+ "description_many": "Увеличить {{workspace}} до {{count}} мест. Stripe пересчитает стоимость пропорционально.",
+ "description_other": "Увеличить {{workspace}} до {{count}} мест. Stripe пересчитает стоимость пропорционально.",
+ "newCapacity": "Новая вместимость",
+ "chargeToday": "Списание сегодня",
+ "confirm": "Добавить место"
}
},
"account": {
@@ -1168,7 +1177,6 @@
"business": "Business",
"trial": "Пробный"
},
- "planTitle": "Тариф",
"rollingWeeklyLimit": "Скользящий недельный лимит",
"signOut": {
"failedDescription": "Произошла ошибка при выходе. Попробуйте ещё раз.",
@@ -1841,7 +1849,6 @@
"general": "Общие",
"members": "Участники",
"teams": "Командные пространства",
- "billing": "Оплата",
"developer": "Разработчик"
},
"role": {
@@ -1943,19 +1950,17 @@
}
},
"billing": {
- "title": "Оплата",
- "description": "Тариф, места и оплата.",
"plan": "Тариф",
"seats": "Места",
"ownerOnly": "Управлять подпиской может только владелец рабочего пространства.",
"nextInvoice": "Следующий счёт",
"manageStripe": "Управлять в Stripe",
- "opening": "Открытие…",
"startSubscription": "Оформить подписку",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "Бесплатный"
+ "free": "Бесплатный",
+ "enterprise": "Enterprise"
},
"status": {
"active": "Активна",
diff --git a/src/locales/zh-CN/translation.json b/src/locales/zh-CN/translation.json
index eaa0e8784..e5bc73aed 100644
--- a/src/locales/zh-CN/translation.json
+++ b/src/locales/zh-CN/translation.json
@@ -1102,24 +1102,24 @@
},
"settingsPage": {
"unifiedBilling": {
- "workspaceTitle": "Workspace billing",
- "workspaceDescription": "Each workspace has its own plan, seats, and billing owner.",
- "billableSeat": "Your seat is billable",
- "nonBillableSeat": "Admin-only access · no paid seat",
- "managedBy": "Billing is managed by {{owner}}.",
- "addSeat": "Add seat",
- "startWithSeats": "Start Business with {{count}} seats",
- "seatUpdated": "Workspace capacity updated to {{count}} seats",
- "seatUpdateFailed": "Couldn't update workspace seats",
- "businessWorkspaceOnly": "Available for workspaces",
- "personalPlanTitle": "Personal plan",
- "providedBy": "Personal plan: Free · Paid access provided by {{workspaces}}",
+ "workspaceTitle": "工作区账单",
+ "workspaceDescription": "每个工作区都有自己的套餐、席位和账单负责人。",
+ "billableSeat": "您的席位需计费",
+ "nonBillableSeat": "仅管理员访问 · 无付费席位",
+ "managedBy": "账单由 {{owner}} 管理。",
+ "addSeat": "添加席位",
+ "startWithSeats": "以 {{count}} 个席位开始 Business",
+ "seatUpdated": "工作区容量已更新为 {{count}} 个席位",
+ "seatUpdateFailed": "无法更新工作区席位",
+ "businessWorkspaceOnly": "适用于工作区",
+ "personalPlanTitle": "个人套餐",
+ "providedBy": "个人套餐:免费版 · 付费权限由 {{workspaces}} 提供",
"confirmSeats": {
- "title": "Add a workspace seat?",
- "description": "Increase {{workspace}} to {{count}} seats. Stripe will prorate the change.",
- "newCapacity": "New capacity",
- "chargeToday": "Charge today",
- "confirm": "Add seat"
+ "title": "要添加工作区席位吗?",
+ "description": "将 {{workspace}} 增加到 {{count}} 个席位。Stripe 将按比例计费。",
+ "newCapacity": "新容量",
+ "chargeToday": "今日收费",
+ "confirm": "添加席位"
}
},
"account": {
@@ -1168,7 +1168,6 @@
"business": "Business",
"trial": "试用"
},
- "planTitle": "套餐",
"rollingWeeklyLimit": "滚动周限额",
"signOut": {
"failedDescription": "退出登录时出错,请重试。",
@@ -1841,7 +1840,6 @@
"general": "常规",
"members": "成员",
"teams": "团队空间",
- "billing": "账单",
"developer": "开发者"
},
"role": {
@@ -1935,19 +1933,17 @@
}
},
"billing": {
- "title": "账单",
- "description": "套餐、席位和付款。",
"plan": "套餐",
"seats": "席位",
"ownerOnly": "只有工作区所有者可以管理订阅。",
"nextInvoice": "下一张账单",
"manageStripe": "在 Stripe 中管理",
- "opening": "正在打开...",
"startSubscription": "开始订阅",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "免费版"
+ "free": "免费版",
+ "enterprise": "Enterprise"
},
"status": {
"active": "生效中",
diff --git a/src/locales/zh-TW/translation.json b/src/locales/zh-TW/translation.json
index 518b86aad..bb818ebce 100644
--- a/src/locales/zh-TW/translation.json
+++ b/src/locales/zh-TW/translation.json
@@ -1102,24 +1102,24 @@
},
"settingsPage": {
"unifiedBilling": {
- "workspaceTitle": "Workspace billing",
- "workspaceDescription": "Each workspace has its own plan, seats, and billing owner.",
- "billableSeat": "Your seat is billable",
- "nonBillableSeat": "Admin-only access · no paid seat",
- "managedBy": "Billing is managed by {{owner}}.",
- "addSeat": "Add seat",
- "startWithSeats": "Start Business with {{count}} seats",
- "seatUpdated": "Workspace capacity updated to {{count}} seats",
- "seatUpdateFailed": "Couldn't update workspace seats",
- "businessWorkspaceOnly": "Available for workspaces",
- "personalPlanTitle": "Personal plan",
- "providedBy": "Personal plan: Free · Paid access provided by {{workspaces}}",
+ "workspaceTitle": "工作區帳單",
+ "workspaceDescription": "每個工作區都有自己的方案、席次與帳單負責人。",
+ "billableSeat": "您的席次需計費",
+ "nonBillableSeat": "僅管理員存取 · 無付費席次",
+ "managedBy": "帳單由 {{owner}} 管理。",
+ "addSeat": "新增席次",
+ "startWithSeats": "以 {{count}} 個席次開始 Business",
+ "seatUpdated": "工作區容量已更新為 {{count}} 個席次",
+ "seatUpdateFailed": "無法更新工作區席次",
+ "businessWorkspaceOnly": "適用於工作區",
+ "personalPlanTitle": "個人方案",
+ "providedBy": "個人方案:免費 · 付費存取由 {{workspaces}} 提供",
"confirmSeats": {
- "title": "Add a workspace seat?",
- "description": "Increase {{workspace}} to {{count}} seats. Stripe will prorate the change.",
- "newCapacity": "New capacity",
- "chargeToday": "Charge today",
- "confirm": "Add seat"
+ "title": "要新增工作區席次嗎?",
+ "description": "將 {{workspace}} 增加至 {{count}} 個席次。Stripe 將按比例計費。",
+ "newCapacity": "新容量",
+ "chargeToday": "今日收費",
+ "confirm": "新增席次"
}
},
"account": {
@@ -1168,7 +1168,6 @@
"business": "Business",
"trial": "試用"
},
- "planTitle": "方案",
"rollingWeeklyLimit": "滾動式每週額度",
"signOut": {
"failedDescription": "登出時發生錯誤。請再試一次。",
@@ -1841,7 +1840,6 @@
"general": "一般",
"members": "成員",
"teams": "團隊空間",
- "billing": "帳單",
"developer": "開發者"
},
"role": {
@@ -1935,19 +1933,17 @@
}
},
"billing": {
- "title": "帳單",
- "description": "方案、席次與付款。",
"plan": "方案",
"seats": "席次",
"ownerOnly": "只有工作區擁有者可以管理訂閱。",
"nextInvoice": "下期帳單",
"manageStripe": "在 Stripe 中管理",
- "opening": "開啟中…",
"startSubscription": "開始訂閱",
"planLabel": {
"business": "Business",
"pro": "Pro",
- "free": "免費"
+ "free": "免費",
+ "enterprise": "Enterprise"
},
"status": {
"active": "使用中",
diff --git a/src/types/electron.ts b/src/types/electron.ts
index 93150030c..4491fc025 100644
--- a/src/types/electron.ts
+++ b/src/types/electron.ts
@@ -210,18 +210,19 @@ export interface Workspace {
current_period_end: string | null;
cancel_at_period_end: boolean;
seats: number;
- seats_used: number;
+ // Optional: absent from API responses that predate unified billing.
+ seats_used?: number;
created_at: string;
updated_at: string;
role: WorkspaceRole;
- is_billable: boolean;
- billing_manager: string | null;
+ is_billable?: boolean;
+ billing_manager?: string | null;
}
export interface WorkspaceMember {
user_id: string;
role: WorkspaceRole;
- is_billable: boolean;
+ is_billable?: boolean;
joined_at: string;
email: string;
name: string | null;
diff --git a/src/utils/billingSeatIntent.ts b/src/utils/billingSeatIntent.ts
new file mode 100644
index 000000000..6abf06fbb
--- /dev/null
+++ b/src/utils/billingSeatIntent.ts
@@ -0,0 +1,39 @@
+const STORAGE_KEY = "settings.billingSeatIntent";
+// An intent is a short-lived handoff from the workspace section to the billing
+// section; expire it so an abandoned navigation doesn't resurface weeks later.
+const MAX_AGE_MS = 30 * 60 * 1000;
+
+export interface SeatIntent {
+ workspaceId: string;
+ additionalSeats: number;
+ createdAt: number;
+}
+
+export function storeSeatIntent(workspaceId: string, additionalSeats: number): void {
+ const intent: SeatIntent = { workspaceId, additionalSeats, createdAt: Date.now() };
+ localStorage.setItem(STORAGE_KEY, JSON.stringify(intent));
+}
+
+export function readSeatIntent(): SeatIntent | null {
+ try {
+ const raw = localStorage.getItem(STORAGE_KEY);
+ if (!raw) return null;
+ const intent = JSON.parse(raw) as Partial<SeatIntent>;
+ if (
+ typeof intent.workspaceId !== "string" ||
+ typeof intent.additionalSeats !== "number" ||
+ typeof intent.createdAt !== "number" ||
+ Date.now() - intent.createdAt > MAX_AGE_MS
+ ) {
+ clearSeatIntent();
+ return null;
+ }
+ return intent as SeatIntent;
+ } catch {
+ return null;
+ }
+}
+
+export function clearSeatIntent(): void {
+ localStorage.removeItem(STORAGE_KEY);
+}
diff --git a/src/utils/formatAmount.ts b/src/utils/formatAmount.ts
new file mode 100644
index 000000000..b5f5263d8
--- /dev/null
+++ b/src/utils/formatAmount.ts
@@ -0,0 +1,3 @@
+export function formatAmount(cents: number, currency: string): string {
+ return (cents / 100).toLocaleString(undefined, { style: "currency", currency });
+}