how to change language for DataTable

前端 未结 11 1769
灰色年华
灰色年华 2020-12-14 15:11

I store, in a session variable, which language does user wants to translate but I don\'t know to pass it DataTables

I found this explanation on the datatables websit

11条回答
  •  别那么骄傲
    2020-12-14 15:51

    Keep in mind that you have to exactly specify your path to your language.JSON like this:

    language: {
        url: '/mywebsite/js/localisation/German.json'
    }
    

提交回复
热议问题