2014-04-04 11:12:25 +01:00
|
|
|
//var RosaABF = angular.module('RosaABF', ['ngResource', 'ng-rails-csrf', 'angular-i18n', 'angularMoment']);
|
|
|
|
var RosaABF = angular.module('RosaABF', ['ui.bootstrap', 'angular-i18n', 'angularMoment',
|
2014-04-08 14:11:34 +01:00
|
|
|
'chieffancypants.loadingBar', 'ngSanitize']);
|
2014-04-04 11:12:25 +01:00
|
|
|
|
|
|
|
var LocalesHelper = function($locale) {
|
|
|
|
var locales = {
|
|
|
|
'ru' : 'ru-ru',
|
|
|
|
'en' : 'en-us'
|
|
|
|
}
|
|
|
|
return {
|
|
|
|
setLocale: function(locale) {
|
|
|
|
$locale.id = locales[locale];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-04-08 14:11:34 +01:00
|
|
|
|
2014-04-04 11:12:25 +01:00
|
|
|
RosaABF.factory("LocalesHelper", ['$locale', LocalesHelper]);
|
2014-04-08 14:11:34 +01:00
|
|
|
|
|
|
|
RosaABF.config(function(cfpLoadingBarProvider) {
|
|
|
|
cfpLoadingBarProvider.includeSpinner = false;
|
|
|
|
});
|