You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 16, 2020. It is now read-only.
@@ -169,12 +169,23 @@ You can still require/import it in your build system as stated above.
169
169
170
170
One advantage of doing things like this is you are not obligated to do a build of your javascript each time a the translation files get changed/saved. A good example is if you have a backend that can read and write to your translation files (like Backpack). You can listen to a save event there and call vue-i18n-generator.
171
171
172
+
## Generating Multiple Files
173
+
174
+
Sometimes you may want to generate multiple files as you want to make use of lazy loading. As such, you can specify that the generator produces multiple files within the destination directory.
175
+
176
+
There are two options:
177
+
1. One file per laravel module language file using switch ```--multi```
178
+
2. One file per locale using switch ```--multi-locales```
179
+
180
+
```
181
+
php artisan vue-i18n:generate --multi{-locales}
182
+
```
172
183
173
184
## Parameters
174
185
175
186
The generator adjusts the strings in order to work with vue-i18n's named formatting,
176
187
so you can reuse your Laravel translations with parameters.
0 commit comments