Skip to content

How to translate same keys differently in different contexts? #28

@joerg-walter-de

Description

@joerg-walter-de

Let's say, I have the two keys ok and not_ok that are used as state:

{ a: { state: 'ok' }, b: { state: 'ok } }

But it has to be translated in the a context into 'Yes' and in the b context into 'Fine'.

Is it possible to do that and if so how?

Somehow I would have to write this:

<p> {{__ "ok"}} </p>

But I would like to write something like:

<p> {{__ "ok" context='a'}} </p>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions