Replies: 2 comments 1 reply
-
|
I guess you could try something like or |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thank you @VikingTristan! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, the project is using Vue3.2 + Nuxt3, we use i18n in all over the component files, but there are still some part of the text that are coming from composables, I am wondering is there anyway could use the i18n in composable usexxxx files?
for example:
in composables:
in component:
script:
const { currentFruit } = useFruitstemplate:
p {{ currentFruit }}It's there anyway could use the $t(
fruit.apple) something like this in composable? So the text will be translated by different locales.Beta Was this translation helpful? Give feedback.
All reactions