Skip to content

Commit

Permalink
Fixes #37858 - Send events on angular translation load
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga committed Sep 23, 2024
1 parent 1fd6f0a commit c4694cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@
angular.module('Bastion.i18n', [
'gettext'
]);

var loadAngularJSi18n = new Event('loadAngularJSi18n');
document.dispatchEvent(loadAngularJSi18n);
Original file line number Diff line number Diff line change
Expand Up @@ -342,4 +342,7 @@ angular.module('gettext').factory('gettextPlurals', function () {
return n != 1 ? 1 : 0;
}
};
});
});

var loadAngularJSgettext = new Event('loadAngularJSgettext');
document.dispatchEvent(loadAngularJSgettext);

0 comments on commit c4694cb

Please sign in to comment.