mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 20:20:05 +00:00
[enh] add translatable strings to javascript - closes #461
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user