how to change language for DataTable We could use following code from the server end.
"oLanguage": {
"sUrl": "media/language/custom_lang_<?php echo $language ?>.txt"
}
Now I am using data table inside pentaho. I don't have access to the server side code. Is it possible to change the url dynamically using a java script variable ? The following script is not working as the code is converted to a string.
if(locale=='sv'){
return {"url": "/pentaho/api/repos/pentaho-cdf-dd/lang/rinjan/messages_sv.json"};
}else{
return {"url": "/pentaho/api/repos/pentaho-cdf-dd/lang/rinjan/messages_ge.json"}
}