mirror of
https://github.com/bitbaum/morulia.git
synced 2026-12-04 06:08:36 +01:00
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>
21 lines
623 B
TypeScript
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>
|
|
);
|
|
}
|