Closed tcitworld closed 2 years ago
Yes, this seems to be a gettext-extractor
issue that has to be fixed upstream. It's a bit weird that <template>{{ $gettext("TRANSLATETHIS2") }}</template>
works but <template><template>{{ $gettext("TRANSLATETHIS2") }}</template></template>
does not.
Same with composition API and setup, can't get anything to extract within it.
<script setup>
import { $gettext } from 'wherever'
$gettext('hello')
</script>
@fjeddy I finally found the time to look at that issue and managed to fix it. Release in 2.2.1.
This problem is separate from the <template>
issue, I may not be able to fix that one in the near future.
@tcitworld I managed to fix this, released in 2.2.2.
Versions:
The messages are not extracted in this configuration
But this one works
Possibly a limitation with Gettext Extractor itself, didn't check yet.