{"size": 1676, "ext": "js", "max_stars_repo_path": "src/scripts/config/configuration.js", "max_stars_repo_name": "hugetiny/AriaNg", "max_stars_repo_stars_event_min_datetime": "2018-10-27T13:36:09.000Z", "max_stars_repo_stars_event_max_datetime": "2018-10-27T13:36:09.000Z", "max_issues_repo_path": "src/scripts/config/configuration.js", "max_issues_repo_name": "hugetiny/AriaNg", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/scripts/config/configuration.js", "max_forks_repo_name": "hugetiny/AriaNg", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.4347826087, "max_line_length": 314, "alphanum_fraction": 0.6264916468}
(function () {
    'use strict';

    angular.module('weDownload').config(['$qProvider', '$translateProvider', 'localStorageServiceProvider', 'NotificationProvider', 'weDownloadConstants', 'weDownloadLanguages', function ($qProvider, $translateProvider, localStorageServiceProvider, NotificationProvider, weDownloadConstants, weDownloadLanguages) {
        $qProvider.errorOnUnhandledRejections(false);

        localStorageServiceProvider
            .setPrefix(weDownloadConstants.appPrefix)
            .setStorageType('localStorage')
            .setStorageCookie(365, '/');

        var supportedLangs = [];
        var languageAliases = {};

        for (var langName in weDownloadLanguages) {
            if (!weDownloadLanguages.hasOwnProperty(langName)) {
                continue;
            }

            var language = weDownloadLanguages[langName];
            var aliases = language.aliases;

            supportedLangs.push(langName);

            if (!angular.isArray(aliases) || aliases.length < 1) {
                continue;
            }

            for (var i = 0; i < aliases.length; i++) {
                var langAlias = aliases[i];
                languageAliases[langAlias] = langName;
            }
        }

        $translateProvider.useLoader('weDownloadLanguageLoader')
            .useLoaderCache(true)
            .registerAvailableLanguageKeys(supportedLangs, languageAliases)
            .fallbackLanguage(weDownloadConstants.defaultLanguage)
            .useSanitizeValueStrategy('escapeParameters');

        NotificationProvider.setOptions({
            delay: weDownloadConstants.notificationInPageTimeout
        });
    }]);
}());
