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

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -