Question By
Unsolved

Different routes for each language

francescomulassano1

Jan 1st, 2023 08:32 AM

hi, I'm starting to understand how wave works. now I have setup some static pages, each with his own controller and link in the menu.

Now I need to understand the translation process for the routes I have mystie.com/about mystie.com/chi siamo

is the same page but with different language (I have already setup the multi language in voyager)

I need tu have the same page with translated content with 2 different route (one for each language)

Is it possible?

bobbyiliev

Jan 3rd, 2023 12:59 AM

Hi there,

I believe that this should be doable by configuring a locale in Laravel as described here:

Laravel localization Docs

That way based on your route, eg /en, /es and etc. you could set the locale that you need.