mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
added default lang of en-US and translations package does the set lang based on subdomain
This commit is contained in:
parent
2be22d7ca7
commit
377acfaa56
2 changed files with 8 additions and 2 deletions
|
@ -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', ->
|
||||
|
|
|
@ -139,6 +139,13 @@ module.exports =
|
|||
features: defaultFeatures
|
||||
}]
|
||||
|
||||
|
||||
# i18n
|
||||
# ------
|
||||
#
|
||||
i18n:
|
||||
defaultLng:"en-US"
|
||||
|
||||
# Spelling languages
|
||||
# ------------------
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue