So we'll either have to include this in an inline script in the page in order to wrap the strings for l10n, or you can have this served up by a view and loaded from a template. The trick will be having Jinja spit out the brackets like you need the JS templates to be. But I think it's doable.