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:sync download 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

Command icon 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

deciphered created an issue. See original summary.

deciphered’s picture

Issue summary: View changes

deciphered’s picture

Status: Active » Needs review

  • deciphered committed 27157f79 on 1.1.x
    feat(#3642516): check each translation in its own language
    
deciphered’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • deciphered committed 27157f79 on chore/devcontainer
    feat(#3642516): check each translation in its own language
    

  • deciphered committed 27157f79 on feature/108-docs
    feat(#3642516): check each translation in its own language
    

  • deciphered committed 27157f79 on feature/113-hardening
    feat(#3642516): check each translation in its own language