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!

0
2 comments

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 list

 

1

Thank 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

0

Please sign in to leave a comment.