[enh] add translatable strings to javascript - closes #461

This commit is contained in:
Adam Tauber 2020-06-15 18:25:05 +02:00
parent 6fb5c6aad9
commit 4ca0d8cb0f
11 changed files with 20 additions and 11 deletions

View file

@ -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