forked from Icycoide/searxng
[enh] add translatable strings to javascript - closes #461
This commit is contained in:
parent
6fb5c6aad9
commit
4ca0d8cb0f
11 changed files with 20 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue