Using $t in alert() for Vue’s i18n translation
<p>I'm using Vue 2.6.14 and vue-i18n 8.25
I can't figure out how to put the i18n translation in alert()...</p>
<pre class="brush:php;toolbar:false;">async ChangePassword() {
await axios.post('/api/reset-password',
this.form).then((response) => {
alert( {{ $t('Password has been changed') }} );
})}</pre>
<p>This doesn't seem to work. </p>