summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-06-07 10:29:09 +0200
committerGitHub2018-06-07 10:29:09 +0200
commit6f76e9940feee9b0a5f91d6fa3987ec9613d4d4e (patch)
tree353e4fba58e0647830bc8f49846f3887292615e5 /lib
parentb07925b849e8be5887c06d9bcc1e5d33b22befbb (diff)
parent634b3c9cea24f07810229221a149827fb43f2239 (diff)
Merge pull request #836 from SISheogorath/fix/i18n-files
Fix i18n writing locale files in production
Diffstat (limited to 'lib')
-rw-r--r--lib/config/index.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/config/index.js b/lib/config/index.js
index 484301c4..7853dbad 100644
--- a/lib/config/index.js
+++ b/lib/config/index.js
@@ -102,6 +102,9 @@ config.isSAMLEnable = config.saml.idpSsoUrl
config.isOAuth2Enable = config.oauth2.clientID && config.oauth2.clientSecret
config.isPDFExportEnable = config.allowPDFExport
+// Only update i18n files in development setups
+config.updateI18nFiles = (env === Environment.development)
+
// merge legacy values
let keys = Object.keys(config)
const uppercase = /[A-Z]/