[Vuejs]-Vue, vuex, vue-i18n change language button event

0👍

Becasue this is not a valid expression for i18n

<h2>{{ $t('example', '@store.state.culture') }}</h2>

If you want to translate the text en and fa do this

<h2>{{ $t(culture) }}</h2>

OR

<h2>{{ $t(`namespace:${culture}`) }}</h2>

If you want to use namespace

Leave a comment