fix: Intl polyfill for spanish locale
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Joan Sanchez 2022-10-25 08:16:56 +02:00
parent e80754f280
commit 4520443734
1 changed files with 5 additions and 1 deletions

View File

@ -7,8 +7,12 @@ const componentsPath = path.resolve(__dirname, './core/components');
module.exports = { module.exports = {
async boot(app) { async boot(app) {
// Init database instance // Extended locale intl polyfill
const IntlPolyfill = require('intl');
Intl.NumberFormat = IntlPolyfill.NumberFormat;
Intl.DateTimeFormat = IntlPolyfill.DateTimeFormat;
// Init database instance
require('./core/database').init(app.dataSources); require('./core/database').init(app.dataSources);
require('./core/smtp').init(); require('./core/smtp').init();
require('./core/cluster').init(); require('./core/cluster').init();