Skip to content

Put root NLS at the NLS object root#3

Open
kriszyp wants to merge 1 commit intoNordth:masterfrom
kriszyp:flatten-nls
Open

Put root NLS at the NLS object root#3
kriszyp wants to merge 1 commit intoNordth:masterfrom
kriszyp:flatten-nls

Conversation

@kriszyp
Copy link
Copy Markdown
Contributor

@kriszyp kriszyp commented Jun 1, 2016

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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant