This commit is contained in:
lesion
2019-07-03 16:33:03 +02:00
parent c6fb23810a
commit 6a96193ffc
8 changed files with 26 additions and 16 deletions

View File

@@ -2,6 +2,7 @@ const Email = require('email-templates')
const path = require('path')
const moment = require('moment')
const config = require('config')
const settings = require('./controller/settings')
moment.locale('it')
const mail = {
@@ -23,7 +24,10 @@ const mail = {
send: true,
i18n: {
directory: path.join(__dirname, '..', '..', 'locales', 'email'),
defaultLocale: 'it'
syncFiles: false,
updateFiles: false,
defaultLocale: settings.locale,
objectNotation: true
},
transport: config.smtp
})