Live reloading translations is not working
See original GitHub issueReporting 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:
- Created a year ago
- Reactions:4
- Comments:15 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kazupon I’ve also experienced this issue.
Here is a minimum reproduction repository: https://github.com/marekvospel/vue-i18n-live-reload
I’ve just released v6.0.1 https://github.com/intlify/bundle-tools/releases/tag/vite-plugin-vue-i18n%406.0.1
please check it!