Skip to content

Commit

Permalink
feat: add i18n docs in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lefuturiste committed Dec 2, 2018
1 parent ac9282c commit 24ba279
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ You can get errors in a different format, with the rules:
$validator->getErrors(true);
```

### I18n

English, french and spanish are supported

```php
ValidationLanguage::setLang('fr'); // or `en` or `es`
```

## Tests

All the tests are in the `tests` folder. You can run tests with this command (do a composer install before).
Expand Down

0 comments on commit 24ba279

Please sign in to comment.