Multiple Language Resources and DefaultLanguage
we are seeing a problem when using multiple language resources and the Studio Preview feature.
See this example: https://playground.jsreport.net/w/anon/8rg1MYrR
Look at the content of "@root.$localizedResource" and the name of the resources used - they do not match the names of the data elements.
When looking at the sourcecode (https://github.com/jsreport/jsreport-resources/blob/master/lib/resources.js#L60-L75), I guess it's because the "options.language" field is not set in the preview.
Do you agree or do I miss something?
hi! yes, there is a bug there in that code, we will review it and ensure it resolves properly with the default language, thanks for the communication
hi again, we have fixed the problem here
if you need this urgently then update the extension installing it from git
npm i jsreport/jsreport-resourcesuntil we release a new version on npm.
thanks - I created a global script to fix the issue and will update once a new NPM package is available.