diff options
Diffstat (limited to 'apps/web/components/settings/sidebar/items.tsx')
| -rw-r--r-- | apps/web/components/settings/sidebar/items.tsx | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/apps/web/components/settings/sidebar/items.tsx b/apps/web/components/settings/sidebar/items.tsx index 047ee233..43dfabdd 100644 --- a/apps/web/components/settings/sidebar/items.tsx +++ b/apps/web/components/settings/sidebar/items.tsx @@ -1,4 +1,5 @@ import React from "react"; +import { TFunction } from "i18next"; import { ArrowLeft, Download, @@ -8,38 +9,40 @@ import { User, } from "lucide-react"; -export const settingsSidebarItems: { +export const settingsSidebarItems = ( + t: TFunction, +): { name: string; icon: JSX.Element; path: string; -}[] = [ +}[] => [ { - name: "Back To App", + name: t("settings.back_to_app"), icon: <ArrowLeft size={18} />, path: "/dashboard/bookmarks", }, { - name: "User Info", + name: t("settings.info.user_info"), icon: <User size={18} />, path: "/settings/info", }, { - name: "AI Settings", + name: t("settings.ai.ai_settings"), icon: <Sparkles size={18} />, path: "/settings/ai", }, { - name: "RSS Subscriptions", + name: t("settings.feeds.rss_subscriptions"), icon: <Rss size={18} />, path: "/settings/feeds", }, { - name: "Import / Export", + name: t("settings.import.import_export"), icon: <Download size={18} />, path: "/settings/import", }, { - name: "API Keys", + name: t("settings.api_keys.api_keys"), icon: <KeyRound size={18} />, path: "/settings/api-keys", }, |
