[Vuejs]-How can I translate the option in SELECT using i18N in VUE3

0👍

you need to

import { t } from 'boot/i18n'
const { t, locale } = useI18n()

and then

in html template:

{{ $t('nameOfTextblock') }}

in your script

t('nameOfTextblock')

in the props

:propertyName="$t('nameOfTextblock')"

Leave a comment