Skip to content

reachlekha/vale-localization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vale rules for Localization

This repo contains Vale rules to check for correct Localization syntax in AsciiDoc files.

For Vale installation steps, see here: https://vale.sh/docs/vale-cli/installation/

NOTE: If you need Vale rules to lint grammar and accepted Red Hat terminology in Localization, see Vale at Red Hat.

Testing the Localization rule set

To test the Localization rule set, add a .vale.ini configuration file in your modules directory.

  1. Add a .vale.ini file to your repo root directory with the following content:
StylesPath = .vale/styles

MinAlertLevel = suggestion

Packages = https://github.com/reachlekha/vale-localization/releases/latest/download/Localization.zip

[[!.]*.adoc]
BasedOnStyles = RedHat, Localization
  1. Run vale sync

Verification

To verify, run vale ls-config in your modules directory to check that the Localization package is installed.

{
"BlockIgnores": {},
"Checks": null,
"Formats": {},
"Localization": {},
...
"SBaseStyles": {
  "[!.]*.adoc": [
    "Localization"
  ]
...
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages