#[Solutioned] How to make <a href=""> being dynamic across languages?

5 messages · Page 1 of 1 (latest)

jolly wave
#

How can I make my pages follow the actual language? Like, if the user is in /en/ page, go to /en/about when he clicks in "about" link, if the user is in /fr/ page, go to /fr/about, you know?

jolly wave
#

ok, i wrote a solution (weird, but works)

#

this makes the links and labels being dynamic with translation.json file SusSmirk

#

[Solutioned] How to make <a href=""> being dynamic across languages?

fiery kernel
#

This works for the navigation, but if you have internal links in the content it gets messy.

I have my locales in my env file