Problem/Motivation
Vale reads every value as English. On a multilingual site, a French translation gets English sentence splitting and English spelling, so correct French words are reported as spelling errors and can stop a save.
Vale 3.27.0 added a Lang key, so text can be read in its own language.
Proposed resolution
- With Vale 3.27.0 or later, check each value in the language of its translation. English, "Not specified" and "Not applicable" values are checked as they are now.
- Have
vale:syncdownload the language model for each of the site's languages. - List the site's languages on the status report, and name those with no model or no spelling dictionary.
- With an older Vale, keep checking every value in English, and say so on the status report.
Remaining tasks
- Review the merge request.
User interface changes
A "Vale languages" entry on the status report.
API changes
ValeRunnerInterface::lint() takes a fifth, optional argument, the language code of the text. A class that implements the interface must add it.
Data model changes
None.
Issue fork vale-3642516
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
decipheredComment #4
decipheredComment #6
deciphered