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

translate-context in the filter

Open dwiyatci opened this issue 9 years ago • 1 comments

Does the filter support context? If not, is there any way to work around this?

dwiyatci avatar Nov 24 '16 13:11 dwiyatci

Did you ever figured out how to do it? If not, you can provide the context to the translate filter by adding a parameter to the filter markup: <div>{{somedata | translate:"mycontext"}}</div>. This is not documented in angular-gettext but this is normal angular filter functionality.

visto9259 avatar Apr 10 '18 22:04 visto9259