(function($) { /** * String Overrides behavior to load in JavaScript-based translations. */ Drupal.behaviors.stringoverrides = { attach: function (context, settings) { if (settings.stringoverrides || false) { // Add the string overrides translations to the Drupal.locale array. jQuery.extend(Drupal.locale, settings.stringoverrides); } } }; })(jQuery);