-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can Arrays be translated? #92
Comments
Hi.) // 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').
The text was updated successfully, but these errors were encountered: