How to add persian language library into my project

How to add persian language library into my project

MinamrmMinamrm Posts: 3Questions: 2Answers: 0

Hi. I'm using the datatable as the table design in my project and I want all its keyword to be as persian language and for doing so I add code like the following which reads the data from the internet.

$("#myDummyTable").DataTable({

        //"searching": false,
        "language": {
            "url": "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Persian.json"
        }
    });

Now my problem is How can I add persian library in my project o read those keywords for the table from my project while the internet is disconnected.

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    You would just copy the CDN file into your webserver, and change the URL to point towards that,

    Colib

  • MinamrmMinamrm Posts: 3Questions: 2Answers: 0

    Thank you for your answer. Is it possible to add the file into my project and I refer to it by something like URL in order to access it in my code?

  • allanallan Posts: 63,514Questions: 1Answers: 10,472 Site admin

    Yes - that is exactly how you would do it.

    Allan

  • aliramezanialiramezani Posts: 1Questions: 0Answers: 0

    فایلتو کپی کن یه پوشه و بعد از آدرس زیر بخونش:

    url: 'lib/datatables/Persian.json'
    
Sign In or Register to comment.