Is there any way to get syntax linting and autocompletion with Vue I18n single file components?
Hi, how are you?
I'm using Vue I18n single file components, like so: https://kazupon.github.io/vue-i18n/guide/sfc.html#basic-usage
However I don't get syntax linting nor autocompletion, and it doesn't even format to JSON.
Is there anything I can do?
Thank you!
请先登录再写评论。
vue-i18n is not currently supported, please follow https://youtrack.jetbrains.com/issue/WEB-43291 for updates
You can try injecting preferred language in this tag: put cursor within it, hit
Alt+Enter, choose Inject language or reference, then select JSON from languages listThank you for the reply!
Good to know that it already has an issue about it, I wasn't aware.
The JSON language injection is actually quite useful and helpful!
Thank you again, I'll watch the issue for updates :D