summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2020-06-16 07:37:06 +0000
committerGitHub <noreply@github.com>2020-06-16 07:37:06 +0000
commit59739a44dbdcb59d8b45e25b907aa5761ca88e49 (patch)
tree7c5f0e9de58d0063efa751776a6e85092944bda5 /searx/webapp.py
parent09c6fe8d4b2215d0337d4a3a479286e7463d5ee6 (diff)
parent0dc5bdb6ef602d00456eb1db96d45e2f42b2b7a4 (diff)
Merge branch 'master' into about-opensearch
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