« All helpers
Includes $.i18n() which makes Elefant's I18n translation support available in JavaScript code.
$.i18n()
Usage:
{! admin/util/i18n !} <script> $(function () { $.i18n_append ({ 'Original text': "{'Translated text'}" }); });
console.log ($.i18n ('Original text'));
Includes
$.i18n()
which makes Elefant's I18n translation support available in JavaScript code.Usage:
1. In your view template:
2. Now in your included JavaScript, you can use: