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
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
11 changed files with 3 additions and 3 deletions

View File

@ -227,7 +227,7 @@ module.exports = function(grunt) {
messages: {
src: [
'packages/node_modules/@node-red/nodes/locales/**/*.json',
'packages/node_modules/@node-red/editor-api/lib/editor/locales/**/*.json',
'packages/node_modules/@node-red/editor-client/locales/**/*.json',
'packages/node_modules/@node-red/runtime/locales/**/*.json'
]
},
@ -282,7 +282,7 @@ module.exports = function(grunt) {
json: {
files: [
'packages/node_modules/@node-red/nodes/locales/**/*.json',
'packages/node_modules/@node-red/editor-api/lib/editor/locales/**/*.json',
'packages/node_modules/@node-red/editor-client/locales/**/*.json',
'packages/node_modules/@node-red/runtime/locales/**/*.json'
],
tasks: ['jsonlint:messages']

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"},