My current challenge involves using angular-translate
for localization. Everything is working smoothly except for translating data within state parameters.
As an example, consider a state configuration like this:
.state('about', {
url: "/about",
isAbstract: true,
template: '<ui-view/>',
data: {
title: 'About'
}
})
The issue arises with translating the title, which should be represented by a translation key. I attempted using
title: $filter('translate')('ABOUT')
, but it didn't produce the desired outcome.
Do you have any suggestions on how to tackle this problem?