[Vuejs]-How to use Vue-i18n after Change Migrations

0πŸ‘

βœ…

I have no experience with i18n but you cannot use mustache-like sintax inside tags’ attribute, you should bind the attribute for that to work. test:

<menu-item to="/landingPage" v-bind:title="$t('My Profile')" />

or the shortcut:

<menu-item to="/landingPage" :title="$t('My Profile')" />

Of course, this assuming that

<p>{{ $t('My Profile') }}</p>

is working properly)

Leave a comment