added default lang of en-US and translations package does the set lang based on subdomain

This commit is contained in:
Henry Oswald 2014-08-05 11:15:17 +01:00
parent 2be22d7ca7
commit 377acfaa56
2 changed files with 8 additions and 2 deletions

View file

@ -18,7 +18,7 @@ oneDayInMilliseconds = 86400000
ReferalConnect = require('../Features/Referal/ReferalConnect')
RedirectManager = require("./RedirectManager")
OldAssetProxy = require("./OldAssetProxy")
translations = require("translations-sharelatex").setup(Settings.subdomainLang)
translations = require("translations-sharelatex").setup(Settings.i18n)
metrics.mongodb.monitor(Path.resolve(__dirname + "/../../../node_modules/mongojs/node_modules/mongodb"), logger)
metrics.mongodb.monitor(Path.resolve(__dirname + "/../../../node_modules/mongoose/node_modules/mongodb"), logger)
@ -76,7 +76,6 @@ app.configure () ->
app.use ReferalConnect.use
app.use express.methodOverride()
expressLocals(app)
app.configure 'production', ->

View file

@ -139,6 +139,13 @@ module.exports =
features: defaultFeatures
}]
# i18n
# ------
#
i18n:
defaultLng:"en-US"
# Spelling languages
# ------------------
#