mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Only attempt to load one locale per catalog
This commit is contained in:
parent
e6ed8ee509
commit
d9cf6a4431
@ -19,13 +19,14 @@ RED.i18n = (function() {
|
|||||||
return {
|
return {
|
||||||
init: function(done) {
|
init: function(done) {
|
||||||
i18n.init({
|
i18n.init({
|
||||||
resGetPath: 'locales/__ns__?lang=__lng__',
|
resGetPath: 'locales/__ns__',
|
||||||
dynamicLoad: false,
|
dynamicLoad: false,
|
||||||
|
load:'current',
|
||||||
ns: {
|
ns: {
|
||||||
namespaces: ["editor","node-red"],
|
namespaces: ["editor","node-red"],
|
||||||
defaultNs: "editor"
|
defaultNs: "editor"
|
||||||
},
|
},
|
||||||
fallbackLng: ['en']
|
fallbackLng: ['en-US']
|
||||||
},function() {
|
},function() {
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user