Skip to content

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

Refactor components to utilize next-intl for internationalization, enhancing text rendering in FAQAccordion, Funnels, RealTimeAnalytics, SessionReplay, UserSessions, and updating translations for improved accessibility across multiple languages.

Bill Yang2643ba95e9fd
diff --git a/docs/messages/de.json b/docs/messages/de.json
index 733772a0a..5acb1d655 100644
--- a/docs/messages/de.json
+++ b/docs/messages/de.json
@@ -238,5 +238,57 @@
"cb2kY6": "Standard",
"R/eOkj": "Pro",
"CDLJ0W": "Enterprise",
- "WnQ/AZ": "Kontaktieren Sie uns"
+ "WnQ/AZ": "Kontaktieren Sie uns",
+ "rxNddi": "",
+ "RNCPOG": "",
+ "J6Eyds": "",
+ "pRsrpv": "",
+ "q+XF4Y": "",
+ "58Zt6N": "",
+ "Zfz17X": "",
+ "I90sbW": "",
+ "7HpNcL": "",
+ "fWDMAa": "",
+ "a4+A4w": "",
+ "AwWa9X": "",
+ "mhmZ+P": "",
+ "RVxXSc": "",
+ "utdVme": "",
+ "IS4S3Y": "",
+ "uidHdC": "",
+ "X73xhr": "",
+ "eJ41hc": "",
+ "IluCMe": "",
+ "pgXJCt": "",
+ "2CvYQE": "",
+ "I1boxm": "",
+ "Zj19iB": "",
+ "i4uKb8": "",
+ "kFQs77": "",
+ "uw/XET": "",
+ "oBdlfd": "",
+ "n9oYke": "",
+ "WBoWYg": "",
+ "8HrsWC": "",
+ "/QeDjW": "",
+ "aTxF6+": "",
+ "XGMgha": "",
+ "8AT3sW": "",
+ "QdXJdp": "",
+ "uJnZxc": "",
+ "1rtZK6": "",
+ "6M3/+R": "",
+ "JmSlFD": "",
+ "ZW8Avn": "",
+ "tXQZF5": "",
+ "DWGtIA": "",
+ "/lNe4I": "",
+ "CGT4s1": "",
+ "dcOW07": "",
+ "65l++E": "",
+ "4457ZY": "",
+ "Cka8zX": "",
+ "p/7hH9": "",
+ "BllHT3": "",
+ "LF0EHK": ""
}
diff --git a/docs/messages/en.json b/docs/messages/en.json
index f194a654f..65a7360b3 100644
--- a/docs/messages/en.json
+++ b/docs/messages/en.json
@@ -238,5 +238,57 @@
"cb2kY6": "Standard",
"R/eOkj": "Pro",
"CDLJ0W": "Enterprise",
- "WnQ/AZ": "Contact us"
+ "WnQ/AZ": "Contact us",
+ "rxNddi": "Homepage",
+ "RNCPOG": "Signup",
+ "J6Eyds": "Purchase",
+ "pRsrpv": "Conversion Funnels",
+ "q+XF4Y": "Visualize user journeys and identify where users drop off.",
+ "58Zt6N": "2 min ago",
+ "Zfz17X": "45 sec ago",
+ "I90sbW": "just now",
+ "7HpNcL": "30 sec ago",
+ "fWDMAa": "1 min ago",
+ "a4+A4w": "Real-time Analytics",
+ "AwWa9X": "See your site performance as it happens with instant data updates and live visitor activity.",
+ "mhmZ+P": "Session Replay",
+ "RVxXSc": "Watch real user sessions to understand their behavior and identify pain points.",
+ "utdVme": "Scrolling...",
+ "IS4S3Y": "User Sessions",
+ "uidHdC": "Track complete user journeys through your site with detailed session timelines.",
+ "X73xhr": "Is Rybbit GDPR and CCPA compliant?",
+ "eJ41hc": "Yes, Rybbit is fully compliant with GDPR, CCPA, and other privacy regulations. We don't use cookies or collect any personal data that could identify your users. We salt user IDs daily to ensure users are not fingerprinted. You will not need to display a cookie consent banner to your users.",
+ "IluCMe": "Rybbit vs. Google Analytics",
+ "pgXJCt": "Google Analytics is free because Google uses it as a funnel into their ecosystem and to sell ads. Rybbit's only goal is to provide you with high quality analytics. No more confusing dashboards pushing random AI features nobody wants.",
+ "2CvYQE": "You can see for yourself by checking out our",
+ "I1boxm": "demo site",
+ "Zj19iB": ". The difference in usability is night and day.",
+ "i4uKb8": "Rybbit vs. Plausible/Umami/Fathom",
+ "kFQs77": "Rybbit is similar to these simple and privacy-focused analytics platforms, but we are raising the bar when it comes to UX and the quality and scope of our feature set.",
+ "uw/XET": "We don't want to just be a simple analytics tool, but we carefully craft every feature to be understandable without having to read pages of documentation.",
+ "oBdlfd": "Rybbit vs. Posthog/Mixpanel/Amplitude",
+ "n9oYke": "Rybbit has most of the features of enterprise analytics platforms, but packaged in a way that is usable for small and medium sized teams.",
+ "WBoWYg": "We have advanced features like session replay, error tracking, web vitals, and funnels - but you don't need to spend days learning how to use them.",
+ "8HrsWC": "Can I self-host Rybbit?",
+ "/QeDjW": "Absolutely! Rybbit is available as a self-hosted option. You can install it on your own server and have complete control over your data.",
+ "aTxF6+": "Learn more here",
+ "XGMgha": ". We also offer a cloud version if you prefer a managed solution.",
+ "8AT3sW": "How easy is it to set up Rybbit?",
+ "QdXJdp": "Setting up Rybbit",
+ "uJnZxc": "is incredibly simple. Just add a small script to your website or install @rybbit/js from npm, and you're good to go. Most users are up and running in less than 5 minutes. We also provide comprehensive documentation and support if you need any help.",
+ "1rtZK6": "What platforms does Rybbit support?",
+ "6M3/+R": "Rybbit works with virtually any website platform. Whether you're using WordPress, Shopify, Next.js, React, Vue, or any other framework, our simple tracking snippet integrates seamlessly. You can also use @rybbit/js, our web SDK you can install from npm. Check out our",
+ "JmSlFD": "documentation",
+ "ZW8Avn": "for setup guides.",
+ "tXQZF5": "Is Rybbit open source?",
+ "DWGtIA": "Yes, Rybbit is open source under the AGPL v3.0 license. You are free to",
+ "/lNe4I": "self-host Rybbit",
+ "CGT4s1": "for either personal or business use.",
+ "dcOW07": "Can I invite my team to my organization?",
+ "65l++E": "Yes, you can invite unlimited team members to your organization. Each member can have different permission levels to view or manage your analytics dashboards.",
+ "4457ZY": "Can I share my dashboard publicly?",
+ "Cka8zX": "Yes, you can share your dashboard publicly in two ways: with a secret link that only people with the URL can access, or as a completely public dashboard that anyone can view.",
+ "p/7hH9": "Does Rybbit have an API?",
+ "BllHT3": "Yes, Rybbit provides a comprehensive",
+ "LF0EHK": "that allows you to programmatically access your analytics data. You can integrate Rybbit data into your own applications, dashboards, or workflows."
}
diff --git a/docs/messages/es.json b/docs/messages/es.json
index a47e0a622..0db2ec339 100644
--- a/docs/messages/es.json
+++ b/docs/messages/es.json
@@ -238,5 +238,57 @@
"cb2kY6": "Estándar",
"R/eOkj": "Pro",
"CDLJ0W": "Enterprise",
- "WnQ/AZ": "Contáctanos"
+ "WnQ/AZ": "Contáctanos",
+ "rxNddi": "",
+ "RNCPOG": "",
+ "J6Eyds": "",
+ "pRsrpv": "",
+ "q+XF4Y": "",
+ "58Zt6N": "",
+ "Zfz17X": "",
+ "I90sbW": "",
+ "7HpNcL": "",
+ "fWDMAa": "",
+ "a4+A4w": "",
+ "AwWa9X": "",
+ "mhmZ+P": "",
+ "RVxXSc": "",
+ "utdVme": "",
+ "IS4S3Y": "",
+ "uidHdC": "",
+ "X73xhr": "",
+ "eJ41hc": "",
+ "IluCMe": "",
+ "pgXJCt": "",
+ "2CvYQE": "",
+ "I1boxm": "",
+ "Zj19iB": "",
+ "i4uKb8": "",
+ "kFQs77": "",
+ "uw/XET": "",
+ "oBdlfd": "",
+ "n9oYke": "",
+ "WBoWYg": "",
+ "8HrsWC": "",
+ "/QeDjW": "",
+ "aTxF6+": "",
+ "XGMgha": "",
+ "8AT3sW": "",
+ "QdXJdp": "",
+ "uJnZxc": "",
+ "1rtZK6": "",
+ "6M3/+R": "",
+ "JmSlFD": "",
+ "ZW8Avn": "",
+ "tXQZF5": "",
+ "DWGtIA": "",
+ "/lNe4I": "",
+ "CGT4s1": "",
+ "dcOW07": "",
+ "65l++E": "",
+ "4457ZY": "",
+ "Cka8zX": "",
+ "p/7hH9": "",
+ "BllHT3": "",
+ "LF0EHK": ""
}
diff --git a/docs/messages/fr.json b/docs/messages/fr.json
index 0abd21c5c..bcfa36210 100644
--- a/docs/messages/fr.json
+++ b/docs/messages/fr.json
@@ -238,5 +238,57 @@
"cb2kY6": "Standard",
"R/eOkj": "Pro",
"CDLJ0W": "Enterprise",
- "WnQ/AZ": "Nous contacter"
+ "WnQ/AZ": "Nous contacter",
+ "rxNddi": "",
+ "RNCPOG": "",
+ "J6Eyds": "",
+ "pRsrpv": "",
+ "q+XF4Y": "",
+ "58Zt6N": "",
+ "Zfz17X": "",
+ "I90sbW": "",
+ "7HpNcL": "",
+ "fWDMAa": "",
+ "a4+A4w": "",
+ "AwWa9X": "",
+ "mhmZ+P": "",
+ "RVxXSc": "",
+ "utdVme": "",
+ "IS4S3Y": "",
+ "uidHdC": "",
+ "X73xhr": "",
+ "eJ41hc": "",
+ "IluCMe": "",
+ "pgXJCt": "",
+ "2CvYQE": "",
+ "I1boxm": "",
+ "Zj19iB": "",
+ "i4uKb8": "",
+ "kFQs77": "",
+ "uw/XET": "",
+ "oBdlfd": "",
+ "n9oYke": "",
+ "WBoWYg": "",
+ "8HrsWC": "",
+ "/QeDjW": "",
+ "aTxF6+": "",
+ "XGMgha": "",
+ "8AT3sW": "",
+ "QdXJdp": "",
+ "uJnZxc": "",
+ "1rtZK6": "",
+ "6M3/+R": "",
+ "JmSlFD": "",
+ "ZW8Avn": "",
+ "tXQZF5": "",
+ "DWGtIA": "",
+ "/lNe4I": "",
+ "CGT4s1": "",
+ "dcOW07": "",
+ "65l++E": "",
+ "4457ZY": "",
+ "Cka8zX": "",
+ "p/7hH9": "",
+ "BllHT3": "",
+ "LF0EHK": ""
}
diff --git a/docs/messages/it.json b/docs/messages/it.json
index 9904bae0e..97e744cae 100644
--- a/docs/messages/it.json
+++ b/docs/messages/it.json
@@ -238,5 +238,57 @@
"cb2kY6": "Standard",
"R/eOkj": "Pro",
"CDLJ0W": "Enterprise",
- "WnQ/AZ": "Contattaci"
+ "WnQ/AZ": "Contattaci",
+ "rxNddi": "",
+ "RNCPOG": "",
+ "J6Eyds": "",
+ "pRsrpv": "",
+ "q+XF4Y": "",
+ "58Zt6N": "",
+ "Zfz17X": "",
+ "I90sbW": "",
+ "7HpNcL": "",
+ "fWDMAa": "",
+ "a4+A4w": "",
+ "AwWa9X": "",
+ "mhmZ+P": "",
+ "RVxXSc": "",
+ "utdVme": "",
+ "IS4S3Y": "",
+ "uidHdC": "",
+ "X73xhr": "",
+ "eJ41hc": "",
+ "IluCMe": "",
+ "pgXJCt": "",
+ "2CvYQE": "",
+ "I1boxm": "",
+ "Zj19iB": "",
+ "i4uKb8": "",
+ "kFQs77": "",
+ "uw/XET": "",
+ "oBdlfd": "",
+ "n9oYke": "",
+ "WBoWYg": "",
+ "8HrsWC": "",
+ "/QeDjW": "",
+ "aTxF6+": "",
+ "XGMgha": "",
+ "8AT3sW": "",
+ "QdXJdp": "",
+ "uJnZxc": "",
+ "1rtZK6": "",
+ "6M3/+R": "",
+ "JmSlFD": "",
+ "ZW8Avn": "",
+ "tXQZF5": "",
+ "DWGtIA": "",
+ "/lNe4I": "",
+ "CGT4s1": "",
+ "dcOW07": "",
+ "65l++E": "",
+ "4457ZY": "",
+ "Cka8zX": "",
+ "p/7hH9": "",
+ "BllHT3": "",
+ "LF0EHK": ""
}
diff --git a/docs/messages/ja.json b/docs/messages/ja.json
index d54c52832..1279c51cd 100644
--- a/docs/messages/ja.json
+++ b/docs/messages/ja.json
@@ -238,5 +238,57 @@
"cb2kY6": "スタンダード",
"R/eOkj": "プロ",
"CDLJ0W": "エンタープライズ",
- "WnQ/AZ": "お問い合わせ"
+ "WnQ/AZ": "お問い合わせ",
+ "rxNddi": "",
+ "RNCPOG": "",
+ "J6Eyds": "",
+ "pRsrpv": "",
+ "q+XF4Y": "",
+ "58Zt6N": "",
+ "Zfz17X": "",
+ "I90sbW": "",
+ "7HpNcL": "",
+ "fWDMAa": "",
+ "a4+A4w": "",
+ "AwWa9X": "",
+ "mhmZ+P": "",
+ "RVxXSc": "",
+ "utdVme": "",
+ "IS4S3Y": "",
+ "uidHdC": "",
+ "X73xhr": "",
+ "eJ41hc": "",
+ "IluCMe": "",
+ "pgXJCt": "",
+ "2CvYQE": "",
+ "I1boxm": "",
+ "Zj19iB": "",
+ "i4uKb8": "",
+ "kFQs77": "",
+ "uw/XET": "",
+ "oBdlfd": "",
+ "n9oYke": "",
+ "WBoWYg": "",
+ "8HrsWC": "",
+ "/QeDjW": "",
+ "aTxF6+": "",
+ "XGMgha": "",
+ "8AT3sW": "",
+ "QdXJdp": "",
+ "uJnZxc": "",
+ "1rtZK6": "",
+ "6M3/+R": "",
+ "JmSlFD": "",
+ "ZW8Avn": "",
+ "tXQZF5": "",
+ "DWGtIA": "",
+ "/lNe4I": "",
+ "CGT4s1": "",
+ "dcOW07": "",
+ "65l++E": "",
+ "4457ZY": "",
+ "Cka8zX": "",
+ "p/7hH9": "",
+ "BllHT3": "",
+ "LF0EHK": ""
}
diff --git a/docs/messages/ko.json b/docs/messages/ko.json
index a1e502f35..f7182f0b9 100644
--- a/docs/messages/ko.json
+++ b/docs/messages/ko.json
@@ -238,5 +238,57 @@
"cb2kY6": "스탠다드",
"R/eOkj": "프로",
"CDLJ0W": "엔터프라이즈",
- "WnQ/AZ": "문의하기"
+ "WnQ/AZ": "문의하기",
+ "rxNddi": "",
+ "RNCPOG": "",
+ "J6Eyds": "",
+ "pRsrpv": "",
+ "q+XF4Y": "",
+ "58Zt6N": "",
+ "Zfz17X": "",
+ "I90sbW": "",
+ "7HpNcL": "",
+ "fWDMAa": "",
+ "a4+A4w": "",
+ "AwWa9X": "",
+ "mhmZ+P": "",
+ "RVxXSc": "",
+ "utdVme": "",
+ "IS4S3Y": "",
+ "uidHdC": "",
+ "X73xhr": "",
+ "eJ41hc": "",
+ "IluCMe": "",
+ "pgXJCt": "",
+ "2CvYQE": "",
+ "I1boxm": "",
+ "Zj19iB": "",
+ "i4uKb8": "",
+ "kFQs77": "",
+ "uw/XET": "",
+ "oBdlfd": "",
+ "n9oYke": "",
+ "WBoWYg": "",
+ "8HrsWC": "",
+ "/QeDjW": "",
+ "aTxF6+": "",
+ "XGMgha": "",
+ "8AT3sW": "",
+ "QdXJdp": "",
+ "uJnZxc": "",
+ "1rtZK6": "",
+ "6M3/+R": "",
+ "JmSlFD": "",
+ "ZW8Avn": "",
+ "tXQZF5": "",
+ "DWGtIA": "",
+ "/lNe4I": "",
+ "CGT4s1": "",
+ "dcOW07": "",
+ "65l++E": "",
+ "4457ZY": "",
+ "Cka8zX": "",
+ "p/7hH9": "",
+ "BllHT3": "",
+ "LF0EHK": ""
}
diff --git a/docs/messages/pl.json b/docs/messages/pl.json
index 2fb4fb515..e90b8983f 100644
--- a/docs/messages/pl.json
+++ b/docs/messages/pl.json
@@ -238,5 +238,57 @@
"cb2kY6": "Standardowy",
"R/eOkj": "Pro",
"CDLJ0W": "Enterprise",
- "WnQ/AZ": "Skontaktuj się z nami"
+ "WnQ/AZ": "Skontaktuj się z nami",
+ "rxNddi": "",
+ "RNCPOG": "",
+ "J6Eyds": "",
+ "pRsrpv": "",
+ "q+XF4Y": "",
+ "58Zt6N": "",
+ "Zfz17X": "",
+ "I90sbW": "",
+ "7HpNcL": "",
+ "fWDMAa": "",
+ "a4+A4w": "",
+ "AwWa9X": "",
+ "mhmZ+P": "",
+ "RVxXSc": "",
+ "utdVme": "",
+ "IS4S3Y": "",
+ "uidHdC": "",
+ "X73xhr": "",
+ "eJ41hc": "",
+ "IluCMe": "",
+ "pgXJCt": "",
+ "2CvYQE": "",
+ "I1boxm": "",
+ "Zj19iB": "",
+ "i4uKb8": "",
+ "kFQs77": "",
+ "uw/XET": "",
+ "oBdlfd": "",
+ "n9oYke": "",
+ "WBoWYg": "",
+ "8HrsWC": "",
+ "/QeDjW": "",
+ "aTxF6+": "",
+ "XGMgha": "",
+ "8AT3sW": "",
+ "QdXJdp": "",
+ "uJnZxc": "",
+ "1rtZK6": "",
+ "6M3/+R": "",
+ "JmSlFD": "",
+ "ZW8Avn": "",
+ "tXQZF5": "",
+ "DWGtIA": "",
+ "/lNe4I": "",
+ "CGT4s1": "",
+ "dcOW07": "",
+ "65l++E": "",
+ "4457ZY": "",
+ "Cka8zX": "",
+ "p/7hH9": "",
+ "BllHT3": "",
+ "LF0EHK": ""
}
diff --git a/docs/messages/pt.json b/docs/messages/pt.json
index b892312ed..5b3d928b7 100644
--- a/docs/messages/pt.json
+++ b/docs/messages/pt.json
@@ -238,5 +238,57 @@
"cb2kY6": "Padrão",
"R/eOkj": "Pro",
"CDLJ0W": "Enterprise",
- "WnQ/AZ": "Fale conosco"
+ "WnQ/AZ": "Fale conosco",
+ "rxNddi": "",
+ "RNCPOG": "",
+ "J6Eyds": "",
+ "pRsrpv": "",
+ "q+XF4Y": "",
+ "58Zt6N": "",
+ "Zfz17X": "",
+ "I90sbW": "",
+ "7HpNcL": "",
+ "fWDMAa": "",
+ "a4+A4w": "",
+ "AwWa9X": "",
+ "mhmZ+P": "",
+ "RVxXSc": "",
+ "utdVme": "",
+ "IS4S3Y": "",
+ "uidHdC": "",
+ "X73xhr": "",
+ "eJ41hc": "",
+ "IluCMe": "",
+ "pgXJCt": "",
+ "2CvYQE": "",
+ "I1boxm": "",
+ "Zj19iB": "",
+ "i4uKb8": "",
+ "kFQs77": "",
+ "uw/XET": "",
+ "oBdlfd": "",
+ "n9oYke": "",
+ "WBoWYg": "",
+ "8HrsWC": "",
+ "/QeDjW": "",
+ "aTxF6+": "",
+ "XGMgha": "",
+ "8AT3sW": "",
+ "QdXJdp": "",
+ "uJnZxc": "",
+ "1rtZK6": "",
+ "6M3/+R": "",
+ "JmSlFD": "",
+ "ZW8Avn": "",
+ "tXQZF5": "",
+ "DWGtIA": "",
+ "/lNe4I": "",
+ "CGT4s1": "",
+ "dcOW07": "",
+ "65l++E": "",
+ "4457ZY": "",
+ "Cka8zX": "",
+ "p/7hH9": "",
+ "BllHT3": "",
+ "LF0EHK": ""
}
diff --git a/docs/messages/zh.json b/docs/messages/zh.json
index 3a614f913..7c35e02cd 100644
--- a/docs/messages/zh.json
+++ b/docs/messages/zh.json
@@ -238,5 +238,57 @@
"cb2kY6": "标准版",
"R/eOkj": "专业版",
"CDLJ0W": "企业版",
- "WnQ/AZ": "联系我们"
+ "WnQ/AZ": "联系我们",
+ "rxNddi": "",
+ "RNCPOG": "",
+ "J6Eyds": "",
+ "pRsrpv": "",
+ "q+XF4Y": "",
+ "58Zt6N": "",
+ "Zfz17X": "",
+ "I90sbW": "",
+ "7HpNcL": "",
+ "fWDMAa": "",
+ "a4+A4w": "",
+ "AwWa9X": "",
+ "mhmZ+P": "",
+ "RVxXSc": "",
+ "utdVme": "",
+ "IS4S3Y": "",
+ "uidHdC": "",
+ "X73xhr": "",
+ "eJ41hc": "",
+ "IluCMe": "",
+ "pgXJCt": "",
+ "2CvYQE": "",
+ "I1boxm": "",
+ "Zj19iB": "",
+ "i4uKb8": "",
+ "kFQs77": "",
+ "uw/XET": "",
+ "oBdlfd": "",
+ "n9oYke": "",
+ "WBoWYg": "",
+ "8HrsWC": "",
+ "/QeDjW": "",
+ "aTxF6+": "",
+ "XGMgha": "",
+ "8AT3sW": "",
+ "QdXJdp": "",
+ "uJnZxc": "",
+ "1rtZK6": "",
+ "6M3/+R": "",
+ "JmSlFD": "",
+ "ZW8Avn": "",
+ "tXQZF5": "",
+ "DWGtIA": "",
+ "/lNe4I": "",
+ "CGT4s1": "",
+ "dcOW07": "",
+ "65l++E": "",
+ "4457ZY": "",
+ "Cka8zX": "",
+ "p/7hH9": "",
+ "BllHT3": "",
+ "LF0EHK": ""
}
diff --git a/docs/src/components/Cards/Funnels.tsx b/docs/src/components/Cards/Funnels.tsx
index 5aa1ff345..8e04a77d8 100644
--- a/docs/src/components/Cards/Funnels.tsx
+++ b/docs/src/components/Cards/Funnels.tsx
@@ -1,31 +1,22 @@
import { Card } from "./Card";
import { Eye, Filter } from "lucide-react";
+import { useExtracted } from "next-intl";
-const funnelData = [
- {
- step: 1,
- label: "Homepage",
- users: 608,
- },
- {
- step: 2,
- label: "Signup",
- users: 59,
- },
- {
- step: 3,
- label: "Purchase",
- users: 5,
- },
-];
+const funnelUsers = [608, 59, 5];
export function Funnels() {
- const totalUsers = funnelData[0].users;
+ const t = useExtracted();
+ const funnelData = [
+ { step: 1, label: t("Homepage"), users: funnelUsers[0] },
+ { step: 2, label: t("Signup"), users: funnelUsers[1] },
+ { step: 3, label: t("Purchase"), users: funnelUsers[2] },
+ ];
+ const totalUsers = funnelUsers[0];
return (
<Card
- title="Conversion Funnels"
- description="Visualize user journeys and identify where users drop off."
+ title={t("Conversion Funnels")}
+ description={t("Visualize user journeys and identify where users drop off.")}
icon={Filter}
>
{/* Funnel Steps */}
diff --git a/docs/src/components/Cards/RealTimeAnalytics.tsx b/docs/src/components/Cards/RealTimeAnalytics.tsx
index 999ab8da4..05c003571 100644
--- a/docs/src/components/Cards/RealTimeAnalytics.tsx
+++ b/docs/src/components/Cards/RealTimeAnalytics.tsx
@@ -2,6 +2,7 @@
import { Clock, Eye, Laptop, MousePointerClick, Smartphone, Activity } from "lucide-react";
import { useEffect, useState } from "react";
+import { useExtracted } from "next-intl";
import { Browser } from "../Browser";
import { CountryFlag } from "../Country";
import { OperatingSystem } from "../OperatingSystem";
@@ -83,15 +84,6 @@ interface Event {
isNew?: boolean;
}
-// Generate initial events with timestamps
-const generateInitialEvents = (): Event[] => {
- return [
- { ...eventTemplates[0], id: 1, timestamp: "2 min ago" },
- { ...eventTemplates[1], id: 2, timestamp: "45 sec ago" },
- { ...eventTemplates[2], id: 3, timestamp: "just now" },
- ];
-};
-
// EventCard component for Real-time Analytics
function EventCard({ event, index, isNew }: { event: Event; index: number; isNew?: boolean }) {
const isPageview = event.type === "pageview";
@@ -154,7 +146,12 @@ function EventCard({ event, index, isNew }: { event: Event; index: number; isNew
}
export function RealTimeAnalytics() {
- const [events, setEvents] = useState<Event[]>(generateInitialEvents());
+ const t = useExtracted();
+ const [events, setEvents] = useState<Event[]>(() => [
+ { ...eventTemplates[0], id: 1, timestamp: t("2 min ago") },
+ { ...eventTemplates[1], id: 2, timestamp: t("45 sec ago") },
+ { ...eventTemplates[2], id: 3, timestamp: t("just now") },
+ ]);
const [onlineCount, setOnlineCount] = useState(28);
const [nextId, setNextId] = useState(4);
@@ -165,7 +162,7 @@ export function RealTimeAnalytics() {
const newEvent: Event = {
...randomTemplate,
id: nextId,
- timestamp: "just now",
+ timestamp: t("just now"),
isNew: true,
};
@@ -175,7 +172,7 @@ export function RealTimeAnalytics() {
...event,
isNew: index === 0,
// Update timestamps
- timestamp: index === 0 ? "just now" : index === 1 ? "30 sec ago" : index === 2 ? "1 min ago" : "2 min ago",
+ timestamp: index === 0 ? t("just now") : index === 1 ? t("30 sec ago") : index === 2 ? t("1 min ago") : t("2 min ago"),
}));
return updatedEvents;
});
@@ -194,8 +191,8 @@ export function RealTimeAnalytics() {
return (
<Card
- title="Real-time Analytics"
- description="See your site performance as it happens with instant data updates and live visitor activity."
+ title={t("Real-time Analytics")}
+ description={t("See your site performance as it happens with instant data updates and live visitor activity.")}
icon={Activity}
>
<div className="space-y-4 mt-4 transform -rotate-2 translate-x-8 translate-y-8 bg-neutral-100/50 dark:bg-neutral-800/20 border border-neutral-300/50 dark:border-neutral-800/50 pb-20 rounded-lg p-4 -mb-[90px] transition-transform duration-300 hover:scale-105 hover:-rotate-1">
diff --git a/docs/src/components/Cards/SessionReplay.tsx b/docs/src/components/Cards/SessionReplay.tsx
index 6793fac3f..d8a3cdd6e 100644
--- a/docs/src/components/Cards/SessionReplay.tsx
+++ b/docs/src/components/Cards/SessionReplay.tsx
@@ -3,11 +3,13 @@
import { Card } from "./Card";
import { Play, Pause, SkipBack, SkipForward, Maximize2, Volume2, Laptop, Film } from "lucide-react";
import { useState, useEffect } from "react";
+import { useExtracted } from "next-intl";
import { CountryFlag } from "../Country";
import { Browser } from "../Browser";
import { OperatingSystem } from "../OperatingSystem";
export function SessionReplay() {
+ const t = useExtracted();
const [isPlaying, setIsPlaying] = useState(true);
const [cursorPosition, setCursorPosition] = useState({ x: 48, y: 32 });
const [clickPosition, setClickPosition] = useState<{ x: number; y: number } | null>(null);
@@ -49,8 +51,8 @@ export function SessionReplay() {
return (
<Card
- title="Session Replay"
- description="Watch real user sessions to understand their behavior and identify pain points."
+ title={t("Session Replay")}
+ description={t("Watch real user sessions to understand their behavior and identify pain points.")}
icon={Film}
>
<div className=" mt-4 transform rotate-2 translate-x-8 translate-y-8 bg-neutral-200 dark:bg-neutral-900 rounded-lg -mb-[30px] rounded-xl transition-transform duration-300 hover:scale-105 hover:rotate-3">
@@ -151,7 +153,7 @@ export function SessionReplay() {
{/* Scroll indicator */}
{isPlaying && cursorPosition.y > 160 && (
<div className="absolute bottom-2 right-2 bg-black/50 text-white text-[8px] px-2 py-1 rounded">
- Scrolling...
+ {t("Scrolling...")}
</div>
)}
</div>
diff --git a/docs/src/components/Cards/UserSessions.tsx b/docs/src/components/Cards/UserSessions.tsx
index 1ca955fb4..d2b628659 100644
--- a/docs/src/components/Cards/UserSessions.tsx
+++ b/docs/src/components/Cards/UserSessions.tsx
@@ -1,4 +1,5 @@
import { Clock, Eye, Laptop, MousePointerClick, Users } from "lucide-react";
+import { useExtracted } from "next-intl";
import { Browser } from "../Browser";
import { CountryFlag } from "../Country";
import { OperatingSystem } from "../OperatingSystem";
@@ -6,10 +7,11 @@ import { Card } from "./Card";
import { Avatar } from "../Avatar";
export function UserSessions() {
+ const t = useExtracted();
return (
<Card
- title="User Sessions"
- description="Track complete user journeys through your site with detailed session timelines."
+ title={t("User Sessions")}
+ description={t("Track complete user journeys through your site with detailed session timelines.")}
icon={Users}
>
<div className="space-y-4 mt-4 transform rotate-2 translate-x-8 translate-y-6 bg-neutral-100/50 dark:bg-neutral-800/20 border border-neutral-300/50 dark:border-neutral-800/50 pb-20 rounded-lg p-4 -mb-[100px] transition-transform duration-300 hover:scale-105 hover:rotate-3">
diff --git a/docs/src/components/FAQAccordion.tsx b/docs/src/components/FAQAccordion.tsx
index 4d2da7e48..c7343c610 100644
--- a/docs/src/components/FAQAccordion.tsx
+++ b/docs/src/components/FAQAccordion.tsx
@@ -1,158 +1,143 @@
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "@/components/ui/accordion";
+import { useExtracted } from "next-intl";
import Link from "next/link";
export function FAQAccordion() {
+ const t = useExtracted();
return (
<div className="bg-neutral-100/50 dark:bg-neutral-800/20 backdrop-blur-sm border border-neutral-300/50 dark:border-neutral-800/50 rounded-xl overflow-hidden">
<Accordion type="single" collapsible className="w-full">
<AccordionItem value="item-1">
- <AccordionTrigger className="md:text-lg">Is Rybbit GDPR and CCPA compliant?</AccordionTrigger>
+ <AccordionTrigger className="md:text-lg">{t("Is Rybbit GDPR and CCPA compliant?")}</AccordionTrigger>
<AccordionContent>
- Yes, Rybbit is fully compliant with GDPR, CCPA, and other privacy regulations. We don&apos;t use
- cookies or collect any personal data that could identify your users. We salt user IDs daily to
- ensure users are not fingerprinted. You will not need to display a cookie consent banner to your
- users.
+ {t("Yes, Rybbit is fully compliant with GDPR, CCPA, and other privacy regulations. We don't use cookies or collect any personal data that could identify your users. We salt user IDs daily to ensure users are not fingerprinted. You will not need to display a cookie consent banner to your users.")}
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-2">
- <AccordionTrigger className="md:text-lg">Rybbit vs. Google Analytics</AccordionTrigger>
+ <AccordionTrigger className="md:text-lg">{t("Rybbit vs. Google Analytics")}</AccordionTrigger>
<AccordionContent>
<p>
- Google Analytics is free because Google uses it as a funnel into their ecosystem and to sell ads.
- Rybbit&apos;s only goal is to provide you with high quality analytics. No more confusing
- dashboards pushing random AI features nobody wants.
+ {t("Google Analytics is free because Google uses it as a funnel into their ecosystem and to sell ads. Rybbit's only goal is to provide you with high quality analytics. No more confusing dashboards pushing random AI features nobody wants.")}
</p>
<br />
<p>
- You can see for yourself by checking out our{" "}
+ {t("You can see for yourself by checking out our")}{" "}
<Link
href="https://demo.rybbit.com/1"
className="text-emerald-600 dark:text-emerald-400 hover:text-emerald-500 dark:hover:text-emerald-300"
>
- demo site
+ {t("demo site")}
</Link>
- . The difference in usability is night and day.
+ {t(". The difference in usability is night and day.")}
</p>
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-3">
- <AccordionTrigger className="md:text-lg">Rybbit vs. Plausible/Umami/Fathom</AccordionTrigger>
+ <AccordionTrigger className="md:text-lg">{t("Rybbit vs. Plausible/Umami/Fathom")}</AccordionTrigger>
<AccordionContent>
<p>
- Rybbit is similar to these simple and privacy-focused analytics platforms, but we are raising the
- bar when it comes to UX and the quality and scope of our feature set.
+ {t("Rybbit is similar to these simple and privacy-focused analytics platforms, but we are raising the bar when it comes to UX and the quality and scope of our feature set.")}
</p>
<br />
<p>
- We don&apos;t want to just be a simple analytics tool, but we carefully craft every feature to be
- understandable without having to read pages of documentation.
+ {t("We don't want to just be a simple analytics tool, but we carefully craft every feature to be understandable without having to read pages of documentation.")}
</p>
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-4">
- <AccordionTrigger className="md:text-lg">Rybbit vs. Posthog/Mixpanel/Amplitude</AccordionTrigger>
+ <AccordionTrigger className="md:text-lg">{t("Rybbit vs. Posthog/Mixpanel/Amplitude")}</AccordionTrigger>
<AccordionContent>
<p>
- Rybbit has most of the features of enterprise analytics platforms, but packaged in a way that is
- usable for small and medium sized teams.
+ {t("Rybbit has most of the features of enterprise analytics platforms, but packaged in a way that is usable for small and medium sized teams.")}
</p>
<br />
<p>
- We have advanced features like session replay, error tracking, web vitals, and funnels - but you
- don&apos;t need to spend days learning how to use them.
+ {t("We have advanced features like session replay, error tracking, web vitals, and funnels - but you don't need to spend days learning how to use them.")}
</p>
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-5">
- <AccordionTrigger className="md:text-lg">Can I self-host Rybbit?</AccordionTrigger>
+ <AccordionTrigger className="md:text-lg">{t("Can I self-host Rybbit?")}</AccordionTrigger>
<AccordionContent>
- Absolutely! Rybbit is available as a self-hosted option. You can install it on your own server and
- have complete control over your data.{" "}
+ {t("Absolutely! Rybbit is available as a self-hosted option. You can install it on your own server and have complete control over your data.")}{" "}
<Link
href="/docs/self-hosting"
className="text-emerald-600 dark:text-emerald-400 hover:text-emerald-500 dark:hover:text-emerald-300"
>
- Learn more here
+ {t("Learn more here")}
</Link>
- . We also offer a cloud version if you prefer a managed solution.
+ {t(". We also offer a cloud version if you prefer a managed solution.")}
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-6">
- <AccordionTrigger className="md:text-lg">How easy is it to set up Rybbit?</AccordionTrigger>
+ <AccordionTrigger className="md:text-lg">{t("How easy is it to set up Rybbit?")}</AccordionTrigger>
<AccordionContent>
<Link
href="/docs/script"
className="text-emerald-600 dark:text-emerald-400 hover:text-emerald-500 dark:hover:text-emerald-300"
>
- Setting up Rybbit
+ {t("Setting up Rybbit")}
</Link>{" "}
- is incredibly simple. Just add a small script to your website or install @rybbit/js from npm, and
- you&apos;re good to go. Most users are up and running in less than 5 minutes. We also provide
- comprehensive documentation and support if you need any help.
+ {t("is incredibly simple. Just add a small script to your website or install @rybbit/js from npm, and you're good to go. Most users are up and running in less than 5 minutes. We also provide comprehensive documentation and support if you need any help.")}
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-7">
- <AccordionTrigger className="md:text-lg">What platforms does Rybbit support?</AccordionTrigger>
+ <AccordionTrigger className="md:text-lg">{t("What platforms does Rybbit support?")}</AccordionTrigger>
<AccordionContent>
- Rybbit works with virtually any website platform. Whether you&apos;re using WordPress, Shopify,
- Next.js, React, Vue, or any other framework, our simple tracking snippet integrates seamlessly. You
- can also use @rybbit/js, our web SDK you can install from npm. Check out our{" "}
+ {t("Rybbit works with virtually any website platform. Whether you're using WordPress, Shopify, Next.js, React, Vue, or any other framework, our simple tracking snippet integrates seamlessly. You can also use @rybbit/js, our web SDK you can install from npm. Check out our")}{" "}
<Link
href="/docs"
className="text-emerald-600 dark:text-emerald-400 hover:text-emerald-500 dark:hover:text-emerald-300"
>
- documentation
+ {t("documentation")}
</Link>{" "}
- for setup guides.
+ {t("for setup guides.")}
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-8">
- <AccordionTrigger className="md:text-lg">Is Rybbit open source?</AccordionTrigger>
+ <AccordionTrigger className="md:text-lg">{t("Is Rybbit open source?")}</AccordionTrigger>
<AccordionContent>
- Yes, Rybbit is open source under the AGPL v3.0 license. You are free to{" "}
+ {t("Yes, Rybbit is open source under the AGPL v3.0 license. You are free to")}{" "}
<Link
href="/docs/self-hosting"
className="text-emerald-600 dark:text-emerald-400 hover:text-emerald-500 dark:hover:text-emerald-300"
>
- self-host Rybbit
+ {t("self-host Rybbit")}
</Link>{" "}
- for either personal or business use.
+ {t("for either personal or business use.")}
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-9">
- <AccordionTrigger className="md:text-lg">Can I invite my team to my organization?</AccordionTrigger>
+ <AccordionTrigger className="md:text-lg">{t("Can I invite my team to my organization?")}</AccordionTrigger>
<AccordionContent>
- Yes, you can invite unlimited team members to your organization. Each member can have different
- permission levels to view or manage your analytics dashboards.
+ {t("Yes, you can invite unlimited team members to your organization. Each member can have different permission levels to view or manage your analytics dashboards.")}
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-10">
- <AccordionTrigger className="md:text-lg">Can I share my dashboard publicly?</AccordionTrigger>
+ <AccordionTrigger className="md:text-lg">{t("Can I share my dashboard publicly?")}</AccordionTrigger>
<AccordionContent>
- Yes, you can share your dashboard publicly in two ways: with a secret link that only people with the
- URL can access, or as a completely public dashboard that anyone can view.
+ {t("Yes, you can share your dashboard publicly in two ways: with a secret link that only people with the URL can access, or as a completely public dashboard that anyone can view.")}
</AccordionContent>
</AccordionItem>
<AccordionItem value="item-11">
- <AccordionTrigger className="md:text-lg">Does Rybbit have an API?</AccordionTrigger>
+ <AccordionTrigger className="md:text-lg">{t("Does Rybbit have an API?")}</AccordionTrigger>
<AccordionContent>
- Yes, Rybbit provides a comprehensive{" "}
+ {t("Yes, Rybbit provides a comprehensive")}{" "}
<Link
href="/docs/api/getting-started"
className="text-emerald-600 dark:text-emerald-400 hover:text-emerald-500 dark:hover:text-emerald-300"
>
- API
+ {t("API")}
</Link>{" "}
- that allows you to programmatically access your analytics data. You can integrate Rybbit data into
- your own applications, dashboards, or workflows.
+ {t("that allows you to programmatically access your analytics data. You can integrate Rybbit data into your own applications, dashboards, or workflows.")}
</AccordionContent>
</AccordionItem>
</Accordion>