From d9cf6a443112c6b97a0822d5485beb175f531ed2 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Sat, 30 May 2015 22:40:26 +0100 Subject: [PATCH] Only attempt to load one locale per catalog --- editor/js/i18n.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/editor/js/i18n.js b/editor/js/i18n.js index de97aff58..a2266b957 100644 --- a/editor/js/i18n.js +++ b/editor/js/i18n.js @@ -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(); });