Skip to content

How to access $t() inside script? #825

Answered by kazupon
LifeIsStrange asked this question in Q&A
Discussion options

You must be logged in to vote

you need to use the useI18n in script setup.
You can check the vue-i18n-next docs
https://vue-i18n.intlify.dev/guide/advanced/composition.html

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LifeIsStrange
Comment options

Answer selected by LifeIsStrange
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants