I used angular-translate
for i18n. I want to use $translatePartialLoader
service to modular language key as lazy load. Also I want to use ui-router
resolve option for this.
Now How to do this? Is possible add a code sample for me?
Thanks
I used angular-translate
for i18n. I want to use $translatePartialLoader
service to modular language key as lazy load. Also I want to use ui-router
resolve option for this.
Now How to do this? Is possible add a code sample for me?
Thanks
I find solutions and solve my problem.
In config:
In
ui-router
for index:and in
run
:and in
RequireTranslations
factory:and please note you should add
$translatePartialLoader
andtrans
as parameter in allcontrollers
like this: