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

Scoped VIntl instances #33

Open
brawaru opened this issue May 2, 2023 · 0 comments
Open

Scoped VIntl instances #33

brawaru opened this issue May 2, 2023 · 0 comments
Labels
scope/vintl Things related to VIntl as it is type/request Issue is a request for enhancements
Milestone

Comments

@brawaru
Copy link
Member

brawaru commented May 2, 2023

Is your request related to a problem? Please describe.
Currently VIntl can only be initialised globally, or manually, but without benefits of plugin. I think this is kind of a bummer, especially if you want to have things like localised routes.

Describe the solution you'd like
I think it would be nice if VIntl separated controller into two or three things: loader/cache (loads all locales and holds the messages), scope (takes in loader's messages, maybe extends them (?), and instantiates IntlShape for them), consumer (just an accessor to scope).

Describe alternatives you've considered

  • Initialising VIntl manually takes effort, and there are many nuances not really a way to share states between instances (?).

Additional context
N/A

@brawaru brawaru added the type/request Issue is a request for enhancements label May 2, 2023
@brawaru brawaru added this to the v5 milestone May 10, 2023
@brawaru brawaru added the scope/vintl Things related to VIntl as it is label May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope/vintl Things related to VIntl as it is type/request Issue is a request for enhancements
Projects
None yet
Development

No branches or pull requests

1 participant