Skip to content

Commit

Permalink
chore: update laravel framework 10 dependency, update config to lang …
Browse files Browse the repository at this point in the history
…directory, update readme
  • Loading branch information
happones committed Feb 22, 2023
1 parent 36d8b67 commit ddfcf16
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ with your [vue](http://vuejs.org/) front-end, using [vue-i18n](https://github.co
In your project:
```composer require happones/laravel-vue-i18n-generator --dev```

>By default, the Laravel application skeleton does not include the lang directory. If you would like to customize Laravel's language files, you may publish them via the lang:publish Artisan command. [Read more.](https://laravel.com/docs/10.x/localization)
### For Laravel 9.x and above:

In your project:
Expand Down
6 changes: 3 additions & 3 deletions src/config/vue-i18n-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
|
*/

'langPath' => '/resources/lang',
'langPath' => '/lang',

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -55,8 +55,8 @@
| Note: the path will be prepended to point to the App directory.
|
*/
'jsPath' => '/resources/js/langs/',
'jsFile' => '/resources/js/vue-i18n-locales.generated.js',
'jsPath' => '/resources/js/locales/',
'jsFile' => '/resources/js/vue-i18n-locales.js',

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit ddfcf16

Please sign in to comment.