Skip to content

Support linting yaml i18n blocks in SFC #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wolfgangwalther opened this issue Jul 27, 2020 · 1 comment · Fixed by #94
Closed

Support linting yaml i18n blocks in SFC #85

wolfgangwalther opened this issue Jul 27, 2020 · 1 comment · Fixed by #94
Labels
Type: Feature Includes new features

Comments

@wolfgangwalther
Copy link
Contributor

Now that linting <i18n> blocks in SFC is possible (#80), it would be great if yaml would be supported as well.

Using yaml for i18n blocks is suggested in the vue-i18n docs at https://kazupon.github.io/vue-i18n/guide/sfc.html#yaml-loading, so I guess it would make sense to support it here as well.

Maybe it's possible to just load the <i18n> blocks through vue-loader as suggested in #80 (comment) instead of loading the json manually? That might take care of all that automatically.

@wolfgangwalther
Copy link
Contributor Author

Just tested it - works for no-missing-keys and no-unused-keys! Great!

It didn't work for no-html-messages though. I put html code into a SFC block and it didn't throw.

Anyway, thanks a lot for adding this!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Includes new features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants