PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

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.