Answer the question
In order to leave comments, you need to log in
Internationalization not working in Vue?
I've enabled internationalization in my project (I chose to use vue-i18n lib)
on @click.prevent="localizee(key)" the language switches to dropdown but the localizee method doesn't work
template:
<div>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ locales[locale]}}
</a>
<div class="dropdown-menu">
<a v-for="(value, key) in locales" :key="key" class="dropdown-item" href="#"
@click.prevent="localizee(key)">
{{ value }}
</a>
</div>
</li>
</div>
Answer the question
In order to leave comments, you need to log in
locales: ['ru', 'en'], locale: 'ru',
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question