Closed eikaramba closed 1 year ago
Hi.) Currently it works like:
// faqs.json
{
faqs: [
{
title:"can i do xxxxxx?",
text:"yes you can"
}
]
}
// page.svelte
$t('faqs.0.title');
yes that works, but the problem is that i am not able to get ALL Faq entries with that approach. basically i just want to retrieve all FAQ entries and filter them based on some query. doing $t('faqs') did not work for me. should it?
Ok, it’s currently not designed to work this way.. However it can be useful so I’m adding it.
wow thanks, yeah that would be great. just had another case were this would be super helpful
Any updates on this? I would really like to be able to do this
I would really love to see this happen! I need it in projects!
Tell me please, has not yet appeared a function for enumeration of arrays?
I have a list of FAQ entries as an array of objects like
I wasn't able to translate this, is this possible? it would be nice if i can just create a faq.json put the array there and use it via $t('faqs').