Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Implement message dictionary caching. #19

Closed
mwistrand opened this issue Oct 16, 2016 · 1 comment
Closed

Implement message dictionary caching. #19

mwistrand opened this issue Oct 16, 2016 · 1 comment
Assignees
Milestone

Comments

@mwistrand
Copy link
Contributor

When dojo-i18n is incorporated into dojo-widgets, there will need to be a way to synchronously load message dictionaries, in order to reduce the number of invalidate calls needed to render the correct locale-specific messages. Since the dojo-loader caches modules it has already loaded, creating a separate cache within dojo-i18n seemed redundant. However, now that there is a need for synchronous message loading, implementing a cache is also now necessary.

@mwistrand
Copy link
Contributor Author

getCachedMessages should also check the list of supported locales, returning the default messages if the specified locale is not supported.

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

No branches or pull requests

2 participants