Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -39,6 +39,7 @@ import { defaultBrandPublicIcons, defaultFaviconLinks } from "./assets/brand/def
import { RouteTracingProvider } from "./lib/sentry/routeTracing";
import { registerServiceWorker } from "./lib/pwa/registerServiceWorker";
import { getTranslations, i18nCookie } from "./locale/i18next.server";
import { effectiveLng } from "@hivegrid/i18n";
export { serverTimingHeaders as headers };
@@ -284,10 +285,14 @@ export const action: ActionFunction = async ({ request }) => {
};
export default function App() {
const { locale } = useLoaderData<AppRootData>();
const { locale, anrede } = useLoaderData<AppRootData>();
const { i18n } = useTranslation();
const rootData = useRootData();
useChangeLanguage(locale);
// i18next language = effective (du → base locale, sie → "<locale>-formal").
// `<html lang>` stays the base locale because "-formal" is not a valid BCP47
// tag. With the default "du" this is exactly `locale`, so behaviour is
// unchanged; the formal switch (sie) happens client-side after hydration.
useChangeLanguage(effectiveLng(locale, anrede));
return (
<Document lang={locale} dir={i18n.dir()}>
<RouteTracingProvider>