I have an attribute, `<a content="{{expand ? 'a.' : 'b.'}}">` I want add a 'translate', then get a pot file contains "a" and "b". How can I do it?
Activity
rubenv commentedon Jul 31, 2017
Not ideal, but there's an approach that works:
Put them on the scope and translate from directly.
The
gettext()wrapper is key to annotate the strings for translation.And somewhere (we put it on the root scope):
This then becomes:
More info: https://angular-gettext.rocketeer.be/dev-guide/annotate-js/
alfaproject commentedon Jul 31, 2017
If you do the scope annotation then you can use the filter on the view btw