In html, {{ 'ShowFullMonth' | translate }}
works fine to display some localised text 'Show Full Month'. However, when studying the this similar question and the Angular Docs I cannot see how to adapt this for javascript.
$filter('translate')(['ShowFullMonth'])
gives me [object Object]
.
Any help would be great.
Try:
Like in your view - you have to pass it a string ;)