martinlindhe / laravel-vue-i18n-generator

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

Use multiple paths #53

Open GertTimmerman opened 6 years ago

GertTimmerman commented 6 years ago

I have a seperate Modules folders where i have a folder per module. Within each module folder i have the translations for that module.

With laravel i can get this translatation with:

@lang('module::validation.key')

Now i only can configure a string for the langPath config option, but i want to set multiple locations so i can use all the translation i have.

Is it possible to make the langPath have an array with multiple paths and get the translation with:

$t('module::validation.key')

rgwsk65 commented 6 years ago

I'm also using "modular" structure. Is there a way to get it working?