Only attempt to load one locale per catalog

This commit is contained in:
Nick O'Leary 2015-05-30 22:40:26 +01:00
parent e6ed8ee509
commit d9cf6a4431
1 changed files with 3 additions and 2 deletions

View File

@ -19,13 +19,14 @@ RED.i18n = (function() {
return {
init: function(done) {
i18n.init({
resGetPath: 'locales/__ns__?lang=__lng__',
resGetPath: 'locales/__ns__',
dynamicLoad: false,
load:'current',
ns: {
namespaces: ["editor","node-red"],
defaultNs: "editor"
},
fallbackLng: ['en']
fallbackLng: ['en-US']
},function() {
done();
});