Skip to content

translate-context in the filter  #324

Open

Description

@dwiyatci

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

Activity

  1. visto9259 commented on Apr 10, 2018

    @visto9259

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions