Open

Description
I'm using express
, express-handlebars
and handlebars-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..
const hbs = exphbs.create({ extname: '.hbs' });
app.engine(hbs.extname, hbs.engine);
HandlebarsIntl.registerWith(hbs.handlebars); // Handlebars Intl Plugin
app.set('view engine', hbs.extname);
app.set('views', path.join(__dirname, './views/pages'));
Final goal:
Correctly renders with Handlebars this datetime {{formatDate time}}
using my specified locale
Metadata
Metadata
Assignees
Labels
No labels