Move editor locales into editor-client package

This commit is contained in:
Nick O'Leary
2018-10-03 14:08:16 +01:00
parent cdcf39fe82
commit 6c65d3830e
11 changed files with 3 additions and 3 deletions

View File

@@ -111,7 +111,7 @@ module.exports = {
}
},
start: function() {
var catalogPath = path.resolve(path.join(__dirname,"locales"));
var catalogPath = path.resolve(path.join(path.dirname(require.resolve("@node-red/editor-client")),"locales"));
return i18n.registerMessageCatalogs([
{namespace: "editor", dir: catalogPath, file:"editor.json"},
{namespace: "jsonata", dir: catalogPath, file:"jsonata.json"},