@node-red/editor-api 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/editor/locales.js +4 -3
- package/lib/editor/theme.js +5 -0
- package/package.json +3 -3
package/lib/editor/locales.js
CHANGED
|
@@ -48,9 +48,10 @@ module.exports = {
|
|
|
48
48
|
var prevLang = i18n.i.language;
|
|
49
49
|
// Trigger a load from disk of the language if it is not the default
|
|
50
50
|
i18n.i.changeLanguage(lang, function(){
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
i18n.i.changeLanguage(prevLang, function() {
|
|
52
|
+
var catalog = loadResource(lang, namespace);
|
|
53
|
+
res.json(catalog||{});
|
|
54
|
+
});
|
|
53
55
|
});
|
|
54
|
-
i18n.i.changeLanguage(prevLang);
|
|
55
56
|
}
|
|
56
57
|
}
|
package/lib/editor/theme.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node-red/editor-api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@node-red/util": "2.1.
|
|
20
|
-
"@node-red/editor-client": "2.1.
|
|
19
|
+
"@node-red/util": "2.1.3",
|
|
20
|
+
"@node-red/editor-client": "2.1.3",
|
|
21
21
|
"bcryptjs": "2.4.3",
|
|
22
22
|
"body-parser": "1.19.0",
|
|
23
23
|
"clone": "2.1.2",
|