xiCO2k / laravel-vue-i18n

Allows to connect your `Laravel` Framework translation files with `Vue`.
MIT License
584 stars 49 forks source link

Console error after vue 3.4 update #160

Closed goale closed 6 months ago

goale commented 6 months ago

After having updated vue to 3.4 I'm getting the following error in console: image image

As far as I can see, the problem is caused by translation with replacements. Weirdly enough, translation seems to work even when the error happens.

When I downgrade vue back to 3.3, the error disappears.

Some context Line that causes the problem

$t('out of :total results', { total: totalFormatted })

Maybe it's related to 3.4 reactivity changes and watchEffect in wTrans method doesn't get called anymore

xiCO2k commented 6 months ago

Thanks for the report @goale.

Will check that case.

xiCO2k commented 6 months ago

Fixed and released on v2.7.6.

Thanks.