Skip to content

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

Update localization files to add and correct translations across multiple languages, ensuring consistency in terminology for custom events and team management. Added missing translations for various terms and improved user experience by maintaining uniformity in the user interface language. (#955)

Goldflaga70705e9df7a
diff --git a/client/messages/cs.json b/client/messages/cs.json
index a58ac5a37..556580882 100644
--- a/client/messages/cs.json
+++ b/client/messages/cs.json
@@ -195,8 +195,8 @@
"Zx7WPP": "Všechny řady událostí skryty",
"AKRVhS": "Klikni na položku v legendě pro zobrazení",
"NuhCPH": "Zjisti, jak sledovat události",
- "/aq5/F": "Žádné vlastní události nenalezeny",
"ES6IYH": "Zkus jiný časový rozsah nebo filtr",
+ "/aq5/F": "Žádné vlastní události nenalezeny",
"j7BiRg": "Žádná událost nevybrána.",
"kF9XUo": "Časové razítko",
"EwRIOm": "Uživatel",
@@ -867,6 +867,7 @@
"+WnNru": "",
"DNeuzb": "",
"f7uwif": "",
+ "Ix3wt3": "",
"cPbI/I": "",
"xA1LY9": "",
"68djwb": "",
diff --git a/client/messages/de.json b/client/messages/de.json
index ced9323f4..c29e92cf9 100644
--- a/client/messages/de.json
+++ b/client/messages/de.json
@@ -195,8 +195,8 @@
"Zx7WPP": "Alle Event-Reihen ausgeblendet",
"AKRVhS": "Klicken Sie auf ein Legendenelement, um es anzuzeigen",
"NuhCPH": "Erfahren Sie, wie Sie Events verfolgen",
- "/aq5/F": "Keine benutzerdefinierten Events gefunden",
"ES6IYH": "Versuchen Sie einen anderen Zeitraum oder Filter",
+ "/aq5/F": "Keine benutzerdefinierten Events gefunden",
"j7BiRg": "Kein Event ausgewählt.",
"kF9XUo": "Zeitstempel",
"EwRIOm": "Benutzer",
@@ -850,8 +850,8 @@
"EjE0iv": "Team erfolgreich erstellt",
"hfiE8k": "Team konnte nicht aktualisiert werden",
"DswPK3": "Team konnte nicht erstellt werden",
- "97DGta": "Team erstellen",
"U01dmA": "Team bearbeiten",
+ "97DGta": "Team erstellen",
"03IKqU": "Teamname, Mitglieder und Website-Zuweisungen aktualisieren.",
"Ps71bZ": "Erstellen Sie ein neues Team, um Websites zu gruppieren und den Mitgliederzugriff zu steuern.",
"k+kHlN": "Teamname",
@@ -867,6 +867,7 @@
"+WnNru": "Sind Sie sicher, dass Sie das Team \"{name}\" löschen möchten? Websites, die diesem Team zugewiesen sind, werden nicht mehr zugewiesen und für alle Mitglieder sichtbar.",
"DNeuzb": "Teams",
"f7uwif": "Organisieren Sie Websites in Teams, um zu steuern, welche Mitglieder darauf zugreifen können.",
+ "Ix3wt3": "",
"cPbI/I": "Sie haben keine Berechtigung, die Teameinstellungen anzuzeigen.",
"xA1LY9": "Sie müssen eine Organisation erstellen oder zu einer hinzugefügt werden, bevor Sie Teams verwalten können.",
"68djwb": "Noch keine Teams",
diff --git a/client/messages/en.json b/client/messages/en.json
index 80a17511f..414f06710 100644
--- a/client/messages/en.json
+++ b/client/messages/en.json
@@ -195,8 +195,8 @@
"Zx7WPP": "All event series hidden",
"AKRVhS": "Click a legend item to show it",
"NuhCPH": "Learn how to track events",
- "/aq5/F": "No custom events found",
"ES6IYH": "Try a different date range or filter",
+ "/aq5/F": "No custom events found",
"j7BiRg": "No event selected.",
"kF9XUo": "Timestamp",
"EwRIOm": "User",
@@ -850,8 +850,8 @@
"EjE0iv": "Team created successfully",
"hfiE8k": "Failed to update team",
"DswPK3": "Failed to create team",
- "97DGta": "Create Team",
"U01dmA": "Edit Team",
+ "97DGta": "Create Team",
"03IKqU": "Update team name, members, and site assignments.",
"Ps71bZ": "Create a new team to group sites and control member access.",
"k+kHlN": "Team Name",
@@ -867,6 +867,7 @@
"+WnNru": "Are you sure you want to delete the team \"{name}\"? Sites assigned to this team will become unassigned and visible to all members.",
"DNeuzb": "Teams",
"f7uwif": "Organize sites into teams to control which members can access them.",
+ "Ix3wt3": "Learn more about teams",
"cPbI/I": "You don't have permission to view team settings.",
"xA1LY9": "You need to create or be added to an organization before you can manage teams.",
"68djwb": "No teams yet",
diff --git a/client/messages/es.json b/client/messages/es.json
index 98a455c26..9a737fa82 100644
--- a/client/messages/es.json
+++ b/client/messages/es.json
@@ -195,8 +195,8 @@
"Zx7WPP": "Todas las series de eventos ocultas",
"AKRVhS": "Haz clic en un elemento de la leyenda para mostrarlo",
"NuhCPH": "Aprende cómo rastrear eventos",
- "/aq5/F": "No se encontraron eventos personalizados",
"ES6IYH": "Prueba un rango de fechas o filtro diferente",
+ "/aq5/F": "No se encontraron eventos personalizados",
"j7BiRg": "Ningún evento seleccionado.",
"kF9XUo": "Marca de tiempo",
"EwRIOm": "Usuario",
@@ -850,8 +850,8 @@
"EjE0iv": "Equipo creado correctamente",
"hfiE8k": "Error al actualizar el equipo",
"DswPK3": "Error al crear el equipo",
- "97DGta": "Crear equipo",
"U01dmA": "Editar equipo",
+ "97DGta": "Crear equipo",
"03IKqU": "Actualiza el nombre del equipo, los miembros y las asignaciones de sitios.",
"Ps71bZ": "Crea un nuevo equipo para agrupar sitios y controlar el acceso de los miembros.",
"k+kHlN": "Nombre del equipo",
@@ -867,6 +867,7 @@
"+WnNru": "¿Estás seguro de que quieres eliminar el equipo \"{name}\"? Los sitios asignados a este equipo quedarán sin asignar y serán visibles para todos los miembros.",
"DNeuzb": "Equipos",
"f7uwif": "Organiza los sitios en equipos para controlar qué miembros pueden acceder a ellos.",
+ "Ix3wt3": "",
"cPbI/I": "No tienes permiso para ver la configuración del equipo.",
"xA1LY9": "Debes crear o ser agregado a una organización antes de poder administrar equipos.",
"68djwb": "Aún no hay equipos",
diff --git a/client/messages/fr.json b/client/messages/fr.json
index 3bf9fbf5c..b5413178b 100644
--- a/client/messages/fr.json
+++ b/client/messages/fr.json
@@ -195,8 +195,8 @@
"Zx7WPP": "Toutes les séries d'événements masquées",
"AKRVhS": "Cliquez sur un élément de la légende pour l'afficher",
"NuhCPH": "Apprenez à suivre les événements",
- "/aq5/F": "Aucun événement personnalisé trouvé",
"ES6IYH": "Essayez une autre période ou un autre filtre",
+ "/aq5/F": "Aucun événement personnalisé trouvé",
"j7BiRg": "Aucun événement sélectionné.",
"kF9XUo": "Horodatage",
"EwRIOm": "Utilisateur",
@@ -850,8 +850,8 @@
"EjE0iv": "Équipe créée avec succès",
"hfiE8k": "Échec de la mise à jour de l'équipe",
"DswPK3": "Échec de la création de l'équipe",
- "97DGta": "Créer une équipe",
"U01dmA": "Modifier l'équipe",
+ "97DGta": "Créer une équipe",
"03IKqU": "Mettre à jour le nom de l'équipe, les membres et les affectations de sites.",
"Ps71bZ": "Créez une nouvelle équipe pour regrouper les sites et contrôler l'accès des membres.",
"k+kHlN": "Nom de l'équipe",
@@ -867,6 +867,7 @@
"+WnNru": "Êtes-vous sûr de vouloir supprimer l'équipe \"{name}\" ? Les sites affectés à cette équipe deviendront non affectés et visibles pour tous les membres.",
"DNeuzb": "Équipes",
"f7uwif": "Organisez les sites en équipes pour contrôler quels membres peuvent y accéder.",
+ "Ix3wt3": "",
"cPbI/I": "Vous n'avez pas l'autorisation de consulter les paramètres de l'équipe.",
"xA1LY9": "Vous devez créer ou être ajouté à une organisation avant de pouvoir gérer les équipes.",
"68djwb": "Pas encore d'équipes",
diff --git a/client/messages/it.json b/client/messages/it.json
index 5c01eaf45..c5164a951 100644
--- a/client/messages/it.json
+++ b/client/messages/it.json
@@ -195,8 +195,8 @@
"Zx7WPP": "Tutte le serie di eventi nascoste",
"AKRVhS": "Clicca un elemento della legenda per mostrarlo",
"NuhCPH": "Scopri come tracciare gli eventi",
- "/aq5/F": "Nessun evento personalizzato trovato",
"ES6IYH": "Prova un intervallo di date diverso o un filtro",
+ "/aq5/F": "Nessun evento personalizzato trovato",
"j7BiRg": "Nessun evento selezionato.",
"kF9XUo": "Timestamp",
"EwRIOm": "Utente",
@@ -850,8 +850,8 @@
"EjE0iv": "Team creato con successo",
"hfiE8k": "Impossibile aggiornare il team",
"DswPK3": "Impossibile creare il team",
- "97DGta": "Crea team",
"U01dmA": "Modifica team",
+ "97DGta": "Crea team",
"03IKqU": "Aggiorna il nome del team, i membri e le assegnazioni dei siti.",
"Ps71bZ": "Crea un nuovo team per raggruppare i siti e controllare l'accesso dei membri.",
"k+kHlN": "Nome del team",
@@ -867,6 +867,7 @@
"+WnNru": "Sei sicuro di voler eliminare il team \"{name}\"? I siti assegnati a questo team diventeranno non assegnati e visibili a tutti i membri.",
"DNeuzb": "Team",
"f7uwif": "Organizza i siti in team per controllare quali membri possono accedervi.",
+ "Ix3wt3": "",
"cPbI/I": "Non hai il permesso di visualizzare le impostazioni del team.",
"xA1LY9": "Devi creare o essere aggiunto a un'organizzazione prima di poter gestire i team.",
"68djwb": "Nessun team ancora",
diff --git a/client/messages/ja.json b/client/messages/ja.json
index 1d0b90fed..ae3168aed 100644
--- a/client/messages/ja.json
+++ b/client/messages/ja.json
@@ -195,8 +195,8 @@
"Zx7WPP": "すべてのイベント系列が非表示です",
"AKRVhS": "凡例の項目をクリックして表示します",
"NuhCPH": "イベントのトラッキング方法を学ぶ",
- "/aq5/F": "カスタムイベントが見つかりません",
"ES6IYH": "別の日付範囲またはフィルターをお試しください",
+ "/aq5/F": "カスタムイベントが見つかりません",
"j7BiRg": "イベントが選択されていません。",
"kF9XUo": "タイムスタンプ",
"EwRIOm": "ユーザー",
@@ -850,8 +850,8 @@
"EjE0iv": "チームが正常に作成されました",
"hfiE8k": "チームの更新に失敗しました",
"DswPK3": "チームの作成に失敗しました",
- "97DGta": "チームを作成",
"U01dmA": "チームを編集",
+ "97DGta": "チームを作成",
"03IKqU": "チーム名、メンバー、サイト割り当てを更新します。",
"Ps71bZ": "サイトをグループ化してメンバーアクセスを制御する新しいチームを作成します。",
"k+kHlN": "チーム名",
@@ -867,6 +867,7 @@
"+WnNru": "チーム\"{name}\"を削除してよろしいですか?このチームに割り当てられたサイトは未割り当てになり、すべてのメンバーに表示されます。",
"DNeuzb": "チーム",
"f7uwif": "サイトをチームに整理して、どのメンバーがアクセスできるかを制御します。",
+ "Ix3wt3": "",
"cPbI/I": "チーム設定を表示する権限がありません。",
"xA1LY9": "チームを管理するには、まず組織を作成するか組織に追加される必要があります。",
"68djwb": "チームがまだありません",
diff --git a/client/messages/ko.json b/client/messages/ko.json
index 978d20948..c2ec0aa75 100644
--- a/client/messages/ko.json
+++ b/client/messages/ko.json
@@ -195,8 +195,8 @@
"Zx7WPP": "모든 이벤트 시리즈 숨김",
"AKRVhS": "범례 항목을 클릭하여 표시",
"NuhCPH": "이벤트 추적 방법 알아보기",
- "/aq5/F": "사용자 정의 이벤트를 찾을 수 없음",
"ES6IYH": "다른 날짜 범위 또는 필터를 시도하세요",
+ "/aq5/F": "사용자 정의 이벤트를 찾을 수 없음",
"j7BiRg": "이벤트가 선택되지 않았습니다.",
"kF9XUo": "타임스탬프",
"EwRIOm": "사용자",
@@ -850,8 +850,8 @@
"EjE0iv": "팀이 성공적으로 생성되었습니다",
"hfiE8k": "팀 업데이트에 실패했습니다",
"DswPK3": "팀 생성에 실패했습니다",
- "97DGta": "팀 생성",
"U01dmA": "팀 편집",
+ "97DGta": "팀 생성",
"03IKqU": "팀 이름, 멤버 및 사이트 할당을 업데이트합니다.",
"Ps71bZ": "사이트를 그룹화하고 멤버 액세스를 제어하는 새 팀을 만듭니다.",
"k+kHlN": "팀 이름",
@@ -867,6 +867,7 @@
"+WnNru": "팀 \"{name}\"을(를) 삭제하시겠습니까? 이 팀에 할당된 사이트는 할당 해제되어 모든 멤버에게 표시됩니다.",
"DNeuzb": "팀",
"f7uwif": "어떤 멤버가 사이트에 액세스할 수 있는지 제어하기 위해 팀에 사이트를 구성합니다.",
+ "Ix3wt3": "",
"cPbI/I": "팀 설정을 볼 권한이 없습니다.",
"xA1LY9": "팀을 관리하려면 먼저 조직을 만들거나 추가되어야 합니다.",
"68djwb": "아직 팀이 없습니다",
diff --git a/client/messages/pl.json b/client/messages/pl.json
index 0c1fbd61f..8f541fa1d 100644
--- a/client/messages/pl.json
+++ b/client/messages/pl.json
@@ -195,8 +195,8 @@
"Zx7WPP": "Wszystkie serie zdarzeń ukryte",
"AKRVhS": "Kliknij element legendy, aby go wyświetlić",
"NuhCPH": "Dowiedz się, jak śledzić zdarzenia",
- "/aq5/F": "Nie znaleziono niestandardowych zdarzeń",
"ES6IYH": "Spróbuj innego zakresu dat lub filtra",
+ "/aq5/F": "Nie znaleziono niestandardowych zdarzeń",
"j7BiRg": "Nie wybrano zdarzenia.",
"kF9XUo": "Znacznik czasu",
"EwRIOm": "Użytkownik",
@@ -850,8 +850,8 @@
"EjE0iv": "Zespół został pomyślnie utworzony",
"hfiE8k": "Nie udało się zaktualizować zespołu",
"DswPK3": "Nie udało się utworzyć zespołu",
- "97DGta": "Utwórz zespół",
"U01dmA": "Edytuj zespół",
+ "97DGta": "Utwórz zespół",
"03IKqU": "Zaktualizuj nazwę zespołu, członków i przypisania witryn.",
"Ps71bZ": "Utwórz nowy zespół, aby grupować witryny i kontrolować dostęp członków.",
"k+kHlN": "Nazwa zespołu",
@@ -867,6 +867,7 @@
"+WnNru": "Czy na pewno chcesz usunąć zespół \"{name}\"? Witryny przypisane do tego zespołu staną się nieprzypisane i widoczne dla wszystkich członków.",
"DNeuzb": "Zespoły",
"f7uwif": "Organizuj witryny w zespoły, aby kontrolować, którzy członkowie mogą do nich uzyskać dostęp.",
+ "Ix3wt3": "",
"cPbI/I": "Nie masz uprawnień do wyświetlania ustawień zespołu.",
"xA1LY9": "Musisz utworzyć lub zostać dodany do organizacji, zanim będziesz mógł zarządzać zespołami.",
"68djwb": "Brak zespołów",
diff --git a/client/messages/pt.json b/client/messages/pt.json
index 412abefe6..e760add9f 100644
--- a/client/messages/pt.json
+++ b/client/messages/pt.json
@@ -195,8 +195,8 @@
"Zx7WPP": "Todas as séries de eventos ocultas",
"AKRVhS": "Clique em um item da legenda para exibi-lo",
"NuhCPH": "Saiba como rastrear eventos",
- "/aq5/F": "Nenhum evento personalizado encontrado",
"ES6IYH": "Tente um intervalo de datas diferente ou filtro",
+ "/aq5/F": "Nenhum evento personalizado encontrado",
"j7BiRg": "Nenhum evento selecionado.",
"kF9XUo": "Data/Hora",
"EwRIOm": "Usuário",
@@ -850,8 +850,8 @@
"EjE0iv": "Time criado com sucesso",
"hfiE8k": "Falha ao atualizar time",
"DswPK3": "Falha ao criar time",
- "97DGta": "Criar time",
"U01dmA": "Editar time",
+ "97DGta": "Criar time",
"03IKqU": "Atualize o nome do time, membros e atribuições de sites.",
"Ps71bZ": "Crie um novo time para agrupar sites e controlar o acesso dos membros.",
"k+kHlN": "Nome do time",
@@ -867,6 +867,7 @@
"+WnNru": "Tem certeza que deseja excluir o time \"{name}\"? Os sites atribuídos a este time ficarão sem atribuição e visíveis para todos os membros.",
"DNeuzb": "Times",
"f7uwif": "Organize sites em times para controlar quais membros podem acessá-los.",
+ "Ix3wt3": "",
"cPbI/I": "Você não tem permissão para ver as configurações do time.",
"xA1LY9": "Você precisa criar ou ser adicionado a uma organização antes de gerenciar times.",
"68djwb": "Nenhum time ainda",
diff --git a/client/messages/zh.json b/client/messages/zh.json
index faf12b0a4..10ccdd943 100644
--- a/client/messages/zh.json
+++ b/client/messages/zh.json
@@ -195,8 +195,8 @@
"Zx7WPP": "所有事件系列已隐藏",
"AKRVhS": "点击图例项以显示它",
"NuhCPH": "了解如何追踪事件",
- "/aq5/F": "未找到自定义事件",
"ES6IYH": "尝试不同的日期范围或过滤器",
+ "/aq5/F": "未找到自定义事件",
"j7BiRg": "未选择事件。",
"kF9XUo": "时间戳",
"EwRIOm": "用户",
@@ -850,8 +850,8 @@
"EjE0iv": "团队创建成功",
"hfiE8k": "更新团队失败",
"DswPK3": "创建团队失败",
- "97DGta": "创建团队",
"U01dmA": "编辑团队",
+ "97DGta": "创建团队",
"03IKqU": "更新团队名称、成员和站点分配。",
"Ps71bZ": "创建新团队以对站点进行分组并控制成员访问权限。",
"k+kHlN": "团队名称",
@@ -867,6 +867,7 @@
"+WnNru": "确定要删除团队\"{name}\"吗?分配给此团队的站点将变为未分配状态,所有成员均可见。",
"DNeuzb": "团队",
"f7uwif": "将站点组织成团队以控制哪些成员可以访问它们。",
+ "Ix3wt3": "",
"cPbI/I": "您没有权限查看团队设置。",
"xA1LY9": "您需要先创建或加入一个组织,才能管理团队。",
"68djwb": "暂无团队",
diff --git a/client/src/app/[site]/components/Header/NoData.tsx b/client/src/app/[site]/components/Header/NoData.tsx
index f0c324517..0ff6fccba 100644
--- a/client/src/app/[site]/components/Header/NoData.tsx
+++ b/client/src/app/[site]/components/Header/NoData.tsx
@@ -37,8 +37,8 @@ import { useExtracted } from "next-intl";
import React from "react";
import { useGetSite, useSiteHasData } from "../../../../api/admin/hooks/useSites";
import { CodeSnippet } from "../../../../components/CodeSnippet";
+import { ExternalLink } from "../../../../components/ExternalLink";
import { Alert } from "../../../../components/ui/alert";
-import { VerifyInstallation } from "../../../../components/VerifyInstallation";
import { useStore } from "../../../../lib/store";
// Custom Card Component
@@ -94,13 +94,13 @@ export function NoData() {
/>
<span className="text-xs text-muted-foreground">
{t("See our")}{" "}
- <a href="https://rybbit.com/docs/script" className="text-blue-500 hover:underline">
+ <ExternalLink href="https://rybbit.com/docs/script">
{t("docs")}
- </a>{" "}
+ </ExternalLink>{" "}
{t("for more information, or")}{" "}
- <a href="https://rybbit.com/docs/script-troubleshooting" className="text-blue-500 hover:underline">
+ <ExternalLink href="https://rybbit.com/docs/script-troubleshooting">
{t("troubleshoot")}
- </a>{" "}
+ </ExternalLink>{" "}
{t("if your script isn't sending traffic.")}
</span>
{/* {siteMetadata?.siteId && <VerifyInstallation siteId={siteMetadata.siteId} />} */}
diff --git a/client/src/app/[site]/funnels/page.tsx b/client/src/app/[site]/funnels/page.tsx
index 33d7591f7..a1f6fdfd5 100644
--- a/client/src/app/[site]/funnels/page.tsx
+++ b/client/src/app/[site]/funnels/page.tsx
@@ -16,7 +16,7 @@ import { useSetPageTitle } from "../../../hooks/useSetPageTitle";
import { SubHeader } from "../components/SubHeader/SubHeader";
import { CreateFunnelDialog } from "./components/CreateFunnel";
import { FunnelRow } from "./components/FunnelRow";
-import Link from "next/link";
+import { ExternalLink } from "../../../components/ExternalLink";
// Skeleton for the funnel row component
const FunnelRowSkeleton = () => (
@@ -126,7 +126,7 @@ export default function FunnelsPage() {
<NothingFound
icon={<Funnel className="w-10 h-10" />}
title={t("No funnels yet")}
- description={<span>{t("Create your first funnel to track conversions through your site's user journey.")} <Link href="https://rybbit.com/docs/funnels" className="text-blue-500 hover:underline" target="_blank">{t("Learn more")}</Link></span>}
+ description={<span>{t("Create your first funnel to track conversions through your site's user journey.")} <ExternalLink href="https://rybbit.com/docs/funnels">{t("Learn more")}</ExternalLink></span>}
action={<CreateFunnelDialog />}
/>
)}
diff --git a/client/src/app/[site]/goals/page.tsx b/client/src/app/[site]/goals/page.tsx
index 40cd1ae49..ab6729c20 100644
--- a/client/src/app/[site]/goals/page.tsx
+++ b/client/src/app/[site]/goals/page.tsx
@@ -14,7 +14,7 @@ import CreateGoalButton from "./components/CreateGoalButton";
import GoalsList from "./components/GoalsList";
import { Target } from "lucide-react";
import { Input } from "@/components/ui/input";
-import Link from "next/link";
+import { ExternalLink } from "../../../components/ExternalLink";
// Goal card skeleton component
const GoalCardSkeleton = () => (
@@ -166,7 +166,7 @@ export default function GoalsPage() {
<NothingFound
icon={<Target className="w-10 h-10" />}
title={t("No goals found")}
- description={<span>{t("Create your first conversion goal to start tracking important user actions.")} <Link href="https://rybbit.com/docs/goals" className="text-blue-500 hover:underline" target="_blank">{t("Learn more")}</Link></span>}
+ description={<span>{t("Create your first conversion goal to start tracking important user actions.")} <ExternalLink href="https://rybbit.com/docs/goals">{t("Learn more")}</ExternalLink></span>}
action={<CreateGoalButton siteId={Number(site)} />}
/>
) : filteredGoals.length === 0 ? (
diff --git a/client/src/app/[site]/users/components/TraitsExplorer.tsx b/client/src/app/[site]/users/components/TraitsExplorer.tsx
index da509fda7..949739afc 100644
--- a/client/src/app/[site]/users/components/TraitsExplorer.tsx
+++ b/client/src/app/[site]/users/components/TraitsExplorer.tsx
@@ -2,6 +2,7 @@
import { useExtracted } from "next-intl";
import { Tags } from "lucide-react";
+import { ExternalLink } from "../../../../components/ExternalLink";
import { NothingFound } from "../../../../components/NothingFound";
import { useGetUserTraitKeys } from "../../../../api/analytics/hooks/useGetUserTraits";
import { TraitKeyRow } from "./TraitKeyRow";
@@ -37,7 +38,7 @@ export function TraitsExplorer() {
<NothingFound
icon={<Tags className="w-10 h-10" />}
title={t("No traits found")}
- description={<p>{t("Traits will appear here once you")} <a href="https://rybbit.com/docs/identify-users" target="_blank" rel="noopener noreferrer" className="text-indigo-400 hover:underline">{t("identify users")}</a> {t("with custom properties.")}</p>}
+ description={<p>{t("Traits will appear here once you")} <ExternalLink href="https://rybbit.com/docs/identify-users">{t("identify users")}</ExternalLink> {t("with custom properties.")}</p>}
/>
);
}
diff --git a/client/src/app/settings/account/page.tsx b/client/src/app/settings/account/page.tsx
index 620ecad16..760d4791b 100644
--- a/client/src/app/settings/account/page.tsx
+++ b/client/src/app/settings/account/page.tsx
@@ -3,6 +3,7 @@
import { useExtracted } from "next-intl";
import { useSetPageTitle } from "../../../hooks/useSetPageTitle";
import { AccountInner } from "./components/AccountInner";
+import { ExternalLink } from "../../../components/ExternalLink";
export default function AccountPage() {
useSetPageTitle("Account");
@@ -12,7 +13,12 @@ export default function AccountPage() {
<>
<div className="mb-4">
<h1 className="text-3xl font-bold tracking-tight">{t("Account Settings")}</h1>
- <p className="text-neutral-500 dark:text-neutral-400">{t("Manage your personal account settings")}</p>
+ <p className="text-neutral-500 dark:text-neutral-400 flex items-center gap-1">
+ {t("Manage your personal account settings")}
+ <ExternalLink href="https://www.rybbit.com/docs/account-settings">
+ {t("Learn more")}
+ </ExternalLink>
+ </p>
</div>
<AccountInner />
</>
diff --git a/client/src/app/settings/teams/layout.tsx b/client/src/app/settings/teams/layout.tsx
index 6b4f8e825..9d7f160cf 100644
--- a/client/src/app/settings/teams/layout.tsx
+++ b/client/src/app/settings/teams/layout.tsx
@@ -5,6 +5,7 @@ import { useExtracted } from "next-intl";
import { Button } from "../../../components/ui/button";
import { authClient } from "../../../lib/auth";
import { CreateEditTeamDialog } from "./components/CreateEditTeamDialog";
+import { ExternalLink } from "../../../components/ExternalLink";
export default function TeamsLayout({ children }: { children: React.ReactNode }) {
const t = useExtracted();
@@ -20,8 +21,11 @@ export default function TeamsLayout({ children }: { children: React.ReactNode })
<div className="flex items-end justify-between">
<div>
<h1 className="text-3xl font-bold tracking-tight">{t("Teams")}</h1>
- <p className="text-neutral-500 dark:text-neutral-400">
+ <p className="text-neutral-500 dark:text-neutral-400 flex items-center gap-1">
{t("Organize sites into teams to control which members can access them.")}
+ <ExternalLink href="https://www.rybbit.com/docs/teams">
+ {t("Learn more about teams")}
+ </ExternalLink>
</p>
</div>
{!isMember && (
diff --git a/client/src/components/ExternalLink.tsx b/client/src/components/ExternalLink.tsx
new file mode 100644
index 000000000..97c59e58e
--- /dev/null
+++ b/client/src/components/ExternalLink.tsx
@@ -0,0 +1,22 @@
+import { AnchorHTMLAttributes } from "react";
+import { cn } from "../lib/utils";
+
+export function ExternalLink({
+ className,
+ children,
+ ...props
+}: AnchorHTMLAttributes<HTMLAnchorElement>) {
+ return (
+ <a
+ target="_blank"
+ rel="noopener noreferrer"
+ className={cn(
+ "text-blue-500 hover:underline underline-offset-2",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ </a>
+ );
+}