angular-gettext icon indicating copy to clipboard operation
angular-gettext copied to clipboard

Using context on filter prevents string from being extracted

Open mpiasta-ca opened this issue 9 years ago • 1 comments

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).

mpiasta-ca avatar Feb 03 '16 21:02 mpiasta-ca

IIRC, doing something like:

{{ someModel || 'My string' | translate }}

also breaks extraction.. there's a lot to improve there..

enapupe avatar Feb 04 '16 18:02 enapupe