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
Whenever I have faulty or missing locale keys, vue-i18n logs a message like this:
[warn] [intlify] Not found 'foo.bar.baz' key in 'en' locale messages.
The problem is that it is ony a warning, so it does not break the build. This would be great for local development with npm run dev, but it doesn't show up there.
It does show up in the real build with npm run generate where I would like this warning to be an error that breaks the build so my CI pipeline does not deploy faulty locales.
Is there any way to configure the error level to make this message break the build?
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
-
Hey everone,
Whenever I have faulty or missing locale keys,
vue-i18n
logs a message like this:[warn] [intlify] Not found 'foo.bar.baz' key in 'en' locale messages.
The problem is that it is ony a warning, so it does not break the build. This would be great for local development with
npm run dev
, but it doesn't show up there.It does show up in the real build with
npm run generate
where I would like this warning to be an error that breaks the build so my CI pipeline does not deploy faulty locales.Is there any way to configure the error level to make this message break the build?
Thanks in advance
Frederik
Beta Was this translation helpful? Give feedback.
All reactions