Skip to content

Commit

Permalink
Merge pull request #24 from ridaamirini/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
kg-bot authored Dec 12, 2018
2 parents c3ee8f3 + 7610f0d commit 82316dc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ let messages = axios.get('http://localhost/js/lang.js') // This is default route
You can also export messages to ECMAScript 6 standard JavaScript module with artisan command
```` php artisan export:messages ````

## Export for npm localization packages like Lang.js
If you need special format of array that's recognised by some npm localization packages as [Lang.js](https://github.com/rmariuzzo/Lang.js).

```
// Call toFlat() instead of toArray()
ExportLocalization::export()->toFlat()
or
// For CLI usage
php artisan export:messages-flat
```

## Some examples why would you use this package and messages over Laravel standard localization

```
Expand Down

0 comments on commit 82316dc

Please sign in to comment.