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.
To test the Localization
rule set, add a .vale.ini
configuration file in your modules directory.
- 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
- Run
vale sync
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"
]
...
}