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

(x-ui) I18N Routing #14

Open
theodorDiaconu opened this issue Aug 19, 2021 · 0 comments · May be fixed by #288
Open

(x-ui) I18N Routing #14

theodorDiaconu opened this issue Aug 19, 2021 · 0 comments · May be fixed by #288
Assignees
Labels
enhancement New feature or request impact:low Is not important, it is an obscure situation and has reasonable work-around package:x-ui

Comments

@theodorDiaconu
Copy link
Contributor

Currently X-UI supports I18N through polyglot. You can change the language by setting the locale, however routes should be able to offer the option for the following:

  • router.go(ROUTE, { locale: "en" });

if route is "/path", it should also work with "/{locale}/path". The locale should automatically infered from URL. This might need a way to configure all available locales, and also allow locale by domain how NextJS does it.

@theodorDiaconu theodorDiaconu added enhancement New feature or request impact:low Is not important, it is an obscure situation and has reasonable work-around package:x-ui labels Aug 19, 2021
@theodorDiaconu theodorDiaconu changed the title (X-UI) I18N Routing (x-ui) I18N Routing Aug 21, 2021
@y-moufakkr y-moufakkr linked a pull request May 9, 2022 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request impact:low Is not important, it is an obscure situation and has reasonable work-around package:x-ui
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants