When I run infuse, I get garbled i18n blocks in widgets.vue, something like this:
<i18n lang="yaml">
en-GB:
foo: bar
create:
foo: bar
list:
foo: bar
It seems to be taking the messages from the sub-components - create and list - and putting them into widgets.vue. Presumably it's getting confused between widgets.vue and the widgets directory.
Is there some additional option I need to use, or do I need to rename my files? I'm using nuxt, so the filenames represent paths; renaming them might be difficult.
I have a directory structure something like this:
When I run
infuse
, I get garbledi18n
blocks inwidgets.vue
, something like this:It seems to be taking the messages from the sub-components -
create
andlist
- and putting them intowidgets.vue
. Presumably it's getting confused betweenwidgets.vue
and thewidgets
directory.Here are the commands I'm using:
Is there some additional option I need to use, or do I need to rename my files? I'm using
nuxt
, so the filenames represent paths; renaming them might be difficult.