refactoring locales management

This commit is contained in:
les
2020-02-20 18:37:10 +01:00
parent 0416ddb1a3
commit 5769d1a3ed
18 changed files with 68 additions and 55 deletions

View File

@@ -15,10 +15,11 @@ const notifier = {
debug('Send %s notification %s', notification.type, notification.action)
let p
switch (notification.type) {
case 'mail':
return mail.send(notification.email, 'event', { event, config, notification })
// case 'mail': TODO: locale?
// return mail.send(notification.email, 'event', { event, notification })
case 'admin_email':
p = mail.send([config.smtp.auth.user, config.admin_email], 'event', { event, to_confirm: !event.is_visible, config, notification })
p = mail.send(config.admin_email, 'event',
{ event, to_confirm: !event.is_visible, notification })
promises.push(p)
break
case 'ap':