Skip to content

Commit 5feadce

Browse files
committed
docs: Add missing documentation
1 parent df8bfbb commit 5feadce

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,22 @@ The `resolve` method can receive a `require` instead of a `Promise`:
6060
})
6161
````
6262
63+
### Laravel Mix Plugin
64+
65+
In order to load `php` translations, you can use this `Mix` plugin.
66+
67+
```js
68+
const mix = require('laravel-mix');
69+
require('laravel-vue-i18n/mix');
70+
71+
// Laravel >= 9
72+
mix.i18n();
73+
74+
// Laravel < 9, since the lang folder is inside the resources folder
75+
// you will need to pass as parameter.
76+
mix.i18n('resouces/lang');
77+
```
78+
6379
### Usage
6480

6581
```html

0 commit comments

Comments
 (0)