Created
July 29, 2018 11:25
-
-
Save dlhck/d841fc27fdb68d3a52d9c0e274274353 to your computer and use it in GitHub Desktop.
Dumping the Translations array to the window object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% block footer_scripts deferred %} | |
<script> | |
window.app_locale = "{{ app.request.locale }}"; | |
window.app_translations = {{ translation_dumper.dump()|json_encode|raw }}; | |
</script> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment