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

Creating a new localization rule set for vale #788

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Next Next commit
First commit for localization
  • Loading branch information
Chandralekha-RedHat committed Jul 30, 2024
commit dff40b80d56eb3a2eae61a154f44f3fca4417e28
5 changes: 5 additions & 0 deletions .vale/fixtures/Localization/CommonlyMisusedWords/.vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
; Vale configuration file to test the `CommonlyMisusedWords` rule
StylesPath = ../../../styles
MinAlertLevel = warning
[*.adoc]
Localization.TermsWarnings = YES
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
allow
acronym

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
might
enable
abbreviation
can
cannot

5 changes: 5 additions & 0 deletions .vale/fixtures/Localization/Modals/.vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
; Vale configuration file to test the `Modals` rule
StylesPath = ../../../styles
MinAlertLevel = warning
[*.adoc]
Localization.TermsWarnings = YES
13 changes: 13 additions & 0 deletions .vale/fixtures/Localization/Modals/testinvalid.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
should
could
would
will
supposed to
ought to be
as
at once
once
while
since
allow
reachlekha marked this conversation as resolved.
Show resolved Hide resolved
may
5 changes: 5 additions & 0 deletions .vale/fixtures/Localization/Modals/testvalid.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
might
enable
reachlekha marked this conversation as resolved.
Show resolved Hide resolved
can
cannot

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
; Vale configuration file to test the `WordswithMultipleMeanings` rule
StylesPath = ../../../styles
MinAlertLevel = warning
[*.adoc]
Localization.TermsWarnings = YES
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Localization.TermsWarnings = YES
Localization.WordswithMultipleMeanings = YES

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
as
at once
once
while
since
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
after
reachlekha marked this conversation as resolved.
Show resolved Hide resolved
one time
because
during
at the same time


10 changes: 10 additions & 0 deletions .vale/styles/Localization/CommonlyMisusedWords.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
extends: existence
ignorecase: true
level: warning
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/termswarnings/
message: "Avoid terms that are ambiguous and problematic in a localization context"
reachlekha marked this conversation as resolved.
Show resolved Hide resolved
# source: https://github.com/redhat-documentation/vale-at-red-hat/issues/515
tokens:
- allow
- acronym
15 changes: 15 additions & 0 deletions .vale/styles/Localization/Modals.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
extends: existence
ignorecase: true
level: warning
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/termswarnings/
message: "Avoid terms that are ambiguous and problematic in a localization context"
reachlekha marked this conversation as resolved.
Show resolved Hide resolved
# source: https://github.com/redhat-documentation/vale-at-red-hat/issues/515
tokens:
- should
- could
- would
- will
- supposed to be
- ought to be

14 changes: 14 additions & 0 deletions .vale/styles/Localization/WordswithMultipleMeanings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
extends: existence
ignorecase: true
level: warning
link: https://redhat-documentation.github.io/vale-at-red-hat/docs/main/reference-guide/termswarnings/
message: "Avoid terms that are ambiguous and problematic in a localization context"
reachlekha marked this conversation as resolved.
Show resolved Hide resolved
# source: https://github.com/redhat-documentation/vale-at-red-hat/issues/515
tokens:
- as
- at once
- once
- while
- since