mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Move editor locales into editor-client package
This commit is contained in:
parent
cdcf39fe82
commit
6c65d3830e
@ -227,7 +227,7 @@ module.exports = function(grunt) {
|
|||||||
messages: {
|
messages: {
|
||||||
src: [
|
src: [
|
||||||
'packages/node_modules/@node-red/nodes/locales/**/*.json',
|
'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'
|
'packages/node_modules/@node-red/runtime/locales/**/*.json'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -282,7 +282,7 @@ module.exports = function(grunt) {
|
|||||||
json: {
|
json: {
|
||||||
files: [
|
files: [
|
||||||
'packages/node_modules/@node-red/nodes/locales/**/*.json',
|
'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'
|
'packages/node_modules/@node-red/runtime/locales/**/*.json'
|
||||||
],
|
],
|
||||||
tasks: ['jsonlint:messages']
|
tasks: ['jsonlint:messages']
|
||||||
|
@ -111,7 +111,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
start: function() {
|
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([
|
return i18n.registerMessageCatalogs([
|
||||||
{namespace: "editor", dir: catalogPath, file:"editor.json"},
|
{namespace: "editor", dir: catalogPath, file:"editor.json"},
|
||||||
{namespace: "jsonata", dir: catalogPath, file:"jsonata.json"},
|
{namespace: "jsonata", dir: catalogPath, file:"jsonata.json"},
|
||||||
|
Loading…
Reference in New Issue
Block a user