Skip to content

Add linting rules to prevent the usage of the verb 'toggle' in all translatable strings #66372

@afercia

Description

@afercia

Description

See
https://core.trac.wordpress.org/ticket/34753
#42492
#66369
#66371

It would be nice to add ESLint and PHP linting rules to prevent future usages of the verb 'toggle' inside translatable strings.

Step-by-step reproduction instructions

N/A

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugAn existing feature does not function as intended[Type] Code QualityIssues or PRs that relate to code qualityl10nLocalization and translations best practices

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions