locale via config

This commit is contained in:
lesion
2019-06-10 01:25:05 +02:00
parent b01f4ef04d
commit 50de4e8ebb
16 changed files with 52 additions and 55 deletions

View File

@@ -2,10 +2,10 @@ const fs = require('fs')
const path = require('path')
const moment = require('moment')
const { event: Event, comment: Comment } = require('../models')
const config = require('../../config').SHARED_CONF
const config = require('../../config')
const Mastodon = require('mastodon-api')
const settingsController = require('./settings')
moment.locale('it')
moment.locale(process.env.locale)
const botController = {
bot: null,