@@ -62,7 +62,7 @@ angular.module('gettext').constant('gettext', function (str) {
6262 * @requires https://docs.angularjs.org/api/ng/service/$rootScope $rootScope
6363 * @description Provides set of method to translate stings
6464 */
65- angular . module ( 'gettext' ) . factory ( 'gettextCatalog' , function ( gettextPlurals , gettextFallbackLanguage , $http , $cacheFactory , $interpolate , $rootScope ) {
65+ angular . module ( 'gettext' ) . factory ( 'gettextCatalog' , [ "gettextPlurals" , "gettextFallbackLanguage" , "$http" , "$cacheFactory" , "$interpolate" , "$rootScope" , function ( gettextPlurals , gettextFallbackLanguage , $http , $cacheFactory , $interpolate , $rootScope ) {
6666 var catalog ;
6767 var noContext = '$$noContext' ;
6868
@@ -343,7 +343,7 @@ angular.module('gettext').factory('gettextCatalog', function (gettextPlurals, ge
343343 } ;
344344
345345 return catalog ;
346- } ) ;
346+ } ] ) ;
347347
348348/**
349349 * @ngdoc directive
@@ -400,7 +400,7 @@ angular.module('gettext').factory('gettextCatalog', function (gettextPlurals, ge
400400 * <div translate translate-params-cost="cost | currency">This product: {{product}} costs {{cost}}.</div>
401401 * ```
402402 */
403- angular . module ( 'gettext' ) . directive ( 'translate' , function ( gettextCatalog , $parse , $animate , $compile , $window , gettextUtil ) {
403+ angular . module ( 'gettext' ) . directive ( 'translate' , [ "gettextCatalog" , "$parse" , "$animate" , "$compile" , "$window" , "gettextUtil" , function ( gettextCatalog , $parse , $animate , $compile , $window , gettextUtil ) {
404404 var msie = parseInt ( ( / m s i e ( \d + ) / . exec ( angular . lowercase ( $window . navigator . userAgent ) ) || [ ] ) [ 1 ] , 10 ) ;
405405 var PARAMS_PREFIX = 'translateParams' ;
406406
@@ -521,7 +521,7 @@ angular.module('gettext').directive('translate', function (gettextCatalog, $pars
521521 } ;
522522 }
523523 } ;
524- } ) ;
524+ } ] ) ;
525525
526526/**
527527 * @ngdoc factory
@@ -577,13 +577,13 @@ angular.module("gettext").factory("gettextFallbackLanguage", function () {
577577 *
578578 * You may want to use {@link guide:custom-annotations custom annotations} to avoid using the `translate` filter all the time. * Is
579579 */
580- angular . module ( 'gettext' ) . filter ( 'translate' , function ( gettextCatalog ) {
580+ angular . module ( 'gettext' ) . filter ( 'translate' , [ "gettextCatalog" , function ( gettextCatalog ) {
581581 function filter ( input , context ) {
582582 return gettextCatalog . getString ( input , null , context ) ;
583583 }
584584 filter . $stateful = true ;
585585 return filter ;
586- } ) ;
586+ } ] ) ;
587587
588588// Do not edit this file, it is autogenerated using genplurals.py!
589589angular . module ( "gettext" ) . factory ( "gettextPlurals" , function ( ) {
0 commit comments