You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
that could be used on multiple pages and layouts, one must check for endless paragraphs if they exist in the locale and render them. So if "contact" page has 2 paragraphs, this is fine. But what if "imprint" had 3 or more?
In your case I'd suggest to use rich text formatting to get a flexible amount of tags that can be defined in the messages. By doing that you can also potentially use other tags in your content.
Thanks @amannn for your answer. I was out of that project for some days, sorry for the delay.
I tried your method with rich text, but it states t.rich is not a function. Currently using const t = useTranslations(namespace).
Is your feature request related to a problem? Please describe.
Given a component
Section
that is rendering 2 paragraphs:that could be used on multiple pages and layouts, one must check for endless paragraphs if they exist in the locale and render them. So if "contact" page has 2 paragraphs, this is fine. But what if "imprint" had 3 or more?
Describe the solution you'd like
and in the component:
Describe alternatives you've considered
The only alternative I see now is the one in the problem description.
Additional context
The code snippets above show all relevant parts.
The text was updated successfully, but these errors were encountered: