[Vuejs]-Vue i18n translate – How add ul/ol list

0👍

You can use an array in your localization as shown in the manual – https://kazupon.github.io/vue-i18n/guide/messages.html

Then you can build the template like this:

    <ul>
    <i18n v-for="(item,index) in NumberedList" :key="index" :path="`sample[${index}]`" tag="li" />
    </ul>

Leave a comment