summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app.js b/app.js
index b9abba0c..772073b0 100644
--- a/app.js
+++ b/app.js
@@ -131,7 +131,8 @@ if (config.csp.enable) {
i18n.configure({
locales: ['en', 'zh', 'zh-CN', 'zh-TW', 'fr', 'de', 'ja', 'es', 'ca', 'el', 'pt', 'it', 'tr', 'ru', 'nl', 'hr', 'pl', 'uk', 'hi', 'sv', 'eo', 'da', 'ko'],
cookie: 'locale',
- directory: path.join(__dirname, '/locales')
+ directory: path.join(__dirname, '/locales'),
+ updateFiles: config.updateI18nFiles
})
app.use(cookieParser())