Skip to content

Scoped VIntl instances #33

@brawaru

Description

@brawaru

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope/vintlThings related to VIntl as it istype/requestIssue is a request for enhancements

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions