Skip to content

Support root as a locale bundle #14

Closed
@Georgegriff

Description

@Georgegriff

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions