Since: DataTables 1.10

Load language information from remote file.


All of the language options DataTables provides can be stored in a file on the server, which DataTables will look up if this parameter is passed. The file must be a valid JSON file, and the object it contains has the same properties as the language object in the initialiser object.

There are a wide range of translations readily available on this site, in the internationalisation plug-ins.

Note that when this parameter is set, DataTables' initialisation will be asynchronous due to the Ajax data load. That is to say that the table will not be drawn until the Ajax request as completed. As such, any actions that require the table to have completed its initialisation should be placed into the initComplete callback.


This option can be given in the following type(s):


Load language information from a remote file:

$('#example').dataTable( {
  "language": {
    "url": "/dataTables/i18n/de_de.lang"
} );


$('#example').dataTable( {
  "language": {
    "url": "/dataTables/i18n/de_de.lang"
  "initComplete": function () {
  	var api = this.api();

  	// Put the sum of column 5 into the footer cell
  	$( api.column( 5 ).footer() ).html(
  		api.column( 5 ).data().reduce( function (a, b) {
  			return a + b;
  		} )
} );


The following options are directly related and may also be useful in your application development.