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