Skip to content

Language

Specify language json url from cdn or local.

.Language("//cdn.datatables.net/plug-ins/1.10.22/i18n/Turkish.json")
Or configure:
.Language(l => l.Search("Search By: ").EmptyTable("No records"))

Reference

All strings that DataTables uses in its user interface are defined in this object, allowing you to modified them individually or completely replace them all as required. This ensures that DataTables is fully internationalisable as strings for any language can be used.

The following is the default object that DataTables uses for its language strings (for information about each individual parameter, please see its individual documentation document):

    {
    "decimal":        "",
    "emptyTable":     "No data available in table",
    "info":           "Showing _START_ to _END_ of _TOTAL_ entries",
    "infoEmpty":      "Showing 0 to 0 of 0 entries",
    "infoFiltered":   "(filtered from _MAX_ total entries)",
    "infoPostFix":    "",
    "thousands":      ",",
    "lengthMenu":     "Show _MENU_ entries",
    "loadingRecords": "Loading...",
    "processing":     "",
    "search":         "Search:",
    "zeroRecords":    "No matching records found",
    "paginate": {
        "first":      "First",
        "last":       "Last",
        "next":       "Next",
        "previous":   "Previous"
    },
    "aria": {
        "orderable":  "Order by this column",
        "orderableReverse": "Reverse order this column"
    }
}

Decimal

Set the decimal place character.

.Decimal(",")

EmptyTable

This string is shown when the table is empty of data (regardless of filtering).

.EmptyTable("No data available in table")

Info

This string gives information to the end user about the information that is current on display on the page.

.Info("Showing page _PAGE_ of _PAGES_")

InfoEmpty

Display information string for when the table is empty.

.InfoEmpty("No entries to show")

InfoFiltered

When a user filters the information in a table, this string is appended to the information (info) to give an idea of how strong the filtering is.

.InfoFiltered(" - filtered from _MAX_ records")

InfoPostFix

If can be useful to append extra information to the info string at times, and this variable does exactly that.

.InfoPostFix("All records shown are derived from real information.")

Thousands

The thousands separator option is used for output of information only.

.Thousands(".")

LengthMenu

Detail the action that will be taken when the drop down menu for the pagination length option is changed.

.LengthMenu("Display _MENU_ records")

LoadingRecords

This message is shown in an empty row in the table to indicate to the end user the the data is being loaded.

.LoadingRecords("Please wait, loading...")

Processing

Text that is displayed when the table is processing a user action (usually a sort command or similar).

.Processing("DataTables is currently busy")

Sets the string that is used for DataTables filtering input control.

.Search("Filter records:")

ZeroRecords

Text shown inside the table records when the is no information to be displayed after filtering.

.ZeroRecords("No records to display")

Paginate

Pagination string used by DataTables for the built-in pagination control types.

.Paginate("first", "last", "next", "previous")

Aria

Language strings used for WAI-ARIA specific attributes.

SortAscending

Set ARIA sort ascending string.

.Aria(a => a.SortAscending(" - click/return to sort ascending"))

SortDescending

Set ARIA sort descending string.

.Aria(a => a.SortDescending(" - click/return to sort descending"))

Orderable

Set ARIA orderable string.

.Aria(a => a.Orderable(": Sort this column"))

OrderableReverse

Set ARIA orderableReverse string.

.Aria(a => a.OrderableReverse(": Reverse sort this column"))

OrderableRemove

Set ARIA orderableRemove string.

.Aria(a => a.OrderableRemove(": Remove sort from this column"))