Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Update translation files to include new keys and enhance localization support across multiple languages

Bill Yang4727e65b80e8
diff --git a/docs/messages/de.json b/docs/messages/de.json
index ce18769f4..7c11ff332 100644
--- a/docs/messages/de.json
+++ b/docs/messages/de.json
@@ -320,5 +320,36 @@
"6UovbP": "Menschen lieben Rybbit",
"9AgcXH": "Sehen Sie, was andere über Rybbit Analytics denken",
"QA1wrZ": "Häufig gestellte Fragen",
- "wEJSTD": "Alles, was Sie über Rybbit Analytics wissen müssen"
+ "wEJSTD": "Alles, was Sie über Rybbit Analytics wissen müssen",
+ "VKfWR3": "",
+ "qyJtWy": "",
+ "P3H0J/": "",
+ "81sHRV": "",
+ "6h/HQ+": "",
+ "+EHOoa": "",
+ "f3eEm9": "",
+ "kLoizf": "",
+ "BO8ZvT": "",
+ "ch/WSG": "",
+ "nWzeQr": "",
+ "yuDloY": "",
+ "4kI/Um": "",
+ "3sSrKz": "",
+ "EQO1QO": "",
+ "6UyKes": "",
+ "MQEg7C": "",
+ "4sNH3x": "",
+ "kwyXVb": "",
+ "9hqxQC": "",
+ "gZPPcD": "",
+ "vYmJVk": "",
+ "wYsv4Z": "",
+ "2C6TrW": "",
+ "HJ5o5M": "",
+ "psz0YH": "",
+ "6t5GFw": "",
+ "2qOt5n": "",
+ "DZY1mp": "",
+ "C9TNnE": "",
+ "5dX7fM": ""
}
diff --git a/docs/messages/en.json b/docs/messages/en.json
index 27a5c892e..6e62ea0f1 100644
--- a/docs/messages/en.json
+++ b/docs/messages/en.json
@@ -320,5 +320,36 @@
"6UovbP": "People love Rybbit",
"9AgcXH": "See what others think about Rybbit Analytics",
"QA1wrZ": "Frequently Asked Questions",
- "wEJSTD": "Everything you need to know about Rybbit Analytics"
+ "wEJSTD": "Everything you need to know about Rybbit Analytics",
+ "VKfWR3": "Recommended",
+ "qyJtWy": "Show less",
+ "P3H0J/": "Show more ({count} more)",
+ "81sHRV": "{count} website",
+ "6h/HQ+": "{count} team member",
+ "+EHOoa": "Web analytics dashboard",
+ "f3eEm9": "2 year data retention",
+ "kLoizf": "Up to {count} websites",
+ "BO8ZvT": "Up to {count} team members",
+ "ch/WSG": "Everything in Standard",
+ "nWzeQr": "Unlimited websites",
+ "yuDloY": "Unlimited team members",
+ "4kI/Um": "5 year data retention",
+ "3sSrKz": "Priority support",
+ "EQO1QO": "Everything in Pro",
+ "6UyKes": "Infinite data retention",
+ "MQEg7C": "Enterprise support",
+ "4sNH3x": "Slack/live chat support",
+ "kwyXVb": "1 user",
+ "9hqxQC": "6 month data retention",
+ "gZPPcD": "Advanced features",
+ "vYmJVk": "Start your 7-day free trial — no credit card charges until the trial ends.",
+ "wYsv4Z": "Monthly",
+ "2C6TrW": "Annual",
+ "HJ5o5M": "4 months free",
+ "psz0YH": "For personal projects and small sites",
+ "6t5GFw": "/month",
+ "2qOt5n": "Up to 250k only",
+ "DZY1mp": "Everything you need to get started as a small business",
+ "C9TNnE": "Advanced features for professional teams",
+ "5dX7fM": "Advanced features for enterprise teams"
}
diff --git a/docs/messages/es.json b/docs/messages/es.json
index 61625b827..28a333cf1 100644
--- a/docs/messages/es.json
+++ b/docs/messages/es.json
@@ -320,5 +320,36 @@
"6UovbP": "A la gente le encanta Rybbit",
"9AgcXH": "Ve lo que otros opinan sobre Rybbit Analytics",
"QA1wrZ": "Preguntas Frecuentes",
- "wEJSTD": "Todo lo que necesitas saber sobre Rybbit Analytics"
+ "wEJSTD": "Todo lo que necesitas saber sobre Rybbit Analytics",
+ "VKfWR3": "",
+ "qyJtWy": "",
+ "P3H0J/": "",
+ "81sHRV": "",
+ "6h/HQ+": "",
+ "+EHOoa": "",
+ "f3eEm9": "",
+ "kLoizf": "",
+ "BO8ZvT": "",
+ "ch/WSG": "",
+ "nWzeQr": "",
+ "yuDloY": "",
+ "4kI/Um": "",
+ "3sSrKz": "",
+ "EQO1QO": "",
+ "6UyKes": "",
+ "MQEg7C": "",
+ "4sNH3x": "",
+ "kwyXVb": "",
+ "9hqxQC": "",
+ "gZPPcD": "",
+ "vYmJVk": "",
+ "wYsv4Z": "",
+ "2C6TrW": "",
+ "HJ5o5M": "",
+ "psz0YH": "",
+ "6t5GFw": "",
+ "2qOt5n": "",
+ "DZY1mp": "",
+ "C9TNnE": "",
+ "5dX7fM": ""
}
diff --git a/docs/messages/fr.json b/docs/messages/fr.json
index 7af119fcb..cfa561b1f 100644
--- a/docs/messages/fr.json
+++ b/docs/messages/fr.json
@@ -320,5 +320,36 @@
"6UovbP": "Les utilisateurs adorent Rybbit",
"9AgcXH": "Découvrez ce que les autres pensent de Rybbit Analytics",
"QA1wrZ": "Foire aux questions",
- "wEJSTD": "Tout ce que vous devez savoir sur Rybbit Analytics"
+ "wEJSTD": "Tout ce que vous devez savoir sur Rybbit Analytics",
+ "VKfWR3": "",
+ "qyJtWy": "",
+ "P3H0J/": "",
+ "81sHRV": "",
+ "6h/HQ+": "",
+ "+EHOoa": "",
+ "f3eEm9": "",
+ "kLoizf": "",
+ "BO8ZvT": "",
+ "ch/WSG": "",
+ "nWzeQr": "",
+ "yuDloY": "",
+ "4kI/Um": "",
+ "3sSrKz": "",
+ "EQO1QO": "",
+ "6UyKes": "",
+ "MQEg7C": "",
+ "4sNH3x": "",
+ "kwyXVb": "",
+ "9hqxQC": "",
+ "gZPPcD": "",
+ "vYmJVk": "",
+ "wYsv4Z": "",
+ "2C6TrW": "",
+ "HJ5o5M": "",
+ "psz0YH": "",
+ "6t5GFw": "",
+ "2qOt5n": "",
+ "DZY1mp": "",
+ "C9TNnE": "",
+ "5dX7fM": ""
}
diff --git a/docs/messages/it.json b/docs/messages/it.json
index 6514dfdab..4ad170edd 100644
--- a/docs/messages/it.json
+++ b/docs/messages/it.json
@@ -320,5 +320,36 @@
"6UovbP": "Le persone amano Rybbit",
"9AgcXH": "Scopri cosa pensano gli altri di Rybbit Analytics",
"QA1wrZ": "Domande Frequenti",
- "wEJSTD": "Tutto quello che devi sapere su Rybbit Analytics"
+ "wEJSTD": "Tutto quello che devi sapere su Rybbit Analytics",
+ "VKfWR3": "",
+ "qyJtWy": "",
+ "P3H0J/": "",
+ "81sHRV": "",
+ "6h/HQ+": "",
+ "+EHOoa": "",
+ "f3eEm9": "",
+ "kLoizf": "",
+ "BO8ZvT": "",
+ "ch/WSG": "",
+ "nWzeQr": "",
+ "yuDloY": "",
+ "4kI/Um": "",
+ "3sSrKz": "",
+ "EQO1QO": "",
+ "6UyKes": "",
+ "MQEg7C": "",
+ "4sNH3x": "",
+ "kwyXVb": "",
+ "9hqxQC": "",
+ "gZPPcD": "",
+ "vYmJVk": "",
+ "wYsv4Z": "",
+ "2C6TrW": "",
+ "HJ5o5M": "",
+ "psz0YH": "",
+ "6t5GFw": "",
+ "2qOt5n": "",
+ "DZY1mp": "",
+ "C9TNnE": "",
+ "5dX7fM": ""
}
diff --git a/docs/messages/ja.json b/docs/messages/ja.json
index 826041a20..c60f2dea0 100644
--- a/docs/messages/ja.json
+++ b/docs/messages/ja.json
@@ -320,5 +320,36 @@
"6UovbP": "皆さんがRybbitを愛用しています",
"9AgcXH": "Rybbit Analyticsについて他のユーザーの意見をご覧ください",
"QA1wrZ": "よくあるご質問",
- "wEJSTD": "Rybbit Analyticsについて知っておくべきすべてのこと"
+ "wEJSTD": "Rybbit Analyticsについて知っておくべきすべてのこと",
+ "VKfWR3": "",
+ "qyJtWy": "",
+ "P3H0J/": "",
+ "81sHRV": "",
+ "6h/HQ+": "",
+ "+EHOoa": "",
+ "f3eEm9": "",
+ "kLoizf": "",
+ "BO8ZvT": "",
+ "ch/WSG": "",
+ "nWzeQr": "",
+ "yuDloY": "",
+ "4kI/Um": "",
+ "3sSrKz": "",
+ "EQO1QO": "",
+ "6UyKes": "",
+ "MQEg7C": "",
+ "4sNH3x": "",
+ "kwyXVb": "",
+ "9hqxQC": "",
+ "gZPPcD": "",
+ "vYmJVk": "",
+ "wYsv4Z": "",
+ "2C6TrW": "",
+ "HJ5o5M": "",
+ "psz0YH": "",
+ "6t5GFw": "",
+ "2qOt5n": "",
+ "DZY1mp": "",
+ "C9TNnE": "",
+ "5dX7fM": ""
}
diff --git a/docs/messages/ko.json b/docs/messages/ko.json
index 71482d37e..e4bbe60e9 100644
--- a/docs/messages/ko.json
+++ b/docs/messages/ko.json
@@ -320,5 +320,36 @@
"6UovbP": "사람들은 Rybbit을 좋아합니다",
"9AgcXH": "Rybbit Analytics에 대한 다른 사람들의 생각을 확인하세요",
"QA1wrZ": "자주 묻는 질문",
- "wEJSTD": "Rybbit Analytics에 대해 알아야 할 모든 것"
+ "wEJSTD": "Rybbit Analytics에 대해 알아야 할 모든 것",
+ "VKfWR3": "",
+ "qyJtWy": "",
+ "P3H0J/": "",
+ "81sHRV": "",
+ "6h/HQ+": "",
+ "+EHOoa": "",
+ "f3eEm9": "",
+ "kLoizf": "",
+ "BO8ZvT": "",
+ "ch/WSG": "",
+ "nWzeQr": "",
+ "yuDloY": "",
+ "4kI/Um": "",
+ "3sSrKz": "",
+ "EQO1QO": "",
+ "6UyKes": "",
+ "MQEg7C": "",
+ "4sNH3x": "",
+ "kwyXVb": "",
+ "9hqxQC": "",
+ "gZPPcD": "",
+ "vYmJVk": "",
+ "wYsv4Z": "",
+ "2C6TrW": "",
+ "HJ5o5M": "",
+ "psz0YH": "",
+ "6t5GFw": "",
+ "2qOt5n": "",
+ "DZY1mp": "",
+ "C9TNnE": "",
+ "5dX7fM": ""
}
diff --git a/docs/messages/pl.json b/docs/messages/pl.json
index c2ee519a8..0babbbc07 100644
--- a/docs/messages/pl.json
+++ b/docs/messages/pl.json
@@ -320,5 +320,36 @@
"6UovbP": "Ludzie kochają Rybbit",
"9AgcXH": "Zobacz, co inni myślą o Rybbit Analytics",
"QA1wrZ": "Często Zadawane Pytania",
- "wEJSTD": "Wszystko, co musisz wiedzieć o Rybbit Analytics"
+ "wEJSTD": "Wszystko, co musisz wiedzieć o Rybbit Analytics",
+ "VKfWR3": "",
+ "qyJtWy": "",
+ "P3H0J/": "",
+ "81sHRV": "",
+ "6h/HQ+": "",
+ "+EHOoa": "",
+ "f3eEm9": "",
+ "kLoizf": "",
+ "BO8ZvT": "",
+ "ch/WSG": "",
+ "nWzeQr": "",
+ "yuDloY": "",
+ "4kI/Um": "",
+ "3sSrKz": "",
+ "EQO1QO": "",
+ "6UyKes": "",
+ "MQEg7C": "",
+ "4sNH3x": "",
+ "kwyXVb": "",
+ "9hqxQC": "",
+ "gZPPcD": "",
+ "vYmJVk": "",
+ "wYsv4Z": "",
+ "2C6TrW": "",
+ "HJ5o5M": "",
+ "psz0YH": "",
+ "6t5GFw": "",
+ "2qOt5n": "",
+ "DZY1mp": "",
+ "C9TNnE": "",
+ "5dX7fM": ""
}
diff --git a/docs/messages/pt.json b/docs/messages/pt.json
index 59efd899d..2d4d27501 100644
--- a/docs/messages/pt.json
+++ b/docs/messages/pt.json
@@ -320,5 +320,36 @@
"6UovbP": "As pessoas adoram o Rybbit",
"9AgcXH": "Veja o que outros pensam sobre o Rybbit Analytics",
"QA1wrZ": "Perguntas Frequentes",
- "wEJSTD": "Tudo que você precisa saber sobre o Rybbit Analytics"
+ "wEJSTD": "Tudo que você precisa saber sobre o Rybbit Analytics",
+ "VKfWR3": "",
+ "qyJtWy": "",
+ "P3H0J/": "",
+ "81sHRV": "",
+ "6h/HQ+": "",
+ "+EHOoa": "",
+ "f3eEm9": "",
+ "kLoizf": "",
+ "BO8ZvT": "",
+ "ch/WSG": "",
+ "nWzeQr": "",
+ "yuDloY": "",
+ "4kI/Um": "",
+ "3sSrKz": "",
+ "EQO1QO": "",
+ "6UyKes": "",
+ "MQEg7C": "",
+ "4sNH3x": "",
+ "kwyXVb": "",
+ "9hqxQC": "",
+ "gZPPcD": "",
+ "vYmJVk": "",
+ "wYsv4Z": "",
+ "2C6TrW": "",
+ "HJ5o5M": "",
+ "psz0YH": "",
+ "6t5GFw": "",
+ "2qOt5n": "",
+ "DZY1mp": "",
+ "C9TNnE": "",
+ "5dX7fM": ""
}
diff --git a/docs/messages/zh.json b/docs/messages/zh.json
index 0b55b122d..a8aae0670 100644
--- a/docs/messages/zh.json
+++ b/docs/messages/zh.json
@@ -320,5 +320,36 @@
"6UovbP": "用户都爱 Rybbit",
"9AgcXH": "了解其他用户对 Rybbit Analytics 的评价",
"QA1wrZ": "常见问题",
- "wEJSTD": "关于 Rybbit Analytics 您需要了解的一切"
+ "wEJSTD": "关于 Rybbit Analytics 您需要了解的一切",
+ "VKfWR3": "",
+ "qyJtWy": "",
+ "P3H0J/": "",
+ "81sHRV": "",
+ "6h/HQ+": "",
+ "+EHOoa": "",
+ "f3eEm9": "",
+ "kLoizf": "",
+ "BO8ZvT": "",
+ "ch/WSG": "",
+ "nWzeQr": "",
+ "yuDloY": "",
+ "4kI/Um": "",
+ "3sSrKz": "",
+ "EQO1QO": "",
+ "6UyKes": "",
+ "MQEg7C": "",
+ "4sNH3x": "",
+ "kwyXVb": "",
+ "9hqxQC": "",
+ "gZPPcD": "",
+ "vYmJVk": "",
+ "wYsv4Z": "",
+ "2C6TrW": "",
+ "HJ5o5M": "",
+ "psz0YH": "",
+ "6t5GFw": "",
+ "2qOt5n": "",
+ "DZY1mp": "",
+ "C9TNnE": "",
+ "5dX7fM": ""
}
diff --git a/docs/src/components/PricingCard.tsx b/docs/src/components/PricingCard.tsx
index b478afe10..69096ad18 100644
--- a/docs/src/components/PricingCard.tsx
+++ b/docs/src/components/PricingCard.tsx
@@ -1,7 +1,10 @@
+"use client";
+
import { Check, X, ArrowDown, ArrowUp } from "lucide-react";
import { cn } from "@/lib/utils";
import { trackAdEvent } from "@/lib/trackAdEvent";
import { AppLink } from "./AppLink";
+import { useExtracted } from "next-intl";
import { useState } from "react";
export type FeatureItem = { feature: string; included?: boolean } | string;
@@ -39,6 +42,7 @@ export function PricingCard({
disabled,
eventLocation,
}: PricingCardProps) {
+ const t = useExtracted();
const [isExpanded, setIsExpanded] = useState(false);
const isFree = variant === "free";
const isPrimary = buttonVariant === "primary";
@@ -65,7 +69,7 @@ export function PricingCard({
<h3 className="text-xl font-bold">{title}</h3>
{recommended && (
<span className="px-2 py-0.5 text-xs font-semibold bg-emerald-500/30 dark:bg-emerald-500/20 text-emerald-600 dark:text-emerald-400 rounded-full border border-emerald-500/40 dark:border-emerald-500/30">
- Recommended
+ {t("Recommended")}
</span>
)}
</div>
@@ -142,12 +146,12 @@ export function PricingCard({
{isExpanded ? (
<>
<ArrowUp className="h-4 w-4 mr-3" />
- Show less
+ {t("Show less")}
</>
) : (
<>
<ArrowDown className="h-4 w-4 mr-3" />
- Show more ({features.length - 7} more)
+ {t("Show more ({count} more)", { count: String(features.length - 7) })}
</>
)}
</button>
diff --git a/docs/src/components/PricingSection.tsx b/docs/src/components/PricingSection.tsx
index 068ed0ddf..5a32eedee 100644
--- a/docs/src/components/PricingSection.tsx
+++ b/docs/src/components/PricingSection.tsx
@@ -3,78 +3,14 @@
import { Slider } from "@/components/ui/slider";
import { cn } from "@/lib/utils";
import { getCalApi } from "@calcom/embed-react";
+import { useExtracted } from "next-intl";
import { useEffect, useState } from "react";
-import { BASIC_SITE_LIMIT, BASIC_TEAM_LIMIT, DEFAULT_EVENT_LIMIT, FREE_SITE_LIMIT, STANDARD_SITE_LIMIT, STANDARD_TEAM_LIMIT } from "../lib/const";
+import { BASIC_SITE_LIMIT, BASIC_TEAM_LIMIT, FREE_SITE_LIMIT, STANDARD_SITE_LIMIT, STANDARD_TEAM_LIMIT } from "../lib/const";
import { PricingCard } from "./PricingCard";
// Available event tiers for the slider
const EVENT_TIERS = [100_000, 250_000, 500_000, 1_000_000, 2_000_000, 5_000_000, 10_000_000, 20_000_000, "Custom"];
-// Define basic plan features
-const BASIC_FEATURES = [
- `${BASIC_SITE_LIMIT} website`,
- `${BASIC_TEAM_LIMIT} team member`,
- "Web analytics dashboard",
- "Goals",
- "Custom events",
- "2 year data retention",
- "Email support",
-];
-
-// Define standard plan features
-const STANDARD_FEATURES = [
- `Up to ${STANDARD_SITE_LIMIT} websites`,
- `Up to ${STANDARD_TEAM_LIMIT} team members`,
- "Custom events",
- "Funnels",
- "Goals",
- "Journeys",
- "Web vitals",
- "Error tracking",
- "User profiles",
- "Retention",
- "Sessions",
- "Email reports",
- "2 year data retention",
- "Email support",
-];
-
-// Define pro plan features
-const PRO_FEATURES = [
- "Everything in Standard",
- "Unlimited websites",
- "Unlimited team members",
- "Session replays",
- "5 year data retention",
- "Priority support",
-];
-
-// Define enterprise plan features
-const ENTERPRISE_FEATURES = [
- "Everything in Pro",
- "Single Sign-On (SSO)",
- "Infinite data retention",
- "Dedicated isolated instance",
- "On-premise Installation",
- "Custom Features",
- "Whitelabeling",
- "Manual invoicing",
- "Uptime SLA",
- "Enterprise support",
- "Slack/live chat support",
-];
-
-// Define free plan features
-const FREE_FEATURES = [
- { feature: "1 user", included: true },
- { feature: `${FREE_SITE_LIMIT} website`, included: true },
- { feature: "Web analytics dashboard", included: true },
- { feature: "Custom events", included: true },
- { feature: "6 month data retention", included: true },
- { feature: "Advanced features", included: false },
- { feature: "Email support", included: false },
-];
-
export const formatter = Intl.NumberFormat("en", {
notation: "compact",
}).format;
@@ -123,8 +59,69 @@ function getFormattedPrice(eventLimit: number | string, planType: "basic" | "sta
}
export function PricingSection({ isAnnual, setIsAnnual }: { isAnnual: boolean, setIsAnnual: (isAnnual: boolean) => void }) {
+ const t = useExtracted();
const [eventLimitIndex, setEventLimitIndex] = useState(0); // Default to 100k (index 0)
+ const BASIC_FEATURES = [
+ t("{count} website", { count: String(BASIC_SITE_LIMIT) }),
+ t("{count} team member", { count: String(BASIC_TEAM_LIMIT) }),
+ t("Web analytics dashboard"),
+ t("Goals"),
+ t("Custom events"),
+ t("2 year data retention"),
+ t("Email support"),
+ ];
+
+ const STANDARD_FEATURES = [
+ t("Up to {count} websites", { count: String(STANDARD_SITE_LIMIT) }),
+ t("Up to {count} team members", { count: String(STANDARD_TEAM_LIMIT) }),
+ t("Custom events"),
+ t("Funnels"),
+ t("Goals"),
+ t("Journeys"),
+ t("Web vitals"),
+ t("Error tracking"),
+ t("User profiles"),
+ t("Retention"),
+ t("Sessions"),
+ t("Email reports"),
+ t("2 year data retention"),
+ t("Email support"),
+ ];
+
+ const PRO_FEATURES = [
+ t("Everything in Standard"),
+ t("Unlimited websites"),
+ t("Unlimited team members"),
+ t("Session replays"),
+ t("5 year data retention"),
+ t("Priority support"),
+ ];
+
+ const ENTERPRISE_FEATURES = [
+ t("Everything in Pro"),
+ t("Single Sign-On (SSO)"),
+ t("Infinite data retention"),
+ t("Dedicated isolated instance"),
+ t("On-premise installation"),
+ t("Custom features"),
+ t("Whitelabeling"),
+ t("Manual invoicing"),
+ t("Uptime SLA"),
+ t("Enterprise support"),
+ t("Slack/live chat support"),
+ ];
+
+ const FREE_FEATURES = [
+ { feature: t("1 user"), included: true },
+ { feature: t("{count} website", { count: String(FREE_SITE_LIMIT) }), included: true },
+ { feature: t("Web analytics dashboard"), included: true },
+ { feature: t("Custom events"), included: true },
+ { feature: t("6 month data retention"), included: true },
+ { feature: t("Advanced features"), included: false },
+ { feature: t("Email support"), included: false },
+ ];
+
const eventLimit = EVENT_TIERS[eventLimitIndex];
const basicPrices = getFormattedPrice(eventLimit, "basic");
const isBasicAvailable = typeof eventLimit === "number" && eventLimit <= 250_000;
@@ -149,10 +146,10 @@ export function PricingSection({ isAnnual, setIsAnnual }: { isAnnual: boolean, s
<div className="max-w-[1200px] mx-auto px-4">
<div className="mb-12 text-center max-w-3xl mx-auto">
<h2 className="text-4xl md:text-5xl font-bold tracking-tight pb-4 text-transparent bg-clip-text bg-gradient-to-b from-neutral-900 via-neutral-700 to-neutral-500 dark:from-white dark:via-gray-200 dark:to-gray-400">
- Pricing
+ {t("Pricing")}
</h2>
<p className="text-lg text-neutral-600 dark:text-neutral-300">
- Start your 7-day free trial — no credit card charges until the trial ends.
+ {t("Start your 7-day free trial — no credit card charges until the trial ends.")}
</p>
</div>
@@ -160,9 +157,9 @@ export function PricingSection({ isAnnual, setIsAnnual }: { isAnnual: boolean, s
<div className="max-w-xl mx-auto mb-8">
<div className="flex justify-between mb-6 items-center">
<div>
- <h3 className="font-semibold mb-2">Monthly pageviews</h3>
+ <h3 className="font-semibold mb-2">{t("Monthly pageviews")}</h3>
<div className="text-3xl font-bold text-emerald-600 dark:text-emerald-400">
- {typeof eventLimit === "number" ? eventLimit.toLocaleString() : eventLimit}
+ {typeof eventLimit === "number" ? eventLimit.toLocaleString() : t("Custom")}
</div>
</div>
<div className="flex flex-col items-end relative">
@@ -177,7 +174,7 @@ export function PricingSection({ isAnnual, setIsAnnual }: { isAnnual: boolean, s
: "text-neutral-600 dark:text-neutral-400 hover:text-neutral-800 dark:hover:text-neutral-200"
)}
>
- Monthly
+ {t("Monthly")}
</button>
<button
onClick={() => setIsAnnual(true)}
@@ -188,10 +185,10 @@ export function PricingSection({ isAnnual, setIsAnnual }: { isAnnual: boolean, s
: "text-neutral-600 dark:text-neutral-400 hover:text-neutral-800 dark:hover:text-neutral-200"
)}
>
- Annual
+ {t("Annual")}
</button>
<div className="text-xs text-white absolute top-0 right-0 -translate-y-3 translate-x-1/2 bg-emerald-500 dark:bg-emerald-500 rounded-full px-2 py-0.5">
- 4 months free
+ {t("4 months free")}
</div>
</div>
</div>
@@ -216,7 +213,7 @@ export function PricingSection({ isAnnual, setIsAnnual }: { isAnnual: boolean, s
? `${tier / 1_000_000}M`
: typeof tier === "number"
? `${tier / 1_000}K`
- : "Custom"}
+ : t("Custom")}
</span>
))}
</div>
@@ -227,23 +224,23 @@ export function PricingSection({ isAnnual, setIsAnnual }: { isAnnual: boolean, s
{/* Basic Plan Card */}
<div className={cn("h-full", !isBasicAvailable && "opacity-60")}>
<PricingCard
- title="Basic"
- description="For personal projects and small sites"
+ title={t("Basic")}
+ description={t("For personal projects and small sites")}
priceDisplay={
!isBasicAvailable ? (
<div className="text-3xl font-bold">-</div>
) : basicPrices.custom ? (
- <div className="text-3xl font-bold">Custom</div>
+ <div className="text-3xl font-bold">{t("Custom")}</div>
) : (
<div>
<span className="text-3xl font-bold">
${isAnnual ? Math.round(basicPrices.annual! / 12) : basicPrices.monthly}
</span>
- <span className="ml-1 text-neutral-400">/month</span>
+ <span className="ml-1 text-neutral-400">{t("/month")}</span>
</div>
)
}
- buttonText={!isBasicAvailable ? "Up to 250k only" : "Start for $0"}
+ buttonText={!isBasicAvailable ? t("Up to 250k only") : t("Start for $0")}
buttonHref={!isBasicAvailable ? undefined : "https://app.rybbit.io/signup"}
features={BASIC_FEATURES}
disabled={!isBasicAvailable}
@@ -253,21 +250,21 @@ export function PricingSection({ isAnnual, setIsAnnual }: { isAnnual: boolean, s
{/* Standard Plan Card */}
<PricingCard
- title="Standard"
- description="Everything you need to get started as a small business"
+ title={t("Standard")}
+ description={t("Everything you need to get started as a small business")}
priceDisplay={
standardPrices.custom ? (
- <div className="text-3xl font-bold">Custom</div>
+ <div className="text-3xl font-bold">{t("Custom")}</div>
) : (
<div>
<span className="text-3xl font-bold">
${isAnnual ? Math.round(standardPrices.annual! / 12) : standardPrices.monthly}
</span>
- <span className="ml-1 text-neutral-400">/month</span>
+ <span className="ml-1 text-neutral-400">{t("/month")}</span>
</div>
)
}
- buttonText={standardPrices.custom ? "Contact us" : "Start for $0"}
+ buttonText={standardPrices.custom ? t("Contact us") : t("Start for $0")}
buttonHref={standardPrices.custom ? "https://www.rybbit.com/contact" : "https://app.rybbit.io/signup"}
features={STANDARD_FEATURES}
eventLocation={standardPrices.custom ? undefined : "standard"}
@@ -275,21 +272,21 @@ export function PricingSection({ isAnnual, setIsAnnual }: { isAnnual: boolean, s
{/* Pro Plan Card */}
<PricingCard
- title="Pro"
- description="Advanced features for professional teams"
+ title={t("Pro")}
+ description={t("Advanced features for professional teams")}
priceDisplay={
proPrices.custom ? (
- <div className="text-3xl font-bold">Custom</div>
+ <div className="text-3xl font-bold">{t("Custom")}</div>
) : (
<div>
<span className="text-3xl font-bold">
${isAnnual ? Math.round(proPrices.annual! / 12) : proPrices.monthly}
</span>
- <span className="ml-1 text-neutral-400">/month</span>
+ <span className="ml-1 text-neutral-400">{t("/month")}</span>
</div>
)
}
- buttonText={proPrices.custom ? "Contact us" : "Start for $0"}
+ buttonText={proPrices.custom ? t("Contact us") : t("Start for $0")}
buttonHref={proPrices.custom ? "https://www.rybbit.com/contact" : "https://app.rybbit.io/signup"}
features={PRO_FEATURES}
eventLocation={proPrices.custom ? undefined : "pro"}
@@ -298,11 +295,11 @@ export function PricingSection({ isAnnual, setIsAnnual }: { isAnnual: boolean, s
{/* Enterprise Plan Card */}
<PricingCard
- title="Enterprise"
- description="Advanced features for enterprise teams"
- priceDisplay={<div className="text-3xl font-bold">Custom</div>}
+ title={t("Enterprise")}
+ description={t("Advanced features for enterprise teams")}
+ priceDisplay={<div className="text-3xl font-bold">{t("Custom")}</div>}
features={ENTERPRISE_FEATURES}
- buttonText={"Contact us"}
+ buttonText={t("Contact us")}
buttonHref={"https://www.rybbit.com/contact"}
/>
</div>