I would like to ask - is it normal that when using I18nProviderClient, I am required to use the 'use client' directive?
I tried to create a Provider-style component separately using "use client" so as not to be limited in the use of metadata in layout.tsx, but I ran into the fact that {children} cannot be used inside a separate component with I18nProviderClient .
But if you insert another component into it, for example , then everything works fine...
Is it possible to somehow avoid constantly creating the I18nProviderClient component as a wrapper?
I saw the documentation and that you suggest creating an app/client/ folder - but this is not the best solution while I end up in someone else's project where changing the folder and file structure can harm the project and other developers who originally worked with a different structure.
Hello, sorry for the trouble.
I would like to ask - is it normal that when using I18nProviderClient, I am required to use the 'use client' directive?
I tried to create a Provider-style component separately using "use client" so as not to be limited in the use of metadata in layout.tsx, but I ran into the fact that {children} cannot be used inside a separate component with I18nProviderClient .
But if you insert another component into it, for example , then everything works fine...
Is it possible to somehow avoid constantly creating the I18nProviderClient component as a wrapper?
I saw the documentation and that you suggest creating an app/client/ folder - but this is not the best solution while I end up in someone else's project where changing the folder and file structure can harm the project and other developers who originally worked with a different structure.