Replies: 1 comment
-
Hey @evenfrost, looking at i18next's docs, you can get the array by adding the ---
const testimonials = t('testimonials', { returnObjects: true });
// here comes the 'testimonials' array
--- |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For example, if I want to implement a testimonials slider, I could store the following data in my
public/locales/LANG/translation.json
files:And then use it in
Testimonial
.astro component as follows:Not sure if it's technically possible with the current implementation though.
Beta Was this translation helpful? Give feedback.
All reactions