Closed simpv closed 3 months ago
--
I use a .js file to define multilingual content. When using the $t method, how can I support returning objects or arrays from the language file?
No response
you need to use $tm / tm and $rt / rt. About how to usage, you can read the docs https://vue-i18n.intlify.dev/guide/migration/breaking.html#translation-api-return-value
$tm
tm
$rt
rt
thanks!
Environment
Reproduction
--
Describe the bug
I use a .js file to define multilingual content. When using the $t method, how can I support returning objects or arrays from the language file?
Additional context
No response
Logs
No response