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

Add a possibility to define high priority bundle #16

Open
estambakio-sc opened this issue Apr 19, 2018 · 0 comments
Open

Add a possibility to define high priority bundle #16

estambakio-sc opened this issue Apr 19, 2018 · 0 comments
Assignees

Comments

@estambakio-sc
Copy link
Contributor

estambakio-sc commented Apr 19, 2018

Meta-Info Value
ExtProjectId JCCMMN-01
Original Estimation ???h
Remaining Estimation ???h

It is needed to add a possibility to define a high priority bundle, which has higher priority than messages retrieved using register method.

The goal is to be able to give I18nManager a bundle of messages from a remote source of truth. If the requested key is present in this outer bundle, it is used instead of inner bundles. If not - I18nManager performs its own regular logic.

Details of implementations:

  • add a function property to I18nManager constructor. This function takes locale and returns a bundle of messages for this locale (of type object)

  • in getMessage method check for this function and if it exists then try to get the message using this function. If the message is not defined afterward, proceed with regular logic inside I18nManager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants