Commit 2cfdffb1e084a56f18f8883ae535c28f0a1ec743
1 parent
ad7f7af4d8
Exists in
master
Try to remove circular dep on config and config-filler
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
config.js
1 | -'use strict'; | |
2 | - | |
3 | 1 | const fs = require('fs'); |
4 | -const configFiller = require('./config-filler'); | |
2 | +const moment = require('moment'); | |
3 | +// const configFiller = require('./config-filler'); | |
5 | 4 | |
6 | 5 | let configFile = process.cwd() + '/config.json'; |
7 | 6 | |
... | ... | @@ -15,6 +14,7 @@ if (!fs.existsSync(configFile)) { |
15 | 14 | global.KOMODO_SDK_CONFIG_FILENAME = configFile; |
16 | 15 | |
17 | 16 | const config = require(configFile); |
18 | -configFiller.go(); | |
17 | +// configFiller.go(); | |
18 | +moment.locale(config.moment_locale || 'id'); | |
19 | 19 | |
20 | 20 | module.exports = config; |