You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
key of t() is a string (eg.: t('foo.bar'))
I can get message functions by useI18n().locale.messages (eg.: foo.bar in which bar is a function)
Is it possible to translate like
const msgFunc = useI18n().locale.messages
msgFunc.foo.bar() // how to get context?
or
const msgFunc = useI18n().locale.messages
trans(msgFunc.foo.bar) // how to get context?
The text was updated successfully, but these errors were encountered:
key of t() is a string (eg.:
t('foo.bar')
)I can get message functions by
useI18n().locale.messages
(eg.:foo.bar
in which bar is a function)Is it possible to translate like
or
The text was updated successfully, but these errors were encountered: