Skip to content

Commit 7a15e48

Browse files
authored
Merge pull request #106 from it-can/1.x
[1.x] Add dutch + update readme
2 parents bb4a888 + 982a0ed commit 7a15e48

File tree

2 files changed

+60
-11
lines changed

2 files changed

+60
-11
lines changed

README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,26 @@
1111
[![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)
1212

1313
***
14-
The `Laravel-Validate` package enhanced Laravel validation capabilities with custom rules and methods for simplified and efficient validation logic. <br>
14+
The `Laravel-Validate` package enhanced Laravel validation capabilities with custom rules and methods for simplified and efficient validation
15+
logic. <br>
1516
You can validate data more easily, `Laravel Validate` has lots of rule classes for validation. <br>
1617
This package supports localization and can be used for most of the languages. <br>
1718
(If some language didn't support, you can <a href="https://github.com/milwad-dev/laravel-validate/pulls">PR</a> for new language)
1819

1920
# Requirements
2021

2122
***
23+
2224
- ```PHP >= 8.0```
2325
- ```Laravel >= 9.0```
2426

25-
26-
| GitHub | L6 | L7 | L8 | L9 | L10 | L11 |
27-
|--------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|
28-
| 1.5 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: |
29-
| 1.6 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :x: |
30-
| 1.7 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :x: |
31-
| 1.8 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
27+
| GitHub | L6 | L7 | L8 | L9 | L10 | L11 | L12 |
28+
|--------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|--------------------|
29+
| 1.5 | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: | :x: | :x: |
30+
| 1.6 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :x: | :x: |
31+
| 1.7 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :x: | :x: |
32+
| 1.8 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
33+
| 1.9 | :x: | :x: | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
3234

3335
# Installation
3436

@@ -76,6 +78,7 @@ If `using_container` is set to true, you might have rules like this:
7678
```php
7779
'phone_number' => 'required|ValidPhone',
7880
```
81+
7982
And `ValidPhone` would be a class that is resolved via the service container to check the validity of the phone number.
8083

8184
# Usage
@@ -135,8 +138,8 @@ return [
135138
| 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) |
136139
| 40 | [ValidVatId](https://github.com/milwad-dev/laravel-validate/blob/1.x/docs/1.x/valid-vatid.md) | Validate european VAT ID ex (EL123456789123) |
137140

138-
139141
<a name="support-languages"></a>
142+
140143
# Support Languages
141144

142145
If a language is not supported, you can make <a href="https://github.com/milwad-dev/laravel-validate/issues/new/choose">issue</a> to add it. <br>
@@ -146,6 +149,7 @@ Also, you can make <a href="https://github.com/milwad-dev/laravel-validate/pulls
146149
- [x] Azerbaijani (az)
147150
- [x] Bangla (bn)
148151
- [x] Catalan (ca)
152+
- [x] Dutch (nl)
149153
- [x] German (de)
150154
- [x] Greek (el)
151155
- [x] English (en)
@@ -172,7 +176,8 @@ If you need to add a custom phone number validator for a specific country, follo
172176

173177
### 1. Create Your Custom Validator Class
174178

175-
First, you need to create a custom validator class that implements the `Milwad\LaravelValidate\Utils\CountryPhoneValidator` contract. This contract ensures that your custom validator adheres to the required structure and functionality.
179+
First, you need to create a custom validator class that implements the `Milwad\LaravelValidate\Utils\CountryPhoneValidator` contract. This contract
180+
ensures that your custom validator adheres to the required structure and functionality.
176181

177182
```php
178183
namespace App\Validators;
@@ -220,7 +225,8 @@ return [
220225

221226
# License
222227

223-
* This package is created and modified by <a href="https://github.com/milwad-dev" target="_blank">Milwad Khosravi</a> for Laravel over more than 9 and has been released under the MIT License.
228+
* This package is created and modified by <a href="https://github.com/milwad-dev" target="_blank">Milwad Khosravi</a> for Laravel over more than 9 and
229+
has been released under the MIT License.
224230

225231
# Contributing
226232

src/lang/nl/validate.php

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
3+
return [
4+
'base64' => 'De :attribute is niet geldig.',
5+
'bitcoin-address' => 'De :attribute is niet geldig.',
6+
'camel-case' => 'De :attribute is niet geldig.',
7+
'capital-char-with-number' => 'De :attribute is niet geldig.',
8+
'car-number' => 'De :attribute is niet geldig.',
9+
'cart-number-iran' => 'De :attribute is niet geldig.',
10+
'country' => 'De :attribute is niet geldig.',
11+
'credit-card' => 'De :attribute is niet geldig.',
12+
'discord-username' => 'De :attribute is niet geldig.',
13+
'domain' => 'De :attribute is niet geldig.',
14+
'duplicate' => 'De :attribute is niet geldig.',
15+
'duplicate_character' => 'De :attribute is niet geldig.',
16+
'even-number' => 'De :attribute is niet geldig.',
17+
'hashtag' => 'De :attribute is niet geldig.',
18+
'hex-color' => 'De :attribute is niet geldig.',
19+
'html-tag' => 'De :attribute is niet geldig.',
20+
'iban' => 'De :attribute is niet geldig.',
21+
'imei' => 'De :attribute is niet geldig.',
22+
'ipv4' => 'De :attribute is niet geldig.',
23+
'ipv6' => 'De :attribute is niet geldig.',
24+
'jalali_date' => 'De :attribute is niet geldig.',
25+
'jwt' => 'De :attribute is niet geldig.',
26+
'kebab-case' => 'De :attribute is niet geldig.',
27+
'name-days-week' => 'De :attribute is niet geldig.',
28+
'national-card' => 'De :attribute is niet geldig.',
29+
'odd-number' => 'De :attribute is niet geldig.',
30+
'pascal-case' => 'De :attribute is niet geldig.',
31+
'pattern' => 'De :attribute is niet geldig.',
32+
'phone-number' => 'De :attribute is niet geldig.',
33+
'port' => 'De :attribute is niet geldig.',
34+
'postal-code' => 'De :attribute is niet geldig.',
35+
'slash-end-of-string' => 'De :attribute is niet geldig.',
36+
'slug' => 'De :attribute is niet geldig.',
37+
'snake-case' => 'De :attribute is niet geldig.',
38+
'strong-password' => 'De :attribute is niet geldig.',
39+
'ulid' => 'De :attribute is niet geldig.',
40+
'url' => 'De :attribute is niet geldig.',
41+
'username' => 'De :attribute is niet geldig.',
42+
'uuid' => 'De :attribute is niet geldig.',
43+
];

0 commit comments

Comments
 (0)