Add a mechanism for centralising JS translations, to avoid having to render many JS files with Jinja.

This commit is contained in:
Atira Odhner
2017-03-15 17:10:22 +00:00
committed by Dave Page
parent 2f84156dc6
commit 4445f9dd63
5 changed files with 100 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
define(function () {
var translations = {{ translations|tojson }};
return translations;
});