// Root layout — nav + globals. These pages hydrate fully (the default for // ssr/isr), so internal links do client-side navigation (the Router // intercepts them) after the first load. // // The app is bilingual (see `locales` in app.config.ts): nav labels come from // the catalog via ``, and writes the `voltro:locale` cookie // + reloads so the framework re-renders in the chosen language. import type { ReactNode } from 'react' import { T, useLocale, useT } from '@voltro/i18n' import { LocaleSwitcher } from '@voltro/ui-shadcn' import '../globals.css' const LOCALES = [ { code: 'en', label: 'English' }, { code: 'de', label: 'Deutsch' }, ] export default function Layout({ children }: { readonly children: ReactNode }): ReactNode { const locale = useLocale() const langLabel = useT('lang.label') return ( <>
{children}
) }