commit
5d3384044b
|
@ -521,6 +521,12 @@ configure = ($routeProvider, $locationProvider, $httpProvider, $provide, $tgEven
|
|||
|
||||
$translateProvider.fallbackLanguage(preferedLangCode)
|
||||
|
||||
# decoratos
|
||||
decorators = _.where(@.taigaContribPlugins, {"type": "decorator"})
|
||||
|
||||
_.each decorators, (decorator) ->
|
||||
$provide.decorator decorator.provider, decorator.decorator
|
||||
|
||||
i18nInit = (lang, $translate) ->
|
||||
# i18n - moment.js
|
||||
moment.locale(lang)
|
||||
|
@ -619,6 +625,8 @@ init = ($log, $rootscope, $auth, $events, $analytics, $translate, $location, $na
|
|||
else
|
||||
navigationBarService.enableHeader()
|
||||
|
||||
pluginsWithModule = _.filter(@.taigaContribPlugins, (plugin) -> plugin.module)
|
||||
|
||||
modules = [
|
||||
# Main Global Modules
|
||||
"taigaBase",
|
||||
|
@ -664,7 +672,7 @@ modules = [
|
|||
"pascalprecht.translate",
|
||||
"infinite-scroll",
|
||||
"tgRepeat"
|
||||
].concat(_.map(@.taigaContribPlugins, (plugin) -> plugin.module))
|
||||
].concat(_.map(pluginsWithModule, (plugin) -> plugin.module))
|
||||
|
||||
# Main module definition
|
||||
module = angular.module("taiga", modules)
|
||||
|
|
Loading…
Reference in New Issue