How to make missing locales break build? #1725
Unanswered
frederikheld
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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