How to set paging numbers format globally?

How to set paging numbers format globally?

jstuardojstuardo Posts: 104Questions: 41Answers: 0
edited September 2021 in DataTables

Hello,

I have developed a site which uses datatables everywhere. I am using $.fn.dataTable.render.number to format decimal numbers in columns, however, I have just realized that paging numbers are not formatted well.

For example, this paging text is shown:

Mostrando registros del 1 al 10 de un total de 14,870 registros

Look at the thousand separator of 14870. It is a comma but in this locale, correct should be a dot, this way, 14.870.

How can this be solved? perhaps adding some setting to the dataTables.[language].lang file?

This is DataTables 1.10

Thanks
Jaime

This question has an accepted answers - jump to answer

Answers

Sign In or Register to comment.