Files
kai a62e48116a
release / which version (push) Successful in 3s
release / olares chart · sanity (push) Successful in 3s
release / app (push) Successful in 55s
release / tag and release (push) Successful in 3s
Scaffold app, chart, CI and release (26.11.1) (#2)
2026-11-06 19:14:55 +00:00

14 lines
552 B
TypeScript

import { cookies, headers } from "next/headers";
import { getRequestConfig } from "next-intl/server";
import { LOCALE_COOKIE, resolveLocale } from "@/lib/locale";
// Ohne Sprache in der Adresse: Ein Link aus dem Familien-Chat soll bei jeder
// Person in ihrer eigenen Sprache aufgehen.
export default getRequestConfig(async () => {
const locale = resolveLocale((await cookies()).get(LOCALE_COOKIE)?.value, (await headers()).get("accept-language"));
return {
locale,
messages: (await import(`../messages/${locale}.json`)).default,
};
});