SDEK
1
Hey there,
Im using ngSpecialOffer right now and it’s working fine.
But how can I use translate it?
I’m using AngluarTranslate to handle all my translations via .json files.
I just don’t know how to use it inside the $specialOffer.init
like
$specialOffer.init({
text: 'translation'
});
SDEK
2
Okay I did it with
$rootScope.loadedTranslations = [];
$rootScope.LoadValues = function(){
$translate(['AppRate_title']).then(function(translations){
$rootScope.loadedTranslations = translations;
})
}
$rootScope.LoadValues();
and then
$specialOffer.init({
text: ''+$rootScope.loadedTranslations.AppRate_title+''
});
somehow this didn’t worked before… dunno what I did wrong but It is working know.