You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My use case: using react-i18next + i18next-hmr and having a list of .json files to provide translations. i18next-hmr seems to work well with regular vite, but not with electron-vite. Usually there's no need to change anything... but I even tried adding
It doesn't work.
Which is kind of weird because usually with this config, you would be overriding any watched files... which leads me to think that electron-vite might be setting and overriding the list of watched files?
Could it work appending the provided matched ones?
Maybe (probably) I'm wrong, but I'd welcome any hint to make this work :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My use case: using
react-i18next
+ i18next-hmr and having a list of.json
files to provide translations.i18next-hmr
seems to work well with regular vite, but not withelectron-vite
. Usually there's no need to change anything... but I even tried addingIt doesn't work.
Which is kind of weird because usually with this config, you would be overriding any watched files... which leads me to think that
electron-vite
might be setting and overriding the list of watched files?Could it work appending the provided matched ones?
Maybe (probably) I'm wrong, but I'd welcome any hint to make this work :)
Btw, there's a reproducible repo on https://github.com/danikaze/electron-tsx-app/tree/i18n (branch
i18n
)Just running the app (
npm run dev
) and clicking in the yellowish button to render the<TestApp>
should be enough.Beta Was this translation helpful? Give feedback.
All reactions