From a400dcfd060b37be9261379546883ba8869167b5 Mon Sep 17 00:00:00 2001 From: "M. Vugteveen" Date: Fri, 4 Apr 2025 11:46:48 +0200 Subject: [PATCH 1/3] Add dutch + update readme --- README.md | 27 +++++++++++++++---------- src/lang/nl/validate.php | 43 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 11 deletions(-) create mode 100644 src/lang/nl/validate.php diff --git a/README.md b/README.md index beefb3c..7eb4fc5 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,8 @@ [![Check Imports](https://github.com/milwad-dev/laravel-validate/actions/workflows/imports.yml/badge.svg?branch=1.x)](https://github.com/milwad-dev/laravel-validate/actions/workflows/imports.yml) *** -The `Laravel-Validate` package enhanced Laravel validation capabilities with custom rules and methods for simplified and efficient validation logic.
+The `Laravel-Validate` package enhanced Laravel validation capabilities with custom rules and methods for simplified and efficient validation +logic.
You can validate data more easily, `Laravel Validate` has lots of rule classes for validation.
This package supports localization and can be used for most of the languages.
(If some language didn't support, you can PR for new language) @@ -19,16 +20,16 @@ This package supports localization and can be used for most of the languages. = 8.0``` - ```Laravel >= 9.0``` - -| GitHub | L6 | L7 | L8 | L9 | L10 | L11 | -|--------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------| -| 1.5 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: | -| 1.6 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :x: | -| 1.7 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :x: | -| 1.8 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | +| GitHub | L6 | L7 | L8 | L9 | L10 | L11 | L12 | +|--------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------| +| 1.5 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: | +| 1.6 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :x: | :x: | +| 1.7 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :x: | :x: | +| 1.8 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | # Installation @@ -76,6 +77,7 @@ If `using_container` is set to true, you might have rules like this: ```php 'phone_number' => 'required|ValidPhone', ``` + And `ValidPhone` would be a class that is resolved via the service container to check the validity of the phone number. # Usage @@ -135,8 +137,8 @@ return [ | 39 | [ValidUuid](https://github.com/milwad-dev/laravel-validate/blob/1.x/docs/1.x/valid-uuid.md) | Validate uuid for ex (123e4567-e89b-12d3-a456-426655440000) | | 40 | [ValidVatId](https://github.com/milwad-dev/laravel-validate/blob/1.x/docs/1.x/valid-vatid.md) | Validate european VAT ID ex (EL123456789123) | - + # Support Languages If a language is not supported, you can make issue to add it.
@@ -146,6 +148,7 @@ Also, you can make Milwad Khosravi for Laravel over more than 9 and has been released under the MIT License. +* This package is created and modified by Milwad Khosravi for Laravel over more than 9 and + has been released under the MIT License. # Contributing diff --git a/src/lang/nl/validate.php b/src/lang/nl/validate.php new file mode 100644 index 0000000..85bdd8a --- /dev/null +++ b/src/lang/nl/validate.php @@ -0,0 +1,43 @@ + 'De :attribute is niet geldig.', + 'bitcoin-address' => 'De :attribute is niet geldig.', + 'camel-case' => 'De :attribute is niet geldig.', + 'capital-char-with-number' => 'De :attribute is niet geldig.', + 'car-number' => 'De :attribute is niet geldig.', + 'cart-number-iran' => 'De :attribute is niet geldig.', + 'country' => 'De :attribute is niet geldig.', + 'credit-card' => 'De :attribute is niet geldig.', + 'discord-username' => 'De :attribute is niet geldig.', + 'domain' => 'De :attribute is niet geldig.', + 'duplicate' => 'De :attribute is niet geldig.', + 'duplicate_character' => 'De :attribute is niet geldig.', + 'even-number' => 'De :attribute is niet geldig.', + 'hashtag' => 'De :attribute is niet geldig.', + 'hex-color' => 'De :attribute is niet geldig.', + 'html-tag' => 'De :attribute is niet geldig.', + 'iban' => 'De :attribute is niet geldig.', + 'imei' => 'De :attribute is niet geldig.', + 'ipv4' => 'De :attribute is niet geldig.', + 'ipv6' => 'De :attribute is niet geldig.', + 'jalali_date' => 'De :attribute is niet geldig.', + 'jwt' => 'De :attribute is niet geldig.', + 'kebab-case' => 'De :attribute is niet geldig.', + 'name-days-week' => 'De :attribute is niet geldig.', + 'national-card' => 'De :attribute is niet geldig.', + 'odd-number' => 'De :attribute is niet geldig.', + 'pascal-case' => 'De :attribute is niet geldig.', + 'pattern' => 'De :attribute is niet geldig.', + 'phone-number' => 'De :attribute is niet geldig.', + 'port' => 'De :attribute is niet geldig.', + 'postal-code' => 'De :attribute is niet geldig.', + 'slash-end-of-string' => 'De :attribute is niet geldig.', + 'slug' => 'De :attribute is niet geldig.', + 'snake-case' => 'De :attribute is niet geldig.', + 'strong-password' => 'De :attribute is niet geldig.', + 'ulid' => 'De :attribute is niet geldig.', + 'url' => 'De :attribute is niet geldig.', + 'username' => 'De :attribute is niet geldig.', + 'uuid' => 'De :attribute is niet geldig.', +]; From 9a7c77503e17ec74f43a23199818f437e7634e1c Mon Sep 17 00:00:00 2001 From: "M. Vugteveen" Date: Fri, 4 Apr 2025 11:48:59 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7eb4fc5..50899aa 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,8 @@ This package supports localization and can be used for most of the languages. Date: Fri, 4 Apr 2025 11:49:50 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 50899aa..bf60fb8 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ This package supports localization and can be used for most of the languages.