(function() {
	'use strict';
	/**
	 *  Declare app level module which depends on views, and components.
	 */
	angular.module('lirejarpApp', [
		'tmh.dynamicLocale', // angular-dynamic-locale
		'moment-picker',
	    'pascalprecht.translate',
	    //DO NOT DELETE ###BEGIN### include generated files
		//DO NOT DELETE ###END### include generated files
		'ngRoute'
	]);
	
	/**
	 * Language Configuration via module pascalprecht.translate.
	 */
	angular.module('lirejarpApp').config(['$translateProvider', function($translateProvider) {
		$translateProvider
		.useStaticFilesLoader({
			prefix: 'localization/translations-',
			suffix: '.json'
		})
        .registerAvailableLanguageKeys(['en-US', 'de-DE'], {
             'en*': 'en-US',
             'de*': 'de-DE',
         })
		.determinePreferredLanguage()
		.useSanitizeValueStrategy('escaped') // Security for escaping variables
		.usePostCompiling(true); // Post compiling angular filters
	}]);
	
	/**
	 * Configuration for locale.
	 */
	angular.module('lirejarpApp')
	.config(['tmhDynamicLocaleProvider', function(tmhDynamicLocaleProvider) {
		var locale = window.navigator.userLanguage || window.navigator.language;
		if (locale.includes('de')) {
				tmhDynamicLocaleProvider.defaultLocale('de-de');
				tmhDynamicLocaleProvider.localeLocationPattern('localization/angular-locale_de-de.js');
		} else {
				tmhDynamicLocaleProvider.defaultLocale('en-us');
				tmhDynamicLocaleProvider.localeLocationPattern('localization/angular-locale_en-us.js');
		}
  }]);
	
	angular.module('lirejarpApp').controller('appController', appController);
	
	/**
	 * Controller for global behavior when changing the view (routeChange).
	 * @param $scope
	 * @returns
	 */
	function appController($scope) {
		$scope.$on('$routeChangeSuccess', function (scope, next, current) {
			$scope.title=next.title;
			$scope.subtitle=next.subtitle;
		});
	}

	/**
	 * Factories used globally in lirejarpApp. 
	 * To keep the scope as small as possible, add factories only used by submodules in the submodule itself.
	 */		
	angular.module('lirejarpApp').factory('restConnectorFactory', restConnectorFactory);
})();

@@ -1505,12 +1505,616 @@
 %09%09%7D%0A
-  %7D%5D
+%09%7D%5D);%0A%09%0A%09angular.module('lirejarpApp')%0A%09.filter('formatLocalDate', function ($filter) %7B%0A%09   return function (date) %7B%0A%09       if (date) %7B%0A%09    %09   moment.locale(window.navigator.userLanguage %7C%7C window.navigator.language);%0A%09           return moment(date).format(%22LL%22);%0A%09       %7D%0A%09       else%0A%09           return %22%22;%0A%09   %7D;%0A%09%7D)%0A%09.filter('formatLocalTime', function ($filter) %7B%0A%09   return function (date) %7B%0A%09       if (date) %7B%0A%09    %09   moment.locale(window.navigator.userLanguage %7C%7C window.navigator.language);%0A%09           return moment(date).format(%22LLL%22);%0A%09       %7D%0A%09       else%0A%09           return %22%22;%0A%09   %7D;%0A%09%7D
 );%0A%09

add date format filter