Skip to content

Get multiple strings with same parameter name #123

Open
@OasisLiveForever

Description

@OasisLiveForever

Hi,

translate.instant allows to pass an array of keys to get multiple strings at the same time. If the strings have the same parameter name, there is no way no pass a different value for each string.

This is a sample json:
{
"string1": "test {{name}}",
"string2": "test2 {{name}}"
}

let strings = translate.instant(['string1', 'string2'], { name: 'sample' });

Is there a way to pass a different value for name parameter to string1 and string2?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions