I would like to get translated url path in my application. Translation is working in every places in my application. Besides url of StateProvider. This is my code:
.state('about', {
url: '/'+'{{"PATH.ABOUT.MAIN" | translate}}',
templateUrl: 'views/about.html',
controller: 'aboutController',
activetab: 'about',
ncyBreadcrumb: {
label: '{{"PATH.ABOUT.MAIN" | translate}}',
parent: 'home'
}
})
Translation in ncyBreadcrumb is working fine but not in URL. I have also tried:
'/'+'{{"PATH.ABOUT.MAIN" | translate}}'
but this also doesnt work. Someone has any idea how to make my URL get translated?
Thanks!!