Open ghost opened 6 years ago
Just tried:
global.HandlebarsIntl = HandlebarsIntl;
require('handlebars-intl/dist/locale-data/it');
or even:
HandlebarsIntl.__addLocaleData({locale: "it"})
No errors but does not works, what am I missing? :\
same issue
same issue
same issue
I'm using
express
,express-handlebars
andhandlebars-intl
and I would like to change the default "en" locale to another (like "it").I read that this plugin uses
Intl.DateTimeFormat
to formats. In this specific case how can I edit things like locale, timezone, date formats, etc..Final goal:
Correctly renders with Handlebars this datetime
{{formatDate time}}
using my specified locale