Skip to content

Commit

Permalink
Merge pull request #41 from MartinP7r/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
kg-bot authored Aug 28, 2019
2 parents 73994b7 + 5579db5 commit ac2f2cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ let messages = axios.get('http://localhost/js/lang.js') // This is default route
</script>
```

For this to work, you need to enable the route via `LARAVEL_LOCALIZATION_ROUTE_ENABLE` in your `.env` file or in `config/laravel-localization.php`

You can also export messages to ECMAScript 6 standard JavaScript module with artisan command
```` php artisan export:messages ````

Expand Down

0 comments on commit ac2f2cf

Please sign in to comment.