Closed thanosalexandris closed 1 week ago
Hey there. Could it be easy to add an extra option in src/interfaces/plugin-options.ts like this
src/interfaces/plugin-options.ts
excludeFrameworkTranslations: boolean,
and then in src/vite.ts to change it into
src/vite.ts
const excludeFrameworkTranslations = typeof options === 'string' ? options === 'lang' : options.excludeFrameworkTranslations ?? true const frameworkLangPath = excludeFrameworkTranslations ? '' : 'vendor/laravel/framework/src/Illuminate/Translation/lang/'.replace('/', path.sep)
This way we'll be able to optionally skip framework translations, and having this php_en.json generated.
php_en.json
Go ahead and make a PR for that, I will check.
Thanks for the suggestion.
Hey there. Could it be easy to add an extra option in
src/interfaces/plugin-options.ts
like thisand then in
src/vite.ts
to change it intoThis way we'll be able to optionally skip framework translations, and having this
php_en.json
generated.