Merge pull request #203 from jaredevantabor/i18n-initialization

initializing i18nInit module
This commit is contained in:
Jared Tabor 2017-09-19 13:29:01 -07:00 committed by GitHub
commit e23be23a83

View File

@ -171,12 +171,13 @@ angular.module('awApp', [
'CheckLicense', '$location', 'Authorization', 'LoadBasePaths', 'Timer',
'LoadConfig', 'Store', 'pendoService', 'Prompt', 'Rest',
'Wait', 'ProcessErrors', '$state', 'GetBasePath', 'ConfigService',
'FeaturesService', '$filter', 'SocketService', 'AppStrings',
'FeaturesService', '$filter', 'SocketService', 'AppStrings', 'I18NInit',
function($stateExtender, $q, $compile, $cookies, $rootScope, $log, $stateParams,
CheckLicense, $location, Authorization, LoadBasePaths, Timer,
LoadConfig, Store, pendoService, Prompt, Rest, Wait,
ProcessErrors, $state, GetBasePath, ConfigService, FeaturesService,
$filter, SocketService, AppStrings) {
$filter, SocketService, AppStrings, I18NInit) {
I18NInit();
$rootScope.$state = $state;
$rootScope.$state.matches = function(stateName) {
return $state.current.name.search(stateName) > 0;