I have huge vue application with a lot of <router-link>
and :to
.
I just implement i18n in my application. now I need to add the $i18n.locale
prefix to each router-link.
for example:
<router-link :to="`${i18n.locale}/login`">…</router-link>
Is there easy way to add the locale prefix without change all the router-link
or :to
in my code?