summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2020-06-16 07:39:20 +0000
committerGitHub <noreply@github.com>2020-06-16 07:39:20 +0000
commit5dd235463a11bec2e3546e89f2b31d2a5aa40326 (patch)
treede9739ad90ab1fe39c06e98af2bd8b6a4ac0c58f /searx/webapp.py
parent178918438662a35585a15a9dee67c62755017824 (diff)
parent0dc5bdb6ef602d00456eb1db96d45e2f42b2b7a4 (diff)
Merge branch 'master' into new-readme
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/searx/webapp.py b/searx/webapp.py
index 2ba8ccfb8..68be25584 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -1021,6 +1021,14 @@ def config():
})
+@app.route('/translations.js')
+def js_translations():
+ return render(
+ 'translations.js.tpl',
+ override_theme='__common__',
+ ), {'Content-Type': 'text/javascript; charset=UTF-8'}
+
+
@app.errorhandler(404)
def page_not_found(e):
return render('404.html'), 404