Skip to content

Commit

Permalink
add in more in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsWiegers committed Mar 11, 2022
1 parent 35ab5f5 commit 8265713
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,36 @@ composer require larswiegers/laravel-translations-checker
```php
php artisan translations:check
```

### Different directory
Are your translations in a weird directory? use the --directory option like this:

```php
php artisan translations:check --directory=resources/lang
```
### Exclude directories
Some packages have their own language files, it is probably smart to exclude them.
```php
php artisan translations:check --excludedDirectories=lang/vendor
```

### Running in github actions?
```
translations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: php-cs-fixer, phpunit
- name: Install Dependencies
run: composer install -q --no-interaction --no-scripts
- name: Run translations check
run: php artisan translations:check --excludedDirectories=vendor
```

### What does the output look like?
```
Expand Down

0 comments on commit 8265713

Please sign in to comment.