Skip to content
Discussion options

You must be logged in to vote

HandleInertiaRequests loads the translations for the frontend, you need to change the locale earlier than that.

    'middleware' => [
        'web',
+       \App\Http\Middleware\LanguageMiddleware::class,
        HandleInertiaRequests::class,
        DispatchServingNovaEvent::class,
        BootTools::class,
-       \App\Http\Middleware\LanguageMiddleware::class,
    ],

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by crynobone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #6416 on June 01, 2024 03:17.