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 6a7edb202..3870c9336 100644 --- a/packages/node_modules/@node-red/editor-client/locales/ja/editor.json +++ b/packages/node_modules/@node-red/editor-client/locales/ja/editor.json @@ -524,8 +524,8 @@ "title": "パレットの管理", "palette": "パレット", "times": { - "seconds": "秒前", - "minutes": "分前", + "seconds": "数秒前", + "minutes": "数分前", "minutesV": "__count__ 分前", "hoursV": "__count__ 時間前", "hoursV_plural": "__count__ 時間前", diff --git a/packages/node_modules/@node-red/nodes/core/function/10-function.js b/packages/node_modules/@node-red/nodes/core/function/10-function.js index 0e8b7f5ef..17e6e569a 100644 --- a/packages/node_modules/@node-red/nodes/core/function/10-function.js +++ b/packages/node_modules/@node-red/nodes/core/function/10-function.js @@ -302,7 +302,7 @@ module.exports = function(RED) { } }); if (moduleErrors) { - throw new Error("Function node failed to load external modules"); + throw new Error(RED._("function.error.externalModuleLoadError")); } } diff --git a/packages/node_modules/@node-red/nodes/locales/en-US/messages.json b/packages/node_modules/@node-red/nodes/locales/en-US/messages.json index 5ca06426c..f4766c634 100755 --- a/packages/node_modules/@node-red/nodes/locales/en-US/messages.json +++ b/packages/node_modules/@node-red/nodes/locales/en-US/messages.json @@ -227,6 +227,7 @@ "error": { "externalModuleNotAllowed": "Function node not allowed to load external modules", "moduleNotAllowed": "Module __module__ not allowed", + "externalModuleLoadError": "Function node failed to load external modules", "moduleLoadError": "Failed to load module __module__: __error__", "moduleNameError": "Invalid module variable name: __name__", "moduleNameReserved": "Reserved variable name: __name__", diff --git a/packages/node_modules/@node-red/nodes/locales/ja/function/10-function.html b/packages/node_modules/@node-red/nodes/locales/ja/function/10-function.html index de6f44e3d..1ee1aa2b0 100644 --- a/packages/node_modules/@node-red/nodes/locales/ja/function/10-function.html +++ b/packages/node_modules/@node-red/nodes/locales/ja/function/10-function.html @@ -44,10 +44,11 @@
catchノードを用いてエラー処理が可能です。catchノードで処理させるためには、msg
をnode.error
の第二引数として渡します:
node.error("エラー",msg);
コード中ではノードのIDおよび名前を以下のプロパティで参照できます:
+ノードに関する情報を参照するための以下のプロパティを利用できます:
node.id
- ノードのIDnode.name
- ノードの名称node.outputCount
- ノードの出力数環境変数はenv.get("MY_ENV_VAR")
により参照できます。
書き込みの完了時、入力メッセージを出力端子に送出します。