Oh. Yeah. In this case you better to ask support.
grinay
@grinay
Posts made by grinay
-
RE: How to use handlebars-intl in jsreport online
-
RE: Localize number formats
The problem was with node.js is not including localization by default.
I had to customize run script and add package to node
My Dockefile looks likeFROM jsreport/jsreport:2.6.0-full RUN npm i handlebars-intl full-icu --save COPY jsreport.config.json /app COPY package.json /app COPY run.sh /app
Also I need to modify run.sh script to run node with supporting locales
node --icu-data-dir=node_modules/full-icu "/app/server.js"
After that locales start working. Hope it helps someone else
-
Localize number formats
Hello. Please help to figure out how to localize number formats.
I've tried to install handlebars-intl and apply it but it seems to be doesn't work.
I've put into jsvar handlebars = require('handlebars');
var HandlebarsIntl = require('handlebars-intl');
HandlebarsIntl.registerWith(handlebars);and tried to apply it like
{{#intl locales="fr-FR"}}
<p>
<b>{{formatDate date day="numeric" month="long"}}</b>
<i>("fr-FR" locale)</i>
</p>
{{/intl}}But whenever locale I use format didn't change. Please help to figure out.