Closed swajp closed 2 months ago
Without a reproduction it's a bit hard to give a definitive answer, but my guess is that your defaultTranslationValues
are not available in Client Components (please refer to the corresponding docs).
This is definitely an area that needs some improvement in next-intl
as it's too easy to get this wrong. Due to the limits of React Server Components, I'm currently investigating whether defaultTranslationValues
should be deprecated (see full details and suggested alternatives in https://github.com/amannn/next-intl/issues/611).
yep your guess was right It couldnt get the defaultTranslationValues
on client component. React :clap:
Ok, good to hear!
Description
Hi I cant do this
// en.json
// my-component.tsx
// request.tsx
error i am getting
Verifications
Mandatory reproduction URL
.
Reproduction description
Steps to reproduce:
Expected behaviour
I expected for example: Parking lot size: 34 spaces