Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a localization rule #676

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/
rolfedh marked this conversation as resolved.
Show resolved Hide resolved
message: "Avoid terms that are ambiguous and problematic in a localization context"
# source: https://github.com/redhat-documentation/vale-at-red-hat/issues/515
tokens:
- should