futuweb/webpack-amdi18n-loader

Support root as a locale bundle

Georgegriff opened this issue · 3 comments

My legacy code base (migrating from RequireJS) has its "root" bundle, as per the examples on Requirejs (http://requirejs.org/docs/api.html#i18n) for i18n files configured as such:
//my/nls/colors.js contents:

define({
"root": true,
"fr-fr": true,
"fr-fr-paris": true
});
//Contents of my/nls/root/colors.js

define({
"red": "red",
"blue": "blue",
"green": "green"
});

When using amdi18n it does not appear to pick up the values from my "colors.js" under /root/, is it possible to use the loader in this way? I am unable to modify our resource files because i cannot touch the code base as we have legacy integrations to support.

Cheers

available in 0.6.0

Excellent :) thanks