Skip to content

False positive for sentry/no-dynamic-translations #210

@dashed

Description

@dashed

tct('[foo]' + 'bar', {foo: 'baz'}) generates a false positive:

error  tct() cannot be used to translate dynamic values. Use a parameterized string literal instead  sentry/no-dynamic-translations

Use cases to split strings like this is for big and long copies to make them readable over multiple lines.

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