i18n for javascript code

Issue #14 resolved
Thomas Waldmann
repo owner created an issue

We have i18n for jinja2 templates and python code, but I don't think we have translations available for javascript code yet.

Comments (4)

  1. Thomas Waldmann reporter

    The approaches from comment #2 seem to transfer all string translations (relating to one language) to the js code, using a separate http request.

    I am somehow thinking whether we simple should render the js files from jinja2 templates. We have already solved i18n for templates, so we could just use the same mechanism for javascript. See there: http://stackoverflow.com/questions/10647449/serving-i18n-js-using-babel-django-jinja2

    TODO: think about cacheability/proxies, so this is not requested / rendered again all the time.

  2. Log in to comment