summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
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