added multi language features

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-03-31 19:45:21 +05:00
parent 4f3d73443f
commit 291375ce02
19 changed files with 728 additions and 246 deletions

View File

@@ -8,13 +8,17 @@ import {
SheetTrigger,
} from '@/shared/ui/sheet';
import { Menu } from 'lucide-react';
import { menu } from '../lib/data';
import { getMenu } from '../lib/data';
import RenderMobileMenuItem from './RenderMobileMenuItem';
import { ChangeLang } from './ChangeLang';
import Link from 'next/link';
import { AuthButtons } from './authButtons';
import { useTranslations } from 'next-intl';
const Navbar = () => {
const t = useTranslations('Navbar');
const menu = getMenu(t);
return (
<section className="py-4">
<div className="custom-container">
@@ -26,7 +30,7 @@ const Navbar = () => {
href={'/'}
className="flex items-center gap-2 text-2xl font-bold "
>
Plagat
{t('logo')}
</Link>
{/* <div className="flex items-center">
<NavigationMenu>
@@ -44,7 +48,7 @@ const Navbar = () => {
<div className="flex items-center justify-between">
{/* Logo */}
<Link href={'/'} className="flex items-center gap-2">
Plagat
{t('logo')}
</Link>
<Sheet>
<div className="space-x-2">
@@ -59,7 +63,7 @@ const Navbar = () => {
<SheetHeader>
<SheetTitle>
<Link href={'/'} className="flex items-center gap-2">
Plagat
{t('logo')}
</Link>
</SheetTitle>
</SheetHeader>