language is not working

language is not working

aarioaario Posts: 2Questions: 1Answers: 1

Tried:

            var oTable = $('#table').DataTable( {
                "language": {
                  "url": "http://cdn.datatables.net/plug-ins/a5734b29083/i18n/German.json"
                }
            } );

And:

            var oTable = $('#table').DataTable( {
                "language": {
                  "url": "http://cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/German.json"
                }
            } );

And:

            var oTable = $('#table').DataTable( {
                "language": {
                  "url": "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/German.json"
                }
            } );

And:

        var oTable = $('#table').DataTable( {
            "language": {
              "search": "Suchen"
            }
        } );

And:

        var oTable = $('#table').DataTable( {
            "language": {
              "sSearch": "Suchen"
            }
        } );

And:

        var oTable = $('#table').DataTable( {
            "oLanguage": {
              "sSearch": "Suchen"
            }
        } );

And lots of other combinations and none worked. Thanks in advance.

This question has an accepted answers - jump to answer

Answers

  • aarioaario Posts: 2Questions: 1Answers: 1
    Answer ✓

    Maybe browser cache because going to incognito mode fixed the issue.

  • fotosvinadelmarfotosvinadelmar Posts: 19Questions: 2Answers: 1
    edited November 2018

    can you bring a log of your dataTable instance? if you can please share too your enviroment architecture.

    i'm using this way today and have no problem. So try the language option and post back please your logs for debug please.

    var table = $('#example').DataTable({
    // Localization
        "language": {
            "url": "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/Spanish.json"
        },
        "responsive": true   
        }).draw(true).columns.adjust();
    
    });
    
This discussion has been closed.