Skip to content

Unable to use namespaces with getTranslate hook in server component #3451

@wirtzdan

Description

@wirtzdan

Describe the bug
I've set up my keys using namespaces. In client components, they work fine with useTranslate("Namespace"). But unfortunately, in server components doing something like useTranslate("HomePage") give me the following error:

Expected 0 arguments, got 1.

To Reproduce
Steps to reproduce the behavior:

  1. Duplicate the NextJS starter
  2. Try to use namespaces in useTranslate here

Expected behavior
That I can use the namespaces.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions