Send frontend translations with javascript mime type
Thanks @markwal
This commit is contained in:
1 parent
d9cbf786d5
commit
06fb249f2e
1 file changed
+2
-1
@@ -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>")
|
||||
|
||||
Reference in new issue
Block a user