Files
CatoandClaude 04e5a1ddd2 feat(pages): the sign-in and error pages speak the visitor's language (#38)
The page in the middle of every sign-in was English only, so a German reader
pressed a German button and landed on an English page. It now reads the
browser's Accept-Language (nothing stored, nothing asked) and answers in
German, French, Italian, Russian, Romansh or English; Swiss German reads as
Standard German; anything else falls back to English. Links inherit the page
colour instead of default blue. A test holds every line in every language.


Claude-Session: https://claude.ai/code/session_019MDtmvF6Smf3iMYnGBqi12

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 09:14:43 +01:00

21 lines
623 B
TypeScript

import type { Metadata } from "next";
import { headers } from "next/headers";
import type { ReactNode } from "react";
import { pickLang } from "@/lib/copy";
import "./globals.css";
export const metadata: Metadata = {
title: "bitbaum sign-in",
description: "One sign-in for bitbaum apps. Each app sees a different, unlinkable identifier.",
robots: { index: false, follow: false },
};
export default async function RootLayout({ children }: { children: ReactNode }) {
const lang = pickLang((await headers()).get("accept-language"));
return (
<html lang={lang}>
<body>{children}</body>
</html>
);
}