GENL / matice

Use your Laravel translations in JavaScript.
MIT License
100 stars 16 forks source link

$setLocale is not updating translation when wrapped by ValidationObserver and ValidationProvider #30

Closed limsocheat closed 2 years ago

limsocheat commented 2 years ago

Expected behavior

When using $setLocale, it should update all translation label.

Current behavior

But now it only update the translation label outside ValidationObserver and ValidationProvider

Versions

Contents of Matice.translations

{en: {…}, fr: {…}, km: {…}, zh: {…}}

limsocheat commented 2 years ago

found the solution: https://stackoverflow.com/a/54367510/6274478