Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it support detect locale via domain name for Next 13 app #45600

Open
1 task done
tianyingchun opened this issue Feb 6, 2023 · 2 comments
Open
1 task done

Does it support detect locale via domain name for Next 13 app #45600

tianyingchun opened this issue Feb 6, 2023 · 2 comments
Labels
bug Issue was opened via the bug report template.

Comments

@tianyingchun
Copy link

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103
Binaries:
  Node: 18.12.1
  npm: 8.19.2
  Yarn: 3.2.4
  pnpm: N/A
Relevant packages:
  next: 13.1.6
  eslint-config-next: 13.1.6
  react: 18.2.0
  react-dom: 18.2.0

Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true)

Link to the code that reproduces this issue

https://github.com/vercel/next.js/tree/canary/examples/app-dir-i18n-routing

To Reproduce

Question clarity

Describe the Bug

Does it support detect locale via domain name?

[lang] it seems only support subdirectory /en_US/product, /de/product

how to detect https://us.xxx.com/product, https://de.xxx.com

it seems that there is no way to pass locale down to all components e.g RootLayour, it only accept params, searchParam for now?
for params it need app/[lang]/* fragment .:) do you have any idea?

i18next/next-app-dir-i18next-example#10

Expected Behavior

can detect locale via domain name and passed into all Next React component

Which browser are you using? (if relevant)

lastest version

How are you deploying your application? (if relevant)

next start

@tianyingchun tianyingchun added the bug Issue was opened via the bug report template. label Feb 6, 2023
@vygandas
Copy link

+1.
Looking for same proper way.

@trivrainod
Copy link

trivrainod commented Nov 27, 2023

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

3 participants