The publicDir is updated when changes occur. However, I believe that the _locales are registered as soon as an extension is loaded. One also has to specify the "default_locale" key in the manifest.json (as specified in the chrome docs).
I think we need a strategy for _locales, maybe check for _locales in the public folder and include them in the dist in dev mode? I am not sure if there is a better way with HMR...
Build tool
Vite
Where do you see the problem?
Describe the bug
The publicDir is updated when changes occur. However, I believe that the _locales are registered as soon as an extension is loaded. One also has to specify the "default_locale" key in the
manifest.json
(as specified in the chrome docs).I think we need a strategy for _locales, maybe check for
_locales
in the public folder and include them in thedist
in dev mode? I am not sure if there is a better way with HMR...Reproduction
_locale/en/messages.json
) containing examplary message:default_local: "en"
tomanifest.json
ormanifest.config.ts
respectivelyApp.tsx
index.html
tomanifest.config.ts
popup:npm run dev
npm run build
&&npm run dev
Logs
No response
System Info
Severity
annoyance
Note
Love this project!