Codebase list libjs-angular-gettext / 3ee0433
Merge pull request #358 from mvsaad/angular1.7-compatibility Replace usage of angular.lowercase with .toLowerCase() Ruben Vermeersch authored 5 years ago GitHub committed 5 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5353 * ```
5454 */
5555 angular.module('gettext').directive('translate', function (gettextCatalog, $parse, $animate, $compile, $window, gettextUtil) {
56 var lowercase = angular.$$lowercase || angular.lowercase;
57 var msie = parseInt((/msie (\d+)/.exec(lowercase($window.navigator.userAgent)) || [])[1], 10);
56 var msie = parseInt((/msie (\d+)/i.exec($window.navigator.userAgent) || [])[1], 10);
5857 var PARAMS_PREFIX = 'translateParams';
5958
6059 function getCtxAttr(key) {