react-data-table-component icon indicating copy to clipboard operation
react-data-table-component copied to clipboard

Default LANG

Open jcdesignweb opened this issue 3 years ago • 3 comments

How can I change the Language? Is it possible this? In case does not possible.. How can I change the default String values? E.g: "There are no records to display" ( I already read the docs but I could not finded anything )

jcdesignweb avatar Jul 28 '22 22:07 jcdesignweb

Not sure if is possible to do for full library, but you can ever do it by component. Check here https://react-data-table-component.netlify.app/?path=/docs/api-props--page and look for noDataComponent. It could be string or a react-component

juninhodeluca avatar Jul 29 '22 08:07 juninhodeluca

Hi @juninhodeluca thanks for your answer but What about the other values?

jcdesignweb avatar Jul 30 '22 19:07 jcdesignweb

Hi. Nice to know I'm helping. Basically, all pieces of DataTable React Component are made by smaller components. If you wanna change something inside the paginator component, just implement the text substitution on paginationComponentOptions (this works only with the built-in paginator), changing the text values by your i18n implemementation of that keys. You can, also, create your own implementation using paginationComponent.

juninhodeluca avatar Jul 30 '22 21:07 juninhodeluca