Vale CMS Need more than a rule playground? Explore
Home

Product & UX

Vale for product and UX writing

Buttons, error messages, and the strings in your locale files.

The words in an interface are written once and read on every screen: a button label, an error message, an empty state. They live in locale files no docs linter opens. The Microcopy package reads them there, through a View that tells a label from a message by its key, and checks the conventions design systems share: sentence-case labels, a specific verb on every button, errors that say what to do next, and no “please” or “click here”. GlobalEnglish keeps the same strings ready for translation.

Start with this config

Microcopy reads the locale file through its I18n View, so the label rules reach button and title keys and the rest reach every message. The docs get Microcopy’s message rules and GlobalEnglish beside them.

.vale.ini

StylesPath = styles
MinAlertLevel = suggestion
Packages = Microcopy, GlobalEnglish

[locales/*.{json,yml}]
BasedOnStyles = Vale, Microcopy
View = I18n

[docs/*.md]
BasedOnStyles = Vale, Microcopy, GlobalEnglish

Then download the packages it names and run Vale over the project:

$ vale sync
$ vale .

Formats

Where this kind of writing lives. Vale parses each one, so rules see the prose and skip the markup, the code, and the URLs.

Read more

On the blog

In the docs