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.
When
dojo-i18n
is incorporated intodojo-widgets
, there will need to be a way to synchronously load message dictionaries, in order to reduce the number ofinvalidate
calls needed to render the correct locale-specific messages. Since thedojo-loader
caches modules it has already loaded, creating a separate cache withindojo-i18n
seemed redundant. However, now that there is a need for synchronous message loading, implementing a cache is also now necessary.