alpha01 filetti: web app, crossword service and tor batch

This commit is contained in:
2026-06-05 16:22:17 +02:00
parent 47d8957e15
commit 9cb8a5aa8f
29 changed files with 8590 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import Link from "next/link";
import { LOCALES, type Locale } from "@/lib/i18n";
type LanguageSwitcherProps = {
locale: Locale;
path?: string;
};
const LABELS: Record<Locale, string> = {
it: "Italiano",
en: "English",
es: "Espanol",
};
export function LanguageSwitcher({ locale, path = "" }: LanguageSwitcherProps) {
return (
<nav aria-label="Language switcher" className="lang-switcher">
{LOCALES.map((item) => (
<Link
className={`lang-switcher__link ${item === locale ? "lang-switcher__link--active" : ""}`}
href={`/${item}${path}`}
key={item}
>
{LABELS[item]}
</Link>
))}
</nav>
);
}