Skip to content

Commit

Permalink
Create a localization rule
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfedh committed Oct 20, 2023
1 parent 88553c5 commit 00890bb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vale/fixtures/RedHat/Localization/.vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
; Vale configuration file to test the `Localization` rule
StylesPath = ../../../styles
MinAlertLevel = warning
[*.adoc]
RedHat.Localization = YES
1 change: 1 addition & 0 deletions .vale/fixtures/RedHat/Localization/testinvalid.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
should
Empty file.
9 changes: 9 additions & 0 deletions .vale/styles/RedHat/Localization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
extends: existence
ignorecase: true
level: warning
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/TBD/
message: "Avoid terms that are problematic for localization"
# source: https://github.com/redhat-documentation/vale-at-red-hat/issues/515
tokens:
- should

0 comments on commit 00890bb

Please sign in to comment.