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: 9,555Questions: 0Answers: 1,580

    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: 52,525Questions: 1Answers: 8,019 Site admin

    Yes - that is exactly how you would do it.

    Allan

Sign In or Register to comment.