nicht nutzbarer stand, header menü ist nicht intertia initialisiert. aber schick. codex änderungen noch enthalten.
This commit is contained in:
6
resources/js/hooks/useLocale.ts
Normal file
6
resources/js/hooks/useLocale.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { usePage } from '@inertiajs/react';
|
||||
|
||||
export const useLocale = () => {
|
||||
const { locale } = usePage().props as any;
|
||||
return locale;
|
||||
};
|
||||
Reference in New Issue
Block a user