HC200ok / vue3-easy-data-table

A customizable and easy-to-use data table component made with Vue.js 3.x
MIT License
536 stars 105 forks source link

Doc - Footer translation #293

Open tomgeorgelin opened 1 year ago

tomgeorgelin commented 1 year ago

I don't find it easily in the doc, so I post it here.

You can translate footer by adding props in the component like:

<template>
    <EasyDataTable
        :headers="headers"
        :items="items"
        rowsPerPageMessage="Lignes par page"
        rowsOfPageSeparatorMessage="de"
    />
</template>

Hope that's helped someone

dansp89 commented 1 year ago

PROPS are available at: node_modules/vue3-easy-data-table/dist/vue3-easy-data-table.es.js

And then it can be used as a reference to know which PROPS to use and how to use them.

Here is an example in Brazilian:

<template>
  <EasyDataTable
    :headers="headers"
    :items="items"
    alternating
    buttons-pagination
    rowsPerPageMessage="Linhas por páginas"
    rowsOfPageSeparatorMessage="de"
    emptyMessage="Sem dados para exibir!"
  />
</template>