Create a Condition

Hello,

Needed help creating a condition. I needed - if the user is on the “/page/terms-and-services” and then click on the language “fr” go to “/page/termes-et-services” …

I use this to call en / fr etc… - this.$i18n.locale === ‘en’

Thank you

You can use route aliases for this.

https://router.vuejs.org/guide/essentials/redirect-and-alias.html#alias