Skip to content

no-single-variables-to-translate false positive #104

Description

@Jack-Works

For code:

<Trans>
    <span style={{ color: ... }}>{websiteCount}</span>{' '}
    <Plural value={websiteCount} one="Website" other="Websites" />
</Trans>

It will report an error, but this is valid:

msgid "<0>{websiteCount}</0> {websiteCount, plural, one {Website} other {Websites}}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions