Skip to content

Commit

Permalink
EZP-28890: Added crowdin in-context translation JS code (#499)
Browse files Browse the repository at this point in the history
* EZP-28890: Added crowdin in-context translation JS code

* Added crowdin code on Security/base.html.twig
  • Loading branch information
bdunogier authored and Łukasz Serwatka committed Jun 15, 2018
1 parent 6e83174 commit 5fe7cea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bundle/Resources/views/Security/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,12 @@
%}
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}
{% if app.request.locale == 'ach_UG' %}
<script type="text/javascript">
var _jipt = [];
_jipt.push(['project', 'ezplatform']);
</script>
<script type="text/javascript" src="//cdn.crowdin.com/jipt/jipt.js"></script>
{% endif %}
</body>
</html>
7 changes: 7 additions & 0 deletions src/bundle/Resources/views/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
</script>
<script src="/bundles/fosjsrouting/js/router.js"></script>
<script src="{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}"></script>
{% if app.request.locale == 'ach_UG' %}
<script type="text/javascript">
var _jipt = [];
_jipt.push(['project', 'ezplatform']);
</script>
<script type="text/javascript" src="//cdn.crowdin.com/jipt/jipt.js"></script>
{% endif %}
<title>{% block title %}eZ Platform{% endblock %}</title>
{% stylesheets filter='scssphp'
'bundles/ezplatformadminui/scss/ezplatform-bootstrap.scss'
Expand Down

0 comments on commit 5fe7cea

Please sign in to comment.