Scan vuejs files for translations
AMAFsoft opened this issue · 4 comments
AMAFsoft commented
In my *.vue files I'm using the same translation function __('') ;
is there a way to add vue
files to the list of scannable files?
Example :
<template>
<div>{{__('Hello')}}</div>
</template>
AMAFsoft commented
This solution works great for me:
$files = glob_recursive("{$path}/*.{php,vue}", GLOB_BRACE);
But if you could add it officially to this package would be great.
thiagocordeiro commented
Yes, this is the solution, but I guess we shouldn’t scan vue files by default,
can you create a PR extending the configuration in src/Framework/config.php?
thiagocordeiro commented
Available on version v1.1.0