Include translation mapping in nojs windows

The translation map was missing for links opened via the nojs feature,
causing a server error.

Fixes #507
main
Ben Busby 2021-10-28 21:06:52 -06:00
parent 5189cdb072
commit cad1e2ab4d
No known key found for this signature in database
GPG Key ID: 339B7B7EB5333D14
1 changed files with 7 additions and 1 deletions

View File

@ -385,7 +385,13 @@ def window():
for script in results('script'):
script.decompose()
return render_template('display.html', response=results)
return render_template(
'display.html',
response=results,
translation=app.config['TRANSLATIONS'][
g.user_config.get_localization_lang()
]
)
def run_app() -> None: