21. i18n file loading error

DataTables can load language information to show translated strings for any text it displayed from a remote JSON file. If the loading of this remote file fails for any reason, the error:

i18n file loading error

will occur.


This error will happen if there is a problem reading JSON data from the source file pointed to by the language.url option. The error might be as simple as a 404 File not found error, or it could be that the JSON data being loaded is invalid JSON.


To diagnose the issue, use your browser's networking inspector to locate the request for the language file and determine what about it is failing. If you need to validate JSON, you can use a validation service such as JSON Lint.