Sidebar updates (#5154)
* fix sidebar and add translations to sidebar * add translations
This commit is contained in:
parent
ee4b208f95
commit
12f861b87a
@ -4,15 +4,15 @@ import useLogo from "@/hooks/useLogo";
|
|||||||
import {
|
import {
|
||||||
House,
|
House,
|
||||||
List,
|
List,
|
||||||
Robot,
|
|
||||||
Flask,
|
Flask,
|
||||||
Gear,
|
Gear,
|
||||||
UserCircleGear,
|
UserCircleGear,
|
||||||
PencilSimpleLine,
|
PencilSimpleLine,
|
||||||
Nut,
|
Nut,
|
||||||
Toolbox,
|
Toolbox,
|
||||||
Globe,
|
|
||||||
} from "@phosphor-icons/react";
|
} from "@phosphor-icons/react";
|
||||||
|
import AgentIcon from "@/media/animations/agent-static.png";
|
||||||
|
import CommunityHubIcon from "@/media/illustrations/community-hub.png";
|
||||||
import useUser from "@/hooks/useUser";
|
import useUser from "@/hooks/useUser";
|
||||||
import { isMobile } from "react-device-detect";
|
import { isMobile } from "react-device-detect";
|
||||||
import Footer from "../Footer";
|
import Footer from "../Footer";
|
||||||
@ -295,30 +295,42 @@ const SidebarOptions = ({ user = null, t }) => (
|
|||||||
/>
|
/>
|
||||||
<Option
|
<Option
|
||||||
btnText={t("settings.agent-skills")}
|
btnText={t("settings.agent-skills")}
|
||||||
icon={<Robot className="h-5 w-5 flex-shrink-0" />}
|
icon={
|
||||||
|
<img
|
||||||
|
src={AgentIcon}
|
||||||
|
alt="Agent"
|
||||||
|
className="h-5 w-5 flex-shrink-0 light:invert"
|
||||||
|
/>
|
||||||
|
}
|
||||||
href={paths.settings.agentSkills()}
|
href={paths.settings.agentSkills()}
|
||||||
user={user}
|
user={user}
|
||||||
flex={true}
|
flex={true}
|
||||||
roles={["admin"]}
|
roles={["admin"]}
|
||||||
/>
|
/>
|
||||||
<Option
|
<Option
|
||||||
btnText="Community Hub"
|
btnText={t("settings.community-hub.title")}
|
||||||
icon={<Globe className="h-5 w-5 flex-shrink-0" />}
|
icon={
|
||||||
|
<img
|
||||||
|
src={CommunityHubIcon}
|
||||||
|
alt="Community Hub"
|
||||||
|
className="h-5 w-5 flex-shrink-0 light:invert"
|
||||||
|
/>
|
||||||
|
}
|
||||||
childOptions={[
|
childOptions={[
|
||||||
{
|
{
|
||||||
btnText: "Explore Trending",
|
btnText: t("settings.community-hub.trending"),
|
||||||
href: paths.communityHub.trending(),
|
href: paths.communityHub.trending(),
|
||||||
flex: true,
|
flex: true,
|
||||||
roles: ["admin"],
|
roles: ["admin"],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
btnText: "Your Account",
|
btnText: t("settings.community-hub.your-account"),
|
||||||
href: paths.communityHub.authentication(),
|
href: paths.communityHub.authentication(),
|
||||||
flex: true,
|
flex: true,
|
||||||
roles: ["admin"],
|
roles: ["admin"],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
btnText: "Import Item",
|
btnText: t("settings.community-hub.import-item"),
|
||||||
href: paths.communityHub.importItem(),
|
href: paths.communityHub.importItem(),
|
||||||
flex: true,
|
flex: true,
|
||||||
roles: ["admin"],
|
roles: ["admin"],
|
||||||
|
|||||||
@ -102,6 +102,12 @@ const TRANSLATIONS = {
|
|||||||
branding: "التسويق بالعلامة التجارية ووضع العلامات التجارية",
|
branding: "التسويق بالعلامة التجارية ووضع العلامات التجارية",
|
||||||
chat: "دردشة",
|
chat: "دردشة",
|
||||||
"mobile-app": "AnythingLLM Mobile",
|
"mobile-app": "AnythingLLM Mobile",
|
||||||
|
"community-hub": {
|
||||||
|
title: "مركز المجتمع",
|
||||||
|
trending: "استكشف الاتجاهات الرائجة",
|
||||||
|
"your-account": "حسابك",
|
||||||
|
"import-item": "استيراد العنصر",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -111,6 +111,12 @@ const TRANSLATIONS = {
|
|||||||
contact: "Kontaktovat podporu",
|
contact: "Kontaktovat podporu",
|
||||||
"browser-extension": "Rozšíření prohlížeče",
|
"browser-extension": "Rozšíření prohlížeče",
|
||||||
"mobile-app": "AnythingLLM Mobile",
|
"mobile-app": "AnythingLLM Mobile",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Centrální místo pro komunitu",
|
||||||
|
trending: "Prozkoumejte aktuální trendy",
|
||||||
|
"your-account": "Váš účet",
|
||||||
|
"import-item": "Importovat položku",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -105,6 +105,12 @@ const TRANSLATIONS = {
|
|||||||
branding: "Brandstrategi og white-labeling",
|
branding: "Brandstrategi og white-labeling",
|
||||||
chat: "Chat",
|
chat: "Chat",
|
||||||
"mobile-app": "AnythingLLM Mobile",
|
"mobile-app": "AnythingLLM Mobile",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Fælleshus",
|
||||||
|
trending: "Udforsk populære emner",
|
||||||
|
"your-account": "Dit konti",
|
||||||
|
"import-item": "Importeret vare",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -104,6 +104,12 @@ const TRANSLATIONS = {
|
|||||||
"browser-extension": "Browser-Extension",
|
"browser-extension": "Browser-Extension",
|
||||||
"system-prompt-variables": "Systempromptvariablen",
|
"system-prompt-variables": "Systempromptvariablen",
|
||||||
"mobile-app": "AnythingLLM Mobile",
|
"mobile-app": "AnythingLLM Mobile",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Gemeindezentrum",
|
||||||
|
trending: "Entdecken Sie die aktuell beliebtesten Themen",
|
||||||
|
"your-account": "Ihr Konto",
|
||||||
|
"import-item": "Artikel importieren",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -106,6 +106,12 @@ const TRANSLATIONS = {
|
|||||||
privacy: "Privacy & Data",
|
privacy: "Privacy & Data",
|
||||||
"ai-providers": "AI Providers",
|
"ai-providers": "AI Providers",
|
||||||
"agent-skills": "Agent Skills",
|
"agent-skills": "Agent Skills",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Community Hub",
|
||||||
|
trending: "Explore Trending",
|
||||||
|
"your-account": "Your Account",
|
||||||
|
"import-item": "Import Item",
|
||||||
|
},
|
||||||
admin: "Admin",
|
admin: "Admin",
|
||||||
tools: "Tools",
|
tools: "Tools",
|
||||||
"system-prompt-variables": "System Prompt Variables",
|
"system-prompt-variables": "System Prompt Variables",
|
||||||
|
|||||||
@ -104,6 +104,12 @@ const TRANSLATIONS = {
|
|||||||
contact: "Contactar con soporte",
|
contact: "Contactar con soporte",
|
||||||
"browser-extension": "Extensión del navegador",
|
"browser-extension": "Extensión del navegador",
|
||||||
"mobile-app": "AnythingLLM Móvil",
|
"mobile-app": "AnythingLLM Móvil",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Centro comunitario",
|
||||||
|
trending: "Explora las tendencias más populares",
|
||||||
|
"your-account": "Su cuenta",
|
||||||
|
"import-item": "Importar artículo",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
@ -909,7 +915,7 @@ const TRANSLATIONS = {
|
|||||||
cancel: "Cancelar",
|
cancel: "Cancelar",
|
||||||
edit_prompt: "Editar prompt",
|
edit_prompt: "Editar prompt",
|
||||||
edit_response: "Editar respuesta",
|
edit_response: "Editar respuesta",
|
||||||
at_agent: "@agente",
|
at_agent: "@agent",
|
||||||
default_agent_description:
|
default_agent_description:
|
||||||
" - el agente predeterminado para este espacio de trabajo.",
|
" - el agente predeterminado para este espacio de trabajo.",
|
||||||
custom_agents_coming_soon: "¡los agentes personalizados llegarán pronto!",
|
custom_agents_coming_soon: "¡los agentes personalizados llegarán pronto!",
|
||||||
|
|||||||
@ -102,6 +102,12 @@ const TRANSLATIONS = {
|
|||||||
contact: "Tugi",
|
contact: "Tugi",
|
||||||
"browser-extension": "Brauserilaiend",
|
"browser-extension": "Brauserilaiend",
|
||||||
"mobile-app": "AnythingLLM mobiilversioon",
|
"mobile-app": "AnythingLLM mobiilversioon",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Kogukonna keskpunkt",
|
||||||
|
trending: "Avasta populaarseid",
|
||||||
|
"your-account": "Teie konto",
|
||||||
|
"import-item": "Importeeritud toode",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -105,6 +105,12 @@ const TRANSLATIONS = {
|
|||||||
branding: "برندسازی و تولید محصولات با برچسب سفید",
|
branding: "برندسازی و تولید محصولات با برچسب سفید",
|
||||||
chat: "چت",
|
chat: "چت",
|
||||||
"mobile-app": "AnythingLLM Mobile",
|
"mobile-app": "AnythingLLM Mobile",
|
||||||
|
"community-hub": {
|
||||||
|
title: "مرکز محلی",
|
||||||
|
trending: "بررسی ترندها",
|
||||||
|
"your-account": "حساب شما",
|
||||||
|
"import-item": "وارد کردن کالا",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -103,6 +103,12 @@ const TRANSLATIONS = {
|
|||||||
branding: "Personnalisation",
|
branding: "Personnalisation",
|
||||||
chat: "Chat",
|
chat: "Chat",
|
||||||
"mobile-app": "AnythingLLM Mobile",
|
"mobile-app": "AnythingLLM Mobile",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Centre communautaire",
|
||||||
|
trending: "Découvrez les tendances",
|
||||||
|
"your-account": "Votre compte",
|
||||||
|
"import-item": "Importer",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -101,6 +101,12 @@ const TRANSLATIONS = {
|
|||||||
contact: "צור קשר עם התמיכה",
|
contact: "צור קשר עם התמיכה",
|
||||||
"browser-extension": "תוסף דפדפן",
|
"browser-extension": "תוסף דפדפן",
|
||||||
"mobile-app": "AnythingLLM Mobile",
|
"mobile-app": "AnythingLLM Mobile",
|
||||||
|
"community-hub": {
|
||||||
|
title: "מרכז קהילתי",
|
||||||
|
trending: "גלו את הנושאים החמים",
|
||||||
|
"your-account": "החשבון שלך",
|
||||||
|
"import-item": "ייבוא פריט",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -105,6 +105,12 @@ const TRANSLATIONS = {
|
|||||||
branding: "Branding e personalizzazione",
|
branding: "Branding e personalizzazione",
|
||||||
chat: "Chat",
|
chat: "Chat",
|
||||||
"mobile-app": "AnythingLLM Mobile",
|
"mobile-app": "AnythingLLM Mobile",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Punto di riferimento della comunità",
|
||||||
|
trending: "Esplora le tendenze",
|
||||||
|
"your-account": "Il tuo account",
|
||||||
|
"import-item": "Importa articolo",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -103,6 +103,12 @@ const TRANSLATIONS = {
|
|||||||
branding: "ブランディングとホワイトレーベル化",
|
branding: "ブランディングとホワイトレーベル化",
|
||||||
chat: "チャット",
|
chat: "チャット",
|
||||||
"mobile-app": "AnythingLLM モバイル版",
|
"mobile-app": "AnythingLLM モバイル版",
|
||||||
|
"community-hub": {
|
||||||
|
title: "地域交流拠点",
|
||||||
|
trending: "人気のあるものを探す",
|
||||||
|
"your-account": "あなたのアカウント",
|
||||||
|
"import-item": "輸入品",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -102,6 +102,12 @@ const TRANSLATIONS = {
|
|||||||
branding: "브랜딩 및 화이트라벨링",
|
branding: "브랜딩 및 화이트라벨링",
|
||||||
chat: "채팅",
|
chat: "채팅",
|
||||||
"mobile-app": "AnythingLLM 모바일",
|
"mobile-app": "AnythingLLM 모바일",
|
||||||
|
"community-hub": {
|
||||||
|
title: "지역 커뮤니티 허브",
|
||||||
|
trending: "인기 트렌드 탐색",
|
||||||
|
"your-account": "당신의 계정",
|
||||||
|
"import-item": "수입 품목",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -103,6 +103,12 @@ const TRANSLATIONS = {
|
|||||||
contact: "Sazināties ar atbalstu",
|
contact: "Sazināties ar atbalstu",
|
||||||
"browser-extension": "Pārlūka paplašinājums",
|
"browser-extension": "Pārlūka paplašinājums",
|
||||||
"mobile-app": "AnythingLLM mobilā versija",
|
"mobile-app": "AnythingLLM mobilā versija",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Sabiedriskais centrs",
|
||||||
|
trending: "Izpētiet populārākās",
|
||||||
|
"your-account": "Jūsu konts",
|
||||||
|
"import-item": "Importētā prece",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -104,6 +104,12 @@ const TRANSLATIONS = {
|
|||||||
branding: "Branding & Whitelabeling",
|
branding: "Branding & Whitelabeling",
|
||||||
chat: "Chat",
|
chat: "Chat",
|
||||||
"mobile-app": "AnythingLLM Mobiele App",
|
"mobile-app": "AnythingLLM Mobiele App",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Centraal punt",
|
||||||
|
trending: "Bekijk populaire onderwerpen",
|
||||||
|
"your-account": "Uw account",
|
||||||
|
"import-item": "Importeren",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -104,6 +104,12 @@ const TRANSLATIONS = {
|
|||||||
contact: "Kontakt z pomocą techniczną",
|
contact: "Kontakt z pomocą techniczną",
|
||||||
"browser-extension": "Rozszerzenie przeglądarki",
|
"browser-extension": "Rozszerzenie przeglądarki",
|
||||||
"mobile-app": "AnythingLLM Mobile",
|
"mobile-app": "AnythingLLM Mobile",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Centrum Społeczności",
|
||||||
|
trending: "Odkryj popularne",
|
||||||
|
"your-account": "Twój profil",
|
||||||
|
"import-item": "Importuj element",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -102,6 +102,12 @@ const TRANSLATIONS = {
|
|||||||
contact: "Suporte",
|
contact: "Suporte",
|
||||||
"browser-extension": "Extensão de Navegador",
|
"browser-extension": "Extensão de Navegador",
|
||||||
"mobile-app": "AnythingLLM Mobile",
|
"mobile-app": "AnythingLLM Mobile",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Centro Comunitário",
|
||||||
|
trending: "Explore as tendências",
|
||||||
|
"your-account": "Sua Conta",
|
||||||
|
"import-item": "Importar Item",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -104,6 +104,12 @@ const TRANSLATIONS = {
|
|||||||
contact: "Contact suport",
|
contact: "Contact suport",
|
||||||
"browser-extension": "Extensie browser",
|
"browser-extension": "Extensie browser",
|
||||||
"mobile-app": "AnythingLLM Mobile",
|
"mobile-app": "AnythingLLM Mobile",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Centru comunitar",
|
||||||
|
trending: "Descoperă tendințele",
|
||||||
|
"your-account": "Contul dumneavoastră",
|
||||||
|
"import-item": "Importați articolul",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -103,6 +103,12 @@ const TRANSLATIONS = {
|
|||||||
branding: "Брендинг и создание продуктов с собственной меткой.",
|
branding: "Брендинг и создание продуктов с собственной меткой.",
|
||||||
chat: "Чат",
|
chat: "Чат",
|
||||||
"mobile-app": "AnythingLLM Mobile",
|
"mobile-app": "AnythingLLM Mobile",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Центр сообщества",
|
||||||
|
trending: "Изучите популярные темы",
|
||||||
|
"your-account": "Ваш аккаунт",
|
||||||
|
"import-item": "Импорт товара",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -104,6 +104,12 @@ const TRANSLATIONS = {
|
|||||||
branding: "Marka & Beyaz Etiketleme",
|
branding: "Marka & Beyaz Etiketleme",
|
||||||
chat: "Sohbet",
|
chat: "Sohbet",
|
||||||
"mobile-app": "AnythingLLM Mobil",
|
"mobile-app": "AnythingLLM Mobil",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Topluluk Merkezi",
|
||||||
|
trending: "Popüler olanları keşfedin",
|
||||||
|
"your-account": "Hesabınız",
|
||||||
|
"import-item": "İthal Edilen Ürün",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -104,6 +104,12 @@ const TRANSLATIONS = {
|
|||||||
branding: "Thương hiệu & Nhãn trắng",
|
branding: "Thương hiệu & Nhãn trắng",
|
||||||
chat: "Trò chuyện",
|
chat: "Trò chuyện",
|
||||||
"mobile-app": "AnythingLLM Di động",
|
"mobile-app": "AnythingLLM Di động",
|
||||||
|
"community-hub": {
|
||||||
|
title: "Trung tâm cộng đồng",
|
||||||
|
trending: "Khám phá các nội dung đang thịnh hành",
|
||||||
|
"your-account": "Tài khoản của bạn",
|
||||||
|
"import-item": "Nhập hàng",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -99,6 +99,12 @@ const TRANSLATIONS = {
|
|||||||
"browser-extension": "浏览器扩展",
|
"browser-extension": "浏览器扩展",
|
||||||
"system-prompt-variables": "系统提示变量",
|
"system-prompt-variables": "系统提示变量",
|
||||||
"mobile-app": "AnythingLLM 移动版",
|
"mobile-app": "AnythingLLM 移动版",
|
||||||
|
"community-hub": {
|
||||||
|
title: "社区中心",
|
||||||
|
trending: "探索热门",
|
||||||
|
"your-account": "您的账户",
|
||||||
|
"import-item": "进口商品",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
@ -99,6 +99,12 @@ const TRANSLATIONS = {
|
|||||||
branding: "品牌與白標設定",
|
branding: "品牌與白標設定",
|
||||||
chat: "聊天室",
|
chat: "聊天室",
|
||||||
"mobile-app": "AnythingLLM 應用程式",
|
"mobile-app": "AnythingLLM 應用程式",
|
||||||
|
"community-hub": {
|
||||||
|
title: "社區中心",
|
||||||
|
trending: "探索熱門",
|
||||||
|
"your-account": "您的帳戶",
|
||||||
|
"import-item": "進口商品",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
"multi-user": {
|
"multi-user": {
|
||||||
|
|||||||
BIN
frontend/src/media/illustrations/community-hub.png
Normal file
BIN
frontend/src/media/illustrations/community-hub.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Loading…
Reference in New Issue
Block a user