question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Live reloading translations is not working

See original GitHub issue

Reporting a bug?

We just upgraded to vite version 3 and vite-plugin-vue-i18n to version 5, and reloading translations is not working. We detected this problem by starting a new project, but also found this problem with an old project.

I’ve tested it with vite version 2 and vite-plugin-vue-i18n version 3 before upgrading and everything worked as expected, after upgrading both packages the translations won’t reload. In the vite console, there is also no message the translations are modified. After re-running the vite dev server, the new translations are working.

Expected behavior

I expect in the console to see the message: 12:34:14 PM [vite] page reload lang/nl.json

And also that the page is reloading.

Reproduction

  • Upgrade an already working project or create a new project with vite version 3 & vite-plugin-vue-i18n version 5
  • Run the vite dev server
  • Modify any translation

Issue Package

vite-plugin-vue-i18n

System Info

System:
    OS: macOS 12.4
    CPU: (8) arm64 Apple M1
    Memory: 294.42 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 14.19.2 - ~/.nvm/versions/node/v14.19.2/bin/node
    npm: 6.14.17 - ~/.nvm/versions/node/v14.19.2/bin/npm
  Browsers:
    Chrome: 103.0.5060.134
    Firefox Developer Edition: 103.0
    Safari: 15.5
  npmPackages:
    @intlify/vite-plugin-vue-i18n: ^5.0.0 => 5.0.1 
    vite: ^3.0.0 => 3.0.3 
    vue: ^3.2.37 => 3.2.37 
    vue-i18n: ^9.1.10 => 9.1.10

Screenshot

No response

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Read the README
  • Check that there isn’t already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:4
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
marekvospelcommented, Aug 4, 2022

@kazupon I’ve also experienced this issue.
Here is a minimum reproduction repository: https://github.com/marekvospel/vue-i18n-live-reload

2reactions
kazuponcommented, Aug 10, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack-dev-server live reload not working - Stack Overflow
Put simply, my webpack live browser reload doesn't work, so every time I make a change I have to manually hit refresh in...
Read more >
HMR does not reload when translation file is changed #882
When a translation file is changed the application hot reloads and displays new translations. How do you think that we should fix this?...
Read more >
Why my edited translations are not displayed on my website?
Go to your Weglot Dashboard, click on the Visual Editor, and edit the translations that are not properly updated and displayed. Then go...
Read more >
Translations not loading in Admin – Script Error - WordPress.org
Hello, if we try to edit translations in admin, no entries are loaded into the table. ... Latest Chrome, cache disabled and multiple...
Read more >
How to Fix Google Chrome Translate Not Working
Running into issues with Google Chrome translate not working? Here's a helpful guide for yout o fix Google Chrome's Translate function.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found