Where to add Drupal.t function in a javascript
$(language).find('.content').append("&lt;div class='voice-next-step'&gt;" + Drupal.t('Next step') + "&lt;/div&gt;");  // add next steps to demo voice list