This repository has been archived on 2022-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
AriaNg/src/scripts/config/configuration.js

21 lines
851 B
JavaScript
Raw Normal View History

2016-05-31 16:51:12 +02:00
(function () {
'use strict';
angular.module('ariaNg').config(['$translateProvider', 'localStorageServiceProvider', 'NotificationProvider', 'ariaNgConstants', function ($translateProvider, localStorageServiceProvider, NotificationProvider, ariaNgConstants) {
2016-05-31 16:51:12 +02:00
localStorageServiceProvider
.setPrefix(ariaNgConstants.appPrefix)
.setStorageType('localStorage')
.setStorageCookie(365, '/');
2016-07-16 19:16:17 +02:00
$translateProvider.useLoader('ariaNgLanguageLoader')
.useLoaderCache(true)
.preferredLanguage(ariaNgConstants.defaultLanguage)
.fallbackLanguage(ariaNgConstants.defaultLanguage)
2016-06-09 11:35:12 +02:00
.useSanitizeValueStrategy('escapeParameters');
NotificationProvider.setOptions({
delay: ariaNgConstants.notificationInPageTimeout
});
2016-05-31 16:51:12 +02:00
}]);
2016-08-01 16:49:16 +02:00
}());