Jan Amann
Jan Amann
Regarding PPR: On a second thought, maybe this is not an issue at all, since PPR is about pre-rendering as much as possible statically with inner parts remaining dynamic. Dynamic...
Yep, definitely a good idea to discuss which options we have! I think a tricky part about the story with params is that they can be different per layout/page. A...
Certainly an interesting idea! I don't have experience with writing SWC plugins, but if there's a community effort to build this as a separate package I'd be happy to follow...
Here's an SWC plugin that could be used for inspiration: [`css-variable/swc`](https://github.com/jantimon/css-variable/tree/main/swc) ([usage in Next.js](https://github.com/jantimon/next-swc-plugin-demo/blob/9489ab5902c5a1032ddde0e178f2daac24b22e5b/next.config.js#L4-L7))
This might be related to https://github.com/amannn/next-intl/issues/255. Parallel and intercepted routes unfortunately were quite buggy for a longer period in Next.js, not sure how stable they are now. Are you able...
Right, I see! > But interesting thing is, why does NEXT_LOCALE cookie value change properly That's likely related to https://github.com/amannn/next-intl/pull/790.
That change was already deployed in [3.4.5](https://github.com/amannn/next-intl/blob/main/CHANGELOG.md#345-2024-01-19). What I tried to say is that I think this is the explanation for why the cookie value is changed as expected, even...
You mean when `translationValues` contains functions, right? Can you share more about the practical use case?
> I should be able to pass translation values as props between any component if I wish. React defines the rules for [which props are serializable](https://react.dev/reference/react/use-client#serializable-types). `next-intl` provides an API...
> This was possible before, because react-intl allowed me to replace a variable, such as `{something}` (https://github.com/nodejs/nodejs.org/blob/c72dc046dffda7d8b056623602c80bac3dd6a8f4/i18n/locales/en.json#L19) with something else (https://github.com/nodejs/nodejs.org/blob/c72dc046dffda7d8b056623602c80bac3dd6a8f4/layouts/DocsLayout.tsx#L21) That's an interesting one, because you didn't need chunks...