feat(i18n): localize static elements, navbar switcher, and search palette

This commit is contained in:
Poyraz
2026-06-27 14:42:45 +03:00
parent d3c56713fb
commit 0d112c6568
7 changed files with 96 additions and 68 deletions
+5 -2
View File
@@ -1,6 +1,7 @@
import Link from "next/link";
import { Link } from "@/i18n/routing";
import { Icon } from "@iconify/react";
import { Card, Typography } from "poyraz-ui/atoms";
import { useTranslations } from "next-intl";
export const CONTACT_LINKS = [
{
@@ -27,6 +28,8 @@ export const CONTACT_LINKS = [
] as const;
export function ContactContent() {
const t = useTranslations("Contact");
return (
<section className="grid gap-3 md:grid-cols-3">
{CONTACT_LINKS.map((item) => (
@@ -42,7 +45,7 @@ export function ContactContent() {
<Icon icon={item.icon} width={18} height={18} />
</div>
<Typography variant="large" className="mt-3 text-base leading-tight">
{item.label}
{t(item.id)}
</Typography>
<Typography variant="small" className="mt-1 text-muted-foreground">
{item.value}