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

Provide a widget that injects a function to enable consumers to change locale #257

Closed
agubler opened this issue Feb 15, 2019 · 0 comments
Closed
Labels
enhancement New feature or request next Issue/Pull Request for the next major version

Comments

@agubler
Copy link
Member

agubler commented Feb 15, 2019

Enhancement

Currently it takes a significant amount of boilerplate to inject a function that can be used to change the locale into the widget tree.

It would be helpful if Dojo could provide a customised widget that injects a function that can be to switch locale into an application widget tree.

The widget should be virtual and have no visual output, but provide an API to for the user to render widgets and nodes with access to the update locale function. This would remove the need for a user to register a new injector or create a custom container to get access to the update locale function.

Related to #256

@agubler agubler added enhancement New feature or request next Issue/Pull Request for the next major version labels Feb 15, 2019
@agubler agubler closed this as completed May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request next Issue/Pull Request for the next major version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant