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? #10

Open
tianyingchun opened this issue Feb 5, 2023 · 2 comments
Open

Does it support detect locale via domain name? #10

tianyingchun opened this issue Feb 5, 2023 · 2 comments

Comments

@tianyingchun
Copy link

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

@adrai
Copy link
Member

adrai commented Feb 5, 2023

I don't know if this is doable, but if so this needs to be done in the middleware.

@tianyingchun
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants