Replies: 1 comment 3 replies
-
The "How can I implement a form?" expandable section in the Passing translations to Client Components docs shows an approach that avoids "drilling" translated labels into nested components by composing React components instead—allowing you to assign translated labels right where they are needed. Depending on your app, maybe this could be an option too for you! If not, you can either pass a few processed labels or alternatively explore the options further down on that page. Hope this helps! |
Beta Was this translation helpful? Give feedback.
3 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm working with next.js 14 with app/
What is the best way to prop drill multiple translations to a client component ?
I've seen this thread : Allow getTranslations to return objects, not only single translation keys #194
But there is no "official" examples or guide in the doc for this.
I've seen something like :
Then I can prop drill the whole translated object to my client component ?
No other way to do it using functions from the lib ?
or I should recreate a full object to prop drill like so :
How does this affect performances / caching ?
Thanks in advance !
Beta Was this translation helpful? Give feedback.
All reactions