Closed Vannsl closed 3 years ago
Thank you for your reporting!
Expected behavior There is no warning thrown, but the file is loaded, compiled the yml file to an empty javascript object
The compiling YAML with the incorrect format as an empty JavaScript object, without warning, it's not good behavior. This is because you will not be able to notice the incorrectly formatted YAML. The current behavior is correct, although the warning message output by vue-i18n-loader needs to be improved to output a clearer message.
Thanks!
Thanks for the answer :+1:
Our localization platform exports these empty yml if the translations are missing. I agree that failing silently might be worse. I will look into another solutions.
Our localization platform exports these empty yml
Hmm, :thinking: I was a little interested in it. If you don't mind me asking, could you tell me if you are using any localization platform?
Sure: Crowdin. It creates pull requests into our dev branch for new translations (de-DE). But also everytime I merge en-US files into dev, it creates a PR with the empty de-DE file.
We would not add them manually of course. I need to check if I can disable in their interface that it creates the PRs with empty files at all.
Thanks!
Reporting a bug?
When an empty
.yml
file gets loaded, the Loader throws a warning when using the webpack loader.An empty
.yml
file looking like this:The thrown warning is:
Expected behavior
There is no warning thrown, but the file is loaded, compiled the yml file to an empty javascript object
Reproduction
System Info
Screenshot
No response
Additional context
No response
Validations