Closed guilheb closed 9 months ago
I have noticed that in <script setup>, sometimes trans() does not work as expected and we have to use wTrans(). Does anyone know why and when to use each?
<script setup>
trans()
wTrans()
Also, I see a $t() function in the documentation. What is this for?
$t()
yes basically the trans method is not reactive, and the wTrans is reactive but you need to use with the .value syntax when you need.
trans
wTrans
.value
I have noticed that in
<script setup>
, sometimestrans()
does not work as expected and we have to usewTrans()
. Does anyone know why and when to use each?Also, I see a
$t()
function in the documentation. What is this for?