javascript - AngularJS - translate the url of ui-router (StateProvider) -
i translated url path in application. translation working in every places in application. besides url of stateprovider. 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 working fine not in url. have tried:
'/'+'{{"path.about.main" | translate}}'
but doesnt work. has idea how make url translated?
thanks!!
Comments
Post a Comment