how to use File export and Language setting together

how to use File export and Language setting together

epzeepze Posts: 1Questions: 1Answers: 0

hey guys i need your help
im new to DataTables
i have a qustion how to use File export and Language setting together
i have this code

$(document).ready(function() {
    $('#example').DataTable( {
        "language": {
    "processing":   "מעבד...",
    "lengthMenu":   "הצג _MENU_ פריטים",
    "zeroRecords":  "לא נמצאו רשומות מתאימות",
    "emptyTable":   "לא נמצאו רשומות מתאימות",
    "info": "_START_ עד _END_ מתוך _TOTAL_ רשומות" ,
    "infoEmpty":    "0 עד 0 מתוך 0 רשומות",
    "infoFiltered": "(מסונן מסך _MAX_  רשומות)",
    "infoPostFix":  "",
    "search":       "חפש:",
    "url":          "",
    "paginate": {
        "first":    "ראשון",
        "previous": "הקודם",
        "next":     "הבא",
        "last":     "אחרון"
    }
},
{
        dom: 'Bfrtip',
        buttons: [
            'copy', 'csv', 'excel', 'pdf', 'print'
        ]
    }
    } );
} );

and for some reason they cant work together
what im doing wrong they both work perfectly fine alone but when im trying to combine them
i get nether
any help direction code you name it will much appreciated
cheers

This discussion has been closed.