'use strict';
angular.module('pricesCalculator',['pascalprecht.translate', 'ui.bootstrap']).config(function($translateProvider, $translatePartialLoaderProvider){
  $translateProvider.useLoader('$translatePartialLoader', {
    urlTemplate: '/{part}/{lang}.json'
  });
  $translateProvider.preferredLanguage('pt-BR');
  $translatePartialLoaderProvider.addPart('i18n/home');

}).run(function($rootScope, $translate){
  $rootScope.$on('$translatePartialLoaderStructureChanged', function () {
    $translate.refresh();
  });
});
