// Root layout. Loads the stylesheet; the page provides the content. // Don't render // here — the framework shell owns them. // // The app is bilingual (see `locales` in app.config.ts): // writes the `voltro:locale` cookie + reloads so the framework re-renders in the // chosen language. import type { ReactNode } from 'react' import { 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}
) }