Seite läuft wieder, menü bringt keine fehler mehr
This commit is contained in:
@@ -27,7 +27,11 @@ createInertiaApp({
|
||||
const root = createRoot(el);
|
||||
|
||||
// Sync i18n with initial locale from props
|
||||
if (props.initialPage && props.initialPage.props && props.initialPage.props.locale) {
|
||||
if (
|
||||
props.initialPage &&
|
||||
props.initialPage.props &&
|
||||
typeof props.initialPage.props.locale === 'string'
|
||||
) {
|
||||
i18n.changeLanguage(props.initialPage.props.locale);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user