Skip to content

I18n issue - wrong translations appear for the first render (probably) #294

Open
@KuzMaxOriginal

Description

@KuzMaxOriginal

To reproduce, set the default locale (e.g. de). For example, in the playground (app/page.tsx) replace this line:

-    const [i18n, setI18n] = useState("en");
+    const [i18n, setI18n] = useState("de");

And the error will appear:

Error: Text content does not match server-rendered HTML.
See more info here: https://nextjs.org/docs/messages/react-hydration-error

Text content did not match. Server: "Mon" Client: "Mo."

It seems to me that the first render happens in English, then in the specified language.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions