martinlindhe / laravel-vue-i18n-generator

Generates a vue-i18n compatible include file from your Laravel translations
MIT License
306 stars 207 forks source link

question about working with barryvdh/laravel-translation-manager #91

Closed zhengfen closed 5 years ago

zhengfen commented 5 years ago

Hi, All,

as for translation, I use barryvdh/laravel-translation-manager for admin users to manage translations.

then martinlindhe/laravel-vue-i18n-generator to share Laravel localizations with vue front-end

when user update translations, js will not be updated automatically

I added in controller \Artisan::call('vue-i18n:generate');

then how can I ask the app to run 'npm run production' from controller?

any ideas? Thank you in advance.

I found answer from doc of martinlindhe/laravel-vue-i18n-generator:

php artisan vue-i18n:generate --format umd

can I delete this question.....