This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
Allow import i18n-t tag as es module #1435
santiagoarizti
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Just found out that the Translation component can be imported like this (it even needs to be done like that if using the composition API with <template>
<i18n-t keypath="term1" />
</template>
<script setup>
import { useI18n, Translation as I18nT } from 'vue-i18n'
</script> |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(sorry for posting here, I created the same post in vue-18n-next here)
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