Intl polyfill
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
5811a0f56e
commit
330af56d2f
|
@ -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/mixins');
|
require('./core/mixins');
|
||||||
|
|
Loading…
Reference in New Issue