Laravel-Backpack / LangFileManager

A quick interface to edit Laravel language files, for Backpack.
http://backpackforlaravel.com
MIT License
92 stars 42 forks source link

Fire event after file save #40

Closed dobromir-hristov closed 7 years ago

dobromir-hristov commented 7 years ago

I checked before I asked, but still.. Is there a way to run scripts after the lang files are saved? For example to generate a json file with the translation strings.

In our case, we use Vue and laravel-vue-i18n-generator to pass the translations to the frontend.

tabacitu commented 7 years ago

Hmm... There's no "hook" or anything, but you can extend the package and use your own controller instead of LanguageCrudController, then overwrite the updateTexts() method to do that too.

Hope it helps.

dobromir-hristov commented 7 years ago

Ye, already did that. Thanks.