dojo-webpack-loader icon indicating copy to clipboard operation
dojo-webpack-loader copied to clipboard

Put root NLS at the NLS object root

Open kriszyp opened this issue 9 years ago • 0 comments

This isn't complete, but i18n loaded NLS bundles do not seem to export an object in the same format in a webpack bundle that the i18n plugin returns. The generated module contains the available languages (and root) as properties, but the i18n plugin resolves the appropriate language and returns the appropriate language-flattened object. I am not sure if there is a way for the generated module to call something in dojo/i18n do this flattening based on the current locale.

In our app, we got an error loading dgrid/extensions/Pagination, because instead of a status object, there is just an object with a root property (that contains an object with a status). This PR is just a quick hack to resolve to the root value instead, because our app just runs in English/root.

kriszyp avatar Jun 01 '16 18:06 kriszyp