From ec5ef35ed47b90b9f09199d28f7885f8287815a8 Mon Sep 17 00:00:00 2001
From: physcik <mynameisgennadiy@vk.com>
Date: Tue, 28 Apr 2026 12:34:36 +0500
Subject: description frontend

---
 front/src/Emelents/Sidebar.tsx | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

(limited to 'front/src/Emelents/Sidebar.tsx')

diff --git a/front/src/Emelents/Sidebar.tsx b/front/src/Emelents/Sidebar.tsx
index 649f2fc..c650145 100644
--- a/front/src/Emelents/Sidebar.tsx
+++ b/front/src/Emelents/Sidebar.tsx
@@ -20,8 +20,14 @@ function Sidebar({setLang}: SidebarProps) {
                     <SidebarListElement Href='/classes' Text='Classes' />
                     <SidebarListElement Href='/weapons' Text='Weapons' />
                 </ul>
-                <button onClick={() => setLang("ru")}> ru </button>
-                <button onClick={() => setLang("en")}> en </button>
+                <button onClick={() => {
+                    setLang("ru");
+                    window.location.reload();
+                }}> ru </button>
+                <button onClick={() => {
+                    setLang("en");
+                    window.location.reload();
+                }}> en </button>
             </div>
         </nav>
     );
-- 
cgit v1.3

