Skip to content

Run Vale on frontend copy #3731

Open
Open

Description

Problem

It'd be nice to be able to run Vale against the frontend copy to check for things like sentence complexity, consistent capitalisation, etc.

Description

Vale doesn't support this directly, so I think to do it we'd need to work around Vale by automatically generating a .txt or .md file using all the strings from en.json5, and then run Vale against it, with explicit feedback for users about how to fix any issues. That makes it hard, if not impossible, to add Vale pragmas (to ignore certain lines, for example), though, so it might not be possible. We might be able to implement that through some convention when creating the file, using specific types of comments. We'd need to make sure those comments are excluded from the generated POT file, however.

Alternatives

There might be other tools better suited for this than Vale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    • Status

      📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions