From ad1d07f3e7692f7d9823c971533cd6d9ab20d01f Mon Sep 17 00:00:00 2001 From: jp Date: Sat, 17 Aug 2024 01:01:18 +0100 Subject: [PATCH] readme updates to mention multiple languages (#12) --- README.md | 3 +++ src/Config/profanities/en.php | 2 +- src/Config/profanities/it.php | 2 +- src/Config/tolerated.php | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e124f2a..a1a5df6 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,9 @@ at tests/Fixtures/HasProfanityInComment.php:10 Duration: 0.06s ``` +## Languages +Another benefit of Profanify is that it supports multiple languages, not just English. Each language has its own configuration file but every language is checked whenever a test that uses the package is run. + ## Contributing Contributions to the package are more than welcome as there's bound to be extra words that need adding. Feel free to submit a Pull Request with any additions. If you have any issues using the package, then please open an Issue. diff --git a/src/Config/profanities/en.php b/src/Config/profanities/en.php index 643bebd..9a6c940 100644 --- a/src/Config/profanities/en.php +++ b/src/Config/profanities/en.php @@ -2,7 +2,7 @@ declare(strict_types=1); -// SHOULD ALL WORDS BE lowercase! +// Please ensure all words in this file are lowercase return [ '69', diff --git a/src/Config/profanities/it.php b/src/Config/profanities/it.php index 1242a9d..f0065d3 100644 --- a/src/Config/profanities/it.php +++ b/src/Config/profanities/it.php @@ -2,7 +2,7 @@ declare(strict_types=1); -// SHOULD ALL WORDS BE lowercase! +// Please ensure all words in this file are lowercase return [ 'cazzo', diff --git a/src/Config/tolerated.php b/src/Config/tolerated.php index 8435a2f..d94305f 100644 --- a/src/Config/tolerated.php +++ b/src/Config/tolerated.php @@ -2,7 +2,7 @@ declare(strict_types=1); -// SHOULD ALL WORDS BE lowercase! +// Please ensure all words in this file are lowercase return [ 'class',