From 12ce719213039b339e938f716a3d86bdf9581110 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Mon, 27 May 2019 13:34:47 +0900 Subject: [PATCH] make new library folder interface i18n ready --- .../@node-red/editor-client/locales/en-US/editor.json | 1 + .../node_modules/@node-red/editor-client/locales/ja/editor.json | 1 + .../node_modules/@node-red/editor-client/src/js/ui/library.js | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json b/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json index f5a3a0e8b..1239b41eb 100755 --- a/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json +++ b/packages/node_modules/@node-red/editor-client/locales/en-US/editor.json @@ -365,6 +365,7 @@ "savedNodes": "Saved nodes", "savedType": "Saved __type__", "saveFailed": "Save failed: __message__", + "newFolder": "New folder", "types": { "local": "Local", "examples": "Examples" diff --git a/packages/node_modules/@node-red/editor-client/locales/ja/editor.json b/packages/node_modules/@node-red/editor-client/locales/ja/editor.json index 83a00a06e..5d40016e2 100755 --- a/packages/node_modules/@node-red/editor-client/locales/ja/editor.json +++ b/packages/node_modules/@node-red/editor-client/locales/ja/editor.json @@ -356,6 +356,7 @@ "savedNodes": "フローを保存しました", "savedType": "__type__ を保存しました", "saveFailed": "保存に失敗しました: __message__", + "newFolder": "新規フォルダ", "types": { "examples": "サンプル" } diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/library.js b/packages/node_modules/@node-red/editor-client/src/js/ui/library.js index d6fd27ec8..ef73c5912 100755 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/library.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/library.js @@ -325,7 +325,7 @@ RED.library = (function() { var menuOptionMenu = RED.menu.init({id:"red-ui-library-browser-menu", options: [ - {id:"red-ui-library-browser-menu-addFolder",label:"New folder", onselect: function() { + {id:"red-ui-library-browser-menu-addFolder",label:RED._("library.newFolder"), onselect: function() { var defaultFolderName = "new-folder"; var defaultFolderNameMatches = {};