Hi,
we have templates in folders like this:
in test.template, I use the localize function:
{{localize "test" "./translations"}}
The following request to /api/report
succeeds on jsreport 3.0.1:
{
"template": { "name" : "/testfolder/test.template" },
"data" : { "test": "bar" },
"options": {
"localization": {
"language": "en"
}
}
}
However, on jsreport 3.1.1 it fails with this error:
{
"message": "Error when evaluating engine handlebars for template /testfolder//testfolder/test.template\nlocalize helper couldn't find asset with data at translations/en.json",
"stack": "Error: localize helper couldn't find asset with data at translations/en.json\n at Object.localize (/app/node_modules/@jsreport/jsreport-localization/lib/worker.js:42:17)"
}
Am I doing something wrong? Apparently, the localize helper can't resolve the relative folder reference any more. Thanks in advance!
(see attached export file sorry, I can't seem to upload non-image files)