Skip to content

Commit

Permalink
Updating the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Fa-BRAIK committed Jul 27, 2023
1 parent 6f99679 commit e3d8ca1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,12 @@ export default defineConfig({
});
```

##### Vite plugin options
#### Vite plugin options

In addition to that, you can use this `Vite` plugin with additional paths to load from, this is usefull when you are using a package that let's you override your translations, or in case you are getting your application's lang files from different paths.

Note that if one key found in two paths, priority will be given to the last given path between these two (In this example translation key will be loaded from `public/locales`)

```js
// vite.config.js
import i18n from 'laravel-vue-i18n/vite';
Expand All @@ -113,8 +115,6 @@ export default defineConfig({
});
```

Note that if one key found in two paths, priority will be given to the last given path between these two (In this example translation key will be loaded from `public/locales`)

> During the `npm run dev` execution time, the plugin will create some files like this `php_{lang}.json` on your lang folder.
> And to avoid that to be commited to your code base, I suggest to your `.gitignore` this like:
Expand Down

0 comments on commit e3d8ca1

Please sign in to comment.