Skip to content

Locale not set on dynamic pages #1238

@pnogier

Description

@pnogier

What version of this package are you using?

next-translate: 2.6.2

What operating system, Node.js, and npm version?

node: 23.7.0
pnpm: 9.7.0
next: 14.2.5

What happened?

Hi there,

We use next-translate to handle translations in our app, when browsing static pages the locale in properly detected and added to the url based on the browser language, but when using dynamic pages with pages router for instance [customSegment]/sign-in, the browser locale isn't detected.
Has anyone encountered this issue and found any workaround for this ?

What did you expect to happen?

The browser locale should be detected and applied to the dynamic routes

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