Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot update changed messages in the dictionary #107

Open
cbxp opened this issue Nov 19, 2020 · 1 comment
Open

Cannot update changed messages in the dictionary #107

cbxp opened this issue Nov 19, 2020 · 1 comment

Comments

@cbxp
Copy link

cbxp commented Nov 19, 2020

Describe the bug
Snowpack hot reload receives updated json translations and tries to pass them to addMessages() again.
However, _() still returns old texts after that.

To Reproduce
Just call addMessages() twice with different texts and see that second call has no effect.

Expected behavior
I expect the addMessages() to override the texts, so that _() would return new ones.

Information about your project:

  • Your browser and the version: any

  • svelte-i18n version 3.2.5

  • Whether your project uses Webpack or Rollup: Snowpack

@cbxp
Copy link
Author

cbxp commented Nov 19, 2020

It seems that the dictionary is updated, but there is no way to clear the lookupCache, so _() returns old values

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant