mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 13:51:11 +00:00
Allow an __appName__ parameter in translations
This commit is contained in:
parent
b41cdb424b
commit
d376acdaa9
2 changed files with 5 additions and 1 deletions
|
@ -56,7 +56,9 @@ module.exports = (app)->
|
|||
next()
|
||||
|
||||
app.use (req, res, next)->
|
||||
res.locals.translate = req.i18n.translate
|
||||
res.locals.translate = (key, vars = {}) ->
|
||||
vars.appName = Settings.appName
|
||||
req.i18n.translate(key, vars)
|
||||
res.locals.currentUrl = req.originalUrl
|
||||
next()
|
||||
|
||||
|
|
|
@ -262,6 +262,8 @@ module.exports =
|
|||
# user: ""
|
||||
# password: ""
|
||||
# projectId: ""
|
||||
|
||||
appName: "ShareLaTeX (Community Edition)"
|
||||
|
||||
nav:
|
||||
title: "ShareLaTeX Community Edition"
|
||||
|
|
Loading…
Reference in a new issue