Skip to content
New issue

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

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

Already on GitHub? # to your account

Locale: need methods to get params #7

Open
g-rodigy opened this issue Aug 7, 2023 · 2 comments
Open

Locale: need methods to get params #7

g-rodigy opened this issue Aug 7, 2023 · 2 comments

Comments

@g-rodigy
Copy link

g-rodigy commented Aug 7, 2023

When configure locale middleware, nо possibility to get later params queryParameterName, supportedLocales and other. Also maybe need method to get current parsed locale.

For example to make language switcher, need get locales and queryParameterName to pass them in UrlGenerator.

Q A
Version 1.0.1
@vjik
Copy link
Member

vjik commented Aug 8, 2023

Hm. In this case middleware will be use as params provider. It's look strange.

@g-rodigy
Copy link
Author

g-rodigy commented Aug 8, 2023

Maybe. Somewhere still have to store these values.

@samdark samdark transferred this issue from yiisoft/yii-middleware Jan 18, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants