text: (function() {
      'use strict';
      angular
          .module('frontender')
          .config(config);
  
      function config($stateProvider, $urlRouterProvider, cfpLoadingBarProvider, $locationProvider, $translateProvider) {
  
          console.log('Config');
  
          // The definition of translation tables
          $translateProvider.translations('eng', translationsENG);
          $translateProvider.translations('ru', translationsRU);
          $translateProvider.preferredLanguage('eng');
          $translateProvider.fallbackLanguage('eng');
  
          // Enable escaping of HTML
          $translateProvider.useSanitizeValueStrategy('escape');
  
          // Loading Bar
          cfpLoadingBarProvider.spinnerTemplate = '' +
              '<div class="page-spinner"><i class="fa fa-spinner fa-pulse page-spinner-icon text-primary"></i></div>';
  
          // Routing rules
          $urlRouterProvider.otherwise('/eng/');
  
          $stateProvider
              .state('root',{
                  url: '/:language',
                  abstract: true,
                  views: {
                      'header': {
                          templateUrl: '/views/header.html'
                      },
                      'data-content':{
                          templateUrl: '/views/data-content.html'
                      },
                      'footer':{
                          templateUrl: '/views/footer.html'
                      }
                  }
              })
              .state('root.home', {
                  url: '/',
                  controller: 'MainCtrl',
                  views: {
                      'container@': {
                          templateUrl: '/index.html'
                      },
                      'state-content':{
                          templateUrl: '/views/index.state.html'
                      }
                  }
              })
              .state('root.about', {
                  url: '/about/',
                  controller: 'MainCtrl',
                  views: {
                      'container@': {
                          templateUrl: '/index.html'
                      },
                      'state-content':{
                          templateUrl: '/views/about.state.html'
                      }
                  }
              })
              .state('root.contacts', {
                  url: '/contacts/',
                  controller: 'MainCtrl',
                  views: {
                      'container@': {
                          templateUrl: '/index.html'
                      },
                      'state-content':{
                          templateUrl: '/views/contacts.state.html'
                      }
                  }
              })
              .state('root.error', {
                  url: '/error/',
                  controller: 'MainCtrl',
                  views: {
                      'container@': {
                          templateUrl: '/index.html'
                      },
                      'error': {
                          templateUrl: '/views/error_status.html',
                          controller: 'MainCtrl'
                      }
                  }
              })
          ;
  
          $locationProvider.html5Mode({ enabled: true, requireBase: true });
      }
  
  })();