angular-gettext
angular-gettext copied to clipboard
Using context on filter prevents string from being extracted
This works fine for extraction:
{{ 'My string' | translate }}
But if you use this method, the string won't be extracted (when generating your *.pot file):
{{ 'My string' | translate : 'Context' }}
Even though if you extract My string from another source (ie. translate directive), this filter will translate correctly (specific to the context too).
IIRC, doing something like:
{{ someModel || 'My string' | translate }}
also breaks extraction.. there's a lot to improve there..