We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df8bfbb commit 5feadceCopy full SHA for 5feadce
README.md
@@ -60,6 +60,22 @@ The `resolve` method can receive a `require` instead of a `Promise`:
60
})
61
````
62
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
79
### Usage
80
81
```html
0 commit comments