nicht nutzbarer stand, header menü ist nicht intertia initialisiert. aber schick. codex änderungen noch enthalten.
This commit is contained in:
@@ -26,6 +26,11 @@ createInertiaApp({
|
||||
setup({ el, App, props }) {
|
||||
const root = createRoot(el);
|
||||
|
||||
// Sync i18n with initial locale from props
|
||||
if (props.initialPage && props.initialPage.props && props.initialPage.props.locale) {
|
||||
i18n.changeLanguage(props.initialPage.props.locale);
|
||||
}
|
||||
|
||||
root.render(
|
||||
<I18nextProvider i18n={i18n}>
|
||||
<App {...props} />
|
||||
|
||||
Reference in New Issue
Block a user