From a5d9eed8434141615a8d52c4630ac3bf53aee86d Mon Sep 17 00:00:00 2001 From: oimwiodev Date: Sat, 16 May 2026 15:03:21 +0100 Subject: [PATCH] Keep language switcher in mobile nav --- CHANGELOG.md | 1 + components/LanguageSwitcher.tsx | 5 +++-- components/Navbar.tsx | 6 ++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c07ebff..edc98bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to the New Optic website will be documented in this file. - Removed the desktop liquid glass WebGL layer from navbar and CTA controls so text remains readable and glass surfaces do not show dark rendering artifacts while scrolling. - Replaced the mobile hamburger dropdown with a fast, solid menu animation without bounce or stretch effects. +- Kept the language switcher visible in the mobile top navigation bar. ## [1.0.0] - 2026-05-16 diff --git a/components/LanguageSwitcher.tsx b/components/LanguageSwitcher.tsx index 3bcca13..3875e23 100644 --- a/components/LanguageSwitcher.tsx +++ b/components/LanguageSwitcher.tsx @@ -3,9 +3,9 @@ import { languages, type Locale } from "@/config/business"; import { cn } from "@/lib/utils"; -export default function LanguageSwitcher({ locale, onLocaleChange }: { locale: Locale; onLocaleChange: (locale: Locale) => void }) { +export default function LanguageSwitcher({ locale, onLocaleChange, className, buttonClassName }: { locale: Locale; onLocaleChange: (locale: Locale) => void; className?: string; buttonClassName?: string }) { return ( -
+
{languages.map((language) => (
- + + {t.nav.cta} ))}
-
- -
) : null}