setRequestLocale Clarification #1629
Closed
jd-carroll
started this conversation in
General
Replies: 2 comments
-
Unfortunately it currently really requires being added to every entry point that receives The good news is that we're very close to a better solution that will make all of this obsolete and support static rendering without any workarounds like I hope to have more to share on this soon! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Awesome, thank you! Kind of what I figured
…On Thu, Dec 19, 2024 at 11:16 PM Jan Amann ***@***.***> wrote:
Unfortunately it currently really requires being added to every entry
point that receives params, not just a wrapping layout.
The good news is that we're very close to a better solution that will make
all of this obsolete and support static rendering without any workarounds
like setRequestLocale: #663 (comment)
<#663 (comment)>
I hope to have more to share on this soon!
—
Reply to this email directly, view it on GitHub
<#1629 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOMNKHDWNUWJ2MLZKK6CWT2GO75NAVCNFSM6AAAAABT6MNDJGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRSGUZTSOA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
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
-
The documentation states that we should add
setRequestLocale
to "all relevant layouts and pages".How are all "relevant" layouts and pages defined?
If my app dir structure follows the
/[local]/*
format, does this mean thatsetRequestLocale
needs to be added to everylayout.tsx
ANDpage.tsx
ANDloading.tsx
ANDnot-found.tsx
ANDerror.tsx
ANDtemplate.tsx
ANDdefault.tsx
under the/[locale]
folder? (shouldroute.tsx
also be included in this list?)- OR -
Is it possible to add
setRequestLocale
to the/[locale]/layout.tsx
only and not need to add it anywhere else?(I'm guessing not, but wanted to check)
Beta Was this translation helpful? Give feedback.
All reactions