Open fabioi opened 9 years ago
Hi, good day, Here is how you should do it:
I recommend you to put the lenguaje part on a separate file as a json file. Then in your view just do this:
$langFile = URL::asset("route/to/your/languajeFile.json");
{{ Datatable::table()->setOptions(array('language' => array('url' => $langFile)))
->setUrl(route('api.places.data'))
->render() }}
And that's it, let me know if it works
Hello,
First of all thanks! for your plugin It is incredibly useful!
I am having problems with language settings.
I published the configuration and replaced the content of the config file with the one posted in the last comment of the issue #112 but I keep having English as output (es: search, records per page etc).
I tried clearing caches too but without any result. Any idea of what could cause the issue?
Those are the js I use:
This it the code in the controller I use to return the data
This is the code in the view
The language part of the config file: