这是indexloc提供的服务,不要输入任何密码
Skip to content

Translation keys inside conditional expressions (&&, ||, ??) are not extracted #94

@pmpak

Description

@pmpak

When using the translate pipe inside conditional expressions (&&, ||, ??), ngx-translate-extract fails to detect and extract the translation keys.

For example, from the code below the keys are not extracted:

<div>{{ someProp() && 'translation.key' | translate }}</div>
<div>{{ someProp() || 'translation.key' | translate }}</div>
<div>{{ someProp() ?? 'translation.key' | translate }}</div>

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