Internationalisation i38n for field: datatable

Internationalisation i38n for field: datatable

khrmkhrm Posts: 13Questions: 4Answers: 0

Hi there, i wondering, where i can find information for the internationalisation to change the texts for the datatable-field:
How can i change the texts?

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586
    edited November 2021 Answer ✓

    You can use standard DataTables initialisation properties, so you can add a language file like this example, but adding in the i18n properties:

                }, {
                    label: "Site:",
                    name: "users.site",
                    type: "datatable",
                    config: {
                        language: {
                            "url": "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/German.json"
                        }
                    }
                }
    

    This gives the form like this:

    Colin

Sign In or Register to comment.