Allow import i18n-t tag as es module #872
Replies: 3 comments
-
ok, I found a simple solution, I implemented "@web-types" this is the
And in my Note: I had to reboot phpstorm for this to work. And according to the official documentation, you can include this in your own npm package. I will add this as a feature request in "issues" |
Beta Was this translation helpful? Give feedback.
-
Issue created #874 |
Beta Was this translation helpful? Give feedback.
-
Why can you import |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for the awesome project.
I am using the v9 of vue-i18n with vue3
I am having issues with my IDE (phpstorm) recognizing the component
i18n-t
in my vue SFCs (single file components)It would be of great help for the IDE (and therefore for the developer experience), to be able to import the component along the
useI18n
composable. This would greatly improve autocomplete and intellisense in the ide.This is how I would import the component:
This works fine today without need for the import, but my ide marks this as a warning
I could add this tag as "ignored tags" in phpstorm
But I don't get any intellisense/help from the IDE about props for the tag
i18n-t
What are your thoughts? is there any other way to make the IDE help me with this tag?
Beta Was this translation helpful? Give feedback.
All reactions