vazco/meteor-universe-i18n

Question : How to update client translations (strange cache)

dokithonon opened this issue · 4 comments

Hello, I am migrating from TAP to universe.
In our application, we change the translations and then we would like this to reflect on the client (blaze)
On the server the _translations object is updated well but not on the client.

Screenshot 2021-12-24 at 10 23 16

And in the js file in head :

Screenshot 2021-12-24 at 10 25 56

This work if we restart the server but this is not what we want

On the client, after the callback, I have tried to delete the js file in head then do addTranslation and also loadLocale but this has no effect.

How to you do this ? Thanks a lot.

I was able to make it work by removing the cache mechanism. Not sure if this is a good idea.

Hi @dokithonon, I will look into it. Could you specify on which versions of the package and the meteor are you experiencing this?

Hello, thanks. I am using Meteor version 2.5.2 and package version 1.32.4.

Hi @dokithonon, as this issue is probably related to the #148, I am closing it as there is no reproduction of the problem. I'll reopen it once there's a reproduction for it.