Closed fprl closed 9 months ago
Hi again,
One question, is it possible to make qwik-speak-extract to take arrays into account? for example consider this home.json file:
qwik-speak-extract
home.json
{ "home": { "faq": { "title": "Frequently Asked Questions", "faqs": [ {"question": "", "answer": ""}, {"question": "", "answer": ""}, ], } } }
// component const faqs = t<{ question: string; answer: string }[]>('home.faq.faqs')
Then I run "qwik-speak-extract": "qwik-speak-extract --supportedLangs=nl,en,de,fr,it --assetsPath=./src/i18n",
"qwik-speak-extract": "qwik-speak-extract --supportedLangs=nl,en,de,fr,it --assetsPath=./src/i18n",
The JSON gets overwritten and now home.faq.faqs is a string.
home.faq.faqs
Thank you
Thanks for reporting. That's a bug.
@fprl Should be fixed in https://github.com/robisim74/qwik-speak/releases/tag/v0.19.0
@robisim74 Thanks a lot, It's working now!
Hi again,
One question, is it possible to make
qwik-speak-extract
to take arrays into account? for example consider thishome.json
file:Then I run
"qwik-speak-extract": "qwik-speak-extract --supportedLangs=nl,en,de,fr,it --assetsPath=./src/i18n",
The JSON gets overwritten and now
home.faq.faqs
is a string.Thank you