Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translate-context in the filter #324

Open
dwiyatci opened this issue Nov 24, 2016 · 1 comment
Open

translate-context in the filter #324

dwiyatci opened this issue Nov 24, 2016 · 1 comment

Comments

@dwiyatci
Copy link

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

@visto9259
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants