Syed
Syed

Reputation: 2607

Change pagination number to arabic in datatable

I'm unable to change the previous and next text in Arabic using

"paginate" : { 
      "next" : " "
  } 

How can I change the number format of pages to Arabic format?

Upvotes: 0

Views: 552

Answers (1)

MHD Yasser Haddad
MHD Yasser Haddad

Reputation: 31

To change the text into a language you want just put this code in the datatable init:

    table.DataTable({
        "language": {
            "paginate": {
              "first": "الصفحة الأولى",
              "last": "الصفحة الأخيرة",
              "next": "التالي",
              "previous": "السابق",
            }
        }
    });

and that's how you change the language of these texts: changed text example

and if you want to change the number format you can find the answer in the following link: change pagination number format

Upvotes: 1

Related Questions