Send frontend translations with javascript mime type
Thanks @markwal
This commit is contained in:
parent
d9cbf786d5
commit
06fb249f2e
1 changed files with 2 additions and 1 deletions
|
|
@ -423,7 +423,8 @@ def localeJs(locale, domain):
|
|||
domain=domain
|
||||
)
|
||||
|
||||
return render_template("i18n.js.jinja2", catalog=catalog)
|
||||
from flask import Response
|
||||
return Response(render_template("i18n.js.jinja2", catalog=catalog), content_type="application/x-javascript; charset=utf-8")
|
||||
|
||||
|
||||
@app.route("/plugin_assets/<string:name>/<path:filename>")
|
||||
|
|
|
|||
Loading…
Reference in a new issue